Only do switch-to-lookup table transformation when TargetTransformInfo
[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_CXX11
688 ENABLE_OPTIMIZED
689 ENABLE_PROFILING
690 DISABLE_ASSERTIONS
691 ENABLE_WERROR
692 ENABLE_EXPENSIVE_CHECKS
693 EXPENSIVE_CHECKS
694 DEBUG_RUNTIME
695 DEBUG_SYMBOLS
696 KEEP_SYMBOLS
697 JIT
698 TARGET_HAS_JIT
699 ENABLE_DOCS
700 ENABLE_DOXYGEN
701 LLVM_ENABLE_THREADS
702 ENABLE_PTHREADS
703 ENABLE_PIC
704 ENABLE_SHARED
705 ENABLE_EMBED_STDCXX
706 ENABLE_TIMESTAMPS
707 TARGETS_TO_BUILD
708 LLVM_ENUM_TARGETS
709 LLVM_ENUM_ASM_PRINTERS
710 LLVM_ENUM_ASM_PARSERS
711 LLVM_ENUM_DISASSEMBLERS
712 OPTIMIZE_OPTION
713 EXTRA_OPTIONS
714 EXTRA_LD_OPTIONS
715 CLANG_SRC_ROOT
716 BINUTILS_INCDIR
717 INTERNAL_PREFIX
718 NM
719 ifGNUmake
720 LN_S
721 CMP
722 CP
723 DATE
724 FIND
725 MKDIR
726 MV
727 RANLIB
728 AR
729 RM
730 SED
731 TAR
732 BINPWD
733 GRAPHVIZ
734 DOT
735 FDP
736 NEATO
737 TWOPI
738 CIRCO
739 GV
740 DOTTY
741 XDOT_PY
742 INSTALL_PROGRAM
743 INSTALL_SCRIPT
744 INSTALL_DATA
745 BZIP2
746 CAT
747 DOXYGEN
748 GROFF
749 GZIPBIN
750 PDFROFF
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 USE_INTEL_JITEVENTS
769 XML2CONFIG
770 LIBXML2_LIBS
771 LIBXML2_INC
772 HAVE_PTHREAD
773 HUGE_VAL_SANITY
774 MMAP_FILE
775 SHLIBEXT
776 SHLIBPATH_VAR
777 LLVM_PREFIX
778 LLVM_BINDIR
779 LLVM_LIBDIR
780 LLVM_DATADIR
781 LLVM_DOCSDIR
782 LLVM_ETCDIR
783 LLVM_INCLUDEDIR
784 LLVM_INFODIR
785 LLVM_MANDIR
786 LLVM_CONFIGTIME
787 BINDINGS_TO_BUILD
788 ALL_BINDINGS
789 OCAML_LIBDIR
790 ENABLE_VISIBILITY_INLINES_HIDDEN
791 RPATH
792 RDYNAMIC
793 program_prefix
794 LIBOBJS
795 LTLIBOBJS'
796 ac_subst_files=''
797       ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 CPPFLAGS
804 CXX
805 CXXFLAGS
806 CCC
807 CPP'
808 ac_subdirs_all='projects/llvm-gcc
809 projects/test-suite
810 projects/llvm-test
811 projects/poolalloc
812 projects/llvm-poolalloc
813 projects/sample
814 projects/privbracket
815 projects/llvm-stacker
816 projects/llvm-reopt
817 projects/llvm-java
818 projects/llvm-tv
819 projects/safecode
820 projects/llvm-kernel
821 tools/polly'
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873   # If the previous option needs an argument, assign it.
874   if test -n "$ac_prev"; then
875     eval $ac_prev=\$ac_option
876     ac_prev=
877     continue
878   fi
879
880   case $ac_option in
881   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882   *)    ac_optarg=yes ;;
883   esac
884
885   # Accept the important Cygnus configure options, so we can diagnose typos.
886
887   case $ac_dashdash$ac_option in
888   --)
889     ac_dashdash=yes ;;
890
891   -bindir | --bindir | --bindi | --bind | --bin | --bi)
892     ac_prev=bindir ;;
893   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894     bindir=$ac_optarg ;;
895
896   -build | --build | --buil | --bui | --bu)
897     ac_prev=build_alias ;;
898   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899     build_alias=$ac_optarg ;;
900
901   -cache-file | --cache-file | --cache-fil | --cache-fi \
902   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903     ac_prev=cache_file ;;
904   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906     cache_file=$ac_optarg ;;
907
908   --config-cache | -C)
909     cache_file=config.cache ;;
910
911   -datadir | --datadir | --datadi | --datad)
912     ac_prev=datadir ;;
913   -datadir=* | --datadir=* | --datadi=* | --datad=*)
914     datadir=$ac_optarg ;;
915
916   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917   | --dataroo | --dataro | --datar)
918     ac_prev=datarootdir ;;
919   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921     datarootdir=$ac_optarg ;;
922
923   -disable-* | --disable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=no ;;
931
932   -docdir | --docdir | --docdi | --doc | --do)
933     ac_prev=docdir ;;
934   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935     docdir=$ac_optarg ;;
936
937   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938     ac_prev=dvidir ;;
939   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940     dvidir=$ac_optarg ;;
941
942   -enable-* | --enable-*)
943     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944     # Reject names that are not valid shell variable names.
945     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947    { (exit 1); exit 1; }; }
948     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949     eval enable_$ac_feature=\$ac_optarg ;;
950
951   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953   | --exec | --exe | --ex)
954     ac_prev=exec_prefix ;;
955   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957   | --exec=* | --exe=* | --ex=*)
958     exec_prefix=$ac_optarg ;;
959
960   -gas | --gas | --ga | --g)
961     # Obsolete; use --with-gas.
962     with_gas=yes ;;
963
964   -help | --help | --hel | --he | -h)
965     ac_init_help=long ;;
966   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967     ac_init_help=recursive ;;
968   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969     ac_init_help=short ;;
970
971   -host | --host | --hos | --ho)
972     ac_prev=host_alias ;;
973   -host=* | --host=* | --hos=* | --ho=*)
974     host_alias=$ac_optarg ;;
975
976   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977     ac_prev=htmldir ;;
978   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979   | --ht=*)
980     htmldir=$ac_optarg ;;
981
982   -includedir | --includedir | --includedi | --included | --include \
983   | --includ | --inclu | --incl | --inc)
984     ac_prev=includedir ;;
985   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986   | --includ=* | --inclu=* | --incl=* | --inc=*)
987     includedir=$ac_optarg ;;
988
989   -infodir | --infodir | --infodi | --infod | --info | --inf)
990     ac_prev=infodir ;;
991   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992     infodir=$ac_optarg ;;
993
994   -libdir | --libdir | --libdi | --libd)
995     ac_prev=libdir ;;
996   -libdir=* | --libdir=* | --libdi=* | --libd=*)
997     libdir=$ac_optarg ;;
998
999   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000   | --libexe | --libex | --libe)
1001     ac_prev=libexecdir ;;
1002   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003   | --libexe=* | --libex=* | --libe=*)
1004     libexecdir=$ac_optarg ;;
1005
1006   -localedir | --localedir | --localedi | --localed | --locale)
1007     ac_prev=localedir ;;
1008   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009     localedir=$ac_optarg ;;
1010
1011   -localstatedir | --localstatedir | --localstatedi | --localstated \
1012   | --localstate | --localstat | --localsta | --localst | --locals)
1013     ac_prev=localstatedir ;;
1014   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016     localstatedir=$ac_optarg ;;
1017
1018   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019     ac_prev=mandir ;;
1020   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021     mandir=$ac_optarg ;;
1022
1023   -nfp | --nfp | --nf)
1024     # Obsolete; use --without-fp.
1025     with_fp=no ;;
1026
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n)
1029     no_create=yes ;;
1030
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     no_recursion=yes ;;
1034
1035   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037   | --oldin | --oldi | --old | --ol | --o)
1038     ac_prev=oldincludedir ;;
1039   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042     oldincludedir=$ac_optarg ;;
1043
1044   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045     ac_prev=prefix ;;
1046   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047     prefix=$ac_optarg ;;
1048
1049   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050   | --program-pre | --program-pr | --program-p)
1051     ac_prev=program_prefix ;;
1052   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054     program_prefix=$ac_optarg ;;
1055
1056   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057   | --program-suf | --program-su | --program-s)
1058     ac_prev=program_suffix ;;
1059   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061     program_suffix=$ac_optarg ;;
1062
1063   -program-transform-name | --program-transform-name \
1064   | --program-transform-nam | --program-transform-na \
1065   | --program-transform-n | --program-transform- \
1066   | --program-transform | --program-transfor \
1067   | --program-transfo | --program-transf \
1068   | --program-trans | --program-tran \
1069   | --progr-tra | --program-tr | --program-t)
1070     ac_prev=program_transform_name ;;
1071   -program-transform-name=* | --program-transform-name=* \
1072   | --program-transform-nam=* | --program-transform-na=* \
1073   | --program-transform-n=* | --program-transform-=* \
1074   | --program-transform=* | --program-transfor=* \
1075   | --program-transfo=* | --program-transf=* \
1076   | --program-trans=* | --program-tran=* \
1077   | --progr-tra=* | --program-tr=* | --program-t=*)
1078     program_transform_name=$ac_optarg ;;
1079
1080   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081     ac_prev=pdfdir ;;
1082   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083     pdfdir=$ac_optarg ;;
1084
1085   -psdir | --psdir | --psdi | --psd | --ps)
1086     ac_prev=psdir ;;
1087   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088     psdir=$ac_optarg ;;
1089
1090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091   | -silent | --silent | --silen | --sile | --sil)
1092     silent=yes ;;
1093
1094   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095     ac_prev=sbindir ;;
1096   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097   | --sbi=* | --sb=*)
1098     sbindir=$ac_optarg ;;
1099
1100   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102   | --sharedst | --shareds | --shared | --share | --shar \
1103   | --sha | --sh)
1104     ac_prev=sharedstatedir ;;
1105   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108   | --sha=* | --sh=*)
1109     sharedstatedir=$ac_optarg ;;
1110
1111   -site | --site | --sit)
1112     ac_prev=site ;;
1113   -site=* | --site=* | --sit=*)
1114     site=$ac_optarg ;;
1115
1116   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117     ac_prev=srcdir ;;
1118   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119     srcdir=$ac_optarg ;;
1120
1121   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122   | --syscon | --sysco | --sysc | --sys | --sy)
1123     ac_prev=sysconfdir ;;
1124   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126     sysconfdir=$ac_optarg ;;
1127
1128   -target | --target | --targe | --targ | --tar | --ta | --t)
1129     ac_prev=target_alias ;;
1130   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131     target_alias=$ac_optarg ;;
1132
1133   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134     verbose=yes ;;
1135
1136   -version | --version | --versio | --versi | --vers | -V)
1137     ac_init_version=: ;;
1138
1139   -with-* | --with-*)
1140     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143       { echo "$as_me: error: invalid package name: $ac_package" >&2
1144    { (exit 1); exit 1; }; }
1145     ac_package=`echo $ac_package| sed 's/-/_/g'`
1146     eval with_$ac_package=\$ac_optarg ;;
1147
1148   -without-* | --without-*)
1149     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152       { echo "$as_me: error: invalid package name: $ac_package" >&2
1153    { (exit 1); exit 1; }; }
1154     ac_package=`echo $ac_package | sed 's/-/_/g'`
1155     eval with_$ac_package=no ;;
1156
1157   --x)
1158     # Obsolete; use --with-x.
1159     with_x=yes ;;
1160
1161   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162   | --x-incl | --x-inc | --x-in | --x-i)
1163     ac_prev=x_includes ;;
1164   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166     x_includes=$ac_optarg ;;
1167
1168   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170     ac_prev=x_libraries ;;
1171   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173     x_libraries=$ac_optarg ;;
1174
1175   -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177    { (exit 1); exit 1; }; }
1178     ;;
1179
1180   *=*)
1181     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185    { (exit 1); exit 1; }; }
1186     eval $ac_envvar=\$ac_optarg
1187     export $ac_envvar ;;
1188
1189   *)
1190     # FIXME: should be removed in autoconf 3.0.
1191     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195     ;;
1196
1197   esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202   { echo "$as_me: error: missing argument to $ac_option" >&2
1203    { (exit 1); exit 1; }; }
1204 fi
1205
1206 # Be sure to have absolute directory names.
1207 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208                 datadir sysconfdir sharedstatedir localstatedir includedir \
1209                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210                 libdir localedir mandir
1211 do
1212   eval ac_val=\$$ac_var
1213   case $ac_val in
1214     [\\/$]* | ?:[\\/]* )  continue;;
1215     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216   esac
1217   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218    { (exit 1); exit 1; }; }
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230   if test "x$build_alias" = x; then
1231     cross_compiling=maybe
1232     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233     If a cross compiler is detected then cross compile mode will be used." >&2
1234   elif test "x$build_alias" != "x$host_alias"; then
1235     cross_compiling=yes
1236   fi
1237 fi
1238
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242 test "$silent" = yes && exec 6>/dev/null
1243
1244
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248   { echo "$as_me: error: Working directory cannot be determined" >&2
1249    { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251   { echo "$as_me: error: pwd does not report name of working directory" >&2
1252    { (exit 1); exit 1; }; }
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257   ac_srcdir_defaulted=yes
1258   # Try the directory containing this script, then the parent directory.
1259   ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261          X"$0" : 'X\(//\)[^/]' \| \
1262          X"$0" : 'X\(//\)$' \| \
1263          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 echo X"$0" |
1265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)[^/].*/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\/\)$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\).*/{
1278             s//\1/
1279             q
1280           }
1281           s/.*/./; q'`
1282   srcdir=$ac_confdir
1283   if test ! -r "$srcdir/$ac_unique_file"; then
1284     srcdir=..
1285   fi
1286 else
1287   ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292    { (exit 1); exit 1; }; }
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297    { (exit 1); exit 1; }; }
1298         pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301   srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_env_${ac_var}_value=\$${ac_var}
1312   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320   # Omit some internal or obsolete options to make the list less imposing.
1321   # This message is too long to be a string in the A/UX 3.1 sh.
1322   cat <<_ACEOF
1323 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333   -h, --help              display this help and exit
1334       --help=short        display options specific to this package
1335       --help=recursive    display the short help of all the included packages
1336   -V, --version           display version information and exit
1337   -q, --quiet, --silent   do not print \`checking...' messages
1338       --cache-file=FILE   cache test results in FILE [disabled]
1339   -C, --config-cache      alias for \`--cache-file=config.cache'
1340   -n, --no-create         do not create output files
1341       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344   --prefix=PREFIX         install architecture-independent files in PREFIX
1345                           [$ac_default_prefix]
1346   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347                           [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357   --bindir=DIR           user executables [EPREFIX/bin]
1358   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1359   --libexecdir=DIR       program executables [EPREFIX/libexec]
1360   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1361   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1362   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1363   --libdir=DIR           object code libraries [EPREFIX/lib]
1364   --includedir=DIR       C header files [PREFIX/include]
1365   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1366   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1367   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1368   --infodir=DIR          info documentation [DATAROOTDIR/info]
1369   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1370   --mandir=DIR           man documentation [DATAROOTDIR/man]
1371   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1372   --htmldir=DIR          html documentation [DOCDIR]
1373   --dvidir=DIR           dvi documentation [DOCDIR]
1374   --pdfdir=DIR           pdf documentation [DOCDIR]
1375   --psdir=DIR            ps documentation [DOCDIR]
1376 _ACEOF
1377
1378   cat <<\_ACEOF
1379
1380 System types:
1381   --build=BUILD     configure for building on BUILD [guessed]
1382   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1383   --target=TARGET   configure for building compilers for TARGET [HOST]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388   case $ac_init_help in
1389      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1390    esac
1391   cat <<\_ACEOF
1392
1393 Optional Features:
1394   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396   --enable-polly          Use polly if available (default is YES)
1397   --enable-libcpp         Use libc++ if available (default is NO)
1398   --enable-cxx11          Use c++11 if available (default is NO)
1399   --enable-optimized      Compile with optimizations enabled (default is NO)
1400   --enable-profiling      Compile with profiling enabled (default is NO)
1401   --enable-assertions     Compile with assertion checks enabled (default is
1402                           YES)
1403   --enable-werror         Compile with -Werror enabled (default is NO)
1404   --enable-expensive-checks
1405                           Compile with expensive debug checks enabled (default
1406                           is NO)
1407   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1408                           NO)
1409   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1410                           optimization is on and YES if it's off)
1411   --enable-keep-symbols   Do not strip installed executables)
1412   --enable-jit            Enable Just In Time Compiling (default is YES)
1413   --enable-docs           Build documents (default is YES)
1414   --enable-doxygen        Build doxygen documentation (default is NO)
1415   --enable-threads        Use threads if available (default is YES)
1416   --enable-pthreads       Use pthreads if available (default is YES)
1417   --enable-pic            Build LLVM with Position Independent Code (default
1418                           is YES)
1419   --enable-shared         Build a shared library and link tools against it
1420                           (default is NO)
1421   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1422                           Win32 DLL (default is NO)
1423   --enable-timestamps     Enable embedding timestamp information in build
1424                           (default is YES)
1425   --enable-backtraces     Enable embedding backtraces on crash (default is
1426                           YES)
1427   --enable-targets        Build specific host targets: all or
1428                           target1,target2,... Valid targets are: host, x86,
1429                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1430                           xcore, msp430, nvptx, and cpp (default=all)
1431   --enable-experimental-targets
1432                           Build experimental host targets: disable or
1433                           target1,target2,... (default=disable)
1434   --enable-bindings       Build specific language bindings:
1435                           all,auto,none,{binding-name} (default=auto)
1436   --enable-libffi         Check for the presence of libffi (default is NO)
1437   --enable-ltdl-install   install libltdl
1438
1439 Optional Packages:
1440   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1441   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1442   --with-optimize-option  Select the compiler options to use for optimized
1443                           builds
1444   --with-extra-options    Specify additional options to compile LLVM with
1445   --with-extra-ld-options Specify additional options to link LLVM with
1446   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1447                           is stdlib)
1448   --with-clang-srcdir     Directory to the out-of-tree Clang source
1449   --with-clang-resource-dir
1450                           Relative directory from the Clang binary for
1451                           resource files
1452   --with-c-include-dirs   Colon separated list of directories clang will
1453                           search for headers
1454   --with-gcc-toolchain    Directory where gcc is installed.
1455   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1456   --with-binutils-include Specify path to binutils/include/ containing
1457                           plugin-api.h file for gold plugin.
1458   --with-bug-report-url   Specify the URL where bug reports should be
1459                           submitted (default=http://llvm.org/bugs/)
1460   --with-internal-prefix  Installation directory for internal files
1461   --with-udis86=<path>    Use udis86 external x86 disassembler library
1462   --with-oprofile=<prefix>
1463                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1464   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1465
1466
1467 Some influential environment variables:
1468   CC          C compiler command
1469   CFLAGS      C compiler flags
1470   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1471               nonstandard directory <lib dir>
1472   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473               you have headers in a nonstandard directory <include dir>
1474   CXX         C++ compiler command
1475   CXXFLAGS    C++ compiler flags
1476   CPP         C preprocessor
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to <http://llvm.org/bugs/>.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487   # If there are subdirs, report their specific --help.
1488   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489     test -d "$ac_dir" || continue
1490     ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496   # A ".." for each directory in $ac_dir_suffix.
1497   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498   case $ac_top_builddir_sub in
1499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501   esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509   .)  # We are building in place.
1510     ac_srcdir=.
1511     ac_top_srcdir=$ac_top_builddir_sub
1512     ac_abs_top_srcdir=$ac_pwd ;;
1513   [\\/]* | ?:[\\/]* )  # Absolute name.
1514     ac_srcdir=$srcdir$ac_dir_suffix;
1515     ac_top_srcdir=$srcdir
1516     ac_abs_top_srcdir=$srcdir ;;
1517   *) # Relative name.
1518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519     ac_top_srcdir=$ac_top_build_prefix$srcdir
1520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524     cd "$ac_dir" || { ac_status=$?; continue; }
1525     # Check for guested configure.
1526     if test -f "$ac_srcdir/configure.gnu"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529     elif test -f "$ac_srcdir/configure"; then
1530       echo &&
1531       $SHELL "$ac_srcdir/configure" --help=recursive
1532     else
1533       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534     fi || ac_status=$?
1535     cd "$ac_pwd" || { ac_status=$?; break; }
1536   done
1537 fi
1538
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541   cat <<\_ACEOF
1542 LLVM configure 3.2svn
1543 generated by GNU Autoconf 2.60
1544
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549
1550 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1551 _ACEOF
1552   exit
1553 fi
1554 cat >config.log <<_ACEOF
1555 This file contains any messages produced by compilers while
1556 running configure, to aid debugging if configure makes a mistake.
1557
1558 It was created by LLVM $as_me 3.2svn, which was
1559 generated by GNU Autoconf 2.60.  Invocation command line was
1560
1561   $ $0 $@
1562
1563 _ACEOF
1564 exec 5>>config.log
1565 {
1566 cat <<_ASUNAME
1567 ## --------- ##
1568 ## Platform. ##
1569 ## --------- ##
1570
1571 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576
1577 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1579
1580 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1581 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1582 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1584 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1585 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1586 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1587
1588 _ASUNAME
1589
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1592 do
1593   IFS=$as_save_IFS
1594   test -z "$as_dir" && as_dir=.
1595   echo "PATH: $as_dir"
1596 done
1597 IFS=$as_save_IFS
1598
1599 } >&5
1600
1601 cat >&5 <<_ACEOF
1602
1603
1604 ## ----------- ##
1605 ## Core tests. ##
1606 ## ----------- ##
1607
1608 _ACEOF
1609
1610
1611 # Keep a trace of the command line.
1612 # Strip out --no-create and --no-recursion so they do not pile up.
1613 # Strip out --silent because we don't want to record it for future runs.
1614 # Also quote any args containing shell meta-characters.
1615 # Make two passes to allow for proper duplicate-argument suppression.
1616 ac_configure_args=
1617 ac_configure_args0=
1618 ac_configure_args1=
1619 ac_must_keep_next=false
1620 for ac_pass in 1 2
1621 do
1622   for ac_arg
1623   do
1624     case $ac_arg in
1625     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627     | -silent | --silent | --silen | --sile | --sil)
1628       continue ;;
1629     *\'*)
1630       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631     esac
1632     case $ac_pass in
1633     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1634     2)
1635       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636       if test $ac_must_keep_next = true; then
1637         ac_must_keep_next=false # Got value, back to normal.
1638       else
1639         case $ac_arg in
1640           *=* | --config-cache | -C | -disable-* | --disable-* \
1641           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643           | -with-* | --with-* | -without-* | --without-* | --x)
1644             case "$ac_configure_args0 " in
1645               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646             esac
1647             ;;
1648           -* ) ac_must_keep_next=true ;;
1649         esac
1650       fi
1651       ac_configure_args="$ac_configure_args '$ac_arg'"
1652       ;;
1653     esac
1654   done
1655 done
1656 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1658
1659 # When interrupted or exit'd, cleanup temporary files, and complete
1660 # config.log.  We remove comments because anyway the quotes in there
1661 # would cause problems or look ugly.
1662 # WARNING: Use '\'' to represent an apostrophe within the trap.
1663 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664 trap 'exit_status=$?
1665   # Save into config.log some information that might help in debugging.
1666   {
1667     echo
1668
1669     cat <<\_ASBOX
1670 ## ---------------- ##
1671 ## Cache variables. ##
1672 ## ---------------- ##
1673 _ASBOX
1674     echo
1675     # The following way of writing the cache mishandles newlines in values,
1676 (
1677   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678     eval ac_val=\$$ac_var
1679     case $ac_val in #(
1680     *${as_nl}*)
1681       case $ac_var in #(
1682       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684       esac
1685       case $ac_var in #(
1686       _ | IFS | as_nl) ;; #(
1687       *) $as_unset $ac_var ;;
1688       esac ;;
1689     esac
1690   done
1691   (set) 2>&1 |
1692     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693     *${as_nl}ac_space=\ *)
1694       sed -n \
1695         "s/'\''/'\''\\\\'\'''\''/g;
1696           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697       ;; #(
1698     *)
1699       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1700       ;;
1701     esac |
1702     sort
1703 )
1704     echo
1705
1706     cat <<\_ASBOX
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1710 _ASBOX
1711     echo
1712     for ac_var in $ac_subst_vars
1713     do
1714       eval ac_val=\$$ac_var
1715       case $ac_val in
1716       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717       esac
1718       echo "$ac_var='\''$ac_val'\''"
1719     done | sort
1720     echo
1721
1722     if test -n "$ac_subst_files"; then
1723       cat <<\_ASBOX
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1727 _ASBOX
1728       echo
1729       for ac_var in $ac_subst_files
1730       do
1731         eval ac_val=\$$ac_var
1732         case $ac_val in
1733         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734         esac
1735         echo "$ac_var='\''$ac_val'\''"
1736       done | sort
1737       echo
1738     fi
1739
1740     if test -s confdefs.h; then
1741       cat <<\_ASBOX
1742 ## ----------- ##
1743 ## confdefs.h. ##
1744 ## ----------- ##
1745 _ASBOX
1746       echo
1747       cat confdefs.h
1748       echo
1749     fi
1750     test "$ac_signal" != 0 &&
1751       echo "$as_me: caught signal $ac_signal"
1752     echo "$as_me: exit $exit_status"
1753   } >&5
1754   rm -f core *.core core.conftest.* &&
1755     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756     exit $exit_status
1757 ' 0
1758 for ac_signal in 1 2 13 15; do
1759   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760 done
1761 ac_signal=0
1762
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1765
1766 # Predefined preprocessor variables.
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790 _ACEOF
1791
1792
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796   set x "$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 else
1800   set x "$ac_default_prefix/share/config.site" \
1801         "$ac_default_prefix/etc/config.site"
1802 fi
1803 shift
1804 for ac_site_file
1805 do
1806   if test -r "$ac_site_file"; then
1807     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808 echo "$as_me: loading site script $ac_site_file" >&6;}
1809     sed 's/^/| /' "$ac_site_file" >&5
1810     . "$ac_site_file"
1811   fi
1812 done
1813
1814 if test -r "$cache_file"; then
1815   # Some versions of bash will fail to source /dev/null (special
1816   # files actually), so we avoid doing that.
1817   if test -f "$cache_file"; then
1818     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819 echo "$as_me: loading cache $cache_file" >&6;}
1820     case $cache_file in
1821       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822       *)                      . "./$cache_file";;
1823     esac
1824   fi
1825 else
1826   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827 echo "$as_me: creating cache $cache_file" >&6;}
1828   >$cache_file
1829 fi
1830
1831 # Check that the precious variables saved in the cache have kept the same
1832 # value.
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836   eval ac_new_set=\$ac_env_${ac_var}_set
1837   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838   eval ac_new_val=\$ac_env_${ac_var}_value
1839   case $ac_old_set,$ac_new_set in
1840     set,)
1841       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843       ac_cache_corrupted=: ;;
1844     ,set)
1845       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847       ac_cache_corrupted=: ;;
1848     ,);;
1849     *)
1850       if test "x$ac_old_val" != "x$ac_new_val"; then
1851         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1854 echo "$as_me:   former value:  $ac_old_val" >&2;}
1855         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1856 echo "$as_me:   current value: $ac_new_val" >&2;}
1857         ac_cache_corrupted=:
1858       fi;;
1859   esac
1860   # Pass precious variables to config.status.
1861   if test "$ac_new_set" = set; then
1862     case $ac_new_val in
1863     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864     *) ac_arg=$ac_var=$ac_new_val ;;
1865     esac
1866     case " $ac_configure_args " in
1867       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1868       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1869     esac
1870   fi
1871 done
1872 if $ac_cache_corrupted; then
1873   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877    { (exit 1); exit 1; }; }
1878 fi
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904 ac_ext=c
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909
1910
1911
1912 cat >>confdefs.h <<\_ACEOF
1913 #define LLVM_VERSION_MAJOR 3
1914 _ACEOF
1915
1916
1917 cat >>confdefs.h <<\_ACEOF
1918 #define LLVM_VERSION_MINOR 2
1919 _ACEOF
1920
1921
1922 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1923
1924
1925
1926
1927
1928
1929
1930 ac_aux_dir=
1931 for ac_dir in autoconf "$srcdir"/autoconf; do
1932   if test -f "$ac_dir/install-sh"; then
1933     ac_aux_dir=$ac_dir
1934     ac_install_sh="$ac_aux_dir/install-sh -c"
1935     break
1936   elif test -f "$ac_dir/install.sh"; then
1937     ac_aux_dir=$ac_dir
1938     ac_install_sh="$ac_aux_dir/install.sh -c"
1939     break
1940   elif test -f "$ac_dir/shtool"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/shtool install -c"
1943     break
1944   fi
1945 done
1946 if test -z "$ac_aux_dir"; then
1947   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1948 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952 # These three variables are undocumented and unsupported,
1953 # and are intended to be withdrawn in a future Autoconf release.
1954 # They can cause serious problems if a builder's source tree is in a directory
1955 # whose full name contains unusual characters.
1956 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1957 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1958 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1959
1960
1961
1962 if test ${srcdir} != "." ; then
1963   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1964     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1965 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1966    { (exit 1); exit 1; }; }
1967   fi
1968 fi
1969
1970 ac_ext=c
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976   for ac_prog in clang llvm-gcc gcc
1977   do
1978     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$CC"; then
1986   ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997     break 2
1998   fi
1999 done
2000 done
2001 IFS=$as_save_IFS
2002
2003 fi
2004 fi
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007   { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2009 else
2010   { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2012 fi
2013
2014
2015     test -n "$CC" && break
2016   done
2017 fi
2018 if test -z "$CC"; then
2019   ac_ct_CC=$CC
2020   for ac_prog in clang llvm-gcc gcc
2021 do
2022   # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027   echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029   if test -n "$ac_ct_CC"; then
2030   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   for ac_exec_ext in '' $ac_executable_extensions; do
2038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039     ac_cv_prog_ac_ct_CC="$ac_prog"
2040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041     break 2
2042   fi
2043 done
2044 done
2045 IFS=$as_save_IFS
2046
2047 fi
2048 fi
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2053 else
2054   { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2056 fi
2057
2058
2059   test -n "$ac_ct_CC" && break
2060 done
2061
2062   if test "x$ac_ct_CC" = x; then
2063     CC=""
2064   else
2065     case $cross_compiling:$ac_tool_warned in
2066 yes:)
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet.  If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet.  If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2074 esac
2075     CC=$ac_ct_CC
2076   fi
2077 fi
2078
2079
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2090 case "(($ac_try" in
2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092   *) ac_try_echo=$ac_try;;
2093 esac
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095   (eval "$ac_compiler --version >&5") 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2100 case "(($ac_try" in
2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102   *) ac_try_echo=$ac_try;;
2103 esac
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105   (eval "$ac_compiler -v >&5") 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115   (eval "$ac_compiler -V >&5") 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119
2120 cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2139 # of exeext.
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 #
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort.  b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148 #
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions.  Remove them first so a
2151 # subsequent execution test works.
2152 ac_rmfiles=
2153 for ac_file in $ac_files
2154 do
2155   case $ac_file in
2156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158   esac
2159 done
2160 rm -f $ac_rmfiles
2161
2162 if { (ac_try="$ac_link_default"
2163 case "(($ac_try" in
2164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165   *) ac_try_echo=$ac_try;;
2166 esac
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168   (eval "$ac_link_default") 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; then
2172   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2176 # Autoconf.
2177 for ac_file in $ac_files
2178 do
2179   test -f "$ac_file" || continue
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2182         ;;
2183     [ab].out )
2184         # We found the default executable, but exeext='' is most
2185         # certainly right.
2186         break;;
2187     *.* )
2188         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189         then :; else
2190            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191         fi
2192         # We set ac_cv_exeext here because the later test for it is not
2193         # safe: cross compilers may not add the suffix if given an `-o'
2194         # argument, so we may need to know it at that point already.
2195         # Even if this section looks crufty: it has the advantage of
2196         # actually working.
2197         break;;
2198     * )
2199         break;;
2200   esac
2201 done
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2203
2204 else
2205   echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2207
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212    { (exit 77); exit 77; }; }
2213 fi
2214
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2218
2219 # Check that the compiler produces executables we can run.  If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226   if { ac_try='./$ac_file'
2227   { (case "(($ac_try" in
2228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229   *) ac_try_echo=$ac_try;;
2230 esac
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232   (eval "$ac_try") 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236     cross_compiling=no
2237   else
2238     if test "$cross_compiling" = maybe; then
2239         cross_compiling=yes
2240     else
2241         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247    { (exit 1); exit 1; }; }
2248     fi
2249   fi
2250 fi
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2253
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run.  If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2266 case "(($ac_try" in
2267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268   *) ac_try_echo=$ac_try;;
2269 esac
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271   (eval "$ac_link") 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; then
2275   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 # `rm'.
2279 for ac_file in conftest.exe conftest conftest.*; do
2280   test -f "$ac_file" || continue
2281   case $ac_file in
2282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284           break;;
2285     * ) break;;
2286   esac
2287 done
2288 else
2289   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293    { (exit 1); exit 1; }; }
2294 fi
2295
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2302 ac_exeext=$EXEEXT
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h.  */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h.  */
2314
2315 int
2316 main ()
2317 {
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2325 case "(($ac_try" in
2326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327   *) ac_try_echo=$ac_try;;
2328 esac
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330   (eval "$ac_compile") 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; then
2334   for ac_file in conftest.o conftest.obj conftest.*; do
2335   test -f "$ac_file" || continue;
2336   case $ac_file in
2337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339        break;;
2340   esac
2341 done
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350    { (exit 1); exit 1; }; }
2351 fi
2352
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 fi
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2358 ac_objext=$OBJEXT
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h.  */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h.  */
2370
2371 int
2372 main ()
2373 {
2374 #ifndef __GNUC__
2375        choke me
2376 #endif
2377
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2384 case "(($ac_try" in
2385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386   *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389   (eval "$ac_compile") 2>conftest.er1
2390   ac_status=$?
2391   grep -v '^ *+' conftest.er1 >conftest.err
2392   rm -f conftest.er1
2393   cat conftest.err >&5
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); } &&
2396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397   { (case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402   (eval "$ac_try") 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; } &&
2406          { ac_try='test -s conftest.$ac_objext'
2407   { (case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_try") 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416   ac_compiler_gnu=yes
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421         ac_compiler_gnu=no
2422 fi
2423
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427 fi
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   ac_save_c_werror_flag=$ac_c_werror_flag
2439    ac_c_werror_flag=yes
2440    ac_cv_prog_cc_g=no
2441    CFLAGS="-g"
2442    cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448
2449 int
2450 main ()
2451 {
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2459 case "(($ac_try" in
2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461   *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464   (eval "$ac_compile") 2>conftest.er1
2465   ac_status=$?
2466   grep -v '^ *+' conftest.er1 >conftest.err
2467   rm -f conftest.er1
2468   cat conftest.err >&5
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472   { (case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_try") 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_try") 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; }; then
2491   ac_cv_prog_cc_g=yes
2492 else
2493   echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496         CFLAGS=""
2497       cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503
2504 int
2505 main ()
2506 {
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2514 case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519   (eval "$ac_compile") 2>conftest.er1
2520   ac_status=$?
2521   grep -v '^ *+' conftest.er1 >conftest.err
2522   rm -f conftest.er1
2523   cat conftest.err >&5
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); } &&
2526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527   { (case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_try") 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_try") 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   :
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551         ac_c_werror_flag=$ac_save_c_werror_flag
2552          CFLAGS="-g"
2553          cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h.  */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h.  */
2559
2560 int
2561 main ()
2562 {
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2570 case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_compile") 2>conftest.er1
2576   ac_status=$?
2577   grep -v '^ *+' conftest.er1 >conftest.err
2578   rm -f conftest.er1
2579   cat conftest.err >&5
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583   { (case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588   (eval "$ac_try") 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; } &&
2592          { ac_try='test -s conftest.$ac_objext'
2593   { (case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_try") 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   ac_cv_prog_cc_g=yes
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607
2608 fi
2609
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 fi
2612
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617    ac_c_werror_flag=$ac_save_c_werror_flag
2618 fi
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622   CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624   if test "$GCC" = yes; then
2625     CFLAGS="-g -O2"
2626   else
2627     CFLAGS="-g"
2628   fi
2629 else
2630   if test "$GCC" = yes; then
2631     CFLAGS="-O2"
2632   else
2633     CFLAGS=
2634   fi
2635 fi
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   ac_cv_prog_cc_c89=no
2642 ac_save_CC=$CC
2643 cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649 #include <stdarg.h>
2650 #include <stdio.h>
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2657      char **p;
2658      int i;
2659 {
2660   return p[i];
2661 }
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2663 {
2664   char *s;
2665   va_list v;
2666   va_start (v,p);
2667   s = g (p, va_arg (v,int));
2668   va_end (v);
2669   return s;
2670 }
2671
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2673    function prototypes and stuff, but not '\xHH' hex character constants.
2674    These don't provoke an error unfortunately, instead are silently treated
2675    as 'x'.  The following induces an error, until -std is added to get
2676    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2677    array size at least.  It's necessary to write '\x00'==0 to get something
2678    that's true only with -std.  */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682    inside strings and character constants.  */
2683 #define FOO(x) 'x'
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690 int argc;
2691 char **argv;
2692 int
2693 main ()
2694 {
2695 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 do
2703   CC="$ac_save_CC $ac_arg"
2704   rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compile") 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719   { (case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_try") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_try") 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   ac_cv_prog_cc_c89=$ac_arg
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743
2744 fi
2745
2746 rm -f core conftest.err conftest.$ac_objext
2747   test "x$ac_cv_prog_cc_c89" != "xno" && break
2748 done
2749 rm -f conftest.$ac_ext
2750 CC=$ac_save_CC
2751
2752 fi
2753 # AC_CACHE_VAL
2754 case "x$ac_cv_prog_cc_c89" in
2755   x)
2756     { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2758   xno)
2759     { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2761   *)
2762     CC="$CC $ac_cv_prog_cc_c89"
2763     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765 esac
2766
2767
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774 ac_ext=cpp
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780   if test -n "$CCC"; then
2781     CXX=$CCC
2782   else
2783     if test -n "$ac_tool_prefix"; then
2784   for ac_prog in clang++ llvm-g++ g++
2785   do
2786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   if test -n "$CXX"; then
2794   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801   for ac_exec_ext in '' $ac_executable_extensions; do
2802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 CXX=$ac_cv_prog_CXX
2814 if test -n "$CXX"; then
2815   { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2817 else
2818   { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2820 fi
2821
2822
2823     test -n "$CXX" && break
2824   done
2825 fi
2826 if test -z "$CXX"; then
2827   ac_ct_CXX=$CXX
2828   for ac_prog in clang++ llvm-g++ g++
2829 do
2830   # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   if test -n "$ac_ct_CXX"; then
2838   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845   for ac_exec_ext in '' $ac_executable_extensions; do
2846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847     ac_cv_prog_ac_ct_CXX="$ac_prog"
2848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861 else
2862   { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2864 fi
2865
2866
2867   test -n "$ac_ct_CXX" && break
2868 done
2869
2870   if test "x$ac_ct_CXX" = x; then
2871     CXX="g++"
2872   else
2873     case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet.  If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet.  If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2882 esac
2883     CXX=$ac_ct_CXX
2884   fi
2885 fi
2886
2887   fi
2888 fi
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compiler --version >&5") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_compiler -v >&5") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_compiler -V >&5") 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }
2922
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928   cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934
2935 int
2936 main ()
2937 {
2938 #ifndef __GNUC__
2939        choke me
2940 #endif
2941
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compile") 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961   { (case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_try") 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; } &&
2970          { ac_try='test -s conftest.$ac_objext'
2971   { (case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_try") 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; }; then
2980   ac_compiler_gnu=yes
2981 else
2982   echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985         ac_compiler_gnu=no
2986 fi
2987
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990
2991 fi
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003    ac_cxx_werror_flag=yes
3004    ac_cv_prog_cxx_g=no
3005    CXXFLAGS="-g"
3006    cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compile") 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } &&
3035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036   { (case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; } &&
3045          { ac_try='test -s conftest.$ac_objext'
3046   { (case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_try") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   ac_cv_prog_cxx_g=yes
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060         CXXFLAGS=""
3061       cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h.  */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h.  */
3067
3068 int
3069 main ()
3070 {
3071
3072   ;
3073   return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3078 case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_compile") 2>conftest.er1
3084   ac_status=$?
3085   grep -v '^ *+' conftest.er1 >conftest.err
3086   rm -f conftest.er1
3087   cat conftest.err >&5
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); } &&
3090          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; } &&
3100          { ac_try='test -s conftest.$ac_objext'
3101   { (case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_try") 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; }; then
3110   :
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116          CXXFLAGS="-g"
3117          cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123
3124 int
3125 main ()
3126 {
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_compile") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } &&
3146          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147   { (case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_try") 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }; } &&
3156          { ac_try='test -s conftest.$ac_objext'
3157   { (case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_try") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; }; then
3166   ac_cv_prog_cxx_g=yes
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 fi
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186   CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188   if test "$GXX" = yes; then
3189     CXXFLAGS="-g -O2"
3190   else
3191     CXXFLAGS="-g"
3192   fi
3193 else
3194   if test "$GXX" = yes; then
3195     CXXFLAGS="-O2"
3196   else
3197     CXXFLAGS=
3198   fi
3199 fi
3200 ac_ext=c
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3215   CPP=
3216 fi
3217 if test -z "$CPP"; then
3218   if test "${ac_cv_prog_CPP+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221       # Double quotes because CPP needs to be expanded
3222     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223     do
3224       ac_preproc_ok=false
3225 for ac_c_preproc_warn_flag in '' yes
3226 do
3227   # Use a header file that comes with gcc, so configuring glibc
3228   # with a fresh cross-compiler works.
3229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230   # <limits.h> exists even on freestanding compilers.
3231   # On the NeXT, cc -E runs the code through the compiler's parser,
3232   # not just through cpp. "Syntax error" is here to catch this case.
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 #ifdef __STDC__
3240 # include <limits.h>
3241 #else
3242 # include <assert.h>
3243 #endif
3244                      Syntax error
3245 _ACEOF
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } >/dev/null; then
3259   if test -s conftest.err; then
3260     ac_cpp_err=$ac_c_preproc_warn_flag
3261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262   else
3263     ac_cpp_err=
3264   fi
3265 else
3266   ac_cpp_err=yes
3267 fi
3268 if test -z "$ac_cpp_err"; then
3269   :
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274   # Broken: fails on valid input.
3275 continue
3276 fi
3277
3278 rm -f conftest.err conftest.$ac_ext
3279
3280   # OK, works on sane cases.  Now check whether nonexistent headers
3281   # can be detected and how.
3282   cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288 #include <ac_nonexistent.h>
3289 _ACEOF
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } >/dev/null; then
3303   if test -s conftest.err; then
3304     ac_cpp_err=$ac_c_preproc_warn_flag
3305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306   else
3307     ac_cpp_err=
3308   fi
3309 else
3310   ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313   # Broken: success on invalid input.
3314 continue
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319   # Passes both tests.
3320 ac_preproc_ok=:
3321 break
3322 fi
3323
3324 rm -f conftest.err conftest.$ac_ext
3325
3326 done
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3330   break
3331 fi
3332
3333     done
3334     ac_cv_prog_CPP=$CPP
3335
3336 fi
3337   CPP=$ac_cv_prog_CPP
3338 else
3339   ac_cv_prog_CPP=$CPP
3340 fi
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3343 ac_preproc_ok=false
3344 for ac_c_preproc_warn_flag in '' yes
3345 do
3346   # Use a header file that comes with gcc, so configuring glibc
3347   # with a fresh cross-compiler works.
3348   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349   # <limits.h> exists even on freestanding compilers.
3350   # On the NeXT, cc -E runs the code through the compiler's parser,
3351   # not just through cpp. "Syntax error" is here to catch this case.
3352   cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 #ifdef __STDC__
3359 # include <limits.h>
3360 #else
3361 # include <assert.h>
3362 #endif
3363                      Syntax error
3364 _ACEOF
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } >/dev/null; then
3378   if test -s conftest.err; then
3379     ac_cpp_err=$ac_c_preproc_warn_flag
3380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381   else
3382     ac_cpp_err=
3383   fi
3384 else
3385   ac_cpp_err=yes
3386 fi
3387 if test -z "$ac_cpp_err"; then
3388   :
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393   # Broken: fails on valid input.
3394 continue
3395 fi
3396
3397 rm -f conftest.err conftest.$ac_ext
3398
3399   # OK, works on sane cases.  Now check whether nonexistent headers
3400   # can be detected and how.
3401   cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407 #include <ac_nonexistent.h>
3408 _ACEOF
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3410 case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416   ac_status=$?
3417   grep -v '^ *+' conftest.er1 >conftest.err
3418   rm -f conftest.er1
3419   cat conftest.err >&5
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); } >/dev/null; then
3422   if test -s conftest.err; then
3423     ac_cpp_err=$ac_c_preproc_warn_flag
3424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425   else
3426     ac_cpp_err=
3427   fi
3428 else
3429   ac_cpp_err=yes
3430 fi
3431 if test -z "$ac_cpp_err"; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   :
3450 else
3451   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466
3467 if test -d ${srcdir}/projects/llvm-gcc ; then
3468   subdirs="$subdirs projects/llvm-gcc"
3469
3470 fi
3471
3472 if test -d ${srcdir}/projects/test-suite ; then
3473   subdirs="$subdirs projects/test-suite"
3474
3475 fi
3476
3477 if test -d ${srcdir}/projects/llvm-test ; then
3478   subdirs="$subdirs projects/llvm-test"
3479
3480 fi
3481
3482 if test -d ${srcdir}/projects/poolalloc ; then
3483   subdirs="$subdirs projects/poolalloc"
3484
3485 fi
3486
3487 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3488   subdirs="$subdirs projects/llvm-poolalloc"
3489
3490 fi
3491
3492 for i in `ls ${srcdir}/projects`
3493 do
3494   if test -d ${srcdir}/projects/${i} ; then
3495     case ${i} in
3496       sample)       subdirs="$subdirs projects/sample"
3497     ;;
3498       privbracket)  subdirs="$subdirs projects/privbracket"
3499  ;;
3500       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3501  ;;
3502       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3503 ;;
3504       llvm-java)    subdirs="$subdirs projects/llvm-java"
3505  ;;
3506       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3507    ;;
3508       safecode)     subdirs="$subdirs projects/safecode"
3509  ;;
3510       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3511  ;;
3512       compiler-rt)       ;;
3513       llvm-gcc)       ;;
3514       test-suite)     ;;
3515       llvm-test)      ;;
3516       poolalloc)      ;;
3517       llvm-poolalloc) ;;
3518       *)
3519         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3520 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3521         ;;
3522     esac
3523   fi
3524 done
3525
3526 # Check whether --enable-polly was given.
3527 if test "${enable_polly+set}" = set; then
3528   enableval=$enable_polly;
3529 else
3530   enableval=default
3531 fi
3532
3533 case "$enableval" in
3534   yes) ENABLE_POLLY=1
3535  ;;
3536   no)  ENABLE_POLLY=0
3537  ;;
3538   default) ENABLE_POLLY=1
3539  ;;
3540   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3541 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3542    { (exit 1); exit 1; }; } ;;
3543 esac
3544
3545
3546 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3547   LLVM_HAS_POLLY=1
3548
3549   subdirs="$subdirs tools/polly"
3550
3551 fi
3552
3553
3554 # Make sure we can run config.sub.
3555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3556   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3557 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3558    { (exit 1); exit 1; }; }
3559
3560 { echo "$as_me:$LINENO: checking build system type" >&5
3561 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3562 if test "${ac_cv_build+set}" = set; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565   ac_build_alias=$build_alias
3566 test "x$ac_build_alias" = x &&
3567   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3568 test "x$ac_build_alias" = x &&
3569   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3571    { (exit 1); exit 1; }; }
3572 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3573   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3574 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3575    { (exit 1); exit 1; }; }
3576
3577 fi
3578 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3579 echo "${ECHO_T}$ac_cv_build" >&6; }
3580 case $ac_cv_build in
3581 *-*-*) ;;
3582 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3583 echo "$as_me: error: invalid value of canonical build" >&2;}
3584    { (exit 1); exit 1; }; };;
3585 esac
3586 build=$ac_cv_build
3587 ac_save_IFS=$IFS; IFS='-'
3588 set x $ac_cv_build
3589 shift
3590 build_cpu=$1
3591 build_vendor=$2
3592 shift; shift
3593 # Remember, the first character of IFS is used to create $*,
3594 # except with old shells:
3595 build_os=$*
3596 IFS=$ac_save_IFS
3597 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3598
3599
3600 { echo "$as_me:$LINENO: checking host system type" >&5
3601 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3602 if test "${ac_cv_host+set}" = set; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605   if test "x$host_alias" = x; then
3606   ac_cv_host=$ac_cv_build
3607 else
3608   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3609     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3610 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3611    { (exit 1); exit 1; }; }
3612 fi
3613
3614 fi
3615 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3616 echo "${ECHO_T}$ac_cv_host" >&6; }
3617 case $ac_cv_host in
3618 *-*-*) ;;
3619 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3620 echo "$as_me: error: invalid value of canonical host" >&2;}
3621    { (exit 1); exit 1; }; };;
3622 esac
3623 host=$ac_cv_host
3624 ac_save_IFS=$IFS; IFS='-'
3625 set x $ac_cv_host
3626 shift
3627 host_cpu=$1
3628 host_vendor=$2
3629 shift; shift
3630 # Remember, the first character of IFS is used to create $*,
3631 # except with old shells:
3632 host_os=$*
3633 IFS=$ac_save_IFS
3634 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3635
3636
3637 { echo "$as_me:$LINENO: checking target system type" >&5
3638 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3639 if test "${ac_cv_target+set}" = set; then
3640   echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642   if test "x$target_alias" = x; then
3643   ac_cv_target=$ac_cv_host
3644 else
3645   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3646     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3647 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3648    { (exit 1); exit 1; }; }
3649 fi
3650
3651 fi
3652 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3653 echo "${ECHO_T}$ac_cv_target" >&6; }
3654 case $ac_cv_target in
3655 *-*-*) ;;
3656 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3657 echo "$as_me: error: invalid value of canonical target" >&2;}
3658    { (exit 1); exit 1; }; };;
3659 esac
3660 target=$ac_cv_target
3661 ac_save_IFS=$IFS; IFS='-'
3662 set x $ac_cv_target
3663 shift
3664 target_cpu=$1
3665 target_vendor=$2
3666 shift; shift
3667 # Remember, the first character of IFS is used to create $*,
3668 # except with old shells:
3669 target_os=$*
3670 IFS=$ac_save_IFS
3671 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3672
3673
3674 # The aliases save the names the user supplied, while $host etc.
3675 # will get canonicalized.
3676 test -n "$target_alias" &&
3677   test "$program_prefix$program_suffix$program_transform_name" = \
3678     NONENONEs,x,x, &&
3679   program_prefix=${target_alias}-
3680
3681 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3682 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3683 if test "${llvm_cv_os_type+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   case $host in
3687   *-*-aix*)
3688     llvm_cv_link_all_option="-Wl,--whole-archive"
3689     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690     llvm_cv_os_type="AIX"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-irix*)
3693     llvm_cv_link_all_option="-Wl,--whole-archive"
3694     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695     llvm_cv_os_type="IRIX"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-cygwin*)
3698     llvm_cv_link_all_option="-Wl,--whole-archive"
3699     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700     llvm_cv_os_type="Cygwin"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-darwin*)
3703     llvm_cv_link_all_option="-Wl,-all_load"
3704     llvm_cv_no_link_all_option="-Wl,-noall_load"
3705     llvm_cv_os_type="Darwin"
3706     llvm_cv_platform_type="Unix" ;;
3707   *-*-minix*)
3708     llvm_cv_link_all_option="-Wl,-all_load"
3709     llvm_cv_no_link_all_option="-Wl,-noall_load"
3710     llvm_cv_os_type="Minix"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-*-freebsd* | *-*-kfreebsd-gnu)
3713     llvm_cv_link_all_option="-Wl,--whole-archive"
3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715     llvm_cv_os_type="FreeBSD"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-*-openbsd*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="OpenBSD"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-*-netbsd*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="NetBSD"
3726     llvm_cv_platform_type="Unix" ;;
3727   *-*-dragonfly*)
3728     llvm_cv_link_all_option="-Wl,--whole-archive"
3729     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730     llvm_cv_os_type="DragonFly"
3731     llvm_cv_platform_type="Unix" ;;
3732   *-*-hpux*)
3733     llvm_cv_link_all_option="-Wl,--whole-archive"
3734     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735     llvm_cv_os_type="HP-UX"
3736     llvm_cv_platform_type="Unix" ;;
3737   *-*-interix*)
3738     llvm_cv_link_all_option="-Wl,--whole-archive"
3739     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740     llvm_cv_os_type="Interix"
3741     llvm_cv_platform_type="Unix" ;;
3742   *-*-linux*)
3743     llvm_cv_link_all_option="-Wl,--whole-archive"
3744     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745     llvm_cv_os_type="Linux"
3746     llvm_cv_platform_type="Unix" ;;
3747   *-*-gnu*)
3748     llvm_cv_link_all_option="-Wl,--whole-archive"
3749     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750     llvm_cv_os_type="GNU"
3751     llvm_cv_platform_type="Unix" ;;
3752   *-*-solaris*)
3753     llvm_cv_link_all_option="-Wl,-z,allextract"
3754     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755     llvm_cv_os_type="SunOS"
3756     llvm_cv_platform_type="Unix" ;;
3757   *-*-auroraux*)
3758     llvm_cv_link_all_option="-Wl,-z,allextract"
3759     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760     llvm_cv_os_type="AuroraUX"
3761     llvm_cv_platform_type="Unix" ;;
3762   *-*-win32*)
3763     llvm_cv_link_all_option="-Wl,--whole-archive"
3764     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765     llvm_cv_os_type="Win32"
3766     llvm_cv_platform_type="Win32" ;;
3767   *-*-mingw*)
3768     llvm_cv_link_all_option="-Wl,--whole-archive"
3769     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770     llvm_cv_os_type="MingW"
3771     llvm_cv_platform_type="Win32" ;;
3772   *-*-haiku*)
3773     llvm_cv_link_all_option="-Wl,--whole-archive"
3774     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775     llvm_cv_os_type="Haiku"
3776     llvm_cv_platform_type="Unix" ;;
3777   *-unknown-eabi*)
3778     llvm_cv_link_all_option="-Wl,--whole-archive"
3779     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780     llvm_cv_os_type="Freestanding"
3781     llvm_cv_platform_type="Unix" ;;
3782   *-unknown-elf*)
3783     llvm_cv_link_all_option="-Wl,--whole-archive"
3784     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785     llvm_cv_os_type="Freestanding"
3786     llvm_cv_platform_type="Unix" ;;
3787   *)
3788     llvm_cv_link_all_option=""
3789     llvm_cv_no_link_all_option=""
3790     llvm_cv_os_type="Unknown"
3791     llvm_cv_platform_type="Unknown" ;;
3792 esac
3793 fi
3794 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3796
3797 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799 if test "${llvm_cv_target_os_type+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   case $target in
3803   *-*-aix*)
3804     llvm_cv_target_os_type="AIX" ;;
3805   *-*-irix*)
3806     llvm_cv_target_os_type="IRIX" ;;
3807   *-*-cygwin*)
3808     llvm_cv_target_os_type="Cygwin" ;;
3809   *-*-darwin*)
3810     llvm_cv_target_os_type="Darwin" ;;
3811   *-*-minix*)
3812     llvm_cv_target_os_type="Minix" ;;
3813   *-*-freebsd* | *-*-kfreebsd-gnu)
3814     llvm_cv_target_os_type="FreeBSD" ;;
3815   *-*-openbsd*)
3816     llvm_cv_target_os_type="OpenBSD" ;;
3817   *-*-netbsd*)
3818     llvm_cv_target_os_type="NetBSD" ;;
3819   *-*-dragonfly*)
3820     llvm_cv_target_os_type="DragonFly" ;;
3821   *-*-hpux*)
3822     llvm_cv_target_os_type="HP-UX" ;;
3823   *-*-interix*)
3824     llvm_cv_target_os_type="Interix" ;;
3825   *-*-linux*)
3826     llvm_cv_target_os_type="Linux" ;;
3827   *-*-gnu*)
3828     llvm_cv_target_os_type="GNU" ;;
3829   *-*-solaris*)
3830     llvm_cv_target_os_type="SunOS" ;;
3831   *-*-auroraux*)
3832     llvm_cv_target_os_type="AuroraUX" ;;
3833   *-*-win32*)
3834     llvm_cv_target_os_type="Win32" ;;
3835   *-*-mingw*)
3836     llvm_cv_target_os_type="MingW" ;;
3837   *-*-haiku*)
3838     llvm_cv_target_os_type="Haiku" ;;
3839   *-*-rtems*)
3840     llvm_cv_target_os_type="RTEMS" ;;
3841   *-*-nacl*)
3842     llvm_cv_target_os_type="NativeClient" ;;
3843   *-unknown-eabi*)
3844     llvm_cv_target_os_type="Freestanding" ;;
3845   *)
3846     llvm_cv_target_os_type="Unknown" ;;
3847 esac
3848 fi
3849 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3850 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3851
3852 if test "$llvm_cv_os_type" = "Unknown" ; then
3853   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3854 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3855    { (exit 1); exit 1; }; }
3856 fi
3857
3858 OS=$llvm_cv_os_type
3859
3860 HOST_OS=$llvm_cv_os_type
3861
3862 TARGET_OS=$llvm_cv_target_os_type
3863
3864
3865 LINKALL=$llvm_cv_link_all_option
3866
3867 NOLINKALL=$llvm_cv_no_link_all_option
3868
3869
3870 case $llvm_cv_platform_type in
3871   Unix)
3872
3873 cat >>confdefs.h <<\_ACEOF
3874 #define LLVM_ON_UNIX 1
3875 _ACEOF
3876
3877     LLVM_ON_UNIX=1
3878
3879     LLVM_ON_WIN32=0
3880
3881     ;;
3882   Win32)
3883
3884 cat >>confdefs.h <<\_ACEOF
3885 #define LLVM_ON_WIN32 1
3886 _ACEOF
3887
3888     LLVM_ON_UNIX=0
3889
3890     LLVM_ON_WIN32=1
3891
3892     ;;
3893 esac
3894
3895 { echo "$as_me:$LINENO: checking target architecture" >&5
3896 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3897 if test "${llvm_cv_target_arch+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   case $target in
3901   i?86-*)                 llvm_cv_target_arch="x86" ;;
3902   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3903   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3904   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3905   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3906   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
3907   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
3908   xcore-*)                llvm_cv_target_arch="XCore" ;;
3909   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3910   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3911   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3912   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3913   *)                      llvm_cv_target_arch="Unknown" ;;
3914 esac
3915 fi
3916 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3917 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3918
3919 if test "$llvm_cv_target_arch" = "Unknown" ; then
3920   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3921 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3922 fi
3923
3924 case "$llvm_cv_target_arch" in
3925     x86)     LLVM_NATIVE_ARCH="X86" ;;
3926     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3927     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3928 esac
3929
3930 ARCH=$llvm_cv_target_arch
3931
3932
3933 case $host in
3934   i?86-*)                 host_arch="x86" ;;
3935   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3936   sparc*-*)               host_arch="Sparc" ;;
3937   powerpc*-*)             host_arch="PowerPC" ;;
3938   arm*-*)                 host_arch="ARM" ;;
3939   mips-* | mips64-*)      host_arch="Mips" ;;
3940   mipsel-* | mips64el-*)  host_arch="Mips" ;;
3941   xcore-*)                host_arch="XCore" ;;
3942   msp430-*)               host_arch="MSP430" ;;
3943   hexagon-*)              host_arch="Hexagon" ;;
3944   mblaze-*)               host_arch="MBlaze" ;;
3945   *)                      host_arch="Unknown" ;;
3946 esac
3947
3948 if test "$host_arch" = "Unknown" ; then
3949   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3950 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3951 fi
3952
3953 HOST_ARCH=$host_arch
3954
3955
3956
3957
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969   ac_path_GREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_prog in grep ggrep; do
3977   for ac_exec_ext in '' $ac_executable_extensions; do
3978     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3980     # Check for GNU ac_path_GREP and select it if it is found.
3981   # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3983 *GNU*)
3984   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3985 *)
3986   ac_count=0
3987   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3988   while :
3989   do
3990     cat "conftest.in" "conftest.in" >"conftest.tmp"
3991     mv "conftest.tmp" "conftest.in"
3992     cp "conftest.in" "conftest.nl"
3993     echo 'GREP' >> "conftest.nl"
3994     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996     ac_count=`expr $ac_count + 1`
3997     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998       # Best one so far, save it but keep looking for a better one
3999       ac_cv_path_GREP="$ac_path_GREP"
4000       ac_path_GREP_max=$ac_count
4001     fi
4002     # 10*(2^10) chars as input seems more than enough
4003     test $ac_count -gt 10 && break
4004   done
4005   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 esac
4007
4008
4009     $ac_path_GREP_found && break 3
4010   done
4011 done
4012
4013 done
4014 IFS=$as_save_IFS
4015
4016
4017 fi
4018
4019 GREP="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023    { (exit 1); exit 1; }; }
4024 fi
4025
4026 else
4027   ac_cv_path_GREP=$GREP
4028 fi
4029
4030
4031 fi
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034  GREP="$ac_cv_path_GREP"
4035
4036
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043    then ac_cv_path_EGREP="$GREP -E"
4044    else
4045      # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy egrep; ac_prog_name=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   ac_path_EGREP_found=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_prog in egrep; do
4059   for ac_exec_ext in '' $ac_executable_extensions; do
4060     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4062     # Check for GNU ac_path_EGREP and select it if it is found.
4063   # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4065 *GNU*)
4066   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4067 *)
4068   ac_count=0
4069   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4070   while :
4071   do
4072     cat "conftest.in" "conftest.in" >"conftest.tmp"
4073     mv "conftest.tmp" "conftest.in"
4074     cp "conftest.in" "conftest.nl"
4075     echo 'EGREP' >> "conftest.nl"
4076     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078     ac_count=`expr $ac_count + 1`
4079     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080       # Best one so far, save it but keep looking for a better one
4081       ac_cv_path_EGREP="$ac_path_EGREP"
4082       ac_path_EGREP_max=$ac_count
4083     fi
4084     # 10*(2^10) chars as input seems more than enough
4085     test $ac_count -gt 10 && break
4086   done
4087   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088 esac
4089
4090
4091     $ac_path_EGREP_found && break 3
4092   done
4093 done
4094
4095 done
4096 IFS=$as_save_IFS
4097
4098
4099 fi
4100
4101 EGREP="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105    { (exit 1); exit 1; }; }
4106 fi
4107
4108 else
4109   ac_cv_path_EGREP=$EGREP
4110 fi
4111
4112
4113    fi
4114 fi
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117  EGREP="$ac_cv_path_EGREP"
4118
4119
4120 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4121 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4122 if test "${ac_cv_header_stdc+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125   cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h.  */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h.  */
4131 #include <stdlib.h>
4132 #include <stdarg.h>
4133 #include <string.h>
4134 #include <float.h>
4135
4136 int
4137 main ()
4138 {
4139
4140   ;
4141   return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest.$ac_objext
4145 if { (ac_try="$ac_compile"
4146 case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151   (eval "$ac_compile") 2>conftest.er1
4152   ac_status=$?
4153   grep -v '^ *+' conftest.er1 >conftest.err
4154   rm -f conftest.er1
4155   cat conftest.err >&5
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); } &&
4158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4159   { (case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_try") 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; } &&
4168          { ac_try='test -s conftest.$ac_objext'
4169   { (case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174   (eval "$ac_try") 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; }; then
4178   ac_cv_header_stdc=yes
4179 else
4180   echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183         ac_cv_header_stdc=no
4184 fi
4185
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187
4188 if test $ac_cv_header_stdc = yes; then
4189   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4190   cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196 #include <string.h>
4197
4198 _ACEOF
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200   $EGREP "memchr" >/dev/null 2>&1; then
4201   :
4202 else
4203   ac_cv_header_stdc=no
4204 fi
4205 rm -f conftest*
4206
4207 fi
4208
4209 if test $ac_cv_header_stdc = yes; then
4210   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211   cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 #include <stdlib.h>
4218
4219 _ACEOF
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221   $EGREP "free" >/dev/null 2>&1; then
4222   :
4223 else
4224   ac_cv_header_stdc=no
4225 fi
4226 rm -f conftest*
4227
4228 fi
4229
4230 if test $ac_cv_header_stdc = yes; then
4231   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232   if test "$cross_compiling" = yes; then
4233   :
4234 else
4235   cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h.  */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h.  */
4241 #include <ctype.h>
4242 #include <stdlib.h>
4243 #if ((' ' & 0x0FF) == 0x020)
4244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4246 #else
4247 # define ISLOWER(c) \
4248                    (('a' <= (c) && (c) <= 'i') \
4249                      || ('j' <= (c) && (c) <= 'r') \
4250                      || ('s' <= (c) && (c) <= 'z'))
4251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4252 #endif
4253
4254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4255 int
4256 main ()
4257 {
4258   int i;
4259   for (i = 0; i < 256; i++)
4260     if (XOR (islower (i), ISLOWER (i))
4261         || toupper (i) != TOUPPER (i))
4262       return 2;
4263   return 0;
4264 }
4265 _ACEOF
4266 rm -f conftest$ac_exeext
4267 if { (ac_try="$ac_link"
4268 case "(($ac_try" in
4269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270   *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273   (eval "$ac_link") 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4277   { (case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282   (eval "$ac_try") 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; }; then
4286   :
4287 else
4288   echo "$as_me: program exited with status $ac_status" >&5
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 ( exit $ac_status )
4293 ac_cv_header_stdc=no
4294 fi
4295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4296 fi
4297
4298
4299 fi
4300 fi
4301 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4303 if test $ac_cv_header_stdc = yes; then
4304
4305 cat >>confdefs.h <<\_ACEOF
4306 #define STDC_HEADERS 1
4307 _ACEOF
4308
4309 fi
4310
4311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322                   inttypes.h stdint.h unistd.h
4323 do
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 $ac_includes_default
4337
4338 #include <$ac_header>
4339 _ACEOF
4340 rm -f conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4342 case "(($ac_try" in
4343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344   *) ac_try_echo=$ac_try;;
4345 esac
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347   (eval "$ac_compile") 2>conftest.er1
4348   ac_status=$?
4349   grep -v '^ *+' conftest.er1 >conftest.err
4350   rm -f conftest.er1
4351   cat conftest.err >&5
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); } &&
4354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4355   { (case "(($ac_try" in
4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357   *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360   (eval "$ac_try") 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); }; } &&
4364          { ac_try='test -s conftest.$ac_objext'
4365   { (case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370   (eval "$ac_try") 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374   eval "$as_ac_Header=yes"
4375 else
4376   echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379         eval "$as_ac_Header=no"
4380 fi
4381
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 fi
4384 ac_res=`eval echo '${'$as_ac_Header'}'`
4385                { echo "$as_me:$LINENO: result: $ac_res" >&5
4386 echo "${ECHO_T}$ac_res" >&6; }
4387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4388   cat >>confdefs.h <<_ACEOF
4389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4390 _ACEOF
4391
4392 fi
4393
4394 done
4395
4396
4397 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4398 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4399 if test "${ac_cv_c_bigendian+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   # See if sys/param.h defines the BYTE_ORDER macro.
4403 cat >conftest.$ac_ext <<_ACEOF
4404 /* confdefs.h.  */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h.  */
4409 #include <sys/types.h>
4410 #include <sys/param.h>
4411
4412 int
4413 main ()
4414 {
4415 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4416  bogus endian macros
4417 #endif
4418
4419   ;
4420   return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext
4424 if { (ac_try="$ac_compile"
4425 case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430   (eval "$ac_compile") 2>conftest.er1
4431   ac_status=$?
4432   grep -v '^ *+' conftest.er1 >conftest.err
4433   rm -f conftest.er1
4434   cat conftest.err >&5
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } &&
4437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4438   { (case "(($ac_try" in
4439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440   *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443   (eval "$ac_try") 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; } &&
4447          { ac_try='test -s conftest.$ac_objext'
4448   { (case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453   (eval "$ac_try") 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }; }; then
4457   # It does; now see whether it defined to BIG_ENDIAN or not.
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h.  */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h.  */
4464 #include <sys/types.h>
4465 #include <sys/param.h>
4466
4467 int
4468 main ()
4469 {
4470 #if BYTE_ORDER != BIG_ENDIAN
4471  not big endian
4472 #endif
4473
4474   ;
4475   return 0;
4476 }
4477 _ACEOF
4478 rm -f conftest.$ac_objext
4479 if { (ac_try="$ac_compile"
4480 case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485   (eval "$ac_compile") 2>conftest.er1
4486   ac_status=$?
4487   grep -v '^ *+' conftest.er1 >conftest.err
4488   rm -f conftest.er1
4489   cat conftest.err >&5
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); } &&
4492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4493   { (case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498   (eval "$ac_try") 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; } &&
4502          { ac_try='test -s conftest.$ac_objext'
4503   { (case "(($ac_try" in
4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505   *) ac_try_echo=$ac_try;;
4506 esac
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508   (eval "$ac_try") 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; }; then
4512   ac_cv_c_bigendian=yes
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517         ac_cv_c_bigendian=no
4518 fi
4519
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 else
4522   echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525         # It does not; compile a test program.
4526 if test "$cross_compiling" = yes; then
4527   # try to guess the endianness by grepping values into an object file
4528   ac_cv_c_bigendian=unknown
4529   cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4536 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4537 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4538 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4539 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4540 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4541 int
4542 main ()
4543 {
4544  _ascii (); _ebcdic ();
4545   ;
4546   return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4551 case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556   (eval "$ac_compile") 2>conftest.er1
4557   ac_status=$?
4558   grep -v '^ *+' conftest.er1 >conftest.err
4559   rm -f conftest.er1
4560   cat conftest.err >&5
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); } &&
4563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4564   { (case "(($ac_try" in
4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566   *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569   (eval "$ac_try") 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; } &&
4573          { ac_try='test -s conftest.$ac_objext'
4574   { (case "(($ac_try" in
4575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576   *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579   (eval "$ac_try") 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4584   ac_cv_c_bigendian=yes
4585 fi
4586 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4587   if test "$ac_cv_c_bigendian" = unknown; then
4588     ac_cv_c_bigendian=no
4589   else
4590     # finding both strings is unlikely to happen, but who knows?
4591     ac_cv_c_bigendian=unknown
4592   fi
4593 fi
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598
4599 fi
4600
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 else
4603   cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h.  */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h.  */
4609 $ac_includes_default
4610 int
4611 main ()
4612 {
4613
4614   /* Are we little or big endian?  From Harbison&Steele.  */
4615   union
4616   {
4617     long int l;
4618     char c[sizeof (long int)];
4619   } u;
4620   u.l = 1;
4621   return u.c[sizeof (long int) - 1] == 1;
4622
4623   ;
4624   return 0;
4625 }
4626 _ACEOF
4627 rm -f conftest$ac_exeext
4628 if { (ac_try="$ac_link"
4629 case "(($ac_try" in
4630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631   *) ac_try_echo=$ac_try;;
4632 esac
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634   (eval "$ac_link") 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4638   { (case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643   (eval "$ac_try") 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); }; }; then
4647   ac_cv_c_bigendian=no
4648 else
4649   echo "$as_me: program exited with status $ac_status" >&5
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653 ( exit $ac_status )
4654 ac_cv_c_bigendian=yes
4655 fi
4656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4657 fi
4658
4659
4660 fi
4661
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 fi
4664 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4665 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4666 case $ac_cv_c_bigendian in
4667   yes)
4668     ENDIAN=big
4669  ;;
4670   no)
4671     ENDIAN=little
4672  ;;
4673   *)
4674     { { echo "$as_me:$LINENO: error: unknown endianness
4675 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4676 echo "$as_me: error: unknown endianness
4677 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4678    { (exit 1); exit 1; }; } ;;
4679 esac
4680
4681
4682 if test "$cross_compiling" = yes; then
4683   LLVM_CROSS_COMPILING=1
4684
4685
4686 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4687 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4688 if test "${ac_cv_build_exeext+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4692   ac_cv_build_exeext=.exe
4693 else
4694   ac_build_prefix=${build_alias}-
4695
4696   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4697 set dummy ${ac_build_prefix}gcc; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   if test -n "$BUILD_CC"; then
4704   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4713     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 BUILD_CC=$ac_cv_prog_BUILD_CC
4724 if test -n "$BUILD_CC"; then
4725   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4726 echo "${ECHO_T}$BUILD_CC" >&6; }
4727 else
4728   { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4730 fi
4731
4732
4733   if test -z "$BUILD_CC"; then
4734      # Extract the first word of "gcc", so it can be a program name with args.
4735 set dummy gcc; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   if test -n "$BUILD_CC"; then
4742   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749   for ac_exec_ext in '' $ac_executable_extensions; do
4750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4751     ac_cv_prog_BUILD_CC="gcc"
4752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 BUILD_CC=$ac_cv_prog_BUILD_CC
4762 if test -n "$BUILD_CC"; then
4763   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4764 echo "${ECHO_T}$BUILD_CC" >&6; }
4765 else
4766   { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4768 fi
4769
4770
4771      if test -z "$BUILD_CC"; then
4772        # Extract the first word of "cc", so it can be a program name with args.
4773 set dummy cc; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   if test -n "$BUILD_CC"; then
4780   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4781 else
4782   ac_prog_rejected=no
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4791        ac_prog_rejected=yes
4792        continue
4793      fi
4794     ac_cv_prog_BUILD_CC="cc"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802 if test $ac_prog_rejected = yes; then
4803   # We found a bogon in the path, so make sure we never use it.
4804   set dummy $ac_cv_prog_BUILD_CC
4805   shift
4806   if test $# != 0; then
4807     # We chose a different compiler from the bogus one.
4808     # However, it has the same basename, so the bogon will be chosen
4809     # first if we set BUILD_CC to just the basename; use the full file name.
4810     shift
4811     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4812   fi
4813 fi
4814 fi
4815 fi
4816 BUILD_CC=$ac_cv_prog_BUILD_CC
4817 if test -n "$BUILD_CC"; then
4818   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4819 echo "${ECHO_T}$BUILD_CC" >&6; }
4820 else
4821   { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4823 fi
4824
4825
4826      fi
4827   fi
4828   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4829 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4830    { (exit 1); exit 1; }; }
4831   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4832   rm -f conftest*
4833   echo 'int main () { return 0; }' > conftest.$ac_ext
4834   ac_cv_build_exeext=
4835   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4836   (eval $ac_build_link) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); }; then
4840     for file in conftest.*; do
4841       case $file in
4842       *.c | *.o | *.obj | *.dSYM) ;;
4843       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4844       esac
4845     done
4846   else
4847     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4848 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4849    { (exit 1); exit 1; }; }
4850   fi
4851   rm -f conftest*
4852   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4853 fi
4854 fi
4855
4856 BUILD_EXEEXT=""
4857 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4858 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4859 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4860 ac_build_exeext=$BUILD_EXEEXT
4861
4862   ac_build_prefix=${build_alias}-
4863   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4864 set dummy ${ac_build_prefix}g++; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   if test -n "$BUILD_CXX"; then
4871   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878   for ac_exec_ext in '' $ac_executable_extensions; do
4879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4880     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4891 if test -n "$BUILD_CXX"; then
4892   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4893 echo "${ECHO_T}$BUILD_CXX" >&6; }
4894 else
4895   { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4897 fi
4898
4899
4900   if test -z "$BUILD_CXX"; then
4901      # Extract the first word of "g++", so it can be a program name with args.
4902 set dummy g++; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   if test -n "$BUILD_CXX"; then
4909   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916   for ac_exec_ext in '' $ac_executable_extensions; do
4917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918     ac_cv_prog_BUILD_CXX="g++"
4919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920     break 2
4921   fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926 fi
4927 fi
4928 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4929 if test -n "$BUILD_CXX"; then
4930   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4931 echo "${ECHO_T}$BUILD_CXX" >&6; }
4932 else
4933   { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4935 fi
4936
4937
4938      if test -z "$BUILD_CXX"; then
4939        # Extract the first word of "c++", so it can be a program name with args.
4940 set dummy c++; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   if test -n "$BUILD_CXX"; then
4947   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4948 else
4949   ac_prog_rejected=no
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955   for ac_exec_ext in '' $ac_executable_extensions; do
4956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4957     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4958        ac_prog_rejected=yes
4959        continue
4960      fi
4961     ac_cv_prog_BUILD_CXX="c++"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967 IFS=$as_save_IFS
4968
4969 if test $ac_prog_rejected = yes; then
4970   # We found a bogon in the path, so make sure we never use it.
4971   set dummy $ac_cv_prog_BUILD_CXX
4972   shift
4973   if test $# != 0; then
4974     # We chose a different compiler from the bogus one.
4975     # However, it has the same basename, so the bogon will be chosen
4976     # first if we set BUILD_CXX to just the basename; use the full file name.
4977     shift
4978     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4979   fi
4980 fi
4981 fi
4982 fi
4983 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4984 if test -n "$BUILD_CXX"; then
4985   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4986 echo "${ECHO_T}$BUILD_CXX" >&6; }
4987 else
4988   { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4990 fi
4991
4992
4993      fi
4994   fi
4995 else
4996   LLVM_CROSS_COMPILING=0
4997
4998 fi
4999
5000 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5001   cvsbuild="yes"
5002   optimize="no"
5003   CVSBUILD=CVSBUILD=1
5004
5005 else
5006   cvsbuild="no"
5007   optimize="yes"
5008 fi
5009
5010
5011 # Check whether --enable-libcpp was given.
5012 if test "${enable_libcpp+set}" = set; then
5013   enableval=$enable_libcpp;
5014 else
5015   enableval=default
5016 fi
5017
5018 case "$enableval" in
5019   yes) ENABLE_LIBCPP=1
5020  ;;
5021   no)  ENABLE_LIBCPP=0
5022  ;;
5023   default) ENABLE_LIBCPP=0
5024 ;;
5025   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5026 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5027    { (exit 1); exit 1; }; } ;;
5028 esac
5029
5030 # Check whether --enable-cxx11 was given.
5031 if test "${enable_cxx11+set}" = set; then
5032   enableval=$enable_cxx11;
5033 else
5034   enableval=default
5035 fi
5036
5037 case "$enableval" in
5038   yes) ENABLE_CXX11=1
5039  ;;
5040   no)  ENABLE_CXX11=0
5041  ;;
5042   default) ENABLE_CXX11=0
5043 ;;
5044   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5045 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5046    { (exit 1); exit 1; }; } ;;
5047 esac
5048
5049 # Check whether --enable-optimized was given.
5050 if test "${enable_optimized+set}" = set; then
5051   enableval=$enable_optimized;
5052 else
5053   enableval=$optimize
5054 fi
5055
5056 if test ${enableval} = "no" ; then
5057   ENABLE_OPTIMIZED=
5058
5059 else
5060   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5061
5062 fi
5063
5064 # Check whether --enable-profiling was given.
5065 if test "${enable_profiling+set}" = set; then
5066   enableval=$enable_profiling;
5067 else
5068   enableval="no"
5069 fi
5070
5071 if test ${enableval} = "no" ; then
5072   ENABLE_PROFILING=
5073
5074 else
5075   ENABLE_PROFILING=ENABLE_PROFILING=1
5076
5077 fi
5078
5079 # Check whether --enable-assertions was given.
5080 if test "${enable_assertions+set}" = set; then
5081   enableval=$enable_assertions;
5082 else
5083   enableval="yes"
5084 fi
5085
5086 if test ${enableval} = "yes" ; then
5087   DISABLE_ASSERTIONS=
5088
5089 else
5090   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5091
5092 fi
5093
5094 # Check whether --enable-werror was given.
5095 if test "${enable_werror+set}" = set; then
5096   enableval=$enable_werror;
5097 else
5098   enableval="no"
5099 fi
5100
5101 case "$enableval" in
5102   yes) ENABLE_WERROR=1
5103  ;;
5104   no)  ENABLE_WERROR=0
5105  ;;
5106   default) ENABLE_WERROR=0
5107 ;;
5108   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5109 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5110    { (exit 1); exit 1; }; } ;;
5111 esac
5112
5113 # Check whether --enable-expensive-checks was given.
5114 if test "${enable_expensive_checks+set}" = set; then
5115   enableval=$enable_expensive_checks;
5116 else
5117   enableval="no"
5118 fi
5119
5120 if test ${enableval} = "yes" ; then
5121   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5122
5123   EXPENSIVE_CHECKS=yes
5124
5125 else
5126   ENABLE_EXPENSIVE_CHECKS=
5127
5128   EXPENSIVE_CHECKS=no
5129
5130 fi
5131
5132 # Check whether --enable-debug-runtime was given.
5133 if test "${enable_debug_runtime+set}" = set; then
5134   enableval=$enable_debug_runtime;
5135 else
5136   enableval=no
5137 fi
5138
5139 if test ${enableval} = "no" ; then
5140   DEBUG_RUNTIME=
5141
5142 else
5143   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5144
5145 fi
5146
5147 # Check whether --enable-debug-symbols was given.
5148 if test "${enable_debug_symbols+set}" = set; then
5149   enableval=$enable_debug_symbols;
5150 else
5151   enableval=no
5152 fi
5153
5154 if test ${enableval} = "no" ; then
5155   DEBUG_SYMBOLS=
5156
5157 else
5158   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5159
5160 fi
5161
5162 # Check whether --enable-keep-symbols was given.
5163 if test "${enable_keep_symbols+set}" = set; then
5164   enableval=$enable_keep_symbols;
5165 else
5166   enableval=no
5167 fi
5168
5169 if test ${enableval} = "no" ; then
5170   KEEP_SYMBOLS=
5171
5172 else
5173   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5174
5175 fi
5176
5177 # Check whether --enable-jit was given.
5178 if test "${enable_jit+set}" = set; then
5179   enableval=$enable_jit;
5180 else
5181   enableval=default
5182 fi
5183
5184 if test ${enableval} = "no"
5185 then
5186   JIT=
5187
5188 else
5189   case "$llvm_cv_target_arch" in
5190     x86)         TARGET_HAS_JIT=1
5191  ;;
5192     Sparc)       TARGET_HAS_JIT=0
5193  ;;
5194     PowerPC)     TARGET_HAS_JIT=1
5195  ;;
5196     x86_64)      TARGET_HAS_JIT=1
5197  ;;
5198     ARM)         TARGET_HAS_JIT=1
5199  ;;
5200     Mips)        TARGET_HAS_JIT=1
5201  ;;
5202     XCore)       TARGET_HAS_JIT=0
5203  ;;
5204     MSP430)      TARGET_HAS_JIT=0
5205  ;;
5206     Hexagon)     TARGET_HAS_JIT=0
5207  ;;
5208     MBlaze)      TARGET_HAS_JIT=0
5209  ;;
5210     NVPTX)       TARGET_HAS_JIT=0
5211  ;;
5212     *)           TARGET_HAS_JIT=0
5213  ;;
5214   esac
5215 fi
5216
5217 # Check whether --enable-docs was given.
5218 if test "${enable_docs+set}" = set; then
5219   enableval=$enable_docs;
5220 else
5221   enableval=default
5222 fi
5223
5224 case "$enableval" in
5225   yes) ENABLE_DOCS=1
5226  ;;
5227   no)  ENABLE_DOCS=0
5228  ;;
5229   default) ENABLE_DOCS=1
5230  ;;
5231   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5233    { (exit 1); exit 1; }; } ;;
5234 esac
5235
5236 # Check whether --enable-doxygen was given.
5237 if test "${enable_doxygen+set}" = set; then
5238   enableval=$enable_doxygen;
5239 else
5240   enableval=default
5241 fi
5242
5243 case "$enableval" in
5244   yes) ENABLE_DOXYGEN=1
5245  ;;
5246   no)  ENABLE_DOXYGEN=0
5247  ;;
5248   default) ENABLE_DOXYGEN=0
5249  ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254
5255 # Check whether --enable-threads was given.
5256 if test "${enable_threads+set}" = set; then
5257   enableval=$enable_threads;
5258 else
5259   enableval=default
5260 fi
5261
5262 case "$enableval" in
5263   yes) LLVM_ENABLE_THREADS=1
5264  ;;
5265   no)  LLVM_ENABLE_THREADS=0
5266  ;;
5267   default) LLVM_ENABLE_THREADS=1
5268  ;;
5269   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273
5274 cat >>confdefs.h <<_ACEOF
5275 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5276 _ACEOF
5277
5278
5279 # Check whether --enable-pthreads was given.
5280 if test "${enable_pthreads+set}" = set; then
5281   enableval=$enable_pthreads;
5282 else
5283   enableval=default
5284 fi
5285
5286 case "$enableval" in
5287   yes) ENABLE_PTHREADS=1
5288  ;;
5289   no)  ENABLE_PTHREADS=0
5290  ;;
5291   default) ENABLE_PTHREADS=1
5292  ;;
5293   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5295    { (exit 1); exit 1; }; } ;;
5296 esac
5297
5298 # Check whether --enable-pic was given.
5299 if test "${enable_pic+set}" = set; then
5300   enableval=$enable_pic;
5301 else
5302   enableval=default
5303 fi
5304
5305 case "$enableval" in
5306   yes) ENABLE_PIC=1
5307  ;;
5308   no)  ENABLE_PIC=0
5309  ;;
5310   default) ENABLE_PIC=1
5311  ;;
5312   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5313 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5314    { (exit 1); exit 1; }; } ;;
5315 esac
5316
5317 cat >>confdefs.h <<_ACEOF
5318 #define ENABLE_PIC $ENABLE_PIC
5319 _ACEOF
5320
5321
5322 # Check whether --enable-shared was given.
5323 if test "${enable_shared+set}" = set; then
5324   enableval=$enable_shared;
5325 else
5326   enableval=default
5327 fi
5328
5329 case "$enableval" in
5330   yes) ENABLE_SHARED=1
5331  ;;
5332   no)  ENABLE_SHARED=0
5333  ;;
5334   default) ENABLE_SHARED=0
5335  ;;
5336   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5337 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5338    { (exit 1); exit 1; }; } ;;
5339 esac
5340
5341 # Check whether --enable-embed-stdcxx was given.
5342 if test "${enable_embed_stdcxx+set}" = set; then
5343   enableval=$enable_embed_stdcxx;
5344 else
5345   enableval=default
5346 fi
5347
5348 case "$enableval" in
5349   yes) ENABLE_EMBED_STDCXX=1
5350  ;;
5351   no)  ENABLE_EMBED_STDCXX=0
5352  ;;
5353   default) ENABLE_EMBED_STDCXX=0
5354  ;;
5355   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5356 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5357    { (exit 1); exit 1; }; } ;;
5358 esac
5359
5360 # Check whether --enable-timestamps was given.
5361 if test "${enable_timestamps+set}" = set; then
5362   enableval=$enable_timestamps;
5363 else
5364   enableval=default
5365 fi
5366
5367 case "$enableval" in
5368   yes) ENABLE_TIMESTAMPS=1
5369  ;;
5370   no)  ENABLE_TIMESTAMPS=0
5371  ;;
5372   default) ENABLE_TIMESTAMPS=1
5373  ;;
5374   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5375 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5376    { (exit 1); exit 1; }; } ;;
5377 esac
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5381 _ACEOF
5382
5383
5384
5385 # Check whether --enable-backtraces was given.
5386 if test "${enable_backtraces+set}" = set; then
5387   enableval=$enable_backtraces;
5388 else
5389   enableval=default
5390 fi
5391
5392 case "$enableval" in
5393   yes) ENABLE_TIMESTAMPS=1
5394  ;;
5395   no)  ENABLE_TIMESTAMPS=0
5396  ;;
5397   default) ENABLE_TIMESTAMPS=1
5398  ;;
5399   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5400 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5401    { (exit 1); exit 1; }; } ;;
5402 esac
5403
5404 cat >>confdefs.h <<_ACEOF
5405 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5406 _ACEOF
5407
5408
5409 TARGETS_TO_BUILD=""
5410 # Check whether --enable-targets was given.
5411 if test "${enable_targets+set}" = set; then
5412   enableval=$enable_targets;
5413 else
5414   enableval=all
5415 fi
5416
5417 if test "$enableval" = host-only ; then
5418   enableval=host
5419 fi
5420 case "$enableval" in
5421   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5422   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5423       case "$a_target" in
5424         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5425         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5426         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5427         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5428         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5429         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5430         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5431         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5432         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5433         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5434         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5435         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5436         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5437         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5438         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5439         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5440         host) case "$llvm_cv_target_arch" in
5441             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5442             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5443             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5444             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5445             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5446             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5447             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5448             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5449             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5450             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5451             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5452             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5453             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5454 echo "$as_me: error: Can not set target to build" >&2;}
5455    { (exit 1); exit 1; }; } ;;
5456           esac ;;
5457         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5458 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5459    { (exit 1); exit 1; }; } ;;
5460       esac
5461   done
5462   ;;
5463 esac
5464
5465 # Check whether --enable-experimental-targets was given.
5466 if test "${enable_experimental_targets+set}" = set; then
5467   enableval=$enable_experimental_targets;
5468 else
5469   enableval=disable
5470 fi
5471
5472
5473 if test ${enableval} != "disable"
5474 then
5475   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5476 fi
5477
5478 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5479
5480
5481 for a_target in $TARGETS_TO_BUILD; do
5482   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5483
5484 cat >>confdefs.h <<_ACEOF
5485 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5486 _ACEOF
5487
5488     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5489     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5490     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5491     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5492     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5493       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5494     fi
5495     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5496       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5497     fi
5498
5499 cat >>confdefs.h <<_ACEOF
5500 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5501 _ACEOF
5502
5503
5504 cat >>confdefs.h <<_ACEOF
5505 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5506 _ACEOF
5507
5508
5509 cat >>confdefs.h <<_ACEOF
5510 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5511 _ACEOF
5512
5513
5514 cat >>confdefs.h <<_ACEOF
5515 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5516 _ACEOF
5517
5518     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5519
5520 cat >>confdefs.h <<_ACEOF
5521 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5522 _ACEOF
5523
5524     fi
5525     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5526
5527 cat >>confdefs.h <<_ACEOF
5528 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5529 _ACEOF
5530
5531     fi
5532   fi
5533 done
5534
5535 LLVM_ENUM_TARGETS=""
5536 LLVM_ENUM_ASM_PRINTERS=""
5537 LLVM_ENUM_ASM_PARSERS=""
5538 LLVM_ENUM_DISASSEMBLERS=""
5539 for target_to_build in $TARGETS_TO_BUILD; do
5540   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5541   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5542     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5543   fi
5544   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5545     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5546   fi
5547   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5548     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5549   fi
5550 done
5551
5552
5553
5554
5555
5556
5557 # Check whether --with-optimize-option was given.
5558 if test "${with_optimize_option+set}" = set; then
5559   withval=$with_optimize_option;
5560 else
5561   withval=default
5562 fi
5563
5564 { echo "$as_me:$LINENO: checking optimization flags" >&5
5565 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5566 case "$withval" in
5567   default)
5568     case "$llvm_cv_os_type" in
5569     FreeBSD) optimize_option=-O2 ;;
5570     MingW) optimize_option=-O2 ;;
5571     *)     optimize_option=-O3 ;;
5572     esac ;;
5573   *) optimize_option="$withval" ;;
5574 esac
5575 OPTIMIZE_OPTION=$optimize_option
5576
5577 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5578 echo "${ECHO_T}$optimize_option" >&6; }
5579
5580
5581 # Check whether --with-extra-options was given.
5582 if test "${with_extra_options+set}" = set; then
5583   withval=$with_extra_options;
5584 else
5585   withval=default
5586 fi
5587
5588 case "$withval" in
5589   default) EXTRA_OPTIONS= ;;
5590   *) EXTRA_OPTIONS=$withval ;;
5591 esac
5592 EXTRA_OPTIONS=$EXTRA_OPTIONS
5593
5594
5595
5596 # Check whether --with-extra-ld-options was given.
5597 if test "${with_extra_ld_options+set}" = set; then
5598   withval=$with_extra_ld_options;
5599 else
5600   withval=default
5601 fi
5602
5603 case "$withval" in
5604   default) EXTRA_LD_OPTIONS= ;;
5605   *) EXTRA_LD_OPTIONS=$withval ;;
5606 esac
5607 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5608
5609
5610 # Check whether --enable-bindings was given.
5611 if test "${enable_bindings+set}" = set; then
5612   enableval=$enable_bindings;
5613 else
5614   enableval=default
5615 fi
5616
5617 BINDINGS_TO_BUILD=""
5618 case "$enableval" in
5619   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5620   all ) BINDINGS_TO_BUILD="ocaml" ;;
5621   none | no) BINDINGS_TO_BUILD="" ;;
5622   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5623       case "$a_binding" in
5624         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5625         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5626 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5627    { (exit 1); exit 1; }; } ;;
5628       esac
5629   done
5630   ;;
5631 esac
5632
5633
5634 # Check whether --with-ocaml-libdir was given.
5635 if test "${with_ocaml_libdir+set}" = set; then
5636   withval=$with_ocaml_libdir;
5637 else
5638   withval=auto
5639 fi
5640
5641 case "$withval" in
5642   auto) with_ocaml_libdir="$withval" ;;
5643   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5644   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5645 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5646    { (exit 1); exit 1; }; } ;;
5647 esac
5648
5649
5650 # Check whether --with-clang-srcdir was given.
5651 if test "${with_clang_srcdir+set}" = set; then
5652   withval=$with_clang_srcdir;
5653 else
5654   withval="-"
5655 fi
5656
5657 case "$withval" in
5658   -) clang_src_root="" ;;
5659   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5660   *) clang_src_root="$ac_pwd/$withval" ;;
5661 esac
5662 CLANG_SRC_ROOT=$clang_src_root
5663
5664
5665
5666 # Check whether --with-clang-resource-dir was given.
5667 if test "${with_clang_resource_dir+set}" = set; then
5668   withval=$with_clang_resource_dir;
5669 else
5670   withval=""
5671 fi
5672
5673
5674 cat >>confdefs.h <<_ACEOF
5675 #define CLANG_RESOURCE_DIR "$withval"
5676 _ACEOF
5677
5678
5679
5680 # Check whether --with-c-include-dirs was given.
5681 if test "${with_c_include_dirs+set}" = set; then
5682   withval=$with_c_include_dirs;
5683 else
5684   withval=""
5685 fi
5686
5687
5688 cat >>confdefs.h <<_ACEOF
5689 #define C_INCLUDE_DIRS "$withval"
5690 _ACEOF
5691
5692
5693 # Clang normally uses the system c++ headers and libraries. With this option,
5694 # clang will use the ones provided by a gcc installation instead. This option should
5695 # be passed the same value that was used with --prefix when configuring gcc.
5696
5697 # Check whether --with-gcc-toolchain was given.
5698 if test "${with_gcc_toolchain+set}" = set; then
5699   withval=$with_gcc_toolchain;
5700 else
5701   withval=""
5702 fi
5703
5704
5705 cat >>confdefs.h <<_ACEOF
5706 #define GCC_INSTALL_PREFIX "$withval"
5707 _ACEOF
5708
5709
5710
5711 # Check whether --with-default-sysroot was given.
5712 if test "${with_default_sysroot+set}" = set; then
5713   withval=$with_default_sysroot;
5714 else
5715   withval=""
5716 fi
5717
5718
5719 cat >>confdefs.h <<_ACEOF
5720 #define DEFAULT_SYSROOT "$withval"
5721 _ACEOF
5722
5723
5724
5725 # Check whether --with-binutils-include was given.
5726 if test "${with_binutils_include+set}" = set; then
5727   withval=$with_binutils_include;
5728 else
5729   withval=default
5730 fi
5731
5732 case "$withval" in
5733   default) WITH_BINUTILS_INCDIR=default ;;
5734   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5735   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5736 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5737    { (exit 1); exit 1; }; } ;;
5738 esac
5739 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5740   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5741
5742   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5743      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5744      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5745 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5746    { (exit 1); exit 1; }; };
5747   fi
5748 fi
5749
5750
5751 # Check whether --with-bug-report-url was given.
5752 if test "${with_bug_report_url+set}" = set; then
5753   withval=$with_bug_report_url;
5754 else
5755   withval="http://llvm.org/bugs/"
5756 fi
5757
5758
5759 cat >>confdefs.h <<_ACEOF
5760 #define BUG_REPORT_URL "$withval"
5761 _ACEOF
5762
5763
5764 # Check whether --enable-libffi was given.
5765 if test "${enable_libffi+set}" = set; then
5766   enableval=$enable_libffi; case "$enableval" in
5767     yes) llvm_cv_enable_libffi="yes" ;;
5768     no)  llvm_cv_enable_libffi="no"  ;;
5769     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5770 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5771    { (exit 1); exit 1; }; } ;;
5772   esac
5773 else
5774   llvm_cv_enable_libffi=no
5775 fi
5776
5777
5778
5779 # Check whether --with-internal-prefix was given.
5780 if test "${with_internal_prefix+set}" = set; then
5781   withval=$with_internal_prefix;
5782 else
5783   withval=""
5784 fi
5785
5786 INTERNAL_PREFIX=$withval
5787
5788
5789
5790 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5791 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5792 if test "${lt_cv_path_NM+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   if test -n "$NM"; then
5796   # Let the user override the test.
5797   lt_cv_path_NM="$NM"
5798 else
5799   lt_nm_to_check="${ac_tool_prefix}nm"
5800   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5801     lt_nm_to_check="$lt_nm_to_check nm"
5802   fi
5803   for lt_tmp_nm in $lt_nm_to_check; do
5804     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5805     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5806       IFS="$lt_save_ifs"
5807       test -z "$ac_dir" && ac_dir=.
5808       tmp_nm="$ac_dir/$lt_tmp_nm"
5809       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5810         # Check to see if the nm accepts a BSD-compat flag.
5811         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5812         #   nm: unknown option "B" ignored
5813         # Tru64's nm complains that /dev/null is an invalid object file
5814         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5815         */dev/null* | *'Invalid file or object type'*)
5816           lt_cv_path_NM="$tmp_nm -B"
5817           break
5818           ;;
5819         *)
5820           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5821           */dev/null*)
5822             lt_cv_path_NM="$tmp_nm -p"
5823             break
5824             ;;
5825           *)
5826             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5827             continue # so that we can try to find one that supports BSD flags
5828             ;;
5829           esac
5830           ;;
5831         esac
5832       fi
5833     done
5834     IFS="$lt_save_ifs"
5835   done
5836   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5837 fi
5838 fi
5839 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5840 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5841 NM="$lt_cv_path_NM"
5842
5843
5844
5845 { echo "$as_me:$LINENO: checking for GNU make" >&5
5846 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5847 if test "${llvm_cv_gnu_make_command+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   llvm_cv_gnu_make_command=''
5851  for a in "$MAKE" make gmake gnumake ; do
5852   if test -z "$a" ; then continue ; fi ;
5853   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5854   then
5855    llvm_cv_gnu_make_command=$a ;
5856    break;
5857   fi
5858  done
5859 fi
5860 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5861 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5862  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5863    ifGNUmake='' ;
5864  else
5865    ifGNUmake='#' ;
5866    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5867 echo "${ECHO_T}\"Not found\"" >&6; };
5868  fi
5869
5870
5871 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5872 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5873 LN_S=$as_ln_s
5874 if test "$LN_S" = "ln -s"; then
5875   { echo "$as_me:$LINENO: result: yes" >&5
5876 echo "${ECHO_T}yes" >&6; }
5877 else
5878   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5879 echo "${ECHO_T}no, using $LN_S" >&6; }
5880 fi
5881
5882 # Extract the first word of "cmp", so it can be a program name with args.
5883 set dummy cmp; ac_word=$2
5884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886 if test "${ac_cv_path_CMP+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   case $CMP in
5890   [\\/]* | ?:[\\/]*)
5891   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5892   ;;
5893   *)
5894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899   for ac_exec_ext in '' $ac_executable_extensions; do
5900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5901     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906 done
5907 IFS=$as_save_IFS
5908
5909   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5910   ;;
5911 esac
5912 fi
5913 CMP=$ac_cv_path_CMP
5914 if test -n "$CMP"; then
5915   { echo "$as_me:$LINENO: result: $CMP" >&5
5916 echo "${ECHO_T}$CMP" >&6; }
5917 else
5918   { echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6; }
5920 fi
5921
5922
5923 # Extract the first word of "cp", so it can be a program name with args.
5924 set dummy cp; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_path_CP+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   case $CP in
5931   [\\/]* | ?:[\\/]*)
5932   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5933   ;;
5934   *)
5935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940   for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947 done
5948 IFS=$as_save_IFS
5949
5950   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5951   ;;
5952 esac
5953 fi
5954 CP=$ac_cv_path_CP
5955 if test -n "$CP"; then
5956   { echo "$as_me:$LINENO: result: $CP" >&5
5957 echo "${ECHO_T}$CP" >&6; }
5958 else
5959   { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5961 fi
5962
5963
5964 # Extract the first word of "date", so it can be a program name with args.
5965 set dummy date; ac_word=$2
5966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5968 if test "${ac_cv_path_DATE+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   case $DATE in
5972   [\\/]* | ?:[\\/]*)
5973   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5974   ;;
5975   *)
5976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981   for ac_exec_ext in '' $ac_executable_extensions; do
5982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5983     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988 done
5989 IFS=$as_save_IFS
5990
5991   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5992   ;;
5993 esac
5994 fi
5995 DATE=$ac_cv_path_DATE
5996 if test -n "$DATE"; then
5997   { echo "$as_me:$LINENO: result: $DATE" >&5
5998 echo "${ECHO_T}$DATE" >&6; }
5999 else
6000   { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6002 fi
6003
6004
6005 # Extract the first word of "find", so it can be a program name with args.
6006 set dummy find; ac_word=$2
6007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6009 if test "${ac_cv_path_FIND+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   case $FIND in
6013   [\\/]* | ?:[\\/]*)
6014   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6015   ;;
6016   *)
6017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6024     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030 IFS=$as_save_IFS
6031
6032   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6033   ;;
6034 esac
6035 fi
6036 FIND=$ac_cv_path_FIND
6037 if test -n "$FIND"; then
6038   { echo "$as_me:$LINENO: result: $FIND" >&5
6039 echo "${ECHO_T}$FIND" >&6; }
6040 else
6041   { echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6; }
6043 fi
6044
6045
6046 # Extract the first word of "grep", so it can be a program name with args.
6047 set dummy grep; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_path_GREP+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   case $GREP in
6054   [\\/]* | ?:[\\/]*)
6055   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6056   ;;
6057   *)
6058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063   for ac_exec_ext in '' $ac_executable_extensions; do
6064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6065     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6074   ;;
6075 esac
6076 fi
6077 GREP=$ac_cv_path_GREP
6078 if test -n "$GREP"; then
6079   { echo "$as_me:$LINENO: result: $GREP" >&5
6080 echo "${ECHO_T}$GREP" >&6; }
6081 else
6082   { echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6; }
6084 fi
6085
6086
6087 # Extract the first word of "mkdir", so it can be a program name with args.
6088 set dummy mkdir; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_path_MKDIR+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   case $MKDIR in
6095   [\\/]* | ?:[\\/]*)
6096   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6097   ;;
6098   *)
6099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104   for ac_exec_ext in '' $ac_executable_extensions; do
6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6115   ;;
6116 esac
6117 fi
6118 MKDIR=$ac_cv_path_MKDIR
6119 if test -n "$MKDIR"; then
6120   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6121 echo "${ECHO_T}$MKDIR" >&6; }
6122 else
6123   { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6125 fi
6126
6127
6128 # Extract the first word of "mv", so it can be a program name with args.
6129 set dummy mv; ac_word=$2
6130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6132 if test "${ac_cv_path_MV+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   case $MV in
6136   [\\/]* | ?:[\\/]*)
6137   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6138   ;;
6139   *)
6140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143   IFS=$as_save_IFS
6144   test -z "$as_dir" && as_dir=.
6145   for ac_exec_ext in '' $ac_executable_extensions; do
6146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6147     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149     break 2
6150   fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6154
6155   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6156   ;;
6157 esac
6158 fi
6159 MV=$ac_cv_path_MV
6160 if test -n "$MV"; then
6161   { echo "$as_me:$LINENO: result: $MV" >&5
6162 echo "${ECHO_T}$MV" >&6; }
6163 else
6164   { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6166 fi
6167
6168
6169 if test -n "$ac_tool_prefix"; then
6170   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174 if test "${ac_cv_prog_RANLIB+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   if test -n "$RANLIB"; then
6178   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185   for ac_exec_ext in '' $ac_executable_extensions; do
6186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6187     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192 done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 RANLIB=$ac_cv_prog_RANLIB
6198 if test -n "$RANLIB"; then
6199   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6200 echo "${ECHO_T}$RANLIB" >&6; }
6201 else
6202   { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6204 fi
6205
6206
6207 fi
6208 if test -z "$ac_cv_prog_RANLIB"; then
6209   ac_ct_RANLIB=$RANLIB
6210   # Extract the first word of "ranlib", so it can be a program name with args.
6211 set dummy ranlib; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   if test -n "$ac_ct_RANLIB"; then
6218   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225   for ac_exec_ext in '' $ac_executable_extensions; do
6226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6227     ac_cv_prog_ac_ct_RANLIB="ranlib"
6228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6238 if test -n "$ac_ct_RANLIB"; then
6239   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6240 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6241 else
6242   { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6244 fi
6245
6246   if test "x$ac_ct_RANLIB" = x; then
6247     RANLIB=":"
6248   else
6249     case $cross_compiling:$ac_tool_warned in
6250 yes:)
6251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6252 whose name does not start with the host triplet.  If you think this
6253 configuration is useful to you, please write to autoconf@gnu.org." >&5
6254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6255 whose name does not start with the host triplet.  If you think this
6256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6257 ac_tool_warned=yes ;;
6258 esac
6259     RANLIB=$ac_ct_RANLIB
6260   fi
6261 else
6262   RANLIB="$ac_cv_prog_RANLIB"
6263 fi
6264
6265 if test -n "$ac_tool_prefix"; then
6266   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6267 set dummy ${ac_tool_prefix}ar; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_prog_AR+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   if test -n "$AR"; then
6274   ac_cv_prog_AR="$AR" # Let the user override the test.
6275 else
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279   IFS=$as_save_IFS
6280   test -z "$as_dir" && as_dir=.
6281   for ac_exec_ext in '' $ac_executable_extensions; do
6282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283     ac_cv_prog_AR="${ac_tool_prefix}ar"
6284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285     break 2
6286   fi
6287 done
6288 done
6289 IFS=$as_save_IFS
6290
6291 fi
6292 fi
6293 AR=$ac_cv_prog_AR
6294 if test -n "$AR"; then
6295   { echo "$as_me:$LINENO: result: $AR" >&5
6296 echo "${ECHO_T}$AR" >&6; }
6297 else
6298   { echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6; }
6300 fi
6301
6302
6303 fi
6304 if test -z "$ac_cv_prog_AR"; then
6305   ac_ct_AR=$AR
6306   # Extract the first word of "ar", so it can be a program name with args.
6307 set dummy ar; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   if test -n "$ac_ct_AR"; then
6314   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319   IFS=$as_save_IFS
6320   test -z "$as_dir" && as_dir=.
6321   for ac_exec_ext in '' $ac_executable_extensions; do
6322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6323     ac_cv_prog_ac_ct_AR="ar"
6324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325     break 2
6326   fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 fi
6332 fi
6333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6334 if test -n "$ac_ct_AR"; then
6335   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6336 echo "${ECHO_T}$ac_ct_AR" >&6; }
6337 else
6338   { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6340 fi
6341
6342   if test "x$ac_ct_AR" = x; then
6343     AR="false"
6344   else
6345     case $cross_compiling:$ac_tool_warned in
6346 yes:)
6347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6348 whose name does not start with the host triplet.  If you think this
6349 configuration is useful to you, please write to autoconf@gnu.org." >&5
6350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6351 whose name does not start with the host triplet.  If you think this
6352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6353 ac_tool_warned=yes ;;
6354 esac
6355     AR=$ac_ct_AR
6356   fi
6357 else
6358   AR="$ac_cv_prog_AR"
6359 fi
6360
6361 # Extract the first word of "rm", so it can be a program name with args.
6362 set dummy rm; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_path_RM+set}" = set; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368   case $RM in
6369   [\\/]* | ?:[\\/]*)
6370   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6371   ;;
6372   *)
6373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376   IFS=$as_save_IFS
6377   test -z "$as_dir" && as_dir=.
6378   for ac_exec_ext in '' $ac_executable_extensions; do
6379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6380     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382     break 2
6383   fi
6384 done
6385 done
6386 IFS=$as_save_IFS
6387
6388   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6389   ;;
6390 esac
6391 fi
6392 RM=$ac_cv_path_RM
6393 if test -n "$RM"; then
6394   { echo "$as_me:$LINENO: result: $RM" >&5
6395 echo "${ECHO_T}$RM" >&6; }
6396 else
6397   { echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6; }
6399 fi
6400
6401
6402 # Extract the first word of "sed", so it can be a program name with args.
6403 set dummy sed; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_path_SED+set}" = set; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409   case $SED in
6410   [\\/]* | ?:[\\/]*)
6411   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6412   ;;
6413   *)
6414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417   IFS=$as_save_IFS
6418   test -z "$as_dir" && as_dir=.
6419   for ac_exec_ext in '' $ac_executable_extensions; do
6420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6421     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423     break 2
6424   fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6430   ;;
6431 esac
6432 fi
6433 SED=$ac_cv_path_SED
6434 if test -n "$SED"; then
6435   { echo "$as_me:$LINENO: result: $SED" >&5
6436 echo "${ECHO_T}$SED" >&6; }
6437 else
6438   { echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6; }
6440 fi
6441
6442
6443 # Extract the first word of "tar", so it can be a program name with args.
6444 set dummy tar; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_path_TAR+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   case $TAR in
6451   [\\/]* | ?:[\\/]*)
6452   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6453   ;;
6454   *)
6455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460   for ac_exec_ext in '' $ac_executable_extensions; do
6461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6462     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6471   ;;
6472 esac
6473 fi
6474 TAR=$ac_cv_path_TAR
6475 if test -n "$TAR"; then
6476   { echo "$as_me:$LINENO: result: $TAR" >&5
6477 echo "${ECHO_T}$TAR" >&6; }
6478 else
6479   { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6481 fi
6482
6483
6484 # Extract the first word of "pwd", so it can be a program name with args.
6485 set dummy pwd; ac_word=$2
6486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6488 if test "${ac_cv_path_BINPWD+set}" = set; then
6489   echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491   case $BINPWD in
6492   [\\/]* | ?:[\\/]*)
6493   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6494   ;;
6495   *)
6496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501   for ac_exec_ext in '' $ac_executable_extensions; do
6502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6503     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508 done
6509 IFS=$as_save_IFS
6510
6511   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6512   ;;
6513 esac
6514 fi
6515 BINPWD=$ac_cv_path_BINPWD
6516 if test -n "$BINPWD"; then
6517   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6518 echo "${ECHO_T}$BINPWD" >&6; }
6519 else
6520   { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6522 fi
6523
6524
6525
6526 # Extract the first word of "Graphviz", so it can be a program name with args.
6527 set dummy Graphviz; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   case $GRAPHVIZ in
6534   [\\/]* | ?:[\\/]*)
6535   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6536   ;;
6537   *)
6538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543   for ac_exec_ext in '' $ac_executable_extensions; do
6544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6554   ;;
6555 esac
6556 fi
6557 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6558 if test -n "$GRAPHVIZ"; then
6559   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6560 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6561 else
6562   { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6564 fi
6565
6566
6567 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6568
6569 cat >>confdefs.h <<\_ACEOF
6570 #define HAVE_GRAPHVIZ 1
6571 _ACEOF
6572
6573     if test "$llvm_cv_os_type" = "MingW" ; then
6574     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6575   fi
6576
6577 cat >>confdefs.h <<_ACEOF
6578 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6579 _ACEOF
6580
6581 fi
6582 # Extract the first word of "dot", so it can be a program name with args.
6583 set dummy dot; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_DOT+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   case $DOT in
6590   [\\/]* | ?:[\\/]*)
6591   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6592   ;;
6593   *)
6594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   test -z "$as_dir" && as_dir=.
6599   for ac_exec_ext in '' $ac_executable_extensions; do
6600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6601     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603     break 2
6604   fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6610   ;;
6611 esac
6612 fi
6613 DOT=$ac_cv_path_DOT
6614 if test -n "$DOT"; then
6615   { echo "$as_me:$LINENO: result: $DOT" >&5
6616 echo "${ECHO_T}$DOT" >&6; }
6617 else
6618   { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6620 fi
6621
6622
6623 if test "$DOT" != "echo dot" ; then
6624
6625 cat >>confdefs.h <<\_ACEOF
6626 #define HAVE_DOT 1
6627 _ACEOF
6628
6629     if test "$llvm_cv_os_type" = "MingW" ; then
6630     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6631   fi
6632
6633 cat >>confdefs.h <<_ACEOF
6634 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6635 _ACEOF
6636
6637 fi
6638 # Extract the first word of "fdp", so it can be a program name with args.
6639 set dummy fdp; ac_word=$2
6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642 if test "${ac_cv_path_FDP+set}" = set; then
6643   echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645   case $FDP in
6646   [\\/]* | ?:[\\/]*)
6647   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6648   ;;
6649   *)
6650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655   for ac_exec_ext in '' $ac_executable_extensions; do
6656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6657     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6666   ;;
6667 esac
6668 fi
6669 FDP=$ac_cv_path_FDP
6670 if test -n "$FDP"; then
6671   { echo "$as_me:$LINENO: result: $FDP" >&5
6672 echo "${ECHO_T}$FDP" >&6; }
6673 else
6674   { echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6; }
6676 fi
6677
6678
6679 if test "$FDP" != "echo fdp" ; then
6680
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_FDP 1
6683 _ACEOF
6684
6685     if test "$llvm_cv_os_type" = "MingW" ; then
6686     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6687   fi
6688
6689 cat >>confdefs.h <<_ACEOF
6690 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6691 _ACEOF
6692
6693 fi
6694 # Extract the first word of "neato", so it can be a program name with args.
6695 set dummy neato; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_path_NEATO+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   case $NEATO in
6702   [\\/]* | ?:[\\/]*)
6703   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6704   ;;
6705   *)
6706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711   for ac_exec_ext in '' $ac_executable_extensions; do
6712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6722   ;;
6723 esac
6724 fi
6725 NEATO=$ac_cv_path_NEATO
6726 if test -n "$NEATO"; then
6727   { echo "$as_me:$LINENO: result: $NEATO" >&5
6728 echo "${ECHO_T}$NEATO" >&6; }
6729 else
6730   { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6732 fi
6733
6734
6735 if test "$NEATO" != "echo neato" ; then
6736
6737 cat >>confdefs.h <<\_ACEOF
6738 #define HAVE_NEATO 1
6739 _ACEOF
6740
6741     if test "$llvm_cv_os_type" = "MingW" ; then
6742     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6743   fi
6744
6745 cat >>confdefs.h <<_ACEOF
6746 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6747 _ACEOF
6748
6749 fi
6750 # Extract the first word of "twopi", so it can be a program name with args.
6751 set dummy twopi; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_path_TWOPI+set}" = set; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757   case $TWOPI in
6758   [\\/]* | ?:[\\/]*)
6759   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6760   ;;
6761   *)
6762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767   for ac_exec_ext in '' $ac_executable_extensions; do
6768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6769     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6778   ;;
6779 esac
6780 fi
6781 TWOPI=$ac_cv_path_TWOPI
6782 if test -n "$TWOPI"; then
6783   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6784 echo "${ECHO_T}$TWOPI" >&6; }
6785 else
6786   { echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6; }
6788 fi
6789
6790
6791 if test "$TWOPI" != "echo twopi" ; then
6792
6793 cat >>confdefs.h <<\_ACEOF
6794 #define HAVE_TWOPI 1
6795 _ACEOF
6796
6797     if test "$llvm_cv_os_type" = "MingW" ; then
6798     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6799   fi
6800
6801 cat >>confdefs.h <<_ACEOF
6802 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6803 _ACEOF
6804
6805 fi
6806 # Extract the first word of "circo", so it can be a program name with args.
6807 set dummy circo; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_CIRCO+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   case $CIRCO in
6814   [\\/]* | ?:[\\/]*)
6815   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6816   ;;
6817   *)
6818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823   for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6834   ;;
6835 esac
6836 fi
6837 CIRCO=$ac_cv_path_CIRCO
6838 if test -n "$CIRCO"; then
6839   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6840 echo "${ECHO_T}$CIRCO" >&6; }
6841 else
6842   { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6844 fi
6845
6846
6847 if test "$CIRCO" != "echo circo" ; then
6848
6849 cat >>confdefs.h <<\_ACEOF
6850 #define HAVE_CIRCO 1
6851 _ACEOF
6852
6853     if test "$llvm_cv_os_type" = "MingW" ; then
6854     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6855   fi
6856
6857 cat >>confdefs.h <<_ACEOF
6858 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6859 _ACEOF
6860
6861 fi
6862 for ac_prog in gv gsview32
6863 do
6864   # Extract the first word of "$ac_prog", so it can be a program name with args.
6865 set dummy $ac_prog; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_GV+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   case $GV in
6872   [\\/]* | ?:[\\/]*)
6873   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6874   ;;
6875   *)
6876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881   for ac_exec_ext in '' $ac_executable_extensions; do
6882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891   ;;
6892 esac
6893 fi
6894 GV=$ac_cv_path_GV
6895 if test -n "$GV"; then
6896   { echo "$as_me:$LINENO: result: $GV" >&5
6897 echo "${ECHO_T}$GV" >&6; }
6898 else
6899   { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6901 fi
6902
6903
6904   test -n "$GV" && break
6905 done
6906 test -n "$GV" || GV="echo gv"
6907
6908 if test "$GV" != "echo gv" ; then
6909
6910 cat >>confdefs.h <<\_ACEOF
6911 #define HAVE_GV 1
6912 _ACEOF
6913
6914     if test "$llvm_cv_os_type" = "MingW" ; then
6915     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6916   fi
6917
6918 cat >>confdefs.h <<_ACEOF
6919 #define LLVM_PATH_GV "$GV${EXEEXT}"
6920 _ACEOF
6921
6922 fi
6923 # Extract the first word of "dotty", so it can be a program name with args.
6924 set dummy dotty; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_DOTTY+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   case $DOTTY in
6931   [\\/]* | ?:[\\/]*)
6932   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6933   ;;
6934   *)
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940   for ac_exec_ext in '' $ac_executable_extensions; do
6941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6951   ;;
6952 esac
6953 fi
6954 DOTTY=$ac_cv_path_DOTTY
6955 if test -n "$DOTTY"; then
6956   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6957 echo "${ECHO_T}$DOTTY" >&6; }
6958 else
6959   { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6961 fi
6962
6963
6964 if test "$DOTTY" != "echo dotty" ; then
6965
6966 cat >>confdefs.h <<\_ACEOF
6967 #define HAVE_DOTTY 1
6968 _ACEOF
6969
6970     if test "$llvm_cv_os_type" = "MingW" ; then
6971     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6972   fi
6973
6974 cat >>confdefs.h <<_ACEOF
6975 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6976 _ACEOF
6977
6978 fi
6979 # Extract the first word of "xdot.py", so it can be a program name with args.
6980 set dummy xdot.py; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   case $XDOT_PY in
6987   [\\/]* | ?:[\\/]*)
6988   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6989   ;;
6990   *)
6991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994   IFS=$as_save_IFS
6995   test -z "$as_dir" && as_dir=.
6996   for ac_exec_ext in '' $ac_executable_extensions; do
6997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6998     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000     break 2
7001   fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7007   ;;
7008 esac
7009 fi
7010 XDOT_PY=$ac_cv_path_XDOT_PY
7011 if test -n "$XDOT_PY"; then
7012   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7013 echo "${ECHO_T}$XDOT_PY" >&6; }
7014 else
7015   { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7017 fi
7018
7019
7020 if test "$XDOT_PY" != "echo xdot.py" ; then
7021
7022 cat >>confdefs.h <<\_ACEOF
7023 #define HAVE_XDOT_PY 1
7024 _ACEOF
7025
7026     if test "$llvm_cv_os_type" = "MingW" ; then
7027     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7028   fi
7029
7030 cat >>confdefs.h <<_ACEOF
7031 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7032 _ACEOF
7033
7034 fi
7035
7036 # Find a good install program.  We prefer a C program (faster),
7037 # so one script is as good as another.  But avoid the broken or
7038 # incompatible versions:
7039 # SysV /etc/install, /usr/sbin/install
7040 # SunOS /usr/etc/install
7041 # IRIX /sbin/install
7042 # AIX /bin/install
7043 # AmigaOS /C/install, which installs bootblocks on floppy discs
7044 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7045 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7046 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7047 # OS/2's system install, which has a completely different semantic
7048 # ./install, which can be erroneously created by make from ./install.sh.
7049 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7050 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7051 if test -z "$INSTALL"; then
7052 if test "${ac_cv_path_install+set}" = set; then
7053   echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060   # Account for people who put trailing slashes in PATH elements.
7061 case $as_dir/ in
7062   ./ | .// | /cC/* | \
7063   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7064   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7065   /usr/ucb/* ) ;;
7066   *)
7067     # OSF1 and SCO ODT 3.0 have their own names for install.
7068     # Don't use installbsd from OSF since it installs stuff as root
7069     # by default.
7070     for ac_prog in ginstall scoinst install; do
7071       for ac_exec_ext in '' $ac_executable_extensions; do
7072         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7073           if test $ac_prog = install &&
7074             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7075             # AIX install.  It has an incompatible calling convention.
7076             :
7077           elif test $ac_prog = install &&
7078             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7079             # program-specific install script used by HP pwplus--don't use.
7080             :
7081           else
7082             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7083             break 3
7084           fi
7085         fi
7086       done
7087     done
7088     ;;
7089 esac
7090 done
7091 IFS=$as_save_IFS
7092
7093
7094 fi
7095   if test "${ac_cv_path_install+set}" = set; then
7096     INSTALL=$ac_cv_path_install
7097   else
7098     # As a last resort, use the slow shell script.  Don't cache a
7099     # value for INSTALL within a source directory, because that will
7100     # break other packages using the cache if that directory is
7101     # removed, or if the value is a relative name.
7102     INSTALL=$ac_install_sh
7103   fi
7104 fi
7105 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7106 echo "${ECHO_T}$INSTALL" >&6; }
7107
7108 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7109 # It thinks the first close brace ends the variable substitution.
7110 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7111
7112 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7113
7114 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7115
7116 case "$INSTALL" in
7117  [\\/$]* | ?:[\\/]* ) ;;
7118  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7119 esac
7120
7121 # Extract the first word of "bzip2", so it can be a program name with args.
7122 set dummy bzip2; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_BZIP2+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   case $BZIP2 in
7129   [\\/]* | ?:[\\/]*)
7130   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7131   ;;
7132   *)
7133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138   for ac_exec_ext in '' $ac_executable_extensions; do
7139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148   ;;
7149 esac
7150 fi
7151 BZIP2=$ac_cv_path_BZIP2
7152 if test -n "$BZIP2"; then
7153   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7154 echo "${ECHO_T}$BZIP2" >&6; }
7155 else
7156   { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7158 fi
7159
7160
7161 # Extract the first word of "cat", so it can be a program name with args.
7162 set dummy cat; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_CAT+set}" = set; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168   case $CAT in
7169   [\\/]* | ?:[\\/]*)
7170   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7171   ;;
7172   *)
7173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178   for ac_exec_ext in '' $ac_executable_extensions; do
7179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188   ;;
7189 esac
7190 fi
7191 CAT=$ac_cv_path_CAT
7192 if test -n "$CAT"; then
7193   { echo "$as_me:$LINENO: result: $CAT" >&5
7194 echo "${ECHO_T}$CAT" >&6; }
7195 else
7196   { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7198 fi
7199
7200
7201 # Extract the first word of "doxygen", so it can be a program name with args.
7202 set dummy doxygen; ac_word=$2
7203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7206   echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208   case $DOXYGEN in
7209   [\\/]* | ?:[\\/]*)
7210   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7211   ;;
7212   *)
7213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218   for ac_exec_ext in '' $ac_executable_extensions; do
7219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228   ;;
7229 esac
7230 fi
7231 DOXYGEN=$ac_cv_path_DOXYGEN
7232 if test -n "$DOXYGEN"; then
7233   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7234 echo "${ECHO_T}$DOXYGEN" >&6; }
7235 else
7236   { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7238 fi
7239
7240
7241 # Extract the first word of "groff", so it can be a program name with args.
7242 set dummy groff; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_GROFF+set}" = set; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   case $GROFF in
7249   [\\/]* | ?:[\\/]*)
7250   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7251   ;;
7252   *)
7253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258   for ac_exec_ext in '' $ac_executable_extensions; do
7259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268   ;;
7269 esac
7270 fi
7271 GROFF=$ac_cv_path_GROFF
7272 if test -n "$GROFF"; then
7273   { echo "$as_me:$LINENO: result: $GROFF" >&5
7274 echo "${ECHO_T}$GROFF" >&6; }
7275 else
7276   { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7278 fi
7279
7280
7281 # Extract the first word of "gzip", so it can be a program name with args.
7282 set dummy gzip; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7286   echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288   case $GZIPBIN in
7289   [\\/]* | ?:[\\/]*)
7290   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7291   ;;
7292   *)
7293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296   IFS=$as_save_IFS
7297   test -z "$as_dir" && as_dir=.
7298   for ac_exec_ext in '' $ac_executable_extensions; do
7299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302     break 2
7303   fi
7304 done
7305 done
7306 IFS=$as_save_IFS
7307
7308   ;;
7309 esac
7310 fi
7311 GZIPBIN=$ac_cv_path_GZIPBIN
7312 if test -n "$GZIPBIN"; then
7313   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7314 echo "${ECHO_T}$GZIPBIN" >&6; }
7315 else
7316   { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7318 fi
7319
7320
7321 # Extract the first word of "pdfroff", so it can be a program name with args.
7322 set dummy pdfroff; ac_word=$2
7323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325 if test "${ac_cv_path_PDFROFF+set}" = set; then
7326   echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328   case $PDFROFF in
7329   [\\/]* | ?:[\\/]*)
7330   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7331   ;;
7332   *)
7333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336   IFS=$as_save_IFS
7337   test -z "$as_dir" && as_dir=.
7338   for ac_exec_ext in '' $ac_executable_extensions; do
7339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7340     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342     break 2
7343   fi
7344 done
7345 done
7346 IFS=$as_save_IFS
7347
7348   ;;
7349 esac
7350 fi
7351 PDFROFF=$ac_cv_path_PDFROFF
7352 if test -n "$PDFROFF"; then
7353   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7354 echo "${ECHO_T}$PDFROFF" >&6; }
7355 else
7356   { echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6; }
7358 fi
7359
7360
7361 # Extract the first word of "zip", so it can be a program name with args.
7362 set dummy zip; ac_word=$2
7363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7365 if test "${ac_cv_path_ZIP+set}" = set; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368   case $ZIP in
7369   [\\/]* | ?:[\\/]*)
7370   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7371   ;;
7372   *)
7373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376   IFS=$as_save_IFS
7377   test -z "$as_dir" && as_dir=.
7378   for ac_exec_ext in '' $ac_executable_extensions; do
7379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7380     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382     break 2
7383   fi
7384 done
7385 done
7386 IFS=$as_save_IFS
7387
7388   ;;
7389 esac
7390 fi
7391 ZIP=$ac_cv_path_ZIP
7392 if test -n "$ZIP"; then
7393   { echo "$as_me:$LINENO: result: $ZIP" >&5
7394 echo "${ECHO_T}$ZIP" >&6; }
7395 else
7396   { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7398 fi
7399
7400
7401 for ac_prog in ocamlc
7402 do
7403   # Extract the first word of "$ac_prog", so it can be a program name with args.
7404 set dummy $ac_prog; ac_word=$2
7405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7407 if test "${ac_cv_path_OCAMLC+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   case $OCAMLC in
7411   [\\/]* | ?:[\\/]*)
7412   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7413   ;;
7414   *)
7415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418   IFS=$as_save_IFS
7419   test -z "$as_dir" && as_dir=.
7420   for ac_exec_ext in '' $ac_executable_extensions; do
7421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7422     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424     break 2
7425   fi
7426 done
7427 done
7428 IFS=$as_save_IFS
7429
7430   ;;
7431 esac
7432 fi
7433 OCAMLC=$ac_cv_path_OCAMLC
7434 if test -n "$OCAMLC"; then
7435   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7436 echo "${ECHO_T}$OCAMLC" >&6; }
7437 else
7438   { echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6; }
7440 fi
7441
7442
7443   test -n "$OCAMLC" && break
7444 done
7445
7446 for ac_prog in ocamlopt
7447 do
7448   # Extract the first word of "$ac_prog", so it can be a program name with args.
7449 set dummy $ac_prog; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   case $OCAMLOPT in
7456   [\\/]* | ?:[\\/]*)
7457   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7458   ;;
7459   *)
7460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465   for ac_exec_ext in '' $ac_executable_extensions; do
7466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7467     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472 done
7473 IFS=$as_save_IFS
7474
7475   ;;
7476 esac
7477 fi
7478 OCAMLOPT=$ac_cv_path_OCAMLOPT
7479 if test -n "$OCAMLOPT"; then
7480   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7481 echo "${ECHO_T}$OCAMLOPT" >&6; }
7482 else
7483   { echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6; }
7485 fi
7486
7487
7488   test -n "$OCAMLOPT" && break
7489 done
7490
7491 for ac_prog in ocamldep
7492 do
7493   # Extract the first word of "$ac_prog", so it can be a program name with args.
7494 set dummy $ac_prog; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   case $OCAMLDEP in
7501   [\\/]* | ?:[\\/]*)
7502   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7503   ;;
7504   *)
7505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510   for ac_exec_ext in '' $ac_executable_extensions; do
7511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520   ;;
7521 esac
7522 fi
7523 OCAMLDEP=$ac_cv_path_OCAMLDEP
7524 if test -n "$OCAMLDEP"; then
7525   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7526 echo "${ECHO_T}$OCAMLDEP" >&6; }
7527 else
7528   { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7530 fi
7531
7532
7533   test -n "$OCAMLDEP" && break
7534 done
7535
7536 for ac_prog in ocamldoc
7537 do
7538   # Extract the first word of "$ac_prog", so it can be a program name with args.
7539 set dummy $ac_prog; ac_word=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7543   echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545   case $OCAMLDOC in
7546   [\\/]* | ?:[\\/]*)
7547   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7548   ;;
7549   *)
7550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553   IFS=$as_save_IFS
7554   test -z "$as_dir" && as_dir=.
7555   for ac_exec_ext in '' $ac_executable_extensions; do
7556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559     break 2
7560   fi
7561 done
7562 done
7563 IFS=$as_save_IFS
7564
7565   ;;
7566 esac
7567 fi
7568 OCAMLDOC=$ac_cv_path_OCAMLDOC
7569 if test -n "$OCAMLDOC"; then
7570   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7571 echo "${ECHO_T}$OCAMLDOC" >&6; }
7572 else
7573   { echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6; }
7575 fi
7576
7577
7578   test -n "$OCAMLDOC" && break
7579 done
7580
7581 for ac_prog in gas as
7582 do
7583   # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_GAS+set}" = set; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   case $GAS in
7591   [\\/]* | ?:[\\/]*)
7592   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7593   ;;
7594   *)
7595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600   for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610   ;;
7611 esac
7612 fi
7613 GAS=$ac_cv_path_GAS
7614 if test -n "$GAS"; then
7615   { echo "$as_me:$LINENO: result: $GAS" >&5
7616 echo "${ECHO_T}$GAS" >&6; }
7617 else
7618   { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7620 fi
7621
7622
7623   test -n "$GAS" && break
7624 done
7625
7626
7627 { echo "$as_me:$LINENO: checking for linker version" >&5
7628 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7629 if test "${llvm_cv_link_version+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632
7633    version_string="$(ld -v 2>&1 | head -1)"
7634
7635    # Check for ld64.
7636    if (echo "$version_string" | grep -q "ld64"); then
7637      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7638    else
7639      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7640    fi
7641
7642 fi
7643 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7644 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7645
7646 cat >>confdefs.h <<_ACEOF
7647 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7648 _ACEOF
7649
7650
7651
7652 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7653 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7654 if test "${llvm_cv_link_use_r+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657    ac_ext=c
7658 ac_cpp='$CPP $CPPFLAGS'
7659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7662
7663   oldcflags="$CFLAGS"
7664   CFLAGS="$CFLAGS -Wl,-R."
7665   cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h.  */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h.  */
7671
7672 int
7673 main ()
7674 {
7675
7676   ;
7677   return 0;
7678 }
7679 _ACEOF
7680 rm -f conftest.$ac_objext conftest$ac_exeext
7681 if { (ac_try="$ac_link"
7682 case "(($ac_try" in
7683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684   *) ac_try_echo=$ac_try;;
7685 esac
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687   (eval "$ac_link") 2>conftest.er1
7688   ac_status=$?
7689   grep -v '^ *+' conftest.er1 >conftest.err
7690   rm -f conftest.er1
7691   cat conftest.err >&5
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); } &&
7694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7695   { (case "(($ac_try" in
7696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697   *) ac_try_echo=$ac_try;;
7698 esac
7699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7700   (eval "$ac_try") 2>&5
7701   ac_status=$?
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); }; } &&
7704          { ac_try='test -s conftest$ac_exeext'
7705   { (case "(($ac_try" in
7706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707   *) ac_try_echo=$ac_try;;
7708 esac
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710   (eval "$ac_try") 2>&5
7711   ac_status=$?
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); }; }; then
7714   llvm_cv_link_use_r=yes
7715 else
7716   echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7718
7719         llvm_cv_link_use_r=no
7720 fi
7721
7722 rm -f core conftest.err conftest.$ac_objext \
7723       conftest$ac_exeext conftest.$ac_ext
7724   CFLAGS="$oldcflags"
7725   ac_ext=c
7726 ac_cpp='$CPP $CPPFLAGS'
7727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730
7731
7732 fi
7733 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7734 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7735 if test "$llvm_cv_link_use_r" = yes ; then
7736
7737 cat >>confdefs.h <<\_ACEOF
7738 #define HAVE_LINK_R 1
7739 _ACEOF
7740
7741   fi
7742
7743
7744 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7745 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7746 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749    ac_ext=c
7750 ac_cpp='$CPP $CPPFLAGS'
7751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754
7755   oldcflags="$CFLAGS"
7756   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7757   cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h.  */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h.  */
7763
7764 int
7765 main ()
7766 {
7767
7768   ;
7769   return 0;
7770 }
7771 _ACEOF
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (ac_try="$ac_link"
7774 case "(($ac_try" in
7775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776   *) ac_try_echo=$ac_try;;
7777 esac
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779   (eval "$ac_link") 2>conftest.er1
7780   ac_status=$?
7781   grep -v '^ *+' conftest.er1 >conftest.err
7782   rm -f conftest.er1
7783   cat conftest.err >&5
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7787   { (case "(($ac_try" in
7788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789   *) ac_try_echo=$ac_try;;
7790 esac
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792   (eval "$ac_try") 2>&5
7793   ac_status=$?
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); }; } &&
7796          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7806   llvm_cv_link_use_export_dynamic=yes
7807 else
7808   echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7810
7811         llvm_cv_link_use_export_dynamic=no
7812 fi
7813
7814 rm -f core conftest.err conftest.$ac_objext \
7815       conftest$ac_exeext conftest.$ac_ext
7816   CFLAGS="$oldcflags"
7817   ac_ext=c
7818 ac_cpp='$CPP $CPPFLAGS'
7819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7822
7823
7824 fi
7825 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7826 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7827 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7828
7829 cat >>confdefs.h <<\_ACEOF
7830 #define HAVE_LINK_EXPORT_DYNAMIC 1
7831 _ACEOF
7832
7833   fi
7834
7835
7836 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7837 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7838 if test "${llvm_cv_link_use_version_script+set}" = set; then
7839   echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841    ac_ext=c
7842 ac_cpp='$CPP $CPPFLAGS'
7843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846
7847   oldcflags="$CFLAGS"
7848
7849   # The following code is from the autoconf manual,
7850   # "11.13: Limitations of Usual Tools".
7851   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7852   # Use mktemp if possible; otherwise fall back on mkdir,
7853   # with $RANDOM to make collisions less likely.
7854   : ${TMPDIR=/tmp}
7855   {
7856     tmp=`
7857       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7858     ` &&
7859     test -n "$tmp" && test -d "$tmp"
7860   } || {
7861     tmp=$TMPDIR/foo$$-$RANDOM
7862     (umask 077 && mkdir "$tmp")
7863   } || exit $?
7864
7865   echo "{" > "$tmp/export.map"
7866   echo "  global: main;" >> "$tmp/export.map"
7867   echo "  local: *;" >> "$tmp/export.map"
7868   echo "};" >> "$tmp/export.map"
7869
7870   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7871   cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h.  */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h.  */
7877
7878 int
7879 main ()
7880 {
7881
7882   ;
7883   return 0;
7884 }
7885 _ACEOF
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (ac_try="$ac_link"
7888 case "(($ac_try" in
7889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890   *) ac_try_echo=$ac_try;;
7891 esac
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893   (eval "$ac_link") 2>conftest.er1
7894   ac_status=$?
7895   grep -v '^ *+' conftest.er1 >conftest.err
7896   rm -f conftest.er1
7897   cat conftest.err >&5
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); } &&
7900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7901   { (case "(($ac_try" in
7902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903   *) ac_try_echo=$ac_try;;
7904 esac
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906   (eval "$ac_try") 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); }; } &&
7910          { ac_try='test -s conftest$ac_exeext'
7911   { (case "(($ac_try" in
7912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913   *) ac_try_echo=$ac_try;;
7914 esac
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916   (eval "$ac_try") 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); }; }; then
7920   llvm_cv_link_use_version_script=yes
7921 else
7922   echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7924
7925         llvm_cv_link_use_version_script=no
7926 fi
7927
7928 rm -f core conftest.err conftest.$ac_objext \
7929       conftest$ac_exeext conftest.$ac_ext
7930   rm "$tmp/export.map"
7931   rmdir "$tmp"
7932   CFLAGS="$oldcflags"
7933   ac_ext=c
7934 ac_cpp='$CPP $CPPFLAGS'
7935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7938
7939
7940 fi
7941 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7942 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7943 if test "$llvm_cv_link_use_version_script" = yes ; then
7944   HAVE_LINK_VERSION_SCRIPT=1
7945
7946   fi
7947
7948
7949
7950
7951 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7952 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7953 if test "${ac_cv_c_const+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962
7963 int
7964 main ()
7965 {
7966 /* FIXME: Include the comments suggested by Paul. */
7967 #ifndef __cplusplus
7968   /* Ultrix mips cc rejects this.  */
7969   typedef int charset[2];
7970   const charset x;
7971   /* SunOS 4.1.1 cc rejects this.  */
7972   char const *const *ccp;
7973   char **p;
7974   /* NEC SVR4.0.2 mips cc rejects this.  */
7975   struct point {int x, y;};
7976   static struct point const zero = {0,0};
7977   /* AIX XL C 1.02.0.0 rejects this.
7978      It does not let you subtract one const X* pointer from another in
7979      an arm of an if-expression whose if-part is not a constant
7980      expression */
7981   const char *g = "string";
7982   ccp = &g + (g ? g-g : 0);
7983   /* HPUX 7.0 cc rejects these. */
7984   ++ccp;
7985   p = (char**) ccp;
7986   ccp = (char const *const *) p;
7987   { /* SCO 3.2v4 cc rejects this.  */
7988     char *t;
7989     char const *s = 0 ? (char *) 0 : (char const *) 0;
7990
7991     *t++ = 0;
7992     if (s) return 0;
7993   }
7994   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7995     int x[] = {25, 17};
7996     const int *foo = &x[0];
7997     ++foo;
7998   }
7999   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8000     typedef const int *iptr;
8001     iptr p = 0;
8002     ++p;
8003   }
8004   { /* AIX XL C 1.02.0.0 rejects this saying
8005        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8006     struct s { int j; const int *ap[3]; };
8007     struct s *b; b->j = 5;
8008   }
8009   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8010     const int foo = 10;
8011     if (!foo) return 0;
8012   }
8013   return !x[0] && !zero.x;
8014 #endif
8015
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8022 case "(($ac_try" in
8023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024   *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027   (eval "$ac_compile") 2>conftest.er1
8028   ac_status=$?
8029   grep -v '^ *+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } &&
8034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8035   { (case "(($ac_try" in
8036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037   *) ac_try_echo=$ac_try;;
8038 esac
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040   (eval "$ac_try") 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); }; } &&
8044          { ac_try='test -s conftest.$ac_objext'
8045   { (case "(($ac_try" in
8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047   *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050   (eval "$ac_try") 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; }; then
8054   ac_cv_c_const=yes
8055 else
8056   echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8058
8059         ac_cv_c_const=no
8060 fi
8061
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 fi
8064 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8065 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8066 if test $ac_cv_c_const = no; then
8067
8068 cat >>confdefs.h <<\_ACEOF
8069 #define const
8070 _ACEOF
8071
8072 fi
8073
8074
8075
8076
8077
8078
8079 ac_header_dirent=no
8080 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8081   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8082 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8083 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087   cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h.  */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h.  */
8093 #include <sys/types.h>
8094 #include <$ac_hdr>
8095
8096 int
8097 main ()
8098 {
8099 if ((DIR *) 0)
8100 return 0;
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8107 case "(($ac_try" in
8108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109   *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112   (eval "$ac_compile") 2>conftest.er1
8113   ac_status=$?
8114   grep -v '^ *+' conftest.er1 >conftest.err
8115   rm -f conftest.er1
8116   cat conftest.err >&5
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); } &&
8119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8120   { (case "(($ac_try" in
8121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122   *) ac_try_echo=$ac_try;;
8123 esac
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125   (eval "$ac_try") 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; } &&
8129          { ac_try='test -s conftest.$ac_objext'
8130   { (case "(($ac_try" in
8131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132   *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135   (eval "$ac_try") 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   eval "$as_ac_Header=yes"
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144         eval "$as_ac_Header=no"
8145 fi
8146
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 fi
8149 ac_res=`eval echo '${'$as_ac_Header'}'`
8150                { echo "$as_me:$LINENO: result: $ac_res" >&5
8151 echo "${ECHO_T}$ac_res" >&6; }
8152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8153   cat >>confdefs.h <<_ACEOF
8154 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8155 _ACEOF
8156
8157 ac_header_dirent=$ac_hdr; break
8158 fi
8159
8160 done
8161 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8162 if test $ac_header_dirent = dirent.h; then
8163   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8164 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8165 if test "${ac_cv_search_opendir+set}" = set; then
8166   echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168   ac_func_search_save_LIBS=$LIBS
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175
8176 /* Override any GCC internal prototype to avoid an error.
8177    Use char because int might match the return type of a GCC
8178    builtin and then its argument prototype would still apply.  */
8179 #ifdef __cplusplus
8180 extern "C"
8181 #endif
8182 char opendir ();
8183 int
8184 main ()
8185 {
8186 return opendir ();
8187   ;
8188   return 0;
8189 }
8190 _ACEOF
8191 for ac_lib in '' dir; do
8192   if test -z "$ac_lib"; then
8193     ac_res="none required"
8194   else
8195     ac_res=-l$ac_lib
8196     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8197   fi
8198   rm -f conftest.$ac_objext conftest$ac_exeext
8199 if { (ac_try="$ac_link"
8200 case "(($ac_try" in
8201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202   *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205   (eval "$ac_link") 2>conftest.er1
8206   ac_status=$?
8207   grep -v '^ *+' conftest.er1 >conftest.err
8208   rm -f conftest.er1
8209   cat conftest.err >&5
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } &&
8212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8213   { (case "(($ac_try" in
8214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215   *) ac_try_echo=$ac_try;;
8216 esac
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218   (eval "$ac_try") 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); }; } &&
8222          { ac_try='test -s conftest$ac_exeext'
8223   { (case "(($ac_try" in
8224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225   *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228   (eval "$ac_try") 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); }; }; then
8232   ac_cv_search_opendir=$ac_res
8233 else
8234   echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8236
8237
8238 fi
8239
8240 rm -f core conftest.err conftest.$ac_objext \
8241       conftest$ac_exeext
8242   if test "${ac_cv_search_opendir+set}" = set; then
8243   break
8244 fi
8245 done
8246 if test "${ac_cv_search_opendir+set}" = set; then
8247   :
8248 else
8249   ac_cv_search_opendir=no
8250 fi
8251 rm conftest.$ac_ext
8252 LIBS=$ac_func_search_save_LIBS
8253 fi
8254 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8255 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8256 ac_res=$ac_cv_search_opendir
8257 if test "$ac_res" != no; then
8258   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8259
8260 fi
8261
8262 else
8263   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8264 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8265 if test "${ac_cv_search_opendir+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   ac_func_search_save_LIBS=$LIBS
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275
8276 /* Override any GCC internal prototype to avoid an error.
8277    Use char because int might match the return type of a GCC
8278    builtin and then its argument prototype would still apply.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 char opendir ();
8283 int
8284 main ()
8285 {
8286 return opendir ();
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 for ac_lib in '' x; do
8292   if test -z "$ac_lib"; then
8293     ac_res="none required"
8294   else
8295     ac_res=-l$ac_lib
8296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8297   fi
8298   rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8300 case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_link") 2>conftest.er1
8306   ac_status=$?
8307   grep -v '^ *+' conftest.er1 >conftest.err
8308   rm -f conftest.er1
8309   cat conftest.err >&5
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } &&
8312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8313   { (case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_try") 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; } &&
8322          { ac_try='test -s conftest$ac_exeext'
8323   { (case "(($ac_try" in
8324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325   *) ac_try_echo=$ac_try;;
8326 esac
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328   (eval "$ac_try") 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; }; then
8332   ac_cv_search_opendir=$ac_res
8333 else
8334   echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337
8338 fi
8339
8340 rm -f core conftest.err conftest.$ac_objext \
8341       conftest$ac_exeext
8342   if test "${ac_cv_search_opendir+set}" = set; then
8343   break
8344 fi
8345 done
8346 if test "${ac_cv_search_opendir+set}" = set; then
8347   :
8348 else
8349   ac_cv_search_opendir=no
8350 fi
8351 rm conftest.$ac_ext
8352 LIBS=$ac_func_search_save_LIBS
8353 fi
8354 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8355 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8356 ac_res=$ac_cv_search_opendir
8357 if test "$ac_res" != no; then
8358   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8359
8360 fi
8361
8362 fi
8363
8364
8365 for ac_header in dlfcn.h
8366 do
8367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8369   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 fi
8374 ac_res=`eval echo '${'$as_ac_Header'}'`
8375                { echo "$as_me:$LINENO: result: $ac_res" >&5
8376 echo "${ECHO_T}$ac_res" >&6; }
8377 else
8378   # Is the header compilable?
8379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h.  */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h.  */
8387 $ac_includes_default
8388 #include <$ac_header>
8389 _ACEOF
8390 rm -f conftest.$ac_objext
8391 if { (ac_try="$ac_compile"
8392 case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_compile") 2>conftest.er1
8398   ac_status=$?
8399   grep -v '^ *+' conftest.er1 >conftest.err
8400   rm -f conftest.er1
8401   cat conftest.err >&5
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } &&
8404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8405   { (case "(($ac_try" in
8406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407   *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410   (eval "$ac_try") 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; } &&
8414          { ac_try='test -s conftest.$ac_objext'
8415   { (case "(($ac_try" in
8416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417   *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420   (eval "$ac_try") 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; }; then
8424   ac_header_compiler=yes
8425 else
8426   echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429         ac_header_compiler=no
8430 fi
8431
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8434 echo "${ECHO_T}$ac_header_compiler" >&6; }
8435
8436 # Is the header present?
8437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445 #include <$ac_header>
8446 _ACEOF
8447 if { (ac_try="$ac_cpp conftest.$ac_ext"
8448 case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8454   ac_status=$?
8455   grep -v '^ *+' conftest.er1 >conftest.err
8456   rm -f conftest.er1
8457   cat conftest.err >&5
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); } >/dev/null; then
8460   if test -s conftest.err; then
8461     ac_cpp_err=$ac_c_preproc_warn_flag
8462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8463   else
8464     ac_cpp_err=
8465   fi
8466 else
8467   ac_cpp_err=yes
8468 fi
8469 if test -z "$ac_cpp_err"; then
8470   ac_header_preproc=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475   ac_header_preproc=no
8476 fi
8477
8478 rm -f conftest.err conftest.$ac_ext
8479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8480 echo "${ECHO_T}$ac_header_preproc" >&6; }
8481
8482 # So?  What about this header?
8483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8484   yes:no: )
8485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8489     ac_header_preproc=yes
8490     ;;
8491   no:yes:* )
8492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8504     ( cat <<\_ASBOX
8505 ## ------------------------------------ ##
8506 ## Report this to http://llvm.org/bugs/ ##
8507 ## ------------------------------------ ##
8508 _ASBOX
8509      ) | sed "s/^/$as_me: WARNING:     /" >&2
8510     ;;
8511 esac
8512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517   eval "$as_ac_Header=\$ac_header_preproc"
8518 fi
8519 ac_res=`eval echo '${'$as_ac_Header'}'`
8520                { echo "$as_me:$LINENO: result: $ac_res" >&5
8521 echo "${ECHO_T}$ac_res" >&6; }
8522
8523 fi
8524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8525   cat >>confdefs.h <<_ACEOF
8526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8527 _ACEOF
8528
8529 fi
8530
8531 done
8532
8533 # Check whether --enable-ltdl-install was given.
8534 if test "${enable_ltdl_install+set}" = set; then
8535   enableval=$enable_ltdl_install;
8536 fi
8537
8538
8539
8540
8541 if test x"${enable_ltdl_install-no}" != xno; then
8542   INSTALL_LTDL_TRUE=
8543   INSTALL_LTDL_FALSE='#'
8544 else
8545   INSTALL_LTDL_TRUE='#'
8546   INSTALL_LTDL_FALSE=
8547 fi
8548
8549
8550
8551 if test x"${enable_ltdl_convenience-no}" != xno; then
8552   CONVENIENCE_LTDL_TRUE=
8553   CONVENIENCE_LTDL_FALSE='#'
8554 else
8555   CONVENIENCE_LTDL_TRUE='#'
8556   CONVENIENCE_LTDL_FALSE=
8557 fi
8558
8559
8560 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8562 library_names_spec=
8563 libname_spec='lib$name'
8564 soname_spec=
8565 shrext_cmds=".so"
8566 postinstall_cmds=
8567 postuninstall_cmds=
8568 finish_cmds=
8569 finish_eval=
8570 shlibpath_var=
8571 shlibpath_overrides_runpath=unknown
8572 version_type=none
8573 dynamic_linker="$host_os ld.so"
8574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8575 if test "$GCC" = yes; then
8576   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8577   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8578     # if the path contains ";" then we assume it to be the separator
8579     # otherwise default to the standard path separator (i.e. ":") - it is
8580     # assumed that no part of a normal pathname contains ";" but that should
8581     # okay in the real world where ";" in dirpaths is itself problematic.
8582     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8583   else
8584     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8585   fi
8586 else
8587   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8588 fi
8589 need_lib_prefix=unknown
8590 hardcode_into_libs=no
8591
8592 # when you set need_version to no, make sure it does not cause -set_version
8593 # flags to be left without arguments
8594 need_version=unknown
8595
8596 case $host_os in
8597 aix3*)
8598   version_type=linux
8599   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8600   shlibpath_var=LIBPATH
8601
8602   # AIX 3 has no versioning support, so we append a major version to the name.
8603   soname_spec='${libname}${release}${shared_ext}$major'
8604   ;;
8605
8606 aix4* | aix5*)
8607   version_type=linux
8608   need_lib_prefix=no
8609   need_version=no
8610   hardcode_into_libs=yes
8611   if test "$host_cpu" = ia64; then
8612     # AIX 5 supports IA64
8613     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8614     shlibpath_var=LD_LIBRARY_PATH
8615   else
8616     # With GCC up to 2.95.x, collect2 would create an import file
8617     # for dependence libraries.  The import file would start with
8618     # the line `#! .'.  This would cause the generated library to
8619     # depend on `.', always an invalid library.  This was fixed in
8620     # development snapshots of GCC prior to 3.0.
8621     case $host_os in
8622       aix4 | aix4.[01] | aix4.[01].*)
8623       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8624            echo ' yes '
8625            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8626         :
8627       else
8628         can_build_shared=no
8629       fi
8630       ;;
8631     esac
8632     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8633     # soname into executable. Probably we can add versioning support to
8634     # collect2, so additional links can be useful in future.
8635     if test "$aix_use_runtimelinking" = yes; then
8636       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8637       # instead of lib<name>.a to let people know that these are not
8638       # typical AIX shared libraries.
8639       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640     else
8641       # We preserve .a as extension for shared libraries through AIX4.2
8642       # and later when we are not doing run time linking.
8643       library_names_spec='${libname}${release}.a $libname.a'
8644       soname_spec='${libname}${release}${shared_ext}$major'
8645     fi
8646     shlibpath_var=LIBPATH
8647   fi
8648   ;;
8649
8650 amigaos*)
8651   library_names_spec='$libname.ixlibrary $libname.a'
8652   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8653   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'
8654   ;;
8655
8656 beos*)
8657   library_names_spec='${libname}${shared_ext}'
8658   dynamic_linker="$host_os ld.so"
8659   shlibpath_var=LIBRARY_PATH
8660   ;;
8661
8662 bsdi[45]*)
8663   version_type=linux
8664   need_version=no
8665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666   soname_spec='${libname}${release}${shared_ext}$major'
8667   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8668   shlibpath_var=LD_LIBRARY_PATH
8669   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8670   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8671   # the default ld.so.conf also contains /usr/contrib/lib and
8672   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8673   # libtool to hard-code these into programs
8674   ;;
8675
8676 cygwin* | mingw* | pw32*)
8677   version_type=windows
8678   shrext_cmds=".dll"
8679   need_version=no
8680   need_lib_prefix=no
8681
8682   case $GCC,$host_os in
8683   yes,cygwin* | yes,mingw* | yes,pw32*)
8684     library_names_spec='$libname.dll.a'
8685     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8686     postinstall_cmds='base_file=`basename \${file}`~
8687       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8688       dldir=$destdir/`dirname \$dlpath`~
8689       test -d \$dldir || mkdir -p \$dldir~
8690       $install_prog $dir/$dlname \$dldir/$dlname~
8691       chmod a+x \$dldir/$dlname'
8692     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8693       dlpath=$dir/\$dldll~
8694        $rm \$dlpath'
8695     shlibpath_overrides_runpath=yes
8696
8697     case $host_os in
8698     cygwin*)
8699       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8700       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8702       ;;
8703     mingw*)
8704       # MinGW DLLs use traditional 'lib' prefix
8705       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8706       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8707       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8708         # It is most probably a Windows format PATH printed by
8709         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8710         # path with ; separators, and with drive letters. We can handle the
8711         # drive letters (cygwin fileutils understands them), so leave them,
8712         # especially as we might pass files found there to a mingw objdump,
8713         # which wouldn't understand a cygwinified path. Ahh.
8714         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8715       else
8716         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8717       fi
8718       ;;
8719     pw32*)
8720       # pw32 DLLs use 'pw' prefix rather than 'lib'
8721       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8722       ;;
8723     esac
8724     ;;
8725
8726   *)
8727     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8728     ;;
8729   esac
8730   dynamic_linker='Win32 ld.exe'
8731   # FIXME: first we should search . and the directory the executable is in
8732   shlibpath_var=PATH
8733   ;;
8734
8735 darwin* | rhapsody*)
8736   dynamic_linker="$host_os dyld"
8737   version_type=darwin
8738   need_lib_prefix=no
8739   need_version=no
8740   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8741   soname_spec='${libname}${release}${major}$shared_ext'
8742   shlibpath_overrides_runpath=yes
8743   shlibpath_var=DYLD_LIBRARY_PATH
8744   shrext_cmds='.dylib'
8745   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8746   if test "$GCC" = yes; then
8747     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"`
8748   else
8749     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8750   fi
8751   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8752   ;;
8753
8754 dgux*)
8755   version_type=linux
8756   need_lib_prefix=no
8757   need_version=no
8758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8759   soname_spec='${libname}${release}${shared_ext}$major'
8760   shlibpath_var=LD_LIBRARY_PATH
8761   ;;
8762
8763 freebsd1.*)
8764   dynamic_linker=no
8765   ;;
8766
8767 kfreebsd*-gnu)
8768   version_type=linux
8769   need_lib_prefix=no
8770   need_version=no
8771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8772   soname_spec='${libname}${release}${shared_ext}$major'
8773   shlibpath_var=LD_LIBRARY_PATH
8774   shlibpath_overrides_runpath=no
8775   hardcode_into_libs=yes
8776   dynamic_linker='GNU ld.so'
8777   ;;
8778
8779 freebsd* | dragonfly*)
8780   # DragonFly does not have aout.  When/if they implement a new
8781   # versioning mechanism, adjust this.
8782   if test -x /usr/bin/objformat; then
8783     objformat=`/usr/bin/objformat`
8784   else
8785     case $host_os in
8786     freebsd[123].*) objformat=aout ;;
8787     *) objformat=elf ;;
8788     esac
8789   fi
8790   version_type=freebsd-$objformat
8791   case $version_type in
8792     freebsd-elf*)
8793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8794       need_version=no
8795       need_lib_prefix=no
8796       ;;
8797     freebsd-*)
8798       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8799       need_version=yes
8800       ;;
8801   esac
8802   shlibpath_var=LD_LIBRARY_PATH
8803   case $host_os in
8804   freebsd2.*)
8805     shlibpath_overrides_runpath=yes
8806     ;;
8807   freebsd3.[01]* | freebsdelf3.[01]*)
8808     shlibpath_overrides_runpath=yes
8809     hardcode_into_libs=yes
8810     ;;
8811   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8812   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8813     shlibpath_overrides_runpath=no
8814     hardcode_into_libs=yes
8815     ;;
8816   freebsd*) # from 4.6 on
8817     shlibpath_overrides_runpath=yes
8818     hardcode_into_libs=yes
8819     ;;
8820   esac
8821   ;;
8822
8823 gnu*)
8824   version_type=linux
8825   need_lib_prefix=no
8826   need_version=no
8827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8828   soname_spec='${libname}${release}${shared_ext}$major'
8829   shlibpath_var=LD_LIBRARY_PATH
8830   hardcode_into_libs=yes
8831   ;;
8832
8833 hpux9* | hpux10* | hpux11*)
8834   # Give a soname corresponding to the major version so that dld.sl refuses to
8835   # link against other versions.
8836   version_type=sunos
8837   need_lib_prefix=no
8838   need_version=no
8839   case $host_cpu in
8840   ia64*)
8841     shrext_cmds='.so'
8842     hardcode_into_libs=yes
8843     dynamic_linker="$host_os dld.so"
8844     shlibpath_var=LD_LIBRARY_PATH
8845     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847     soname_spec='${libname}${release}${shared_ext}$major'
8848     if test "X$HPUX_IA64_MODE" = X32; then
8849       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8850     else
8851       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8852     fi
8853     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8854     ;;
8855    hppa*64*)
8856      shrext_cmds='.sl'
8857      hardcode_into_libs=yes
8858      dynamic_linker="$host_os dld.sl"
8859      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8860      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8861      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862      soname_spec='${libname}${release}${shared_ext}$major'
8863      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8864      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8865      ;;
8866    *)
8867     shrext_cmds='.sl'
8868     dynamic_linker="$host_os dld.sl"
8869     shlibpath_var=SHLIB_PATH
8870     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872     soname_spec='${libname}${release}${shared_ext}$major'
8873     ;;
8874   esac
8875   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8876   postinstall_cmds='chmod 555 $lib'
8877   ;;
8878
8879 interix3*)
8880   version_type=linux
8881   need_lib_prefix=no
8882   need_version=no
8883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8884   soname_spec='${libname}${release}${shared_ext}$major'
8885   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8886   shlibpath_var=LD_LIBRARY_PATH
8887   shlibpath_overrides_runpath=no
8888   hardcode_into_libs=yes
8889   ;;
8890
8891 irix5* | irix6* | nonstopux*)
8892   case $host_os in
8893     nonstopux*) version_type=nonstopux ;;
8894     *)
8895         if test "$lt_cv_prog_gnu_ld" = yes; then
8896                 version_type=linux
8897         else
8898                 version_type=irix
8899         fi ;;
8900   esac
8901   need_lib_prefix=no
8902   need_version=no
8903   soname_spec='${libname}${release}${shared_ext}$major'
8904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8905   case $host_os in
8906   irix5* | nonstopux*)
8907     libsuff= shlibsuff=
8908     ;;
8909   *)
8910     case $LD in # libtool.m4 will add one of these switches to LD
8911     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8912       libsuff= shlibsuff= libmagic=32-bit;;
8913     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8914       libsuff=32 shlibsuff=N32 libmagic=N32;;
8915     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8916       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8917     *) libsuff= shlibsuff= libmagic=never-match;;
8918     esac
8919     ;;
8920   esac
8921   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8922   shlibpath_overrides_runpath=no
8923   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8924   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8925   hardcode_into_libs=yes
8926   ;;
8927
8928 # No shared lib support for Linux oldld, aout, or coff.
8929 linux*oldld* | linux*aout* | linux*coff*)
8930   dynamic_linker=no
8931   ;;
8932
8933 # This must be Linux ELF.
8934 linux*)
8935   version_type=linux
8936   need_lib_prefix=no
8937   need_version=no
8938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939   soname_spec='${libname}${release}${shared_ext}$major'
8940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8941   shlibpath_var=LD_LIBRARY_PATH
8942   shlibpath_overrides_runpath=no
8943   # This implies no fast_install, which is unacceptable.
8944   # Some rework will be needed to allow for fast_install
8945   # before this can be enabled.
8946   hardcode_into_libs=yes
8947
8948   # Append ld.so.conf contents to the search path
8949   if test -f /etc/ld.so.conf; then
8950     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' ' '`
8951     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8952   fi
8953
8954   # We used to test for /lib/ld.so.1 and disable shared libraries on
8955   # powerpc, because MkLinux only supported shared libraries with the
8956   # GNU dynamic linker.  Since this was broken with cross compilers,
8957   # most powerpc-linux boxes support dynamic linking these days and
8958   # people can always --disable-shared, the test was removed, and we
8959   # assume the GNU/Linux dynamic linker is in use.
8960   dynamic_linker='GNU/Linux ld.so'
8961   ;;
8962
8963 knetbsd*-gnu)
8964   version_type=linux
8965   need_lib_prefix=no
8966   need_version=no
8967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8968   soname_spec='${libname}${release}${shared_ext}$major'
8969   shlibpath_var=LD_LIBRARY_PATH
8970   shlibpath_overrides_runpath=no
8971   hardcode_into_libs=yes
8972   dynamic_linker='GNU ld.so'
8973   ;;
8974
8975 netbsd*)
8976   version_type=sunos
8977   need_lib_prefix=no
8978   need_version=no
8979   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8981     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8982     dynamic_linker='NetBSD (a.out) ld.so'
8983   else
8984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8985     soname_spec='${libname}${release}${shared_ext}$major'
8986     dynamic_linker='NetBSD ld.elf_so'
8987   fi
8988   shlibpath_var=LD_LIBRARY_PATH
8989   shlibpath_overrides_runpath=yes
8990   hardcode_into_libs=yes
8991   ;;
8992
8993 newsos6)
8994   version_type=linux
8995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996   shlibpath_var=LD_LIBRARY_PATH
8997   shlibpath_overrides_runpath=yes
8998   ;;
8999
9000 nto-qnx*)
9001   version_type=linux
9002   need_lib_prefix=no
9003   need_version=no
9004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005   soname_spec='${libname}${release}${shared_ext}$major'
9006   shlibpath_var=LD_LIBRARY_PATH
9007   shlibpath_overrides_runpath=yes
9008   ;;
9009
9010 openbsd* | bitrig*)
9011   version_type=sunos
9012   sys_lib_dlsearch_path_spec="/usr/lib"
9013   need_lib_prefix=no
9014   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9015   case $host_os in
9016     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9017     *)                         need_version=no  ;;
9018   esac
9019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9020   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9021   shlibpath_var=LD_LIBRARY_PATH
9022   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9023     case $host_os in
9024       openbsd2.[89] | openbsd2.[89].*)
9025         shlibpath_overrides_runpath=no
9026         ;;
9027       *)
9028         shlibpath_overrides_runpath=yes
9029         ;;
9030       esac
9031   else
9032     shlibpath_overrides_runpath=yes
9033   fi
9034   ;;
9035
9036 os2*)
9037   libname_spec='$name'
9038   shrext_cmds=".dll"
9039   need_lib_prefix=no
9040   library_names_spec='$libname${shared_ext} $libname.a'
9041   dynamic_linker='OS/2 ld.exe'
9042   shlibpath_var=LIBPATH
9043   ;;
9044
9045 osf3* | osf4* | osf5*)
9046   version_type=osf
9047   need_lib_prefix=no
9048   need_version=no
9049   soname_spec='${libname}${release}${shared_ext}$major'
9050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051   shlibpath_var=LD_LIBRARY_PATH
9052   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9053   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9054   ;;
9055
9056 solaris*)
9057   version_type=linux
9058   need_lib_prefix=no
9059   need_version=no
9060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061   soname_spec='${libname}${release}${shared_ext}$major'
9062   shlibpath_var=LD_LIBRARY_PATH
9063   shlibpath_overrides_runpath=yes
9064   hardcode_into_libs=yes
9065   # ldd complains unless libraries are executable
9066   postinstall_cmds='chmod +x $lib'
9067   ;;
9068
9069 sunos4*)
9070   version_type=sunos
9071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9072   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9073   shlibpath_var=LD_LIBRARY_PATH
9074   shlibpath_overrides_runpath=yes
9075   if test "$with_gnu_ld" = yes; then
9076     need_lib_prefix=no
9077   fi
9078   need_version=yes
9079   ;;
9080
9081 sysv4 | sysv4.3*)
9082   version_type=linux
9083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084   soname_spec='${libname}${release}${shared_ext}$major'
9085   shlibpath_var=LD_LIBRARY_PATH
9086   case $host_vendor in
9087     sni)
9088       shlibpath_overrides_runpath=no
9089       need_lib_prefix=no
9090       export_dynamic_flag_spec='${wl}-Blargedynsym'
9091       runpath_var=LD_RUN_PATH
9092       ;;
9093     siemens)
9094       need_lib_prefix=no
9095       ;;
9096     motorola)
9097       need_lib_prefix=no
9098       need_version=no
9099       shlibpath_overrides_runpath=no
9100       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9101       ;;
9102   esac
9103   ;;
9104
9105 sysv4*MP*)
9106   if test -d /usr/nec ;then
9107     version_type=linux
9108     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9109     soname_spec='$libname${shared_ext}.$major'
9110     shlibpath_var=LD_LIBRARY_PATH
9111   fi
9112   ;;
9113
9114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9115   version_type=freebsd-elf
9116   need_lib_prefix=no
9117   need_version=no
9118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9119   soname_spec='${libname}${release}${shared_ext}$major'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   hardcode_into_libs=yes
9122   if test "$with_gnu_ld" = yes; then
9123     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9124     shlibpath_overrides_runpath=no
9125   else
9126     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9127     shlibpath_overrides_runpath=yes
9128     case $host_os in
9129       sco3.2v5*)
9130         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9131         ;;
9132     esac
9133   fi
9134   sys_lib_dlsearch_path_spec='/usr/lib'
9135   ;;
9136
9137 uts4*)
9138   version_type=linux
9139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140   soname_spec='${libname}${release}${shared_ext}$major'
9141   shlibpath_var=LD_LIBRARY_PATH
9142   ;;
9143
9144 *)
9145   dynamic_linker=no
9146   ;;
9147 esac
9148 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9149 echo "${ECHO_T}$dynamic_linker" >&6; }
9150 test "$dynamic_linker" = no && can_build_shared=no
9151
9152 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9153 if test "$GCC" = yes; then
9154   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9155 fi
9156
9157
9158 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9159 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9160 if test "${libltdl_cv_shlibext+set}" = set; then
9161   echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163
9164 module=yes
9165 eval libltdl_cv_shlibext=$shrext_cmds
9166
9167 fi
9168 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9169 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9170 if test -n "$libltdl_cv_shlibext"; then
9171
9172 cat >>confdefs.h <<_ACEOF
9173 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9174 _ACEOF
9175
9176 fi
9177
9178
9179 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9180 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9181 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   libltdl_cv_shlibpath_var="$shlibpath_var"
9185 fi
9186 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9187 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9188 if test -n "$libltdl_cv_shlibpath_var"; then
9189
9190 cat >>confdefs.h <<_ACEOF
9191 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9192 _ACEOF
9193
9194 fi
9195
9196
9197 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9198 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9199 if test "${libltdl_cv_sys_search_path+set}" = set; then
9200   echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9203 fi
9204 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9205 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9206 if test -n "$libltdl_cv_sys_search_path"; then
9207   sys_search_path=
9208   for dir in $libltdl_cv_sys_search_path; do
9209     if test -z "$sys_search_path"; then
9210       sys_search_path="$dir"
9211     else
9212       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9213     fi
9214   done
9215
9216 cat >>confdefs.h <<_ACEOF
9217 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9218 _ACEOF
9219
9220 fi
9221
9222 { echo "$as_me:$LINENO: checking for objdir" >&5
9223 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9224 if test "${libltdl_cv_objdir+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227   libltdl_cv_objdir="$objdir"
9228   if test -n "$objdir"; then
9229     :
9230   else
9231     rm -f .libs 2>/dev/null
9232     mkdir .libs 2>/dev/null
9233     if test -d .libs; then
9234       libltdl_cv_objdir=.libs
9235     else
9236       # MS-DOS does not allow filenames that begin with a dot.
9237       libltdl_cv_objdir=_libs
9238     fi
9239   rmdir .libs 2>/dev/null
9240   fi
9241
9242 fi
9243 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9244 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9245
9246 cat >>confdefs.h <<_ACEOF
9247 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9248 _ACEOF
9249
9250
9251
9252
9253
9254
9255 # Check for command to grab the raw symbol name followed by C symbol from nm.
9256 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9257 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9258 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9259   echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261
9262 # These are sane defaults that work on at least a few old systems.
9263 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9264
9265 # Character class describing NM global symbol codes.
9266 symcode='[BCDEGRST]'
9267
9268 # Regexp to match symbols that can be accessed directly from C.
9269 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9270
9271 # Transform an extracted symbol line into a proper C declaration
9272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9273
9274 # Transform an extracted symbol line into symbol name and symbol address
9275 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'"
9276
9277 # Define system-specific variables.
9278 case $host_os in
9279 aix*)
9280   symcode='[BCDT]'
9281   ;;
9282 cygwin* | mingw* | pw32*)
9283   symcode='[ABCDGISTW]'
9284   ;;
9285 hpux*) # Its linker distinguishes data from code symbols
9286   if test "$host_cpu" = ia64; then
9287     symcode='[ABCDEGRST]'
9288   fi
9289   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9290   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'"
9291   ;;
9292 linux*)
9293   if test "$host_cpu" = ia64; then
9294     symcode='[ABCDGIRSTW]'
9295     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9296     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'"
9297   fi
9298   ;;
9299 irix* | nonstopux*)
9300   symcode='[BCDEGRST]'
9301   ;;
9302 osf*)
9303   symcode='[BCDEGQRST]'
9304   ;;
9305 solaris*)
9306   symcode='[BDRT]'
9307   ;;
9308 sco3.2v5*)
9309   symcode='[DT]'
9310   ;;
9311 sysv4.2uw2*)
9312   symcode='[DT]'
9313   ;;
9314 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9315   symcode='[ABDT]'
9316   ;;
9317 sysv4)
9318   symcode='[DFNSTU]'
9319   ;;
9320 esac
9321
9322 # Handle CRLF in mingw tool chain
9323 opt_cr=
9324 case $build_os in
9325 mingw*)
9326   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9327   ;;
9328 esac
9329
9330 # If we're using GNU nm, then use its standard symbol codes.
9331 case `$NM -V 2>&1` in
9332 *GNU* | *'with BFD'*)
9333   symcode='[ABCDGIRSTW]' ;;
9334 esac
9335
9336 # Try without a prefix undercore, then with it.
9337 for ac_symprfx in "" "_"; do
9338
9339   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9340   symxfrm="\\1 $ac_symprfx\\2 \\2"
9341
9342   # Write the raw and C identifiers.
9343   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9344
9345   # Check to see that the pipe works correctly.
9346   pipe_works=no
9347
9348   rm -f conftest*
9349   cat > conftest.$ac_ext <<EOF
9350 #ifdef __cplusplus
9351 extern "C" {
9352 #endif
9353 char nm_test_var;
9354 void nm_test_func(){}
9355 #ifdef __cplusplus
9356 }
9357 #endif
9358 int main(){nm_test_var='a';nm_test_func();return(0);}
9359 EOF
9360
9361   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362   (eval $ac_compile) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; then
9366     # Now try to grab the symbols.
9367     nlist=conftest.nm
9368     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9369   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9370   ac_status=$?
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } && test -s "$nlist"; then
9373       # Try sorting and uniquifying the output.
9374       if sort "$nlist" | uniq > "$nlist"T; then
9375         mv -f "$nlist"T "$nlist"
9376       else
9377         rm -f "$nlist"T
9378       fi
9379
9380       # Make sure that we snagged all the symbols we need.
9381       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9382         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9383           cat <<EOF > conftest.$ac_ext
9384 #ifdef __cplusplus
9385 extern "C" {
9386 #endif
9387
9388 EOF
9389           # Now generate the symbol file.
9390           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9391
9392           cat <<EOF >> conftest.$ac_ext
9393 #if defined (__STDC__) && __STDC__
9394 # define lt_ptr_t void *
9395 #else
9396 # define lt_ptr_t char *
9397 # define const
9398 #endif
9399
9400 /* The mapping between symbol names and symbols. */
9401 const struct {
9402   const char *name;
9403   lt_ptr_t address;
9404 }
9405 lt_preloaded_symbols[] =
9406 {
9407 EOF
9408           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9409           cat <<\EOF >> conftest.$ac_ext
9410   {0, (lt_ptr_t) 0}
9411 };
9412
9413 #ifdef __cplusplus
9414 }
9415 #endif
9416 EOF
9417           # Now try linking the two files.
9418           mv conftest.$ac_objext conftstm.$ac_objext
9419           lt_save_LIBS="$LIBS"
9420           lt_save_CFLAGS="$CFLAGS"
9421           LIBS="conftstm.$ac_objext"
9422           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9423           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9424   (eval $ac_link) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9428             pipe_works=yes
9429           fi
9430           LIBS="$lt_save_LIBS"
9431           CFLAGS="$lt_save_CFLAGS"
9432         else
9433           echo "cannot find nm_test_func in $nlist" >&5
9434         fi
9435       else
9436         echo "cannot find nm_test_var in $nlist" >&5
9437       fi
9438     else
9439       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9440     fi
9441   else
9442     echo "$progname: failed program was:" >&5
9443     cat conftest.$ac_ext >&5
9444   fi
9445   rm -f conftest* conftst*
9446
9447   # Do not use the global_symbol_pipe unless it works.
9448   if test "$pipe_works" = yes; then
9449     break
9450   else
9451     lt_cv_sys_global_symbol_pipe=
9452   fi
9453 done
9454
9455 fi
9456
9457 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9458   lt_cv_sys_global_symbol_to_cdecl=
9459 fi
9460 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9461   { echo "$as_me:$LINENO: result: failed" >&5
9462 echo "${ECHO_T}failed" >&6; }
9463 else
9464   { echo "$as_me:$LINENO: result: ok" >&5
9465 echo "${ECHO_T}ok" >&6; }
9466 fi
9467
9468
9469 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9470 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9471 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9475     libltdl_cv_preloaded_symbols=yes
9476   else
9477     libltdl_cv_preloaded_symbols=no
9478   fi
9479
9480 fi
9481 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9482 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9483 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9484
9485 cat >>confdefs.h <<\_ACEOF
9486 #define HAVE_PRELOADED_SYMBOLS 1
9487 _ACEOF
9488
9489 fi
9490
9491 LIBADD_DL=
9492
9493 ac_ext=c
9494 ac_cpp='$CPP $CPPFLAGS'
9495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9498
9499
9500 { echo "$as_me:$LINENO: checking for shl_load" >&5
9501 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9502 if test "${ac_cv_func_shl_load+set}" = set; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505   cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h.  */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h.  */
9511 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9513 #define shl_load innocuous_shl_load
9514
9515 /* System header to define __stub macros and hopefully few prototypes,
9516     which can conflict with char shl_load (); below.
9517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9518     <limits.h> exists even on freestanding compilers.  */
9519
9520 #ifdef __STDC__
9521 # include <limits.h>
9522 #else
9523 # include <assert.h>
9524 #endif
9525
9526 #undef shl_load
9527
9528 /* Override any GCC internal prototype to avoid an error.
9529    Use char because int might match the return type of a GCC
9530    builtin and then its argument prototype would still apply.  */
9531 #ifdef __cplusplus
9532 extern "C"
9533 #endif
9534 char shl_load ();
9535 /* The GNU C library defines this for functions which it implements
9536     to always fail with ENOSYS.  Some functions are actually named
9537     something starting with __ and the normal name is an alias.  */
9538 #if defined __stub_shl_load || defined __stub___shl_load
9539 choke me
9540 #endif
9541
9542 int
9543 main ()
9544 {
9545 return shl_load ();
9546   ;
9547   return 0;
9548 }
9549 _ACEOF
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (ac_try="$ac_link"
9552 case "(($ac_try" in
9553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554   *) ac_try_echo=$ac_try;;
9555 esac
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557   (eval "$ac_link") 2>conftest.er1
9558   ac_status=$?
9559   grep -v '^ *+' conftest.er1 >conftest.err
9560   rm -f conftest.er1
9561   cat conftest.err >&5
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } &&
9564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9565   { (case "(($ac_try" in
9566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567   *) ac_try_echo=$ac_try;;
9568 esac
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570   (eval "$ac_try") 2>&5
9571   ac_status=$?
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); }; } &&
9574          { ac_try='test -s conftest$ac_exeext'
9575   { (case "(($ac_try" in
9576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577   *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580   (eval "$ac_try") 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; }; then
9584   ac_cv_func_shl_load=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589         ac_cv_func_shl_load=no
9590 fi
9591
9592 rm -f core conftest.err conftest.$ac_objext \
9593       conftest$ac_exeext conftest.$ac_ext
9594 fi
9595 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9596 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9597 if test $ac_cv_func_shl_load = yes; then
9598
9599 cat >>confdefs.h <<\_ACEOF
9600 #define HAVE_SHL_LOAD 1
9601 _ACEOF
9602
9603 else
9604   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9605 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609   ac_check_lib_save_LIBS=$LIBS
9610 LIBS="-ldld  $LIBS"
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617
9618 /* Override any GCC internal prototype to avoid an error.
9619    Use char because int might match the return type of a GCC
9620    builtin and then its argument prototype would still apply.  */
9621 #ifdef __cplusplus
9622 extern "C"
9623 #endif
9624 char shl_load ();
9625 int
9626 main ()
9627 {
9628 return shl_load ();
9629   ;
9630   return 0;
9631 }
9632 _ACEOF
9633 rm -f conftest.$ac_objext conftest$ac_exeext
9634 if { (ac_try="$ac_link"
9635 case "(($ac_try" in
9636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637   *) ac_try_echo=$ac_try;;
9638 esac
9639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640   (eval "$ac_link") 2>conftest.er1
9641   ac_status=$?
9642   grep -v '^ *+' conftest.er1 >conftest.err
9643   rm -f conftest.er1
9644   cat conftest.err >&5
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); } &&
9647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9648   { (case "(($ac_try" in
9649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650   *) ac_try_echo=$ac_try;;
9651 esac
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653   (eval "$ac_try") 2>&5
9654   ac_status=$?
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); }; } &&
9657          { ac_try='test -s conftest$ac_exeext'
9658   { (case "(($ac_try" in
9659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660   *) ac_try_echo=$ac_try;;
9661 esac
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663   (eval "$ac_try") 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); }; }; then
9667   ac_cv_lib_dld_shl_load=yes
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672         ac_cv_lib_dld_shl_load=no
9673 fi
9674
9675 rm -f core conftest.err conftest.$ac_objext \
9676       conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_lib_save_LIBS
9678 fi
9679 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9680 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9681 if test $ac_cv_lib_dld_shl_load = yes; then
9682
9683 cat >>confdefs.h <<\_ACEOF
9684 #define HAVE_SHL_LOAD 1
9685 _ACEOF
9686
9687         LIBADD_DL="$LIBADD_DL -ldld"
9688 else
9689   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9690 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9691 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694   ac_check_lib_save_LIBS=$LIBS
9695 LIBS="-ldl  $LIBS"
9696 cat >conftest.$ac_ext <<_ACEOF
9697 /* confdefs.h.  */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h.  */
9702
9703 /* Override any GCC internal prototype to avoid an error.
9704    Use char because int might match the return type of a GCC
9705    builtin and then its argument prototype would still apply.  */
9706 #ifdef __cplusplus
9707 extern "C"
9708 #endif
9709 char dlopen ();
9710 int
9711 main ()
9712 {
9713 return dlopen ();
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (ac_try="$ac_link"
9720 case "(($ac_try" in
9721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722   *) ac_try_echo=$ac_try;;
9723 esac
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725   (eval "$ac_link") 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } &&
9732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9733   { (case "(($ac_try" in
9734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735   *) ac_try_echo=$ac_try;;
9736 esac
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738   (eval "$ac_try") 2>&5
9739   ac_status=$?
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); }; } &&
9742          { ac_try='test -s conftest$ac_exeext'
9743   { (case "(($ac_try" in
9744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745   *) ac_try_echo=$ac_try;;
9746 esac
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748   (eval "$ac_try") 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; }; then
9752   ac_cv_lib_dl_dlopen=yes
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757         ac_cv_lib_dl_dlopen=no
9758 fi
9759
9760 rm -f core conftest.err conftest.$ac_objext \
9761       conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_lib_save_LIBS
9763 fi
9764 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9765 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9766 if test $ac_cv_lib_dl_dlopen = yes; then
9767
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE_LIBDL 1
9770 _ACEOF
9771
9772                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9773 else
9774   cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h.  */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h.  */
9780 #if HAVE_DLFCN_H
9781 #  include <dlfcn.h>
9782 #endif
9783
9784 int
9785 main ()
9786 {
9787 dlopen(0, 0);
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (ac_try="$ac_link"
9794 case "(($ac_try" in
9795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796   *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799   (eval "$ac_link") 2>conftest.er1
9800   ac_status=$?
9801   grep -v '^ *+' conftest.er1 >conftest.err
9802   rm -f conftest.er1
9803   cat conftest.err >&5
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); } &&
9806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9807   { (case "(($ac_try" in
9808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809   *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812   (eval "$ac_try") 2>&5
9813   ac_status=$?
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); }; } &&
9816          { ac_try='test -s conftest$ac_exeext'
9817   { (case "(($ac_try" in
9818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819   *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822   (eval "$ac_try") 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; }; then
9826
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_LIBDL 1
9829 _ACEOF
9830  libltdl_cv_func_dlopen="yes"
9831 else
9832   echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9834
9835         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9836 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9837 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9838   echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840   ac_check_lib_save_LIBS=$LIBS
9841 LIBS="-lsvld  $LIBS"
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848
9849 /* Override any GCC internal prototype to avoid an error.
9850    Use char because int might match the return type of a GCC
9851    builtin and then its argument prototype would still apply.  */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 char dlopen ();
9856 int
9857 main ()
9858 {
9859 return dlopen ();
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (ac_try="$ac_link"
9866 case "(($ac_try" in
9867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868   *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871   (eval "$ac_link") 2>conftest.er1
9872   ac_status=$?
9873   grep -v '^ *+' conftest.er1 >conftest.err
9874   rm -f conftest.er1
9875   cat conftest.err >&5
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); } &&
9878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879   { (case "(($ac_try" in
9880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881   *) ac_try_echo=$ac_try;;
9882 esac
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884   (eval "$ac_try") 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; } &&
9888          { ac_try='test -s conftest$ac_exeext'
9889   { (case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_try") 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; }; then
9898   ac_cv_lib_svld_dlopen=yes
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903         ac_cv_lib_svld_dlopen=no
9904 fi
9905
9906 rm -f core conftest.err conftest.$ac_objext \
9907       conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9909 fi
9910 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9911 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9912 if test $ac_cv_lib_svld_dlopen = yes; then
9913
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_LIBDL 1
9916 _ACEOF
9917
9918                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9919 else
9920   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9921 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9922 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9923   echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925   ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-ldld  $LIBS"
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933
9934 /* Override any GCC internal prototype to avoid an error.
9935    Use char because int might match the return type of a GCC
9936    builtin and then its argument prototype would still apply.  */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char dld_link ();
9941 int
9942 main ()
9943 {
9944 return dld_link ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9951 case "(($ac_try" in
9952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953   *) ac_try_echo=$ac_try;;
9954 esac
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956   (eval "$ac_link") 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } &&
9963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9964   { (case "(($ac_try" in
9965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966   *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969   (eval "$ac_try") 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; } &&
9973          { ac_try='test -s conftest$ac_exeext'
9974   { (case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979   (eval "$ac_try") 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); }; }; then
9983   ac_cv_lib_dld_dld_link=yes
9984 else
9985   echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988         ac_cv_lib_dld_dld_link=no
9989 fi
9990
9991 rm -f core conftest.err conftest.$ac_objext \
9992       conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9994 fi
9995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9996 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9997 if test $ac_cv_lib_dld_dld_link = yes; then
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_DLD 1
10001 _ACEOF
10002
10003                 LIBADD_DL="$LIBADD_DL -ldld"
10004 else
10005   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10006 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10007 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10018 #define _dyld_func_lookup innocuous__dyld_func_lookup
10019
10020 /* System header to define __stub macros and hopefully few prototypes,
10021     which can conflict with char _dyld_func_lookup (); below.
10022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023     <limits.h> exists even on freestanding compilers.  */
10024
10025 #ifdef __STDC__
10026 # include <limits.h>
10027 #else
10028 # include <assert.h>
10029 #endif
10030
10031 #undef _dyld_func_lookup
10032
10033 /* Override any GCC internal prototype to avoid an error.
10034    Use char because int might match the return type of a GCC
10035    builtin and then its argument prototype would still apply.  */
10036 #ifdef __cplusplus
10037 extern "C"
10038 #endif
10039 char _dyld_func_lookup ();
10040 /* The GNU C library defines this for functions which it implements
10041     to always fail with ENOSYS.  Some functions are actually named
10042     something starting with __ and the normal name is an alias.  */
10043 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10044 choke me
10045 #endif
10046
10047 int
10048 main ()
10049 {
10050 return _dyld_func_lookup ();
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (ac_try="$ac_link"
10057 case "(($ac_try" in
10058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059   *) ac_try_echo=$ac_try;;
10060 esac
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062   (eval "$ac_link") 2>conftest.er1
10063   ac_status=$?
10064   grep -v '^ *+' conftest.er1 >conftest.err
10065   rm -f conftest.er1
10066   cat conftest.err >&5
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } &&
10069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10070   { (case "(($ac_try" in
10071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072   *) ac_try_echo=$ac_try;;
10073 esac
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075   (eval "$ac_try") 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); }; } &&
10079          { ac_try='test -s conftest$ac_exeext'
10080   { (case "(($ac_try" in
10081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082   *) ac_try_echo=$ac_try;;
10083 esac
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085   (eval "$ac_try") 2>&5
10086   ac_status=$?
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); }; }; then
10089   ac_cv_func__dyld_func_lookup=yes
10090 else
10091   echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10093
10094         ac_cv_func__dyld_func_lookup=no
10095 fi
10096
10097 rm -f core conftest.err conftest.$ac_objext \
10098       conftest$ac_exeext conftest.$ac_ext
10099 fi
10100 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10101 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10102 if test $ac_cv_func__dyld_func_lookup = yes; then
10103
10104 cat >>confdefs.h <<\_ACEOF
10105 #define HAVE_DYLD 1
10106 _ACEOF
10107
10108 fi
10109
10110
10111 fi
10112
10113
10114 fi
10115
10116
10117 fi
10118
10119 rm -f core conftest.err conftest.$ac_objext \
10120       conftest$ac_exeext conftest.$ac_ext
10121
10122 fi
10123
10124
10125 fi
10126
10127
10128 fi
10129
10130
10131 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10132 then
10133   lt_save_LIBS="$LIBS"
10134   LIBS="$LIBS $LIBADD_DL"
10135
10136 for ac_func in dlerror
10137 do
10138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10142   echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144   cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h.  */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h.  */
10150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10152 #define $ac_func innocuous_$ac_func
10153
10154 /* System header to define __stub macros and hopefully few prototypes,
10155     which can conflict with char $ac_func (); below.
10156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10157     <limits.h> exists even on freestanding compilers.  */
10158
10159 #ifdef __STDC__
10160 # include <limits.h>
10161 #else
10162 # include <assert.h>
10163 #endif
10164
10165 #undef $ac_func
10166
10167 /* Override any GCC internal prototype to avoid an error.
10168    Use char because int might match the return type of a GCC
10169    builtin and then its argument prototype would still apply.  */
10170 #ifdef __cplusplus
10171 extern "C"
10172 #endif
10173 char $ac_func ();
10174 /* The GNU C library defines this for functions which it implements
10175     to always fail with ENOSYS.  Some functions are actually named
10176     something starting with __ and the normal name is an alias.  */
10177 #if defined __stub_$ac_func || defined __stub___$ac_func
10178 choke me
10179 #endif
10180
10181 int
10182 main ()
10183 {
10184 return $ac_func ();
10185   ;
10186   return 0;
10187 }
10188 _ACEOF
10189 rm -f conftest.$ac_objext conftest$ac_exeext
10190 if { (ac_try="$ac_link"
10191 case "(($ac_try" in
10192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193   *) ac_try_echo=$ac_try;;
10194 esac
10195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10196   (eval "$ac_link") 2>conftest.er1
10197   ac_status=$?
10198   grep -v '^ *+' conftest.er1 >conftest.err
10199   rm -f conftest.er1
10200   cat conftest.err >&5
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); } &&
10203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10204   { (case "(($ac_try" in
10205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206   *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209   (eval "$ac_try") 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; } &&
10213          { ac_try='test -s conftest$ac_exeext'
10214   { (case "(($ac_try" in
10215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216   *) ac_try_echo=$ac_try;;
10217 esac
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219   (eval "$ac_try") 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); }; }; then
10223   eval "$as_ac_var=yes"
10224 else
10225   echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228         eval "$as_ac_var=no"
10229 fi
10230
10231 rm -f core conftest.err conftest.$ac_objext \
10232       conftest$ac_exeext conftest.$ac_ext
10233 fi
10234 ac_res=`eval echo '${'$as_ac_var'}'`
10235                { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10237 if test `eval echo '${'$as_ac_var'}'` = yes; then
10238   cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10240 _ACEOF
10241
10242 fi
10243 done
10244
10245   LIBS="$lt_save_LIBS"
10246 fi
10247 ac_ext=c
10248 ac_cpp='$CPP $CPPFLAGS'
10249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10252
10253
10254
10255 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10256 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10257 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10258   echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260   ac_cv_sys_symbol_underscore=no
10261   cat > conftest.$ac_ext <<EOF
10262 void nm_test_func(){}
10263 int main(){nm_test_func;return 0;}
10264 EOF
10265   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10266   (eval $ac_compile) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; then
10270     # Now try to grab the symbols.
10271     ac_nlist=conftest.nm
10272     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10273   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); } && test -s "$ac_nlist"; then
10277       # See whether the symbols have a leading underscore.
10278       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10279         ac_cv_sys_symbol_underscore=yes
10280       else
10281         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10282           :
10283         else
10284           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10285         fi
10286       fi
10287     else
10288       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10289     fi
10290   else
10291     echo "configure: failed program was:" >&5
10292     cat conftest.c >&5
10293   fi
10294   rm -rf conftest*
10295
10296 fi
10297 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10298 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10299
10300
10301 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10302   if test x"$libltdl_cv_func_dlopen" = xyes ||
10303      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10304         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10305 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10306 if test "${libltdl_cv_need_uscore+set}" = set; then
10307   echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309   libltdl_cv_need_uscore=unknown
10310           save_LIBS="$LIBS"
10311           LIBS="$LIBS $LIBADD_DL"
10312           if test "$cross_compiling" = yes; then :
10313   libltdl_cv_need_uscore=cross
10314 else
10315   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10316   lt_status=$lt_dlunknown
10317   cat > conftest.$ac_ext <<EOF
10318 #line 10318 "configure"
10319 #include "confdefs.h"
10320
10321 #if HAVE_DLFCN_H
10322 #include <dlfcn.h>
10323 #endif
10324
10325 #include <stdio.h>
10326
10327 #ifdef RTLD_GLOBAL
10328 #  define LT_DLGLOBAL           RTLD_GLOBAL
10329 #else
10330 #  ifdef DL_GLOBAL
10331 #    define LT_DLGLOBAL         DL_GLOBAL
10332 #  else
10333 #    define LT_DLGLOBAL         0
10334 #  endif
10335 #endif
10336
10337 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10338    find out it does not work in some platform. */
10339 #ifndef LT_DLLAZY_OR_NOW
10340 #  ifdef RTLD_LAZY
10341 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10342 #  else
10343 #    ifdef DL_LAZY
10344 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10345 #    else
10346 #      ifdef RTLD_NOW
10347 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10348 #      else
10349 #        ifdef DL_NOW
10350 #          define LT_DLLAZY_OR_NOW      DL_NOW
10351 #        else
10352 #          define LT_DLLAZY_OR_NOW      0
10353 #        endif
10354 #      endif
10355 #    endif
10356 #  endif
10357 #endif
10358
10359 #ifdef __cplusplus
10360 extern "C" void exit (int);
10361 #endif
10362
10363 void fnord() { int i=42;}
10364 int main ()
10365 {
10366   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10367   int status = $lt_dlunknown;
10368
10369   if (self)
10370     {
10371       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10372       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10373       /* dlclose (self); */
10374     }
10375   else
10376     puts (dlerror ());
10377
10378     exit (status);
10379 }
10380 EOF
10381   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382   (eval $ac_link) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10386     (./conftest; exit; ) >&5 2>/dev/null
10387     lt_status=$?
10388     case x$lt_status in
10389       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10390       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10391       x$lt_dlunknown|x*)  ;;
10392     esac
10393   else :
10394     # compilation failed
10395
10396   fi
10397 fi
10398 rm -fr conftest*
10399
10400           LIBS="$save_LIBS"
10401
10402 fi
10403 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10404 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10405   fi
10406 fi
10407
10408 if test x"$libltdl_cv_need_uscore" = xyes; then
10409
10410 cat >>confdefs.h <<\_ACEOF
10411 #define NEED_USCORE 1
10412 _ACEOF
10413
10414 fi
10415
10416
10417 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10418 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10419 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10420   echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422   # PORTME does your system automatically load deplibs for dlopen?
10423   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10424   # For now, we just catch OSes we know something about -- in the
10425   # future, we'll try test this programmatically.
10426   libltdl_cv_sys_dlopen_deplibs=unknown
10427   case "$host_os" in
10428   aix3*|aix4.1.*|aix4.2.*)
10429     # Unknown whether this is true for these versions of AIX, but
10430     # we want this `case' here to explicitly catch those versions.
10431     libltdl_cv_sys_dlopen_deplibs=unknown
10432     ;;
10433   aix[45]*)
10434     libltdl_cv_sys_dlopen_deplibs=yes
10435     ;;
10436   darwin*)
10437     # Assuming the user has installed a libdl from somewhere, this is true
10438     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10439     libltdl_cv_sys_dlopen_deplibs=yes
10440     ;;
10441   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10442     # GNU and its variants, using gnu ld.so (Glibc)
10443     libltdl_cv_sys_dlopen_deplibs=yes
10444     ;;
10445   hpux10*|hpux11*)
10446     libltdl_cv_sys_dlopen_deplibs=yes
10447     ;;
10448   interix*)
10449     libltdl_cv_sys_dlopen_deplibs=yes
10450     ;;
10451   irix[12345]*|irix6.[01]*)
10452     # Catch all versions of IRIX before 6.2, and indicate that we don't
10453     # know how it worked for any of those versions.
10454     libltdl_cv_sys_dlopen_deplibs=unknown
10455     ;;
10456   irix*)
10457     # The case above catches anything before 6.2, and it's known that
10458     # at 6.2 and later dlopen does load deplibs.
10459     libltdl_cv_sys_dlopen_deplibs=yes
10460     ;;
10461   netbsd*)
10462     libltdl_cv_sys_dlopen_deplibs=yes
10463     ;;
10464   openbsd*)
10465     libltdl_cv_sys_dlopen_deplibs=yes
10466     ;;
10467   osf[1234]*)
10468     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10469     # it did *not* use an RPATH in a shared library to find objects the
10470     # library depends on, so we explicitly say `no'.
10471     libltdl_cv_sys_dlopen_deplibs=no
10472     ;;
10473   osf5.0|osf5.0a|osf5.1)
10474     # dlopen *does* load deplibs and with the right loader patch applied
10475     # it even uses RPATH in a shared library to search for shared objects
10476     # that the library depends on, but there's no easy way to know if that
10477     # patch is installed.  Since this is the case, all we can really
10478     # say is unknown -- it depends on the patch being installed.  If
10479     # it is, this changes to `yes'.  Without it, it would be `no'.
10480     libltdl_cv_sys_dlopen_deplibs=unknown
10481     ;;
10482   osf*)
10483     # the two cases above should catch all versions of osf <= 5.1.  Read
10484     # the comments above for what we know about them.
10485     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10486     # is used to find them so we can finally say `yes'.
10487     libltdl_cv_sys_dlopen_deplibs=yes
10488     ;;
10489   solaris*)
10490     libltdl_cv_sys_dlopen_deplibs=yes
10491     ;;
10492   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10493     libltdl_cv_sys_dlopen_deplibs=yes
10494     ;;
10495   esac
10496
10497 fi
10498 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10499 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10500 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10501
10502 cat >>confdefs.h <<\_ACEOF
10503 #define LTDL_DLOPEN_DEPLIBS 1
10504 _ACEOF
10505
10506 fi
10507
10508
10509 for ac_header in argz.h
10510 do
10511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10513   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 fi
10518 ac_res=`eval echo '${'$as_ac_Header'}'`
10519                { echo "$as_me:$LINENO: result: $ac_res" >&5
10520 echo "${ECHO_T}$ac_res" >&6; }
10521 else
10522   # Is the header compilable?
10523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10525 cat >conftest.$ac_ext <<_ACEOF
10526 /* confdefs.h.  */
10527 _ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h.  */
10531 $ac_includes_default
10532 #include <$ac_header>
10533 _ACEOF
10534 rm -f conftest.$ac_objext
10535 if { (ac_try="$ac_compile"
10536 case "(($ac_try" in
10537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538   *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541   (eval "$ac_compile") 2>conftest.er1
10542   ac_status=$?
10543   grep -v '^ *+' conftest.er1 >conftest.err
10544   rm -f conftest.er1
10545   cat conftest.err >&5
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); } &&
10548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549   { (case "(($ac_try" in
10550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551   *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554   (eval "$ac_try") 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); }; } &&
10558          { ac_try='test -s conftest.$ac_objext'
10559   { (case "(($ac_try" in
10560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561   *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564   (eval "$ac_try") 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); }; }; then
10568   ac_header_compiler=yes
10569 else
10570   echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573         ac_header_compiler=no
10574 fi
10575
10576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10578 echo "${ECHO_T}$ac_header_compiler" >&6; }
10579
10580 # Is the header present?
10581 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10583 cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h.  */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h.  */
10589 #include <$ac_header>
10590 _ACEOF
10591 if { (ac_try="$ac_cpp conftest.$ac_ext"
10592 case "(($ac_try" in
10593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594   *) ac_try_echo=$ac_try;;
10595 esac
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10598   ac_status=$?
10599   grep -v '^ *+' conftest.er1 >conftest.err
10600   rm -f conftest.er1
10601   cat conftest.err >&5
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); } >/dev/null; then
10604   if test -s conftest.err; then
10605     ac_cpp_err=$ac_c_preproc_warn_flag
10606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10607   else
10608     ac_cpp_err=
10609   fi
10610 else
10611   ac_cpp_err=yes
10612 fi
10613 if test -z "$ac_cpp_err"; then
10614   ac_header_preproc=yes
10615 else
10616   echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619   ac_header_preproc=no
10620 fi
10621
10622 rm -f conftest.err conftest.$ac_ext
10623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10624 echo "${ECHO_T}$ac_header_preproc" >&6; }
10625
10626 # So?  What about this header?
10627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10628   yes:no: )
10629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10633     ac_header_preproc=yes
10634     ;;
10635   no:yes:* )
10636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10648     ( cat <<\_ASBOX
10649 ## ------------------------------------ ##
10650 ## Report this to http://llvm.org/bugs/ ##
10651 ## ------------------------------------ ##
10652 _ASBOX
10653      ) | sed "s/^/$as_me: WARNING:     /" >&2
10654     ;;
10655 esac
10656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661   eval "$as_ac_Header=\$ac_header_preproc"
10662 fi
10663 ac_res=`eval echo '${'$as_ac_Header'}'`
10664                { echo "$as_me:$LINENO: result: $ac_res" >&5
10665 echo "${ECHO_T}$ac_res" >&6; }
10666
10667 fi
10668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10669   cat >>confdefs.h <<_ACEOF
10670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10671 _ACEOF
10672
10673 fi
10674
10675 done
10676
10677
10678 { echo "$as_me:$LINENO: checking for error_t" >&5
10679 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10680 if test "${ac_cv_type_error_t+set}" = set; then
10681   echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683   cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h.  */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h.  */
10689 #if HAVE_ARGZ_H
10690 #  include <argz.h>
10691 #endif
10692
10693 typedef error_t ac__type_new_;
10694 int
10695 main ()
10696 {
10697 if ((ac__type_new_ *) 0)
10698   return 0;
10699 if (sizeof (ac__type_new_))
10700   return 0;
10701   ;
10702   return 0;
10703 }
10704 _ACEOF
10705 rm -f conftest.$ac_objext
10706 if { (ac_try="$ac_compile"
10707 case "(($ac_try" in
10708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709   *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712   (eval "$ac_compile") 2>conftest.er1
10713   ac_status=$?
10714   grep -v '^ *+' conftest.er1 >conftest.err
10715   rm -f conftest.er1
10716   cat conftest.err >&5
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); } &&
10719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10720   { (case "(($ac_try" in
10721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722   *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725   (eval "$ac_try") 2>&5
10726   ac_status=$?
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); }; } &&
10729          { ac_try='test -s conftest.$ac_objext'
10730   { (case "(($ac_try" in
10731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732   *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735   (eval "$ac_try") 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); }; }; then
10739   ac_cv_type_error_t=yes
10740 else
10741   echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10743
10744         ac_cv_type_error_t=no
10745 fi
10746
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748 fi
10749 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10750 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10751 if test $ac_cv_type_error_t = yes; then
10752
10753 cat >>confdefs.h <<_ACEOF
10754 #define HAVE_ERROR_T 1
10755 _ACEOF
10756
10757
10758 else
10759
10760 cat >>confdefs.h <<\_ACEOF
10761 #define error_t int
10762 _ACEOF
10763
10764 fi
10765
10766
10767
10768
10769
10770
10771
10772 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10773 do
10774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10778   echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780   cat >conftest.$ac_ext <<_ACEOF
10781 /* confdefs.h.  */
10782 _ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h.  */
10786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10788 #define $ac_func innocuous_$ac_func
10789
10790 /* System header to define __stub macros and hopefully few prototypes,
10791     which can conflict with char $ac_func (); below.
10792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10793     <limits.h> exists even on freestanding compilers.  */
10794
10795 #ifdef __STDC__
10796 # include <limits.h>
10797 #else
10798 # include <assert.h>
10799 #endif
10800
10801 #undef $ac_func
10802
10803 /* Override any GCC internal prototype to avoid an error.
10804    Use char because int might match the return type of a GCC
10805    builtin and then its argument prototype would still apply.  */
10806 #ifdef __cplusplus
10807 extern "C"
10808 #endif
10809 char $ac_func ();
10810 /* The GNU C library defines this for functions which it implements
10811     to always fail with ENOSYS.  Some functions are actually named
10812     something starting with __ and the normal name is an alias.  */
10813 #if defined __stub_$ac_func || defined __stub___$ac_func
10814 choke me
10815 #endif
10816
10817 int
10818 main ()
10819 {
10820 return $ac_func ();
10821   ;
10822   return 0;
10823 }
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829   *) ac_try_echo=$ac_try;;
10830 esac
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832   (eval "$ac_link") 2>conftest.er1
10833   ac_status=$?
10834   grep -v '^ *+' conftest.er1 >conftest.err
10835   rm -f conftest.er1
10836   cat conftest.err >&5
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } &&
10839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10840   { (case "(($ac_try" in
10841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842   *) ac_try_echo=$ac_try;;
10843 esac
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845   (eval "$ac_try") 2>&5
10846   ac_status=$?
10847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848   (exit $ac_status); }; } &&
10849          { ac_try='test -s conftest$ac_exeext'
10850   { (case "(($ac_try" in
10851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852   *) ac_try_echo=$ac_try;;
10853 esac
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855   (eval "$ac_try") 2>&5
10856   ac_status=$?
10857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858   (exit $ac_status); }; }; then
10859   eval "$as_ac_var=yes"
10860 else
10861   echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864         eval "$as_ac_var=no"
10865 fi
10866
10867 rm -f core conftest.err conftest.$ac_objext \
10868       conftest$ac_exeext conftest.$ac_ext
10869 fi
10870 ac_res=`eval echo '${'$as_ac_var'}'`
10871                { echo "$as_me:$LINENO: result: $ac_res" >&5
10872 echo "${ECHO_T}$ac_res" >&6; }
10873 if test `eval echo '${'$as_ac_var'}'` = yes; then
10874   cat >>confdefs.h <<_ACEOF
10875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10876 _ACEOF
10877
10878 fi
10879 done
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10909                   stdio.h unistd.h
10910 do
10911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10913   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10916   echo $ECHO_N "(cached) $ECHO_C" >&6
10917 fi
10918 ac_res=`eval echo '${'$as_ac_Header'}'`
10919                { echo "$as_me:$LINENO: result: $ac_res" >&5
10920 echo "${ECHO_T}$ac_res" >&6; }
10921 else
10922   # Is the header compilable?
10923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h.  */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h.  */
10931 $ac_includes_default
10932 #include <$ac_header>
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941   (eval "$ac_compile") 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } &&
10948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949   { (case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_try") 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; } &&
10958          { ac_try='test -s conftest.$ac_objext'
10959   { (case "(($ac_try" in
10960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961   *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964   (eval "$ac_try") 2>&5
10965   ac_status=$?
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); }; }; then
10968   ac_header_compiler=yes
10969 else
10970   echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10972
10973         ac_header_compiler=no
10974 fi
10975
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10978 echo "${ECHO_T}$ac_header_compiler" >&6; }
10979
10980 # Is the header present?
10981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h.  */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h.  */
10989 #include <$ac_header>
10990 _ACEOF
10991 if { (ac_try="$ac_cpp conftest.$ac_ext"
10992 case "(($ac_try" in
10993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994   *) ac_try_echo=$ac_try;;
10995 esac
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10998   ac_status=$?
10999   grep -v '^ *+' conftest.er1 >conftest.err
11000   rm -f conftest.er1
11001   cat conftest.err >&5
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); } >/dev/null; then
11004   if test -s conftest.err; then
11005     ac_cpp_err=$ac_c_preproc_warn_flag
11006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11007   else
11008     ac_cpp_err=
11009   fi
11010 else
11011   ac_cpp_err=yes
11012 fi
11013 if test -z "$ac_cpp_err"; then
11014   ac_header_preproc=yes
11015 else
11016   echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019   ac_header_preproc=no
11020 fi
11021
11022 rm -f conftest.err conftest.$ac_ext
11023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11024 echo "${ECHO_T}$ac_header_preproc" >&6; }
11025
11026 # So?  What about this header?
11027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11028   yes:no: )
11029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11033     ac_header_preproc=yes
11034     ;;
11035   no:yes:* )
11036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11048     ( cat <<\_ASBOX
11049 ## ------------------------------------ ##
11050 ## Report this to http://llvm.org/bugs/ ##
11051 ## ------------------------------------ ##
11052 _ASBOX
11053      ) | sed "s/^/$as_me: WARNING:     /" >&2
11054     ;;
11055 esac
11056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061   eval "$as_ac_Header=\$ac_header_preproc"
11062 fi
11063 ac_res=`eval echo '${'$as_ac_Header'}'`
11064                { echo "$as_me:$LINENO: result: $ac_res" >&5
11065 echo "${ECHO_T}$ac_res" >&6; }
11066
11067 fi
11068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11069   cat >>confdefs.h <<_ACEOF
11070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11071 _ACEOF
11072
11073 fi
11074
11075 done
11076
11077
11078
11079
11080
11081 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11082 do
11083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11085   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088   echo $ECHO_N "(cached) $ECHO_C" >&6
11089 fi
11090 ac_res=`eval echo '${'$as_ac_Header'}'`
11091                { echo "$as_me:$LINENO: result: $ac_res" >&5
11092 echo "${ECHO_T}$ac_res" >&6; }
11093 else
11094   # Is the header compilable?
11095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h.  */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h.  */
11103 $ac_includes_default
11104 #include <$ac_header>
11105 _ACEOF
11106 rm -f conftest.$ac_objext
11107 if { (ac_try="$ac_compile"
11108 case "(($ac_try" in
11109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110   *) ac_try_echo=$ac_try;;
11111 esac
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113   (eval "$ac_compile") 2>conftest.er1
11114   ac_status=$?
11115   grep -v '^ *+' conftest.er1 >conftest.err
11116   rm -f conftest.er1
11117   cat conftest.err >&5
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); } &&
11120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11121   { (case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126   (eval "$ac_try") 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); }; } &&
11130          { ac_try='test -s conftest.$ac_objext'
11131   { (case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136   (eval "$ac_try") 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; }; then
11140   ac_header_compiler=yes
11141 else
11142   echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11144
11145         ac_header_compiler=no
11146 fi
11147
11148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150 echo "${ECHO_T}$ac_header_compiler" >&6; }
11151
11152 # Is the header present?
11153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h.  */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h.  */
11161 #include <$ac_header>
11162 _ACEOF
11163 if { (ac_try="$ac_cpp conftest.$ac_ext"
11164 case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11170   ac_status=$?
11171   grep -v '^ *+' conftest.er1 >conftest.err
11172   rm -f conftest.er1
11173   cat conftest.err >&5
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); } >/dev/null; then
11176   if test -s conftest.err; then
11177     ac_cpp_err=$ac_c_preproc_warn_flag
11178     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11179   else
11180     ac_cpp_err=
11181   fi
11182 else
11183   ac_cpp_err=yes
11184 fi
11185 if test -z "$ac_cpp_err"; then
11186   ac_header_preproc=yes
11187 else
11188   echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11190
11191   ac_header_preproc=no
11192 fi
11193
11194 rm -f conftest.err conftest.$ac_ext
11195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11196 echo "${ECHO_T}$ac_header_preproc" >&6; }
11197
11198 # So?  What about this header?
11199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11200   yes:no: )
11201     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11205     ac_header_preproc=yes
11206     ;;
11207   no:yes:* )
11208     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11210     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11211 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11215 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11220     ( cat <<\_ASBOX
11221 ## ------------------------------------ ##
11222 ## Report this to http://llvm.org/bugs/ ##
11223 ## ------------------------------------ ##
11224 _ASBOX
11225      ) | sed "s/^/$as_me: WARNING:     /" >&2
11226     ;;
11227 esac
11228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233   eval "$as_ac_Header=\$ac_header_preproc"
11234 fi
11235 ac_res=`eval echo '${'$as_ac_Header'}'`
11236                { echo "$as_me:$LINENO: result: $ac_res" >&5
11237 echo "${ECHO_T}$ac_res" >&6; }
11238
11239 fi
11240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11241   cat >>confdefs.h <<_ACEOF
11242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11243 _ACEOF
11244
11245 fi
11246
11247 done
11248
11249
11250
11251 for ac_header in string.h strings.h
11252 do
11253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 fi
11260 ac_res=`eval echo '${'$as_ac_Header'}'`
11261                { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11263 else
11264   # Is the header compilable?
11265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267 cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h.  */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h.  */
11273 $ac_includes_default
11274 #include <$ac_header>
11275 _ACEOF
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_compile") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291   { (case "(($ac_try" in
11292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293   *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296   (eval "$ac_try") 2>&5
11297   ac_status=$?
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); }; } &&
11300          { ac_try='test -s conftest.$ac_objext'
11301   { (case "(($ac_try" in
11302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303   *) ac_try_echo=$ac_try;;
11304 esac
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306   (eval "$ac_try") 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; }; then
11310   ac_header_compiler=yes
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315         ac_header_compiler=no
11316 fi
11317
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320 echo "${ECHO_T}$ac_header_compiler" >&6; }
11321
11322 # Is the header present?
11323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331 #include <$ac_header>
11332 _ACEOF
11333 if { (ac_try="$ac_cpp conftest.$ac_ext"
11334 case "(($ac_try" in
11335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336   *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11340   ac_status=$?
11341   grep -v '^ *+' conftest.er1 >conftest.err
11342   rm -f conftest.er1
11343   cat conftest.err >&5
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } >/dev/null; then
11346   if test -s conftest.err; then
11347     ac_cpp_err=$ac_c_preproc_warn_flag
11348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11349   else
11350     ac_cpp_err=
11351   fi
11352 else
11353   ac_cpp_err=yes
11354 fi
11355 if test -z "$ac_cpp_err"; then
11356   ac_header_preproc=yes
11357 else
11358   echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361   ac_header_preproc=no
11362 fi
11363
11364 rm -f conftest.err conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366 echo "${ECHO_T}$ac_header_preproc" >&6; }
11367
11368 # So?  What about this header?
11369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370   yes:no: )
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375     ac_header_preproc=yes
11376     ;;
11377   no:yes:* )
11378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11381 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11385 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11390     ( cat <<\_ASBOX
11391 ## ------------------------------------ ##
11392 ## Report this to http://llvm.org/bugs/ ##
11393 ## ------------------------------------ ##
11394 _ASBOX
11395      ) | sed "s/^/$as_me: WARNING:     /" >&2
11396     ;;
11397 esac
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401   echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403   eval "$as_ac_Header=\$ac_header_preproc"
11404 fi
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406                { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11408
11409 fi
11410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411   cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11413 _ACEOF
11414  break
11415 fi
11416
11417 done
11418
11419
11420
11421
11422 for ac_func in strchr index
11423 do
11424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11428   echo $ECHO_N "(cached) $ECHO_C" >&6
11429 else
11430   cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h.  */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h.  */
11436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11438 #define $ac_func innocuous_$ac_func
11439
11440 /* System header to define __stub macros and hopefully few prototypes,
11441     which can conflict with char $ac_func (); below.
11442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11443     <limits.h> exists even on freestanding compilers.  */
11444
11445 #ifdef __STDC__
11446 # include <limits.h>
11447 #else
11448 # include <assert.h>
11449 #endif
11450
11451 #undef $ac_func
11452
11453 /* Override any GCC internal prototype to avoid an error.
11454    Use char because int might match the return type of a GCC
11455    builtin and then its argument prototype would still apply.  */
11456 #ifdef __cplusplus
11457 extern "C"
11458 #endif
11459 char $ac_func ();
11460 /* The GNU C library defines this for functions which it implements
11461     to always fail with ENOSYS.  Some functions are actually named
11462     something starting with __ and the normal name is an alias.  */
11463 #if defined __stub_$ac_func || defined __stub___$ac_func
11464 choke me
11465 #endif
11466
11467 int
11468 main ()
11469 {
11470 return $ac_func ();
11471   ;
11472   return 0;
11473 }
11474 _ACEOF
11475 rm -f conftest.$ac_objext conftest$ac_exeext
11476 if { (ac_try="$ac_link"
11477 case "(($ac_try" in
11478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479   *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482   (eval "$ac_link") 2>conftest.er1
11483   ac_status=$?
11484   grep -v '^ *+' conftest.er1 >conftest.err
11485   rm -f conftest.er1
11486   cat conftest.err >&5
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); } &&
11489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11490   { (case "(($ac_try" in
11491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492   *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495   (eval "$ac_try") 2>&5
11496   ac_status=$?
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); }; } &&
11499          { ac_try='test -s conftest$ac_exeext'
11500   { (case "(($ac_try" in
11501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502   *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505   (eval "$ac_try") 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }; }; then
11509   eval "$as_ac_var=yes"
11510 else
11511   echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514         eval "$as_ac_var=no"
11515 fi
11516
11517 rm -f core conftest.err conftest.$ac_objext \
11518       conftest$ac_exeext conftest.$ac_ext
11519 fi
11520 ac_res=`eval echo '${'$as_ac_var'}'`
11521                { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11523 if test `eval echo '${'$as_ac_var'}'` = yes; then
11524   cat >>confdefs.h <<_ACEOF
11525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11526 _ACEOF
11527  break
11528 fi
11529 done
11530
11531
11532
11533 for ac_func in strrchr rindex
11534 do
11535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11549 #define $ac_func innocuous_$ac_func
11550
11551 /* System header to define __stub macros and hopefully few prototypes,
11552     which can conflict with char $ac_func (); below.
11553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11554     <limits.h> exists even on freestanding compilers.  */
11555
11556 #ifdef __STDC__
11557 # include <limits.h>
11558 #else
11559 # include <assert.h>
11560 #endif
11561
11562 #undef $ac_func
11563
11564 /* Override any GCC internal prototype to avoid an error.
11565    Use char because int might match the return type of a GCC
11566    builtin and then its argument prototype would still apply.  */
11567 #ifdef __cplusplus
11568 extern "C"
11569 #endif
11570 char $ac_func ();
11571 /* The GNU C library defines this for functions which it implements
11572     to always fail with ENOSYS.  Some functions are actually named
11573     something starting with __ and the normal name is an alias.  */
11574 #if defined __stub_$ac_func || defined __stub___$ac_func
11575 choke me
11576 #endif
11577
11578 int
11579 main ()
11580 {
11581 return $ac_func ();
11582   ;
11583   return 0;
11584 }
11585 _ACEOF
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (ac_try="$ac_link"
11588 case "(($ac_try" in
11589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590   *) ac_try_echo=$ac_try;;
11591 esac
11592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593   (eval "$ac_link") 2>conftest.er1
11594   ac_status=$?
11595   grep -v '^ *+' conftest.er1 >conftest.err
11596   rm -f conftest.er1
11597   cat conftest.err >&5
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } &&
11600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11601   { (case "(($ac_try" in
11602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603   *) ac_try_echo=$ac_try;;
11604 esac
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606   (eval "$ac_try") 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; } &&
11610          { ac_try='test -s conftest$ac_exeext'
11611   { (case "(($ac_try" in
11612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613   *) ac_try_echo=$ac_try;;
11614 esac
11615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11616   (eval "$ac_try") 2>&5
11617   ac_status=$?
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); }; }; then
11620   eval "$as_ac_var=yes"
11621 else
11622   echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625         eval "$as_ac_var=no"
11626 fi
11627
11628 rm -f core conftest.err conftest.$ac_objext \
11629       conftest$ac_exeext conftest.$ac_ext
11630 fi
11631 ac_res=`eval echo '${'$as_ac_var'}'`
11632                { echo "$as_me:$LINENO: result: $ac_res" >&5
11633 echo "${ECHO_T}$ac_res" >&6; }
11634 if test `eval echo '${'$as_ac_var'}'` = yes; then
11635   cat >>confdefs.h <<_ACEOF
11636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11637 _ACEOF
11638  break
11639 fi
11640 done
11641
11642
11643
11644 for ac_func in memcpy bcopy
11645 do
11646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11650   echo $ECHO_N "(cached) $ECHO_C" >&6
11651 else
11652   cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h.  */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h.  */
11658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11660 #define $ac_func innocuous_$ac_func
11661
11662 /* System header to define __stub macros and hopefully few prototypes,
11663     which can conflict with char $ac_func (); below.
11664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11665     <limits.h> exists even on freestanding compilers.  */
11666
11667 #ifdef __STDC__
11668 # include <limits.h>
11669 #else
11670 # include <assert.h>
11671 #endif
11672
11673 #undef $ac_func
11674
11675 /* Override any GCC internal prototype to avoid an error.
11676    Use char because int might match the return type of a GCC
11677    builtin and then its argument prototype would still apply.  */
11678 #ifdef __cplusplus
11679 extern "C"
11680 #endif
11681 char $ac_func ();
11682 /* The GNU C library defines this for functions which it implements
11683     to always fail with ENOSYS.  Some functions are actually named
11684     something starting with __ and the normal name is an alias.  */
11685 #if defined __stub_$ac_func || defined __stub___$ac_func
11686 choke me
11687 #endif
11688
11689 int
11690 main ()
11691 {
11692 return $ac_func ();
11693   ;
11694   return 0;
11695 }
11696 _ACEOF
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (ac_try="$ac_link"
11699 case "(($ac_try" in
11700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701   *) ac_try_echo=$ac_try;;
11702 esac
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704   (eval "$ac_link") 2>conftest.er1
11705   ac_status=$?
11706   grep -v '^ *+' conftest.er1 >conftest.err
11707   rm -f conftest.er1
11708   cat conftest.err >&5
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); } &&
11711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11712   { (case "(($ac_try" in
11713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714   *) ac_try_echo=$ac_try;;
11715 esac
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717   (eval "$ac_try") 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; } &&
11721          { ac_try='test -s conftest$ac_exeext'
11722   { (case "(($ac_try" in
11723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724   *) ac_try_echo=$ac_try;;
11725 esac
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727   (eval "$ac_try") 2>&5
11728   ac_status=$?
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); }; }; then
11731   eval "$as_ac_var=yes"
11732 else
11733   echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736         eval "$as_ac_var=no"
11737 fi
11738
11739 rm -f core conftest.err conftest.$ac_objext \
11740       conftest$ac_exeext conftest.$ac_ext
11741 fi
11742 ac_res=`eval echo '${'$as_ac_var'}'`
11743                { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11745 if test `eval echo '${'$as_ac_var'}'` = yes; then
11746   cat >>confdefs.h <<_ACEOF
11747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11748 _ACEOF
11749  break
11750 fi
11751 done
11752
11753
11754
11755 for ac_func in memmove strcmp
11756 do
11757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11761   echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763   cat >conftest.$ac_ext <<_ACEOF
11764 /* confdefs.h.  */
11765 _ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h.  */
11769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11771 #define $ac_func innocuous_$ac_func
11772
11773 /* System header to define __stub macros and hopefully few prototypes,
11774     which can conflict with char $ac_func (); below.
11775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11776     <limits.h> exists even on freestanding compilers.  */
11777
11778 #ifdef __STDC__
11779 # include <limits.h>
11780 #else
11781 # include <assert.h>
11782 #endif
11783
11784 #undef $ac_func
11785
11786 /* Override any GCC internal prototype to avoid an error.
11787    Use char because int might match the return type of a GCC
11788    builtin and then its argument prototype would still apply.  */
11789 #ifdef __cplusplus
11790 extern "C"
11791 #endif
11792 char $ac_func ();
11793 /* The GNU C library defines this for functions which it implements
11794     to always fail with ENOSYS.  Some functions are actually named
11795     something starting with __ and the normal name is an alias.  */
11796 #if defined __stub_$ac_func || defined __stub___$ac_func
11797 choke me
11798 #endif
11799
11800 int
11801 main ()
11802 {
11803 return $ac_func ();
11804   ;
11805   return 0;
11806 }
11807 _ACEOF
11808 rm -f conftest.$ac_objext conftest$ac_exeext
11809 if { (ac_try="$ac_link"
11810 case "(($ac_try" in
11811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812   *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815   (eval "$ac_link") 2>conftest.er1
11816   ac_status=$?
11817   grep -v '^ *+' conftest.er1 >conftest.err
11818   rm -f conftest.er1
11819   cat conftest.err >&5
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); } &&
11822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11823   { (case "(($ac_try" in
11824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825   *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828   (eval "$ac_try") 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; } &&
11832          { ac_try='test -s conftest$ac_exeext'
11833   { (case "(($ac_try" in
11834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835   *) ac_try_echo=$ac_try;;
11836 esac
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838   (eval "$ac_try") 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; }; then
11842   eval "$as_ac_var=yes"
11843 else
11844   echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11846
11847         eval "$as_ac_var=no"
11848 fi
11849
11850 rm -f core conftest.err conftest.$ac_objext \
11851       conftest$ac_exeext conftest.$ac_ext
11852 fi
11853 ac_res=`eval echo '${'$as_ac_var'}'`
11854                { echo "$as_me:$LINENO: result: $ac_res" >&5
11855 echo "${ECHO_T}$ac_res" >&6; }
11856 if test `eval echo '${'$as_ac_var'}'` = yes; then
11857   cat >>confdefs.h <<_ACEOF
11858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11859 _ACEOF
11860
11861 fi
11862 done
11863
11864
11865
11866
11867 for ac_func in closedir opendir readdir
11868 do
11869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11873   echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875   cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h.  */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h.  */
11881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11883 #define $ac_func innocuous_$ac_func
11884
11885 /* System header to define __stub macros and hopefully few prototypes,
11886     which can conflict with char $ac_func (); below.
11887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888     <limits.h> exists even on freestanding compilers.  */
11889
11890 #ifdef __STDC__
11891 # include <limits.h>
11892 #else
11893 # include <assert.h>
11894 #endif
11895
11896 #undef $ac_func
11897
11898 /* Override any GCC internal prototype to avoid an error.
11899    Use char because int might match the return type of a GCC
11900    builtin and then its argument prototype would still apply.  */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char $ac_func ();
11905 /* The GNU C library defines this for functions which it implements
11906     to always fail with ENOSYS.  Some functions are actually named
11907     something starting with __ and the normal name is an alias.  */
11908 #if defined __stub_$ac_func || defined __stub___$ac_func
11909 choke me
11910 #endif
11911
11912 int
11913 main ()
11914 {
11915 return $ac_func ();
11916   ;
11917   return 0;
11918 }
11919 _ACEOF
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924   *) ac_try_echo=$ac_try;;
11925 esac
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927   (eval "$ac_link") 2>conftest.er1
11928   ac_status=$?
11929   grep -v '^ *+' conftest.er1 >conftest.err
11930   rm -f conftest.er1
11931   cat conftest.err >&5
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); } &&
11934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11944          { ac_try='test -s conftest$ac_exeext'
11945   { (case "(($ac_try" in
11946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947   *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950   (eval "$ac_try") 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; }; then
11954   eval "$as_ac_var=yes"
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959         eval "$as_ac_var=no"
11960 fi
11961
11962 rm -f core conftest.err conftest.$ac_objext \
11963       conftest$ac_exeext conftest.$ac_ext
11964 fi
11965 ac_res=`eval echo '${'$as_ac_var'}'`
11966                { echo "$as_me:$LINENO: result: $ac_res" >&5
11967 echo "${ECHO_T}$ac_res" >&6; }
11968 if test `eval echo '${'$as_ac_var'}'` = yes; then
11969   cat >>confdefs.h <<_ACEOF
11970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11971 _ACEOF
11972
11973 fi
11974 done
11975
11976
11977
11978 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11979 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11980
11981 ICC=no
11982 IXX=no
11983 case $CC in
11984   icc*|icpc*)
11985     ICC=yes
11986     IXX=yes
11987     ;;
11988    *)
11989     ;;
11990 esac
11991
11992 if test "$GCC" != "yes" && test "$ICC" != "yes"
11993 then
11994   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11995 echo "$as_me: error: gcc|icc required but not found" >&2;}
11996    { (exit 1); exit 1; }; }
11997 fi
11998
11999 if test "$GXX" != "yes" && test "$IXX" != "yes"
12000 then
12001   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12002 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12003    { (exit 1); exit 1; }; }
12004 fi
12005
12006 if test "$GCC" = "yes"
12007 then
12008   cat >conftest.$ac_ext <<_ACEOF
12009 #if !defined(__GNUC__) || __GNUC__ < 3
12010 #error Unsupported GCC version
12011 #endif
12012
12013 _ACEOF
12014 rm -f conftest.$ac_objext
12015 if { (ac_try="$ac_compile"
12016 case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021   (eval "$ac_compile") 2>conftest.er1
12022   ac_status=$?
12023   grep -v '^ *+' conftest.er1 >conftest.err
12024   rm -f conftest.er1
12025   cat conftest.err >&5
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } &&
12028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12029   { (case "(($ac_try" in
12030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031   *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034   (eval "$ac_try") 2>&5
12035   ac_status=$?
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); }; } &&
12038          { ac_try='test -s conftest.$ac_objext'
12039   { (case "(($ac_try" in
12040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041   *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044   (eval "$ac_try") 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048   :
12049 else
12050   echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12054 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12055    { (exit 1); exit 1; }; }
12056 fi
12057
12058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059 fi
12060
12061 if test -z "$llvm_cv_gnu_make_command"
12062 then
12063   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12064 echo "$as_me: error: GNU Make required but not found" >&2;}
12065    { (exit 1); exit 1; }; }
12066 fi
12067
12068 { echo "$as_me:$LINENO: result: ok" >&5
12069 echo "${ECHO_T}ok" >&6; }
12070
12071 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12072 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12073 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12074
12075 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12076
12077 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12078
12079 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12080 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12081
12082
12083
12084 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12085 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12086 if test "${ac_cv_lib_m_sin+set}" = set; then
12087   echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089   ac_check_lib_save_LIBS=$LIBS
12090 LIBS="-lm  $LIBS"
12091 cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h.  */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h.  */
12097
12098 /* Override any GCC internal prototype to avoid an error.
12099    Use char because int might match the return type of a GCC
12100    builtin and then its argument prototype would still apply.  */
12101 #ifdef __cplusplus
12102 extern "C"
12103 #endif
12104 char sin ();
12105 int
12106 main ()
12107 {
12108 return sin ();
12109   ;
12110   return 0;
12111 }
12112 _ACEOF
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (ac_try="$ac_link"
12115 case "(($ac_try" in
12116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117   *) ac_try_echo=$ac_try;;
12118 esac
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120   (eval "$ac_link") 2>conftest.er1
12121   ac_status=$?
12122   grep -v '^ *+' conftest.er1 >conftest.err
12123   rm -f conftest.er1
12124   cat conftest.err >&5
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); } &&
12127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12128   { (case "(($ac_try" in
12129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130   *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133   (eval "$ac_try") 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); }; } &&
12137          { ac_try='test -s conftest$ac_exeext'
12138   { (case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_try") 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_lib_m_sin=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152         ac_cv_lib_m_sin=no
12153 fi
12154
12155 rm -f core conftest.err conftest.$ac_objext \
12156       conftest$ac_exeext conftest.$ac_ext
12157 LIBS=$ac_check_lib_save_LIBS
12158 fi
12159 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12160 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12161 if test $ac_cv_lib_m_sin = yes; then
12162   cat >>confdefs.h <<_ACEOF
12163 #define HAVE_LIBM 1
12164 _ACEOF
12165
12166   LIBS="-lm $LIBS"
12167
12168 fi
12169
12170 if test "$llvm_cv_os_type" = "MingW" ; then
12171
12172 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12173 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12174 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   ac_check_lib_save_LIBS=$LIBS
12178 LIBS="-limagehlp  $LIBS"
12179 cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h.  */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h.  */
12185
12186
12187 int
12188 main ()
12189 {
12190 return main ();
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12203   ac_status=$?
12204   grep -v '^ *+' conftest.er1 >conftest.err
12205   rm -f conftest.er1
12206   cat conftest.err >&5
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); } &&
12209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210   { (case "(($ac_try" in
12211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212   *) ac_try_echo=$ac_try;;
12213 esac
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215   (eval "$ac_try") 2>&5
12216   ac_status=$?
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); }; } &&
12219          { ac_try='test -s conftest$ac_exeext'
12220   { (case "(($ac_try" in
12221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222   *) ac_try_echo=$ac_try;;
12223 esac
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225   (eval "$ac_try") 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   ac_cv_lib_imagehlp_main=yes
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234         ac_cv_lib_imagehlp_main=no
12235 fi
12236
12237 rm -f core conftest.err conftest.$ac_objext \
12238       conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12242 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12243 if test $ac_cv_lib_imagehlp_main = yes; then
12244   cat >>confdefs.h <<_ACEOF
12245 #define HAVE_LIBIMAGEHLP 1
12246 _ACEOF
12247
12248   LIBS="-limagehlp $LIBS"
12249
12250 fi
12251
12252
12253 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12254 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12255 if test "${ac_cv_lib_psapi_main+set}" = set; then
12256   echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258   ac_check_lib_save_LIBS=$LIBS
12259 LIBS="-lpsapi  $LIBS"
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h.  */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h.  */
12266
12267
12268 int
12269 main ()
12270 {
12271 return main ();
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (ac_try="$ac_link"
12278 case "(($ac_try" in
12279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280   *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283   (eval "$ac_link") 2>conftest.er1
12284   ac_status=$?
12285   grep -v '^ *+' conftest.er1 >conftest.err
12286   rm -f conftest.er1
12287   cat conftest.err >&5
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); } &&
12290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12300          { ac_try='test -s conftest$ac_exeext'
12301   { (case "(($ac_try" in
12302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303   *) ac_try_echo=$ac_try;;
12304 esac
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306   (eval "$ac_try") 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; }; then
12310   ac_cv_lib_psapi_main=yes
12311 else
12312   echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315         ac_cv_lib_psapi_main=no
12316 fi
12317
12318 rm -f core conftest.err conftest.$ac_objext \
12319       conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12321 fi
12322 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12323 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12324 if test $ac_cv_lib_psapi_main = yes; then
12325   cat >>confdefs.h <<_ACEOF
12326 #define HAVE_LIBPSAPI 1
12327 _ACEOF
12328
12329   LIBS="-lpsapi $LIBS"
12330
12331 fi
12332
12333 fi
12334
12335 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12336 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12337 if test "${ac_cv_search_dlopen+set}" = set; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   ac_func_search_save_LIBS=$LIBS
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347
12348 /* Override any GCC internal prototype to avoid an error.
12349    Use char because int might match the return type of a GCC
12350    builtin and then its argument prototype would still apply.  */
12351 #ifdef __cplusplus
12352 extern "C"
12353 #endif
12354 char dlopen ();
12355 int
12356 main ()
12357 {
12358 return dlopen ();
12359   ;
12360   return 0;
12361 }
12362 _ACEOF
12363 for ac_lib in '' dl; do
12364   if test -z "$ac_lib"; then
12365     ac_res="none required"
12366   else
12367     ac_res=-l$ac_lib
12368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12369   fi
12370   rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (ac_try="$ac_link"
12372 case "(($ac_try" in
12373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374   *) ac_try_echo=$ac_try;;
12375 esac
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377   (eval "$ac_link") 2>conftest.er1
12378   ac_status=$?
12379   grep -v '^ *+' conftest.er1 >conftest.err
12380   rm -f conftest.er1
12381   cat conftest.err >&5
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); } &&
12384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12385   { (case "(($ac_try" in
12386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387   *) ac_try_echo=$ac_try;;
12388 esac
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390   (eval "$ac_try") 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; } &&
12394          { ac_try='test -s conftest$ac_exeext'
12395   { (case "(($ac_try" in
12396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397   *) ac_try_echo=$ac_try;;
12398 esac
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400   (eval "$ac_try") 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); }; }; then
12404   ac_cv_search_dlopen=$ac_res
12405 else
12406   echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12408
12409
12410 fi
12411
12412 rm -f core conftest.err conftest.$ac_objext \
12413       conftest$ac_exeext
12414   if test "${ac_cv_search_dlopen+set}" = set; then
12415   break
12416 fi
12417 done
12418 if test "${ac_cv_search_dlopen+set}" = set; then
12419   :
12420 else
12421   ac_cv_search_dlopen=no
12422 fi
12423 rm conftest.$ac_ext
12424 LIBS=$ac_func_search_save_LIBS
12425 fi
12426 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12427 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12428 ac_res=$ac_cv_search_dlopen
12429 if test "$ac_res" != no; then
12430   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12431
12432 cat >>confdefs.h <<\_ACEOF
12433 #define HAVE_DLOPEN 1
12434 _ACEOF
12435
12436 else
12437   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12438 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12439 fi
12440
12441
12442 if test "$llvm_cv_enable_libffi" = "yes" ; then
12443   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12444 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12445 if test "${ac_cv_search_ffi_call+set}" = set; then
12446   echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448   ac_func_search_save_LIBS=$LIBS
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h.  */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h.  */
12455
12456 /* Override any GCC internal prototype to avoid an error.
12457    Use char because int might match the return type of a GCC
12458    builtin and then its argument prototype would still apply.  */
12459 #ifdef __cplusplus
12460 extern "C"
12461 #endif
12462 char ffi_call ();
12463 int
12464 main ()
12465 {
12466 return ffi_call ();
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 for ac_lib in '' ffi; do
12472   if test -z "$ac_lib"; then
12473     ac_res="none required"
12474   else
12475     ac_res=-l$ac_lib
12476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12477   fi
12478   rm -f conftest.$ac_objext conftest$ac_exeext
12479 if { (ac_try="$ac_link"
12480 case "(($ac_try" in
12481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482   *) ac_try_echo=$ac_try;;
12483 esac
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485   (eval "$ac_link") 2>conftest.er1
12486   ac_status=$?
12487   grep -v '^ *+' conftest.er1 >conftest.err
12488   rm -f conftest.er1
12489   cat conftest.err >&5
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } &&
12492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12493   { (case "(($ac_try" in
12494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495   *) ac_try_echo=$ac_try;;
12496 esac
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498   (eval "$ac_try") 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; } &&
12502          { ac_try='test -s conftest$ac_exeext'
12503   { (case "(($ac_try" in
12504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505   *) ac_try_echo=$ac_try;;
12506 esac
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508   (eval "$ac_try") 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); }; }; then
12512   ac_cv_search_ffi_call=$ac_res
12513 else
12514   echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12516
12517
12518 fi
12519
12520 rm -f core conftest.err conftest.$ac_objext \
12521       conftest$ac_exeext
12522   if test "${ac_cv_search_ffi_call+set}" = set; then
12523   break
12524 fi
12525 done
12526 if test "${ac_cv_search_ffi_call+set}" = set; then
12527   :
12528 else
12529   ac_cv_search_ffi_call=no
12530 fi
12531 rm conftest.$ac_ext
12532 LIBS=$ac_func_search_save_LIBS
12533 fi
12534 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12535 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12536 ac_res=$ac_cv_search_ffi_call
12537 if test "$ac_res" != no; then
12538   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12539
12540 cat >>confdefs.h <<\_ACEOF
12541 #define HAVE_FFI_CALL 1
12542 _ACEOF
12543
12544 else
12545   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12546 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12547    { (exit 1); exit 1; }; }
12548 fi
12549
12550 fi
12551
12552 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12553 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12554 if test "${ac_cv_search_mallinfo+set}" = set; then
12555   echo $ECHO_N "(cached) $ECHO_C" >&6
12556 else
12557   ac_func_search_save_LIBS=$LIBS
12558 cat >conftest.$ac_ext <<_ACEOF
12559 /* confdefs.h.  */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h.  */
12564
12565 /* Override any GCC internal prototype to avoid an error.
12566    Use char because int might match the return type of a GCC
12567    builtin and then its argument prototype would still apply.  */
12568 #ifdef __cplusplus
12569 extern "C"
12570 #endif
12571 char mallinfo ();
12572 int
12573 main ()
12574 {
12575 return mallinfo ();
12576   ;
12577   return 0;
12578 }
12579 _ACEOF
12580 for ac_lib in '' malloc; do
12581   if test -z "$ac_lib"; then
12582     ac_res="none required"
12583   else
12584     ac_res=-l$ac_lib
12585     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12586   fi
12587   rm -f conftest.$ac_objext conftest$ac_exeext
12588 if { (ac_try="$ac_link"
12589 case "(($ac_try" in
12590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591   *) ac_try_echo=$ac_try;;
12592 esac
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594   (eval "$ac_link") 2>conftest.er1
12595   ac_status=$?
12596   grep -v '^ *+' conftest.er1 >conftest.err
12597   rm -f conftest.er1
12598   cat conftest.err >&5
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } &&
12601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12602   { (case "(($ac_try" in
12603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604   *) ac_try_echo=$ac_try;;
12605 esac
12606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607   (eval "$ac_try") 2>&5
12608   ac_status=$?
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   (exit $ac_status); }; } &&
12611          { ac_try='test -s conftest$ac_exeext'
12612   { (case "(($ac_try" in
12613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614   *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617   (eval "$ac_try") 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); }; }; then
12621   ac_cv_search_mallinfo=$ac_res
12622 else
12623   echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12625
12626
12627 fi
12628
12629 rm -f core conftest.err conftest.$ac_objext \
12630       conftest$ac_exeext
12631   if test "${ac_cv_search_mallinfo+set}" = set; then
12632   break
12633 fi
12634 done
12635 if test "${ac_cv_search_mallinfo+set}" = set; then
12636   :
12637 else
12638   ac_cv_search_mallinfo=no
12639 fi
12640 rm conftest.$ac_ext
12641 LIBS=$ac_func_search_save_LIBS
12642 fi
12643 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12644 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12645 ac_res=$ac_cv_search_mallinfo
12646 if test "$ac_res" != no; then
12647   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12648
12649 cat >>confdefs.h <<\_ACEOF
12650 #define HAVE_MALLINFO 1
12651 _ACEOF
12652
12653 fi
12654
12655
12656 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12657
12658 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12659 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12660 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12661   echo $ECHO_N "(cached) $ECHO_C" >&6
12662 else
12663   ac_check_lib_save_LIBS=$LIBS
12664 LIBS="-lpthread  $LIBS"
12665 cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h.  */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h.  */
12671
12672 /* Override any GCC internal prototype to avoid an error.
12673    Use char because int might match the return type of a GCC
12674    builtin and then its argument prototype would still apply.  */
12675 #ifdef __cplusplus
12676 extern "C"
12677 #endif
12678 char pthread_mutex_init ();
12679 int
12680 main ()
12681 {
12682 return pthread_mutex_init ();
12683   ;
12684   return 0;
12685 }
12686 _ACEOF
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (ac_try="$ac_link"
12689 case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694   (eval "$ac_link") 2>conftest.er1
12695   ac_status=$?
12696   grep -v '^ *+' conftest.er1 >conftest.err
12697   rm -f conftest.er1
12698   cat conftest.err >&5
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } &&
12701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702   { (case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707   (eval "$ac_try") 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; } &&
12711          { ac_try='test -s conftest$ac_exeext'
12712   { (case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_try") 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; }; then
12721   ac_cv_lib_pthread_pthread_mutex_init=yes
12722 else
12723   echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726         ac_cv_lib_pthread_pthread_mutex_init=no
12727 fi
12728
12729 rm -f core conftest.err conftest.$ac_objext \
12730       conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_check_lib_save_LIBS
12732 fi
12733 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12734 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12735 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12736   cat >>confdefs.h <<_ACEOF
12737 #define HAVE_LIBPTHREAD 1
12738 _ACEOF
12739
12740   LIBS="-lpthread $LIBS"
12741
12742 fi
12743
12744   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12745 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12746 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12747   echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749   ac_func_search_save_LIBS=$LIBS
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756
12757 /* Override any GCC internal prototype to avoid an error.
12758    Use char because int might match the return type of a GCC
12759    builtin and then its argument prototype would still apply.  */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 char pthread_mutex_lock ();
12764 int
12765 main ()
12766 {
12767 return pthread_mutex_lock ();
12768   ;
12769   return 0;
12770 }
12771 _ACEOF
12772 for ac_lib in '' pthread; do
12773   if test -z "$ac_lib"; then
12774     ac_res="none required"
12775   else
12776     ac_res=-l$ac_lib
12777     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12778   fi
12779   rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783   *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786   (eval "$ac_link") 2>conftest.er1
12787   ac_status=$?
12788   grep -v '^ *+' conftest.er1 >conftest.err
12789   rm -f conftest.er1
12790   cat conftest.err >&5
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } &&
12793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12794   { (case "(($ac_try" in
12795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796   *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799   (eval "$ac_try") 2>&5
12800   ac_status=$?
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); }; } &&
12803          { ac_try='test -s conftest$ac_exeext'
12804   { (case "(($ac_try" in
12805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806   *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809   (eval "$ac_try") 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); }; }; then
12813   ac_cv_search_pthread_mutex_lock=$ac_res
12814 else
12815   echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12817
12818
12819 fi
12820
12821 rm -f core conftest.err conftest.$ac_objext \
12822       conftest$ac_exeext
12823   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12824   break
12825 fi
12826 done
12827 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12828   :
12829 else
12830   ac_cv_search_pthread_mutex_lock=no
12831 fi
12832 rm conftest.$ac_ext
12833 LIBS=$ac_func_search_save_LIBS
12834 fi
12835 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12836 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12837 ac_res=$ac_cv_search_pthread_mutex_lock
12838 if test "$ac_res" != no; then
12839   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12840
12841 cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_PTHREAD_MUTEX_LOCK 1
12843 _ACEOF
12844
12845 fi
12846
12847   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12848 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12849 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12850   echo $ECHO_N "(cached) $ECHO_C" >&6
12851 else
12852   ac_func_search_save_LIBS=$LIBS
12853 cat >conftest.$ac_ext <<_ACEOF
12854 /* confdefs.h.  */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h.  */
12859
12860 /* Override any GCC internal prototype to avoid an error.
12861    Use char because int might match the return type of a GCC
12862    builtin and then its argument prototype would still apply.  */
12863 #ifdef __cplusplus
12864 extern "C"
12865 #endif
12866 char pthread_rwlock_init ();
12867 int
12868 main ()
12869 {
12870 return pthread_rwlock_init ();
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 for ac_lib in '' pthread; do
12876   if test -z "$ac_lib"; then
12877     ac_res="none required"
12878   else
12879     ac_res=-l$ac_lib
12880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12881   fi
12882   rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (ac_try="$ac_link"
12884 case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889   (eval "$ac_link") 2>conftest.er1
12890   ac_status=$?
12891   grep -v '^ *+' conftest.er1 >conftest.err
12892   rm -f conftest.er1
12893   cat conftest.err >&5
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); } &&
12896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897   { (case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_try") 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; } &&
12906          { ac_try='test -s conftest$ac_exeext'
12907   { (case "(($ac_try" in
12908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909   *) ac_try_echo=$ac_try;;
12910 esac
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912   (eval "$ac_try") 2>&5
12913   ac_status=$?
12914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915   (exit $ac_status); }; }; then
12916   ac_cv_search_pthread_rwlock_init=$ac_res
12917 else
12918   echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12920
12921
12922 fi
12923
12924 rm -f core conftest.err conftest.$ac_objext \
12925       conftest$ac_exeext
12926   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12927   break
12928 fi
12929 done
12930 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12931   :
12932 else
12933   ac_cv_search_pthread_rwlock_init=no
12934 fi
12935 rm conftest.$ac_ext
12936 LIBS=$ac_func_search_save_LIBS
12937 fi
12938 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12939 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12940 ac_res=$ac_cv_search_pthread_rwlock_init
12941 if test "$ac_res" != no; then
12942   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12943
12944 cat >>confdefs.h <<\_ACEOF
12945 #define HAVE_PTHREAD_RWLOCK_INIT 1
12946 _ACEOF
12947
12948 fi
12949
12950   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12951 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12952 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   ac_func_search_save_LIBS=$LIBS
12956 cat >conftest.$ac_ext <<_ACEOF
12957 /* confdefs.h.  */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h.  */
12962
12963 /* Override any GCC internal prototype to avoid an error.
12964    Use char because int might match the return type of a GCC
12965    builtin and then its argument prototype would still apply.  */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 char pthread_getspecific ();
12970 int
12971 main ()
12972 {
12973 return pthread_getspecific ();
12974   ;
12975   return 0;
12976 }
12977 _ACEOF
12978 for ac_lib in '' pthread; do
12979   if test -z "$ac_lib"; then
12980     ac_res="none required"
12981   else
12982     ac_res=-l$ac_lib
12983     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12984   fi
12985   rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989   *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992   (eval "$ac_link") 2>conftest.er1
12993   ac_status=$?
12994   grep -v '^ *+' conftest.er1 >conftest.err
12995   rm -f conftest.er1
12996   cat conftest.err >&5
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); } &&
12999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13000   { (case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005   (eval "$ac_try") 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); }; } &&
13009          { ac_try='test -s conftest$ac_exeext'
13010   { (case "(($ac_try" in
13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012   *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015   (eval "$ac_try") 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; }; then
13019   ac_cv_search_pthread_getspecific=$ac_res
13020 else
13021   echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024
13025 fi
13026
13027 rm -f core conftest.err conftest.$ac_objext \
13028       conftest$ac_exeext
13029   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13030   break
13031 fi
13032 done
13033 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13034   :
13035 else
13036   ac_cv_search_pthread_getspecific=no
13037 fi
13038 rm conftest.$ac_ext
13039 LIBS=$ac_func_search_save_LIBS
13040 fi
13041 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13042 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13043 ac_res=$ac_cv_search_pthread_getspecific
13044 if test "$ac_res" != no; then
13045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13046
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_PTHREAD_GETSPECIFIC 1
13049 _ACEOF
13050
13051 fi
13052
13053 fi
13054
13055
13056 # Check whether --with-udis86 was given.
13057 if test "${with_udis86+set}" = set; then
13058   withval=$with_udis86;
13059       USE_UDIS86=1
13060
13061       case "$withval" in
13062         /usr/lib|yes) ;;
13063         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13064       esac
13065
13066 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13067 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13068 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13069   echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071   ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-ludis86  $LIBS"
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081    Use char because int might match the return type of a GCC
13082    builtin and then its argument prototype would still apply.  */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char ud_init ();
13087 int
13088 main ()
13089 {
13090 return ud_init ();
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (ac_try="$ac_link"
13097 case "(($ac_try" in
13098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099   *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102   (eval "$ac_link") 2>conftest.er1
13103   ac_status=$?
13104   grep -v '^ *+' conftest.er1 >conftest.err
13105   rm -f conftest.er1
13106   cat conftest.err >&5
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); } &&
13109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13110   { (case "(($ac_try" in
13111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112   *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115   (eval "$ac_try") 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; } &&
13119          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; }; then
13129   ac_cv_lib_udis86_ud_init=yes
13130 else
13131   echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13133
13134         ac_cv_lib_udis86_ud_init=no
13135 fi
13136
13137 rm -f core conftest.err conftest.$ac_objext \
13138       conftest$ac_exeext conftest.$ac_ext
13139 LIBS=$ac_check_lib_save_LIBS
13140 fi
13141 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13142 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13143 if test $ac_cv_lib_udis86_ud_init = yes; then
13144   cat >>confdefs.h <<_ACEOF
13145 #define HAVE_LIBUDIS86 1
13146 _ACEOF
13147
13148   LIBS="-ludis86 $LIBS"
13149
13150 else
13151
13152         echo "Error! You need to have libudis86 around."
13153         exit -1
13154
13155 fi
13156
13157
13158 else
13159   USE_UDIS86=0
13160
13161 fi
13162
13163
13164 cat >>confdefs.h <<_ACEOF
13165 #define USE_UDIS86 $USE_UDIS86
13166 _ACEOF
13167
13168
13169
13170 # Check whether --with-oprofile was given.
13171 if test "${with_oprofile+set}" = set; then
13172   withval=$with_oprofile;
13173       USE_OPROFILE=1
13174
13175       case "$withval" in
13176         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13177         no) llvm_cv_oppath=
13178             USE_OPROFILE=0
13179  ;;
13180         *) llvm_cv_oppath="${withval}/lib/oprofile"
13181            CPPFLAGS="-I${withval}/include";;
13182       esac
13183       case $llvm_cv_os_type in
13184         Linux)
13185           if test -n "$llvm_cv_oppath" ; then
13186             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13187                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13188 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13189 if test "${ac_cv_search_bfd_init+set}" = set; then
13190   echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192   ac_func_search_save_LIBS=$LIBS
13193 cat >conftest.$ac_ext <<_ACEOF
13194 /* confdefs.h.  */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h.  */
13199
13200 /* Override any GCC internal prototype to avoid an error.
13201    Use char because int might match the return type of a GCC
13202    builtin and then its argument prototype would still apply.  */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 char bfd_init ();
13207 int
13208 main ()
13209 {
13210 return bfd_init ();
13211   ;
13212   return 0;
13213 }
13214 _ACEOF
13215 for ac_lib in '' bfd; do
13216   if test -z "$ac_lib"; then
13217     ac_res="none required"
13218   else
13219     ac_res=-l$ac_lib
13220     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13221   fi
13222   rm -f conftest.$ac_objext conftest$ac_exeext
13223 if { (ac_try="$ac_link"
13224 case "(($ac_try" in
13225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226   *) ac_try_echo=$ac_try;;
13227 esac
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229   (eval "$ac_link") 2>conftest.er1
13230   ac_status=$?
13231   grep -v '^ *+' conftest.er1 >conftest.err
13232   rm -f conftest.er1
13233   cat conftest.err >&5
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } &&
13236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13237   { (case "(($ac_try" in
13238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239   *) ac_try_echo=$ac_try;;
13240 esac
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242   (eval "$ac_try") 2>&5
13243   ac_status=$?
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); }; } &&
13246          { ac_try='test -s conftest$ac_exeext'
13247   { (case "(($ac_try" in
13248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249   *) ac_try_echo=$ac_try;;
13250 esac
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252   (eval "$ac_try") 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; }; then
13256   ac_cv_search_bfd_init=$ac_res
13257 else
13258   echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261
13262 fi
13263
13264 rm -f core conftest.err conftest.$ac_objext \
13265       conftest$ac_exeext
13266   if test "${ac_cv_search_bfd_init+set}" = set; then
13267   break
13268 fi
13269 done
13270 if test "${ac_cv_search_bfd_init+set}" = set; then
13271   :
13272 else
13273   ac_cv_search_bfd_init=no
13274 fi
13275 rm conftest.$ac_ext
13276 LIBS=$ac_func_search_save_LIBS
13277 fi
13278 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13279 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13280 ac_res=$ac_cv_search_bfd_init
13281 if test "$ac_res" != no; then
13282   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13283
13284 fi
13285
13286             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13287 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13288 if test "${ac_cv_search_op_open_agent+set}" = set; then
13289   echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291   ac_func_search_save_LIBS=$LIBS
13292 cat >conftest.$ac_ext <<_ACEOF
13293 /* confdefs.h.  */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h.  */
13298
13299 /* Override any GCC internal prototype to avoid an error.
13300    Use char because int might match the return type of a GCC
13301    builtin and then its argument prototype would still apply.  */
13302 #ifdef __cplusplus
13303 extern "C"
13304 #endif
13305 char op_open_agent ();
13306 int
13307 main ()
13308 {
13309 return op_open_agent ();
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 for ac_lib in '' opagent; do
13315   if test -z "$ac_lib"; then
13316     ac_res="none required"
13317   else
13318     ac_res=-l$ac_lib
13319     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13320   fi
13321   rm -f conftest.$ac_objext conftest$ac_exeext
13322 if { (ac_try="$ac_link"
13323 case "(($ac_try" in
13324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325   *) ac_try_echo=$ac_try;;
13326 esac
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328   (eval "$ac_link") 2>conftest.er1
13329   ac_status=$?
13330   grep -v '^ *+' conftest.er1 >conftest.err
13331   rm -f conftest.er1
13332   cat conftest.err >&5
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); } &&
13335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13336   { (case "(($ac_try" in
13337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338   *) ac_try_echo=$ac_try;;
13339 esac
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341   (eval "$ac_try") 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); }; } &&
13345          { ac_try='test -s conftest$ac_exeext'
13346   { (case "(($ac_try" in
13347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348   *) ac_try_echo=$ac_try;;
13349 esac
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351   (eval "$ac_try") 2>&5
13352   ac_status=$?
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); }; }; then
13355   ac_cv_search_op_open_agent=$ac_res
13356 else
13357   echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13359
13360
13361 fi
13362
13363 rm -f core conftest.err conftest.$ac_objext \
13364       conftest$ac_exeext
13365   if test "${ac_cv_search_op_open_agent+set}" = set; then
13366   break
13367 fi
13368 done
13369 if test "${ac_cv_search_op_open_agent+set}" = set; then
13370   :
13371 else
13372   ac_cv_search_op_open_agent=no
13373 fi
13374 rm conftest.$ac_ext
13375 LIBS=$ac_func_search_save_LIBS
13376 fi
13377 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13378 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13379 ac_res=$ac_cv_search_op_open_agent
13380 if test "$ac_res" != no; then
13381   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13382
13383 else
13384
13385               echo "Error! You need to have libopagent around."
13386               exit -1
13387
13388 fi
13389
13390             if test "${ac_cv_header_opagent_h+set}" = set; then
13391   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13392 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13393 if test "${ac_cv_header_opagent_h+set}" = set; then
13394   echo $ECHO_N "(cached) $ECHO_C" >&6
13395 fi
13396 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13397 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13398 else
13399   # Is the header compilable?
13400 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13401 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h.  */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h.  */
13408 $ac_includes_default
13409 #include <opagent.h>
13410 _ACEOF
13411 rm -f conftest.$ac_objext
13412 if { (ac_try="$ac_compile"
13413 case "(($ac_try" in
13414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415   *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418   (eval "$ac_compile") 2>conftest.er1
13419   ac_status=$?
13420   grep -v '^ *+' conftest.er1 >conftest.err
13421   rm -f conftest.er1
13422   cat conftest.err >&5
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); } &&
13425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426   { (case "(($ac_try" in
13427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428   *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431   (eval "$ac_try") 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; } &&
13435          { ac_try='test -s conftest.$ac_objext'
13436   { (case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_try") 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_header_compiler=yes
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450         ac_header_compiler=no
13451 fi
13452
13453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13455 echo "${ECHO_T}$ac_header_compiler" >&6; }
13456
13457 # Is the header present?
13458 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13459 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13460 cat >conftest.$ac_ext <<_ACEOF
13461 /* confdefs.h.  */
13462 _ACEOF
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h.  */
13466 #include <opagent.h>
13467 _ACEOF
13468 if { (ac_try="$ac_cpp conftest.$ac_ext"
13469 case "(($ac_try" in
13470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471   *) ac_try_echo=$ac_try;;
13472 esac
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13475   ac_status=$?
13476   grep -v '^ *+' conftest.er1 >conftest.err
13477   rm -f conftest.er1
13478   cat conftest.err >&5
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); } >/dev/null; then
13481   if test -s conftest.err; then
13482     ac_cpp_err=$ac_c_preproc_warn_flag
13483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13484   else
13485     ac_cpp_err=
13486   fi
13487 else
13488   ac_cpp_err=yes
13489 fi
13490 if test -z "$ac_cpp_err"; then
13491   ac_header_preproc=yes
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496   ac_header_preproc=no
13497 fi
13498
13499 rm -f conftest.err conftest.$ac_ext
13500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13501 echo "${ECHO_T}$ac_header_preproc" >&6; }
13502
13503 # So?  What about this header?
13504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13505   yes:no: )
13506     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13507 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13508     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13509 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13510     ac_header_preproc=yes
13511     ;;
13512   no:yes:* )
13513     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13514 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13515     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13516 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13517     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13518 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13519     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13520 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13521     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13522 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13523     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13524 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13525     ( cat <<\_ASBOX
13526 ## ------------------------------------ ##
13527 ## Report this to http://llvm.org/bugs/ ##
13528 ## ------------------------------------ ##
13529 _ASBOX
13530      ) | sed "s/^/$as_me: WARNING:     /" >&2
13531     ;;
13532 esac
13533 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13534 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13535 if test "${ac_cv_header_opagent_h+set}" = set; then
13536   echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538   ac_cv_header_opagent_h=$ac_header_preproc
13539 fi
13540 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13541 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13542
13543 fi
13544 if test $ac_cv_header_opagent_h = yes; then
13545   :
13546 else
13547
13548               echo "Error! You need to have opagent.h around."
13549               exit -1
13550
13551 fi
13552
13553
13554           fi ;;
13555         *)
13556           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13557 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13558    { (exit 1); exit 1; }; } ;;
13559       esac
13560
13561 else
13562
13563       USE_OPROFILE=0
13564
13565
13566 fi
13567
13568
13569 cat >>confdefs.h <<_ACEOF
13570 #define LLVM_USE_OPROFILE $USE_OPROFILE
13571 _ACEOF
13572
13573
13574
13575 # Check whether --with-intel-jitevents was given.
13576 if test "${with_intel_jitevents+set}" = set; then
13577   withval=$with_intel_jitevents;
13578        case "$withval" in
13579           yes) USE_INTEL_JITEVENTS=1
13580 ;;
13581           no)  USE_INTEL_JITEVENTS=0
13582 ;;
13583           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13584 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13585    { (exit 1); exit 1; }; };;
13586        esac
13587
13588       case $llvm_cv_os_type in
13589         Linux|Win32|Cygwin|MingW) ;;
13590         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13591 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13592    { (exit 1); exit 1; }; };;
13593       esac
13594
13595       case "$llvm_cv_target_arch" in
13596         x86|x86_64) ;;
13597         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13598 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13599    { (exit 1); exit 1; }; };;
13600       esac
13601
13602 else
13603
13604       USE_INTEL_JITEVENTS=0
13605
13606
13607 fi
13608
13609
13610 cat >>confdefs.h <<_ACEOF
13611 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13612 _ACEOF
13613
13614
13615 for ac_prog in xml2-config
13616 do
13617   # Extract the first word of "$ac_prog", so it can be a program name with args.
13618 set dummy $ac_prog; ac_word=$2
13619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13621 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13622   echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624   if test -n "$XML2CONFIG"; then
13625   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13629 do
13630   IFS=$as_save_IFS
13631   test -z "$as_dir" && as_dir=.
13632   for ac_exec_ext in '' $ac_executable_extensions; do
13633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13634     ac_cv_prog_XML2CONFIG="$ac_prog"
13635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13636     break 2
13637   fi
13638 done
13639 done
13640 IFS=$as_save_IFS
13641
13642 fi
13643 fi
13644 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13645 if test -n "$XML2CONFIG"; then
13646   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13647 echo "${ECHO_T}$XML2CONFIG" >&6; }
13648 else
13649   { echo "$as_me:$LINENO: result: no" >&5
13650 echo "${ECHO_T}no" >&6; }
13651 fi
13652
13653
13654   test -n "$XML2CONFIG" && break
13655 done
13656
13657
13658 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13659 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13660 if test "x$XML2CONFIG" = "x"; then
13661  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13662 echo "${ECHO_T}xml2-config not found" >&6; }
13663 else
13664  LIBXML2_INC=`$XML2CONFIG --cflags`
13665  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13666 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13667  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13668 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13669 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13670   echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672   ac_check_lib_save_LIBS=$LIBS
13673 LIBS="-lxml2  $LIBS"
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h.  */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h.  */
13680
13681 /* Override any GCC internal prototype to avoid an error.
13682    Use char because int might match the return type of a GCC
13683    builtin and then its argument prototype would still apply.  */
13684 #ifdef __cplusplus
13685 extern "C"
13686 #endif
13687 char xmlReadFile ();
13688 int
13689 main ()
13690 {
13691 return xmlReadFile ();
13692   ;
13693   return 0;
13694 }
13695 _ACEOF
13696 rm -f conftest.$ac_objext conftest$ac_exeext
13697 if { (ac_try="$ac_link"
13698 case "(($ac_try" in
13699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700   *) ac_try_echo=$ac_try;;
13701 esac
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703   (eval "$ac_link") 2>conftest.er1
13704   ac_status=$?
13705   grep -v '^ *+' conftest.er1 >conftest.err
13706   rm -f conftest.er1
13707   cat conftest.err >&5
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); } &&
13710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13711   { (case "(($ac_try" in
13712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713   *) ac_try_echo=$ac_try;;
13714 esac
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716   (eval "$ac_try") 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }; } &&
13720          { ac_try='test -s conftest$ac_exeext'
13721   { (case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726   (eval "$ac_try") 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730   ac_cv_lib_xml2_xmlReadFile=yes
13731 else
13732   echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735         ac_cv_lib_xml2_xmlReadFile=no
13736 fi
13737
13738 rm -f core conftest.err conftest.$ac_objext \
13739       conftest$ac_exeext conftest.$ac_ext
13740 LIBS=$ac_check_lib_save_LIBS
13741 fi
13742 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13743 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13744 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13745
13746 cat >>confdefs.h <<\_ACEOF
13747 #define CLANG_HAVE_LIBXML 1
13748 _ACEOF
13749
13750                                 LIBXML2_LIBS="-lxml2"
13751 fi
13752
13753 fi
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763 ac_header_dirent=no
13764 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13765   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13766 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13767 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13769   echo $ECHO_N "(cached) $ECHO_C" >&6
13770 else
13771   cat >conftest.$ac_ext <<_ACEOF
13772 /* confdefs.h.  */
13773 _ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h.  */
13777 #include <sys/types.h>
13778 #include <$ac_hdr>
13779
13780 int
13781 main ()
13782 {
13783 if ((DIR *) 0)
13784 return 0;
13785   ;
13786   return 0;
13787 }
13788 _ACEOF
13789 rm -f conftest.$ac_objext
13790 if { (ac_try="$ac_compile"
13791 case "(($ac_try" in
13792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793   *) ac_try_echo=$ac_try;;
13794 esac
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796   (eval "$ac_compile") 2>conftest.er1
13797   ac_status=$?
13798   grep -v '^ *+' conftest.er1 >conftest.err
13799   rm -f conftest.er1
13800   cat conftest.err >&5
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } &&
13803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13804   { (case "(($ac_try" in
13805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806   *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809   (eval "$ac_try") 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; } &&
13813          { ac_try='test -s conftest.$ac_objext'
13814   { (case "(($ac_try" in
13815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816   *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819   (eval "$ac_try") 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); }; }; then
13823   eval "$as_ac_Header=yes"
13824 else
13825   echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828         eval "$as_ac_Header=no"
13829 fi
13830
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13832 fi
13833 ac_res=`eval echo '${'$as_ac_Header'}'`
13834                { echo "$as_me:$LINENO: result: $ac_res" >&5
13835 echo "${ECHO_T}$ac_res" >&6; }
13836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13837   cat >>confdefs.h <<_ACEOF
13838 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13839 _ACEOF
13840
13841 ac_header_dirent=$ac_hdr; break
13842 fi
13843
13844 done
13845 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13846 if test $ac_header_dirent = dirent.h; then
13847   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13848 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13849 if test "${ac_cv_search_opendir+set}" = set; then
13850   echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852   ac_func_search_save_LIBS=$LIBS
13853 cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h.  */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h.  */
13859
13860 /* Override any GCC internal prototype to avoid an error.
13861    Use char because int might match the return type of a GCC
13862    builtin and then its argument prototype would still apply.  */
13863 #ifdef __cplusplus
13864 extern "C"
13865 #endif
13866 char opendir ();
13867 int
13868 main ()
13869 {
13870 return opendir ();
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 for ac_lib in '' dir; do
13876   if test -z "$ac_lib"; then
13877     ac_res="none required"
13878   else
13879     ac_res=-l$ac_lib
13880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13881   fi
13882   rm -f conftest.$ac_objext conftest$ac_exeext
13883 if { (ac_try="$ac_link"
13884 case "(($ac_try" in
13885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886   *) ac_try_echo=$ac_try;;
13887 esac
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889   (eval "$ac_link") 2>conftest.er1
13890   ac_status=$?
13891   grep -v '^ *+' conftest.er1 >conftest.err
13892   rm -f conftest.er1
13893   cat conftest.err >&5
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); } &&
13896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13897   { (case "(($ac_try" in
13898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899   *) ac_try_echo=$ac_try;;
13900 esac
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902   (eval "$ac_try") 2>&5
13903   ac_status=$?
13904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905   (exit $ac_status); }; } &&
13906          { ac_try='test -s conftest$ac_exeext'
13907   { (case "(($ac_try" in
13908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909   *) ac_try_echo=$ac_try;;
13910 esac
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912   (eval "$ac_try") 2>&5
13913   ac_status=$?
13914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); }; }; then
13916   ac_cv_search_opendir=$ac_res
13917 else
13918   echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13920
13921
13922 fi
13923
13924 rm -f core conftest.err conftest.$ac_objext \
13925       conftest$ac_exeext
13926   if test "${ac_cv_search_opendir+set}" = set; then
13927   break
13928 fi
13929 done
13930 if test "${ac_cv_search_opendir+set}" = set; then
13931   :
13932 else
13933   ac_cv_search_opendir=no
13934 fi
13935 rm conftest.$ac_ext
13936 LIBS=$ac_func_search_save_LIBS
13937 fi
13938 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13939 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13940 ac_res=$ac_cv_search_opendir
13941 if test "$ac_res" != no; then
13942   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13943
13944 fi
13945
13946 else
13947   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13948 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13949 if test "${ac_cv_search_opendir+set}" = set; then
13950   echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952   ac_func_search_save_LIBS=$LIBS
13953 cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959
13960 /* Override any GCC internal prototype to avoid an error.
13961    Use char because int might match the return type of a GCC
13962    builtin and then its argument prototype would still apply.  */
13963 #ifdef __cplusplus
13964 extern "C"
13965 #endif
13966 char opendir ();
13967 int
13968 main ()
13969 {
13970 return opendir ();
13971   ;
13972   return 0;
13973 }
13974 _ACEOF
13975 for ac_lib in '' x; do
13976   if test -z "$ac_lib"; then
13977     ac_res="none required"
13978   else
13979     ac_res=-l$ac_lib
13980     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13981   fi
13982   rm -f conftest.$ac_objext conftest$ac_exeext
13983 if { (ac_try="$ac_link"
13984 case "(($ac_try" in
13985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986   *) ac_try_echo=$ac_try;;
13987 esac
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989   (eval "$ac_link") 2>conftest.er1
13990   ac_status=$?
13991   grep -v '^ *+' conftest.er1 >conftest.err
13992   rm -f conftest.er1
13993   cat conftest.err >&5
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); } &&
13996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13997   { (case "(($ac_try" in
13998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999   *) ac_try_echo=$ac_try;;
14000 esac
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002   (eval "$ac_try") 2>&5
14003   ac_status=$?
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); }; } &&
14006          { ac_try='test -s conftest$ac_exeext'
14007   { (case "(($ac_try" in
14008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009   *) ac_try_echo=$ac_try;;
14010 esac
14011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012   (eval "$ac_try") 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); }; }; then
14016   ac_cv_search_opendir=$ac_res
14017 else
14018   echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14020
14021
14022 fi
14023
14024 rm -f core conftest.err conftest.$ac_objext \
14025       conftest$ac_exeext
14026   if test "${ac_cv_search_opendir+set}" = set; then
14027   break
14028 fi
14029 done
14030 if test "${ac_cv_search_opendir+set}" = set; then
14031   :
14032 else
14033   ac_cv_search_opendir=no
14034 fi
14035 rm conftest.$ac_ext
14036 LIBS=$ac_func_search_save_LIBS
14037 fi
14038 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14039 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14040 ac_res=$ac_cv_search_opendir
14041 if test "$ac_res" != no; then
14042   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14043
14044 fi
14045
14046 fi
14047
14048 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14049 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14050 if test "${ac_cv_header_mmap_anon+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053    ac_ext=c
14054 ac_cpp='$CPP $CPPFLAGS'
14055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14058
14059   cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065 #include <sys/mman.h>
14066 #include <unistd.h>
14067 #include <fcntl.h>
14068 int
14069 main ()
14070 {
14071 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14072   ;
14073   return 0;
14074 }
14075 _ACEOF
14076 rm -f conftest.$ac_objext
14077 if { (ac_try="$ac_compile"
14078 case "(($ac_try" in
14079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080   *) ac_try_echo=$ac_try;;
14081 esac
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083   (eval "$ac_compile") 2>conftest.er1
14084   ac_status=$?
14085   grep -v '^ *+' conftest.er1 >conftest.err
14086   rm -f conftest.er1
14087   cat conftest.err >&5
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); } &&
14090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14091   { (case "(($ac_try" in
14092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093   *) ac_try_echo=$ac_try;;
14094 esac
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096   (eval "$ac_try") 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); }; } &&
14100          { ac_try='test -s conftest.$ac_objext'
14101   { (case "(($ac_try" in
14102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103   *) ac_try_echo=$ac_try;;
14104 esac
14105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106   (eval "$ac_try") 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); }; }; then
14110   ac_cv_header_mmap_anon=yes
14111 else
14112   echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14114
14115         ac_cv_header_mmap_anon=no
14116 fi
14117
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119   ac_ext=c
14120 ac_cpp='$CPP $CPPFLAGS'
14121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14124
14125
14126 fi
14127 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14128 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14129 if test "$ac_cv_header_mmap_anon" = yes; then
14130
14131 cat >>confdefs.h <<\_ACEOF
14132 #define HAVE_MMAP_ANONYMOUS 1
14133 _ACEOF
14134
14135 fi
14136
14137 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14138 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14139 if test "${ac_cv_header_stat_broken+set}" = set; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142   cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h.  */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h.  */
14148 #include <sys/types.h>
14149 #include <sys/stat.h>
14150
14151 #if defined S_ISBLK && defined S_IFDIR
14152 # if S_ISBLK (S_IFDIR)
14153 You lose.
14154 # endif
14155 #endif
14156
14157 #if defined S_ISBLK && defined S_IFCHR
14158 # if S_ISBLK (S_IFCHR)
14159 You lose.
14160 # endif
14161 #endif
14162
14163 #if defined S_ISLNK && defined S_IFREG
14164 # if S_ISLNK (S_IFREG)
14165 You lose.
14166 # endif
14167 #endif
14168
14169 #if defined S_ISSOCK && defined S_IFREG
14170 # if S_ISSOCK (S_IFREG)
14171 You lose.
14172 # endif
14173 #endif
14174
14175 _ACEOF
14176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14177   $EGREP "You lose" >/dev/null 2>&1; then
14178   ac_cv_header_stat_broken=yes
14179 else
14180   ac_cv_header_stat_broken=no
14181 fi
14182 rm -f conftest*
14183
14184 fi
14185 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14186 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14187 if test $ac_cv_header_stat_broken = yes; then
14188
14189 cat >>confdefs.h <<\_ACEOF
14190 #define STAT_MACROS_BROKEN 1
14191 _ACEOF
14192
14193 fi
14194
14195 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14196 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14197 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14198   echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200   cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h.  */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h.  */
14206 #include <sys/types.h>
14207 #include <sys/wait.h>
14208 #ifndef WEXITSTATUS
14209 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14210 #endif
14211 #ifndef WIFEXITED
14212 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14213 #endif
14214
14215 int
14216 main ()
14217 {
14218   int s;
14219   wait (&s);
14220   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14221   ;
14222   return 0;
14223 }
14224 _ACEOF
14225 rm -f conftest.$ac_objext
14226 if { (ac_try="$ac_compile"
14227 case "(($ac_try" in
14228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229   *) ac_try_echo=$ac_try;;
14230 esac
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232   (eval "$ac_compile") 2>conftest.er1
14233   ac_status=$?
14234   grep -v '^ *+' conftest.er1 >conftest.err
14235   rm -f conftest.er1
14236   cat conftest.err >&5
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); } &&
14239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14240   { (case "(($ac_try" in
14241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242   *) ac_try_echo=$ac_try;;
14243 esac
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245   (eval "$ac_try") 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; } &&
14249          { ac_try='test -s conftest.$ac_objext'
14250   { (case "(($ac_try" in
14251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252   *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255   (eval "$ac_try") 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; }; then
14259   ac_cv_header_sys_wait_h=yes
14260 else
14261   echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14263
14264         ac_cv_header_sys_wait_h=no
14265 fi
14266
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 fi
14269 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14270 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14271 if test $ac_cv_header_sys_wait_h = yes; then
14272
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_SYS_WAIT_H 1
14275 _ACEOF
14276
14277 fi
14278
14279 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14280 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14281 if test "${ac_cv_header_time+set}" = set; then
14282   echo $ECHO_N "(cached) $ECHO_C" >&6
14283 else
14284   cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h.  */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h.  */
14290 #include <sys/types.h>
14291 #include <sys/time.h>
14292 #include <time.h>
14293
14294 int
14295 main ()
14296 {
14297 if ((struct tm *) 0)
14298 return 0;
14299   ;
14300   return 0;
14301 }
14302 _ACEOF
14303 rm -f conftest.$ac_objext
14304 if { (ac_try="$ac_compile"
14305 case "(($ac_try" in
14306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307   *) ac_try_echo=$ac_try;;
14308 esac
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310   (eval "$ac_compile") 2>conftest.er1
14311   ac_status=$?
14312   grep -v '^ *+' conftest.er1 >conftest.err
14313   rm -f conftest.er1
14314   cat conftest.err >&5
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); } &&
14317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14318   { (case "(($ac_try" in
14319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320   *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323   (eval "$ac_try") 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; } &&
14327          { ac_try='test -s conftest.$ac_objext'
14328   { (case "(($ac_try" in
14329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330   *) ac_try_echo=$ac_try;;
14331 esac
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333   (eval "$ac_try") 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }; then
14337   ac_cv_header_time=yes
14338 else
14339   echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342         ac_cv_header_time=no
14343 fi
14344
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 fi
14347 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14348 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14349 if test $ac_cv_header_time = yes; then
14350
14351 cat >>confdefs.h <<\_ACEOF
14352 #define TIME_WITH_SYS_TIME 1
14353 _ACEOF
14354
14355 fi
14356
14357
14358
14359
14360
14361
14362
14363
14364 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14365 do
14366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14368   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14371   echo $ECHO_N "(cached) $ECHO_C" >&6
14372 fi
14373 ac_res=`eval echo '${'$as_ac_Header'}'`
14374                { echo "$as_me:$LINENO: result: $ac_res" >&5
14375 echo "${ECHO_T}$ac_res" >&6; }
14376 else
14377   # Is the header compilable?
14378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14380 cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386 $ac_includes_default
14387 #include <$ac_header>
14388 _ACEOF
14389 rm -f conftest.$ac_objext
14390 if { (ac_try="$ac_compile"
14391 case "(($ac_try" in
14392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393   *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396   (eval "$ac_compile") 2>conftest.er1
14397   ac_status=$?
14398   grep -v '^ *+' conftest.er1 >conftest.err
14399   rm -f conftest.er1
14400   cat conftest.err >&5
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } &&
14403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404   { (case "(($ac_try" in
14405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406   *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409   (eval "$ac_try") 2>&5
14410   ac_status=$?
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); }; } &&
14413          { ac_try='test -s conftest.$ac_objext'
14414   { (case "(($ac_try" in
14415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416   *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419   (eval "$ac_try") 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; }; then
14423   ac_header_compiler=yes
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428         ac_header_compiler=no
14429 fi
14430
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14433 echo "${ECHO_T}$ac_header_compiler" >&6; }
14434
14435 # Is the header present?
14436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14438 cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444 #include <$ac_header>
14445 _ACEOF
14446 if { (ac_try="$ac_cpp conftest.$ac_ext"
14447 case "(($ac_try" in
14448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449   *) ac_try_echo=$ac_try;;
14450 esac
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14453   ac_status=$?
14454   grep -v '^ *+' conftest.er1 >conftest.err
14455   rm -f conftest.er1
14456   cat conftest.err >&5
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); } >/dev/null; then
14459   if test -s conftest.err; then
14460     ac_cpp_err=$ac_c_preproc_warn_flag
14461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14462   else
14463     ac_cpp_err=
14464   fi
14465 else
14466   ac_cpp_err=yes
14467 fi
14468 if test -z "$ac_cpp_err"; then
14469   ac_header_preproc=yes
14470 else
14471   echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14473
14474   ac_header_preproc=no
14475 fi
14476
14477 rm -f conftest.err conftest.$ac_ext
14478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14479 echo "${ECHO_T}$ac_header_preproc" >&6; }
14480
14481 # So?  What about this header?
14482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14483   yes:no: )
14484     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14488     ac_header_preproc=yes
14489     ;;
14490   no:yes:* )
14491     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14493     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14494 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14495     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14497     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14498 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14501     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14503     ( cat <<\_ASBOX
14504 ## ------------------------------------ ##
14505 ## Report this to http://llvm.org/bugs/ ##
14506 ## ------------------------------------ ##
14507 _ASBOX
14508      ) | sed "s/^/$as_me: WARNING:     /" >&2
14509     ;;
14510 esac
14511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   eval "$as_ac_Header=\$ac_header_preproc"
14517 fi
14518 ac_res=`eval echo '${'$as_ac_Header'}'`
14519                { echo "$as_me:$LINENO: result: $ac_res" >&5
14520 echo "${ECHO_T}$ac_res" >&6; }
14521
14522 fi
14523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14524   cat >>confdefs.h <<_ACEOF
14525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14526 _ACEOF
14527
14528 fi
14529
14530 done
14531
14532
14533
14534
14535
14536
14537
14538 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14539 do
14540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14542   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14545   echo $ECHO_N "(cached) $ECHO_C" >&6
14546 fi
14547 ac_res=`eval echo '${'$as_ac_Header'}'`
14548                { echo "$as_me:$LINENO: result: $ac_res" >&5
14549 echo "${ECHO_T}$ac_res" >&6; }
14550 else
14551   # Is the header compilable?
14552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14554 cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560 $ac_includes_default
14561 #include <$ac_header>
14562 _ACEOF
14563 rm -f conftest.$ac_objext
14564 if { (ac_try="$ac_compile"
14565 case "(($ac_try" in
14566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567   *) ac_try_echo=$ac_try;;
14568 esac
14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570   (eval "$ac_compile") 2>conftest.er1
14571   ac_status=$?
14572   grep -v '^ *+' conftest.er1 >conftest.err
14573   rm -f conftest.er1
14574   cat conftest.err >&5
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } &&
14577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14578   { (case "(($ac_try" in
14579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580   *) ac_try_echo=$ac_try;;
14581 esac
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583   (eval "$ac_try") 2>&5
14584   ac_status=$?
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); }; } &&
14587          { ac_try='test -s conftest.$ac_objext'
14588   { (case "(($ac_try" in
14589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590   *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593   (eval "$ac_try") 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }; then
14597   ac_header_compiler=yes
14598 else
14599   echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14601
14602         ac_header_compiler=no
14603 fi
14604
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14607 echo "${ECHO_T}$ac_header_compiler" >&6; }
14608
14609 # Is the header present?
14610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14612 cat >conftest.$ac_ext <<_ACEOF
14613 /* confdefs.h.  */
14614 _ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h.  */
14618 #include <$ac_header>
14619 _ACEOF
14620 if { (ac_try="$ac_cpp conftest.$ac_ext"
14621 case "(($ac_try" in
14622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623   *) ac_try_echo=$ac_try;;
14624 esac
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14627   ac_status=$?
14628   grep -v '^ *+' conftest.er1 >conftest.err
14629   rm -f conftest.er1
14630   cat conftest.err >&5
14631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); } >/dev/null; then
14633   if test -s conftest.err; then
14634     ac_cpp_err=$ac_c_preproc_warn_flag
14635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14636   else
14637     ac_cpp_err=
14638   fi
14639 else
14640   ac_cpp_err=yes
14641 fi
14642 if test -z "$ac_cpp_err"; then
14643   ac_header_preproc=yes
14644 else
14645   echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648   ac_header_preproc=no
14649 fi
14650
14651 rm -f conftest.err conftest.$ac_ext
14652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14653 echo "${ECHO_T}$ac_header_preproc" >&6; }
14654
14655 # So?  What about this header?
14656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14657   yes:no: )
14658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14662     ac_header_preproc=yes
14663     ;;
14664   no:yes:* )
14665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14677     ( cat <<\_ASBOX
14678 ## ------------------------------------ ##
14679 ## Report this to http://llvm.org/bugs/ ##
14680 ## ------------------------------------ ##
14681 _ASBOX
14682      ) | sed "s/^/$as_me: WARNING:     /" >&2
14683     ;;
14684 esac
14685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14688   echo $ECHO_N "(cached) $ECHO_C" >&6
14689 else
14690   eval "$as_ac_Header=\$ac_header_preproc"
14691 fi
14692 ac_res=`eval echo '${'$as_ac_Header'}'`
14693                { echo "$as_me:$LINENO: result: $ac_res" >&5
14694 echo "${ECHO_T}$ac_res" >&6; }
14695
14696 fi
14697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14698   cat >>confdefs.h <<_ACEOF
14699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14700 _ACEOF
14701
14702 fi
14703
14704 done
14705
14706
14707
14708 for ac_header in utime.h windows.h
14709 do
14710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14712   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 fi
14717 ac_res=`eval echo '${'$as_ac_Header'}'`
14718                { echo "$as_me:$LINENO: result: $ac_res" >&5
14719 echo "${ECHO_T}$ac_res" >&6; }
14720 else
14721   # Is the header compilable?
14722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14724 cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h.  */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h.  */
14730 $ac_includes_default
14731 #include <$ac_header>
14732 _ACEOF
14733 rm -f conftest.$ac_objext
14734 if { (ac_try="$ac_compile"
14735 case "(($ac_try" in
14736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737   *) ac_try_echo=$ac_try;;
14738 esac
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740   (eval "$ac_compile") 2>conftest.er1
14741   ac_status=$?
14742   grep -v '^ *+' conftest.er1 >conftest.err
14743   rm -f conftest.er1
14744   cat conftest.err >&5
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); } &&
14747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748   { (case "(($ac_try" in
14749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750   *) ac_try_echo=$ac_try;;
14751 esac
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753   (eval "$ac_try") 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; } &&
14757          { ac_try='test -s conftest.$ac_objext'
14758   { (case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763   (eval "$ac_try") 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); }; }; then
14767   ac_header_compiler=yes
14768 else
14769   echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772         ac_header_compiler=no
14773 fi
14774
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777 echo "${ECHO_T}$ac_header_compiler" >&6; }
14778
14779 # Is the header present?
14780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h.  */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h.  */
14788 #include <$ac_header>
14789 _ACEOF
14790 if { (ac_try="$ac_cpp conftest.$ac_ext"
14791 case "(($ac_try" in
14792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793   *) ac_try_echo=$ac_try;;
14794 esac
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14797   ac_status=$?
14798   grep -v '^ *+' conftest.er1 >conftest.err
14799   rm -f conftest.er1
14800   cat conftest.err >&5
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); } >/dev/null; then
14803   if test -s conftest.err; then
14804     ac_cpp_err=$ac_c_preproc_warn_flag
14805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14806   else
14807     ac_cpp_err=
14808   fi
14809 else
14810   ac_cpp_err=yes
14811 fi
14812 if test -z "$ac_cpp_err"; then
14813   ac_header_preproc=yes
14814 else
14815   echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818   ac_header_preproc=no
14819 fi
14820
14821 rm -f conftest.err conftest.$ac_ext
14822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 echo "${ECHO_T}$ac_header_preproc" >&6; }
14824
14825 # So?  What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827   yes:no: )
14828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14832     ac_header_preproc=yes
14833     ;;
14834   no:yes:* )
14835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14847     ( cat <<\_ASBOX
14848 ## ------------------------------------ ##
14849 ## Report this to http://llvm.org/bugs/ ##
14850 ## ------------------------------------ ##
14851 _ASBOX
14852      ) | sed "s/^/$as_me: WARNING:     /" >&2
14853     ;;
14854 esac
14855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14858   echo $ECHO_N "(cached) $ECHO_C" >&6
14859 else
14860   eval "$as_ac_Header=\$ac_header_preproc"
14861 fi
14862 ac_res=`eval echo '${'$as_ac_Header'}'`
14863                { echo "$as_me:$LINENO: result: $ac_res" >&5
14864 echo "${ECHO_T}$ac_res" >&6; }
14865
14866 fi
14867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14868   cat >>confdefs.h <<_ACEOF
14869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14870 _ACEOF
14871
14872 fi
14873
14874 done
14875
14876
14877
14878
14879
14880
14881 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14882 do
14883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 fi
14890 ac_res=`eval echo '${'$as_ac_Header'}'`
14891                { echo "$as_me:$LINENO: result: $ac_res" >&5
14892 echo "${ECHO_T}$ac_res" >&6; }
14893 else
14894   # Is the header compilable?
14895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h.  */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h.  */
14903 $ac_includes_default
14904 #include <$ac_header>
14905 _ACEOF
14906 rm -f conftest.$ac_objext
14907 if { (ac_try="$ac_compile"
14908 case "(($ac_try" in
14909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910   *) ac_try_echo=$ac_try;;
14911 esac
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913   (eval "$ac_compile") 2>conftest.er1
14914   ac_status=$?
14915   grep -v '^ *+' conftest.er1 >conftest.err
14916   rm -f conftest.er1
14917   cat conftest.err >&5
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); } &&
14920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14921   { (case "(($ac_try" in
14922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923   *) ac_try_echo=$ac_try;;
14924 esac
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926   (eval "$ac_try") 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; } &&
14930          { ac_try='test -s conftest.$ac_objext'
14931   { (case "(($ac_try" in
14932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933   *) ac_try_echo=$ac_try;;
14934 esac
14935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936   (eval "$ac_try") 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; }; then
14940   ac_header_compiler=yes
14941 else
14942   echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945         ac_header_compiler=no
14946 fi
14947
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14950 echo "${ECHO_T}$ac_header_compiler" >&6; }
14951
14952 # Is the header present?
14953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h.  */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h.  */
14961 #include <$ac_header>
14962 _ACEOF
14963 if { (ac_try="$ac_cpp conftest.$ac_ext"
14964 case "(($ac_try" in
14965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966   *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14970   ac_status=$?
14971   grep -v '^ *+' conftest.er1 >conftest.err
14972   rm -f conftest.er1
14973   cat conftest.err >&5
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } >/dev/null; then
14976   if test -s conftest.err; then
14977     ac_cpp_err=$ac_c_preproc_warn_flag
14978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14979   else
14980     ac_cpp_err=
14981   fi
14982 else
14983   ac_cpp_err=yes
14984 fi
14985 if test -z "$ac_cpp_err"; then
14986   ac_header_preproc=yes
14987 else
14988   echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991   ac_header_preproc=no
14992 fi
14993
14994 rm -f conftest.err conftest.$ac_ext
14995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14996 echo "${ECHO_T}$ac_header_preproc" >&6; }
14997
14998 # So?  What about this header?
14999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15000   yes:no: )
15001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15005     ac_header_preproc=yes
15006     ;;
15007   no:yes:* )
15008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15020     ( cat <<\_ASBOX
15021 ## ------------------------------------ ##
15022 ## Report this to http://llvm.org/bugs/ ##
15023 ## ------------------------------------ ##
15024 _ASBOX
15025      ) | sed "s/^/$as_me: WARNING:     /" >&2
15026     ;;
15027 esac
15028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031   echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033   eval "$as_ac_Header=\$ac_header_preproc"
15034 fi
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036                { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15038
15039 fi
15040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15041   cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15043 _ACEOF
15044
15045 fi
15046
15047 done
15048
15049
15050
15051
15052
15053 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15054 do
15055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15060   echo $ECHO_N "(cached) $ECHO_C" >&6
15061 fi
15062 ac_res=`eval echo '${'$as_ac_Header'}'`
15063                { echo "$as_me:$LINENO: result: $ac_res" >&5
15064 echo "${ECHO_T}$ac_res" >&6; }
15065 else
15066   # Is the header compilable?
15067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15069 cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h.  */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h.  */
15075 $ac_includes_default
15076 #include <$ac_header>
15077 _ACEOF
15078 rm -f conftest.$ac_objext
15079 if { (ac_try="$ac_compile"
15080 case "(($ac_try" in
15081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082   *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085   (eval "$ac_compile") 2>conftest.er1
15086   ac_status=$?
15087   grep -v '^ *+' conftest.er1 >conftest.err
15088   rm -f conftest.er1
15089   cat conftest.err >&5
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } &&
15092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093   { (case "(($ac_try" in
15094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095   *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098   (eval "$ac_try") 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; } &&
15102          { ac_try='test -s conftest.$ac_objext'
15103   { (case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108   (eval "$ac_try") 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_header_compiler=yes
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117         ac_header_compiler=no
15118 fi
15119
15120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15122 echo "${ECHO_T}$ac_header_compiler" >&6; }
15123
15124 # Is the header present?
15125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15127 cat >conftest.$ac_ext <<_ACEOF
15128 /* confdefs.h.  */
15129 _ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h.  */
15133 #include <$ac_header>
15134 _ACEOF
15135 if { (ac_try="$ac_cpp conftest.$ac_ext"
15136 case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15142   ac_status=$?
15143   grep -v '^ *+' conftest.er1 >conftest.err
15144   rm -f conftest.er1
15145   cat conftest.err >&5
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); } >/dev/null; then
15148   if test -s conftest.err; then
15149     ac_cpp_err=$ac_c_preproc_warn_flag
15150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15151   else
15152     ac_cpp_err=
15153   fi
15154 else
15155   ac_cpp_err=yes
15156 fi
15157 if test -z "$ac_cpp_err"; then
15158   ac_header_preproc=yes
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163   ac_header_preproc=no
15164 fi
15165
15166 rm -f conftest.err conftest.$ac_ext
15167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15168 echo "${ECHO_T}$ac_header_preproc" >&6; }
15169
15170 # So?  What about this header?
15171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15172   yes:no: )
15173     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15177     ac_header_preproc=yes
15178     ;;
15179   no:yes:* )
15180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15182     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15183 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15184     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15186     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15187 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15190     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15192     ( cat <<\_ASBOX
15193 ## ------------------------------------ ##
15194 ## Report this to http://llvm.org/bugs/ ##
15195 ## ------------------------------------ ##
15196 _ASBOX
15197      ) | sed "s/^/$as_me: WARNING:     /" >&2
15198     ;;
15199 esac
15200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15203   echo $ECHO_N "(cached) $ECHO_C" >&6
15204 else
15205   eval "$as_ac_Header=\$ac_header_preproc"
15206 fi
15207 ac_res=`eval echo '${'$as_ac_Header'}'`
15208                { echo "$as_me:$LINENO: result: $ac_res" >&5
15209 echo "${ECHO_T}$ac_res" >&6; }
15210
15211 fi
15212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15213   cat >>confdefs.h <<_ACEOF
15214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15215 _ACEOF
15216
15217 fi
15218
15219 done
15220
15221
15222 for ac_header in valgrind/valgrind.h
15223 do
15224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15226   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15229   echo $ECHO_N "(cached) $ECHO_C" >&6
15230 fi
15231 ac_res=`eval echo '${'$as_ac_Header'}'`
15232                { echo "$as_me:$LINENO: result: $ac_res" >&5
15233 echo "${ECHO_T}$ac_res" >&6; }
15234 else
15235   # Is the header compilable?
15236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h.  */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h.  */
15244 $ac_includes_default
15245 #include <$ac_header>
15246 _ACEOF
15247 rm -f conftest.$ac_objext
15248 if { (ac_try="$ac_compile"
15249 case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_compile") 2>conftest.er1
15255   ac_status=$?
15256   grep -v '^ *+' conftest.er1 >conftest.err
15257   rm -f conftest.er1
15258   cat conftest.err >&5
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } &&
15261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262   { (case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267   (eval "$ac_try") 2>&5
15268   ac_status=$?
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); }; } &&
15271          { ac_try='test -s conftest.$ac_objext'
15272   { (case "(($ac_try" in
15273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274   *) ac_try_echo=$ac_try;;
15275 esac
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277   (eval "$ac_try") 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; }; then
15281   ac_header_compiler=yes
15282 else
15283   echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15285
15286         ac_header_compiler=no
15287 fi
15288
15289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15291 echo "${ECHO_T}$ac_header_compiler" >&6; }
15292
15293 # Is the header present?
15294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15296 cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302 #include <$ac_header>
15303 _ACEOF
15304 if { (ac_try="$ac_cpp conftest.$ac_ext"
15305 case "(($ac_try" in
15306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307   *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } >/dev/null; then
15317   if test -s conftest.err; then
15318     ac_cpp_err=$ac_c_preproc_warn_flag
15319     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15320   else
15321     ac_cpp_err=
15322   fi
15323 else
15324   ac_cpp_err=yes
15325 fi
15326 if test -z "$ac_cpp_err"; then
15327   ac_header_preproc=yes
15328 else
15329   echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331
15332   ac_header_preproc=no
15333 fi
15334
15335 rm -f conftest.err conftest.$ac_ext
15336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15337 echo "${ECHO_T}$ac_header_preproc" >&6; }
15338
15339 # So?  What about this header?
15340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15341   yes:no: )
15342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15346     ac_header_preproc=yes
15347     ;;
15348   no:yes:* )
15349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15361     ( cat <<\_ASBOX
15362 ## ------------------------------------ ##
15363 ## Report this to http://llvm.org/bugs/ ##
15364 ## ------------------------------------ ##
15365 _ASBOX
15366      ) | sed "s/^/$as_me: WARNING:     /" >&2
15367     ;;
15368 esac
15369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15372   echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374   eval "$as_ac_Header=\$ac_header_preproc"
15375 fi
15376 ac_res=`eval echo '${'$as_ac_Header'}'`
15377                { echo "$as_me:$LINENO: result: $ac_res" >&5
15378 echo "${ECHO_T}$ac_res" >&6; }
15379
15380 fi
15381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15382   cat >>confdefs.h <<_ACEOF
15383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15384 _ACEOF
15385
15386 fi
15387
15388 done
15389
15390
15391 for ac_header in fenv.h
15392 do
15393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15395   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15398   echo $ECHO_N "(cached) $ECHO_C" >&6
15399 fi
15400 ac_res=`eval echo '${'$as_ac_Header'}'`
15401                { echo "$as_me:$LINENO: result: $ac_res" >&5
15402 echo "${ECHO_T}$ac_res" >&6; }
15403 else
15404   # Is the header compilable?
15405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15407 cat >conftest.$ac_ext <<_ACEOF
15408 /* confdefs.h.  */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h.  */
15413 $ac_includes_default
15414 #include <$ac_header>
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420   *) ac_try_echo=$ac_try;;
15421 esac
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423   (eval "$ac_compile") 2>conftest.er1
15424   ac_status=$?
15425   grep -v '^ *+' conftest.er1 >conftest.err
15426   rm -f conftest.er1
15427   cat conftest.err >&5
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); } &&
15430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15431   { (case "(($ac_try" in
15432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433   *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436   (eval "$ac_try") 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; } &&
15440          { ac_try='test -s conftest.$ac_objext'
15441   { (case "(($ac_try" in
15442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443   *) ac_try_echo=$ac_try;;
15444 esac
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446   (eval "$ac_try") 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); }; }; then
15450   ac_header_compiler=yes
15451 else
15452   echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15454
15455         ac_header_compiler=no
15456 fi
15457
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15460 echo "${ECHO_T}$ac_header_compiler" >&6; }
15461
15462 # Is the header present?
15463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 #include <$ac_header>
15472 _ACEOF
15473 if { (ac_try="$ac_cpp conftest.$ac_ext"
15474 case "(($ac_try" in
15475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476   *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15480   ac_status=$?
15481   grep -v '^ *+' conftest.er1 >conftest.err
15482   rm -f conftest.er1
15483   cat conftest.err >&5
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); } >/dev/null; then
15486   if test -s conftest.err; then
15487     ac_cpp_err=$ac_c_preproc_warn_flag
15488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15489   else
15490     ac_cpp_err=
15491   fi
15492 else
15493   ac_cpp_err=yes
15494 fi
15495 if test -z "$ac_cpp_err"; then
15496   ac_header_preproc=yes
15497 else
15498   echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15500
15501   ac_header_preproc=no
15502 fi
15503
15504 rm -f conftest.err conftest.$ac_ext
15505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15506 echo "${ECHO_T}$ac_header_preproc" >&6; }
15507
15508 # So?  What about this header?
15509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15510   yes:no: )
15511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15515     ac_header_preproc=yes
15516     ;;
15517   no:yes:* )
15518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15520     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15521 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15522     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15524     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15525 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15528     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15530     ( cat <<\_ASBOX
15531 ## ------------------------------------ ##
15532 ## Report this to http://llvm.org/bugs/ ##
15533 ## ------------------------------------ ##
15534 _ASBOX
15535      ) | sed "s/^/$as_me: WARNING:     /" >&2
15536     ;;
15537 esac
15538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15541   echo $ECHO_N "(cached) $ECHO_C" >&6
15542 else
15543   eval "$as_ac_Header=\$ac_header_preproc"
15544 fi
15545 ac_res=`eval echo '${'$as_ac_Header'}'`
15546                { echo "$as_me:$LINENO: result: $ac_res" >&5
15547 echo "${ECHO_T}$ac_res" >&6; }
15548
15549 fi
15550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15551   cat >>confdefs.h <<_ACEOF
15552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15553 _ACEOF
15554
15555 fi
15556
15557 done
15558
15559 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15560
15561 for ac_header in pthread.h
15562 do
15563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 fi
15570 ac_res=`eval echo '${'$as_ac_Header'}'`
15571                { echo "$as_me:$LINENO: result: $ac_res" >&5
15572 echo "${ECHO_T}$ac_res" >&6; }
15573 else
15574   # Is the header compilable?
15575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h.  */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h.  */
15583 $ac_includes_default
15584 #include <$ac_header>
15585 _ACEOF
15586 rm -f conftest.$ac_objext
15587 if { (ac_try="$ac_compile"
15588 case "(($ac_try" in
15589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590   *) ac_try_echo=$ac_try;;
15591 esac
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593   (eval "$ac_compile") 2>conftest.er1
15594   ac_status=$?
15595   grep -v '^ *+' conftest.er1 >conftest.err
15596   rm -f conftest.er1
15597   cat conftest.err >&5
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } &&
15600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15601   { (case "(($ac_try" in
15602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603   *) ac_try_echo=$ac_try;;
15604 esac
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606   (eval "$ac_try") 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; } &&
15610          { ac_try='test -s conftest.$ac_objext'
15611   { (case "(($ac_try" in
15612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613   *) ac_try_echo=$ac_try;;
15614 esac
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616   (eval "$ac_try") 2>&5
15617   ac_status=$?
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); }; }; then
15620   ac_header_compiler=yes
15621 else
15622   echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15624
15625         ac_header_compiler=no
15626 fi
15627
15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630 echo "${ECHO_T}$ac_header_compiler" >&6; }
15631
15632 # Is the header present?
15633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15635 cat >conftest.$ac_ext <<_ACEOF
15636 /* confdefs.h.  */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h.  */
15641 #include <$ac_header>
15642 _ACEOF
15643 if { (ac_try="$ac_cpp conftest.$ac_ext"
15644 case "(($ac_try" in
15645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646   *) ac_try_echo=$ac_try;;
15647 esac
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15650   ac_status=$?
15651   grep -v '^ *+' conftest.er1 >conftest.err
15652   rm -f conftest.er1
15653   cat conftest.err >&5
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); } >/dev/null; then
15656   if test -s conftest.err; then
15657     ac_cpp_err=$ac_c_preproc_warn_flag
15658     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15659   else
15660     ac_cpp_err=
15661   fi
15662 else
15663   ac_cpp_err=yes
15664 fi
15665 if test -z "$ac_cpp_err"; then
15666   ac_header_preproc=yes
15667 else
15668   echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15670
15671   ac_header_preproc=no
15672 fi
15673
15674 rm -f conftest.err conftest.$ac_ext
15675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676 echo "${ECHO_T}$ac_header_preproc" >&6; }
15677
15678 # So?  What about this header?
15679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680   yes:no: )
15681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685     ac_header_preproc=yes
15686     ;;
15687   no:yes:* )
15688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700     ( cat <<\_ASBOX
15701 ## ------------------------------------ ##
15702 ## Report this to http://llvm.org/bugs/ ##
15703 ## ------------------------------------ ##
15704 _ASBOX
15705      ) | sed "s/^/$as_me: WARNING:     /" >&2
15706     ;;
15707 esac
15708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711   echo $ECHO_N "(cached) $ECHO_C" >&6
15712 else
15713   eval "$as_ac_Header=\$ac_header_preproc"
15714 fi
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716                { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15718
15719 fi
15720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15721   cat >>confdefs.h <<_ACEOF
15722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15723 _ACEOF
15724  HAVE_PTHREAD=1
15725
15726 else
15727   HAVE_PTHREAD=0
15728
15729 fi
15730
15731 done
15732
15733 else
15734   HAVE_PTHREAD=0
15735
15736 fi
15737
15738 if test "$llvm_cv_enable_libffi" = "yes" ; then
15739
15740
15741 for ac_header in ffi.h ffi/ffi.h
15742 do
15743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15748   echo $ECHO_N "(cached) $ECHO_C" >&6
15749 fi
15750 ac_res=`eval echo '${'$as_ac_Header'}'`
15751                { echo "$as_me:$LINENO: result: $ac_res" >&5
15752 echo "${ECHO_T}$ac_res" >&6; }
15753 else
15754   # Is the header compilable?
15755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h.  */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h.  */
15763 $ac_includes_default
15764 #include <$ac_header>
15765 _ACEOF
15766 rm -f conftest.$ac_objext
15767 if { (ac_try="$ac_compile"
15768 case "(($ac_try" in
15769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770   *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773   (eval "$ac_compile") 2>conftest.er1
15774   ac_status=$?
15775   grep -v '^ *+' conftest.er1 >conftest.err
15776   rm -f conftest.er1
15777   cat conftest.err >&5
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); } &&
15780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15781   { (case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_try") 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; } &&
15790          { ac_try='test -s conftest.$ac_objext'
15791   { (case "(($ac_try" in
15792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793   *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796   (eval "$ac_try") 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; }; then
15800   ac_header_compiler=yes
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805         ac_header_compiler=no
15806 fi
15807
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15810 echo "${ECHO_T}$ac_header_compiler" >&6; }
15811
15812 # Is the header present?
15813 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15815 cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h.  */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h.  */
15821 #include <$ac_header>
15822 _ACEOF
15823 if { (ac_try="$ac_cpp conftest.$ac_ext"
15824 case "(($ac_try" in
15825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826   *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15830   ac_status=$?
15831   grep -v '^ *+' conftest.er1 >conftest.err
15832   rm -f conftest.er1
15833   cat conftest.err >&5
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); } >/dev/null; then
15836   if test -s conftest.err; then
15837     ac_cpp_err=$ac_c_preproc_warn_flag
15838     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15839   else
15840     ac_cpp_err=
15841   fi
15842 else
15843   ac_cpp_err=yes
15844 fi
15845 if test -z "$ac_cpp_err"; then
15846   ac_header_preproc=yes
15847 else
15848   echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15850
15851   ac_header_preproc=no
15852 fi
15853
15854 rm -f conftest.err conftest.$ac_ext
15855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15856 echo "${ECHO_T}$ac_header_preproc" >&6; }
15857
15858 # So?  What about this header?
15859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15860   yes:no: )
15861     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15865     ac_header_preproc=yes
15866     ;;
15867   no:yes:* )
15868     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15870     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15871 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15872     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15874     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15875 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15878     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15880     ( cat <<\_ASBOX
15881 ## ------------------------------------ ##
15882 ## Report this to http://llvm.org/bugs/ ##
15883 ## ------------------------------------ ##
15884 _ASBOX
15885      ) | sed "s/^/$as_me: WARNING:     /" >&2
15886     ;;
15887 esac
15888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15891   echo $ECHO_N "(cached) $ECHO_C" >&6
15892 else
15893   eval "$as_ac_Header=\$ac_header_preproc"
15894 fi
15895 ac_res=`eval echo '${'$as_ac_Header'}'`
15896                { echo "$as_me:$LINENO: result: $ac_res" >&5
15897 echo "${ECHO_T}$ac_res" >&6; }
15898
15899 fi
15900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15901   cat >>confdefs.h <<_ACEOF
15902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15903 _ACEOF
15904
15905 fi
15906
15907 done
15908
15909 fi
15910
15911
15912 for ac_header in CrashReporterClient.h
15913 do
15914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15919   echo $ECHO_N "(cached) $ECHO_C" >&6
15920 fi
15921 ac_res=`eval echo '${'$as_ac_Header'}'`
15922                { echo "$as_me:$LINENO: result: $ac_res" >&5
15923 echo "${ECHO_T}$ac_res" >&6; }
15924 else
15925   # Is the header compilable?
15926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h.  */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h.  */
15934 $ac_includes_default
15935 #include <$ac_header>
15936 _ACEOF
15937 rm -f conftest.$ac_objext
15938 if { (ac_try="$ac_compile"
15939 case "(($ac_try" in
15940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941   *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944   (eval "$ac_compile") 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } &&
15951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15952   { (case "(($ac_try" in
15953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954   *) ac_try_echo=$ac_try;;
15955 esac
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957   (eval "$ac_try") 2>&5
15958   ac_status=$?
15959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960   (exit $ac_status); }; } &&
15961          { ac_try='test -s conftest.$ac_objext'
15962   { (case "(($ac_try" in
15963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964   *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967   (eval "$ac_try") 2>&5
15968   ac_status=$?
15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970   (exit $ac_status); }; }; then
15971   ac_header_compiler=yes
15972 else
15973   echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15975
15976         ac_header_compiler=no
15977 fi
15978
15979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15981 echo "${ECHO_T}$ac_header_compiler" >&6; }
15982
15983 # Is the header present?
15984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15986 cat >conftest.$ac_ext <<_ACEOF
15987 /* confdefs.h.  */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h.  */
15992 #include <$ac_header>
15993 _ACEOF
15994 if { (ac_try="$ac_cpp conftest.$ac_ext"
15995 case "(($ac_try" in
15996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997   *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16001   ac_status=$?
16002   grep -v '^ *+' conftest.er1 >conftest.err
16003   rm -f conftest.er1
16004   cat conftest.err >&5
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } >/dev/null; then
16007   if test -s conftest.err; then
16008     ac_cpp_err=$ac_c_preproc_warn_flag
16009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16010   else
16011     ac_cpp_err=
16012   fi
16013 else
16014   ac_cpp_err=yes
16015 fi
16016 if test -z "$ac_cpp_err"; then
16017   ac_header_preproc=yes
16018 else
16019   echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022   ac_header_preproc=no
16023 fi
16024
16025 rm -f conftest.err conftest.$ac_ext
16026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16027 echo "${ECHO_T}$ac_header_preproc" >&6; }
16028
16029 # So?  What about this header?
16030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16031   yes:no: )
16032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16036     ac_header_preproc=yes
16037     ;;
16038   no:yes:* )
16039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16051     ( cat <<\_ASBOX
16052 ## ------------------------------------ ##
16053 ## Report this to http://llvm.org/bugs/ ##
16054 ## ------------------------------------ ##
16055 _ASBOX
16056      ) | sed "s/^/$as_me: WARNING:     /" >&2
16057     ;;
16058 esac
16059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16062   echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064   eval "$as_ac_Header=\$ac_header_preproc"
16065 fi
16066 ac_res=`eval echo '${'$as_ac_Header'}'`
16067                { echo "$as_me:$LINENO: result: $ac_res" >&5
16068 echo "${ECHO_T}$ac_res" >&6; }
16069
16070 fi
16071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16072   cat >>confdefs.h <<_ACEOF
16073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16074 _ACEOF
16075
16076 fi
16077
16078 done
16079
16080
16081 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16082 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16083 cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h.  */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h.  */
16089 extern const char *__crashreporter_info__;
16090       int main() {
16091         __crashreporter_info__ = "test";
16092         return 0;
16093       }
16094
16095 _ACEOF
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (ac_try="$ac_link"
16098 case "(($ac_try" in
16099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100   *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103   (eval "$ac_link") 2>conftest.er1
16104   ac_status=$?
16105   grep -v '^ *+' conftest.er1 >conftest.err
16106   rm -f conftest.er1
16107   cat conftest.err >&5
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); } &&
16110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16111   { (case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116   (eval "$ac_try") 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; } &&
16120          { ac_try='test -s conftest$ac_exeext'
16121   { (case "(($ac_try" in
16122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123   *) ac_try_echo=$ac_try;;
16124 esac
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126   (eval "$ac_try") 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; }; then
16130   { echo "$as_me:$LINENO: result: yes" >&5
16131 echo "${ECHO_T}yes" >&6; }
16132
16133 cat >>confdefs.h <<\_ACEOF
16134 #define HAVE_CRASHREPORTER_INFO 1
16135 _ACEOF
16136
16137 else
16138   echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16140
16141         { echo "$as_me:$LINENO: result: no" >&5
16142 echo "${ECHO_T}no" >&6; }
16143
16144 cat >>confdefs.h <<\_ACEOF
16145 #define HAVE_CRASHREPORTER_INFO 0
16146 _ACEOF
16147
16148 fi
16149
16150 rm -f core conftest.err conftest.$ac_objext \
16151       conftest$ac_exeext conftest.$ac_ext
16152
16153
16154
16155
16156   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16157 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16158 if test "${ac_cv_huge_val_sanity+set}" = set; then
16159   echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161
16162     ac_ext=cpp
16163 ac_cpp='$CXXCPP $CPPFLAGS'
16164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16167
16168     ac_save_CXXFLAGS=$CXXFLAGS
16169     CXXFLAGS="$CXXFLAGS -pedantic"
16170     if test "$cross_compiling" = yes; then
16171   ac_cv_huge_val_sanity=yes
16172 else
16173   cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h.  */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h.  */
16179 #include <math.h>
16180 int
16181 main ()
16182 {
16183 double x = HUGE_VAL; return x != x;
16184   ;
16185   return 0;
16186 }
16187 _ACEOF
16188 rm -f conftest$ac_exeext
16189 if { (ac_try="$ac_link"
16190 case "(($ac_try" in
16191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192   *) ac_try_echo=$ac_try;;
16193 esac
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195   (eval "$ac_link") 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16199   { (case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204   (eval "$ac_try") 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); }; }; then
16208   ac_cv_huge_val_sanity=yes
16209 else
16210   echo "$as_me: program exited with status $ac_status" >&5
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ( exit $ac_status )
16215 ac_cv_huge_val_sanity=no
16216 fi
16217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16218 fi
16219
16220
16221     CXXFLAGS=$ac_save_CXXFLAGS
16222     ac_ext=c
16223 ac_cpp='$CPP $CPPFLAGS'
16224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16227
16228
16229 fi
16230 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16231 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16232   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16233
16234
16235 { echo "$as_me:$LINENO: checking for pid_t" >&5
16236 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16237 if test "${ac_cv_type_pid_t+set}" = set; then
16238   echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240   cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h.  */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h.  */
16246 $ac_includes_default
16247 typedef pid_t ac__type_new_;
16248 int
16249 main ()
16250 {
16251 if ((ac__type_new_ *) 0)
16252   return 0;
16253 if (sizeof (ac__type_new_))
16254   return 0;
16255   ;
16256   return 0;
16257 }
16258 _ACEOF
16259 rm -f conftest.$ac_objext
16260 if { (ac_try="$ac_compile"
16261 case "(($ac_try" in
16262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263   *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266   (eval "$ac_compile") 2>conftest.er1
16267   ac_status=$?
16268   grep -v '^ *+' conftest.er1 >conftest.err
16269   rm -f conftest.er1
16270   cat conftest.err >&5
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); } &&
16273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16274   { (case "(($ac_try" in
16275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276   *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279   (eval "$ac_try") 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); }; } &&
16283          { ac_try='test -s conftest.$ac_objext'
16284   { (case "(($ac_try" in
16285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286   *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289   (eval "$ac_try") 2>&5
16290   ac_status=$?
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); }; }; then
16293   ac_cv_type_pid_t=yes
16294 else
16295   echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16297
16298         ac_cv_type_pid_t=no
16299 fi
16300
16301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16302 fi
16303 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16304 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16305 if test $ac_cv_type_pid_t = yes; then
16306   :
16307 else
16308
16309 cat >>confdefs.h <<_ACEOF
16310 #define pid_t int
16311 _ACEOF
16312
16313 fi
16314
16315 { echo "$as_me:$LINENO: checking for size_t" >&5
16316 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16317 if test "${ac_cv_type_size_t+set}" = set; then
16318   echo $ECHO_N "(cached) $ECHO_C" >&6
16319 else
16320   cat >conftest.$ac_ext <<_ACEOF
16321 /* confdefs.h.  */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h.  */
16326 $ac_includes_default
16327 typedef size_t ac__type_new_;
16328 int
16329 main ()
16330 {
16331 if ((ac__type_new_ *) 0)
16332   return 0;
16333 if (sizeof (ac__type_new_))
16334   return 0;
16335   ;
16336   return 0;
16337 }
16338 _ACEOF
16339 rm -f conftest.$ac_objext
16340 if { (ac_try="$ac_compile"
16341 case "(($ac_try" in
16342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343   *) ac_try_echo=$ac_try;;
16344 esac
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346   (eval "$ac_compile") 2>conftest.er1
16347   ac_status=$?
16348   grep -v '^ *+' conftest.er1 >conftest.err
16349   rm -f conftest.er1
16350   cat conftest.err >&5
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); } &&
16353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16354   { (case "(($ac_try" in
16355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356   *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359   (eval "$ac_try") 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; } &&
16363          { ac_try='test -s conftest.$ac_objext'
16364   { (case "(($ac_try" in
16365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366   *) ac_try_echo=$ac_try;;
16367 esac
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369   (eval "$ac_try") 2>&5
16370   ac_status=$?
16371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372   (exit $ac_status); }; }; then
16373   ac_cv_type_size_t=yes
16374 else
16375   echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16377
16378         ac_cv_type_size_t=no
16379 fi
16380
16381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16382 fi
16383 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16384 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16385 if test $ac_cv_type_size_t = yes; then
16386   :
16387 else
16388
16389 cat >>confdefs.h <<_ACEOF
16390 #define size_t unsigned int
16391 _ACEOF
16392
16393 fi
16394
16395
16396 cat >>confdefs.h <<_ACEOF
16397 #define RETSIGTYPE void
16398 _ACEOF
16399
16400 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16401 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16402 if test "${ac_cv_struct_tm+set}" = set; then
16403   echo $ECHO_N "(cached) $ECHO_C" >&6
16404 else
16405   cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h.  */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h.  */
16411 #include <sys/types.h>
16412 #include <time.h>
16413
16414 int
16415 main ()
16416 {
16417 struct tm *tp; tp->tm_sec;
16418   ;
16419   return 0;
16420 }
16421 _ACEOF
16422 rm -f conftest.$ac_objext
16423 if { (ac_try="$ac_compile"
16424 case "(($ac_try" in
16425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426   *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429   (eval "$ac_compile") 2>conftest.er1
16430   ac_status=$?
16431   grep -v '^ *+' conftest.er1 >conftest.err
16432   rm -f conftest.er1
16433   cat conftest.err >&5
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); } &&
16436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16437   { (case "(($ac_try" in
16438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439   *) ac_try_echo=$ac_try;;
16440 esac
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442   (eval "$ac_try") 2>&5
16443   ac_status=$?
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); }; } &&
16446          { ac_try='test -s conftest.$ac_objext'
16447   { (case "(($ac_try" in
16448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449   *) ac_try_echo=$ac_try;;
16450 esac
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452   (eval "$ac_try") 2>&5
16453   ac_status=$?
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); }; }; then
16456   ac_cv_struct_tm=time.h
16457 else
16458   echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16460
16461         ac_cv_struct_tm=sys/time.h
16462 fi
16463
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 fi
16466 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16467 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16468 if test $ac_cv_struct_tm = sys/time.h; then
16469
16470 cat >>confdefs.h <<\_ACEOF
16471 #define TM_IN_SYS_TIME 1
16472 _ACEOF
16473
16474 fi
16475
16476 { echo "$as_me:$LINENO: checking for int64_t" >&5
16477 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16478 if test "${ac_cv_type_int64_t+set}" = set; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481   cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h.  */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h.  */
16487 $ac_includes_default
16488 typedef int64_t ac__type_new_;
16489 int
16490 main ()
16491 {
16492 if ((ac__type_new_ *) 0)
16493   return 0;
16494 if (sizeof (ac__type_new_))
16495   return 0;
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext
16501 if { (ac_try="$ac_compile"
16502 case "(($ac_try" in
16503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504   *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507   (eval "$ac_compile") 2>conftest.er1
16508   ac_status=$?
16509   grep -v '^ *+' conftest.er1 >conftest.err
16510   rm -f conftest.er1
16511   cat conftest.err >&5
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); } &&
16514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515   { (case "(($ac_try" in
16516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517   *) ac_try_echo=$ac_try;;
16518 esac
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520   (eval "$ac_try") 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; } &&
16524          { ac_try='test -s conftest.$ac_objext'
16525   { (case "(($ac_try" in
16526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527   *) ac_try_echo=$ac_try;;
16528 esac
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530   (eval "$ac_try") 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); }; }; then
16534   ac_cv_type_int64_t=yes
16535 else
16536   echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539         ac_cv_type_int64_t=no
16540 fi
16541
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543 fi
16544 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16545 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16546 if test $ac_cv_type_int64_t = yes; then
16547
16548 cat >>confdefs.h <<_ACEOF
16549 #define HAVE_INT64_T 1
16550 _ACEOF
16551
16552
16553 else
16554   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16555 echo "$as_me: error: Type int64_t required but not found" >&2;}
16556    { (exit 1); exit 1; }; }
16557 fi
16558
16559 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16560 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16561 if test "${ac_cv_type_uint64_t+set}" = set; then
16562   echo $ECHO_N "(cached) $ECHO_C" >&6
16563 else
16564   cat >conftest.$ac_ext <<_ACEOF
16565 /* confdefs.h.  */
16566 _ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h.  */
16570 $ac_includes_default
16571 typedef uint64_t ac__type_new_;
16572 int
16573 main ()
16574 {
16575 if ((ac__type_new_ *) 0)
16576   return 0;
16577 if (sizeof (ac__type_new_))
16578   return 0;
16579   ;
16580   return 0;
16581 }
16582 _ACEOF
16583 rm -f conftest.$ac_objext
16584 if { (ac_try="$ac_compile"
16585 case "(($ac_try" in
16586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587   *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590   (eval "$ac_compile") 2>conftest.er1
16591   ac_status=$?
16592   grep -v '^ *+' conftest.er1 >conftest.err
16593   rm -f conftest.er1
16594   cat conftest.err >&5
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); } &&
16597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598   { (case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_try") 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; } &&
16607          { ac_try='test -s conftest.$ac_objext'
16608   { (case "(($ac_try" in
16609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610   *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613   (eval "$ac_try") 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; }; then
16617   ac_cv_type_uint64_t=yes
16618 else
16619   echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16621
16622         ac_cv_type_uint64_t=no
16623 fi
16624
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 fi
16627 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16628 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16629 if test $ac_cv_type_uint64_t = yes; then
16630
16631 cat >>confdefs.h <<_ACEOF
16632 #define HAVE_UINT64_T 1
16633 _ACEOF
16634
16635
16636 else
16637   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16638 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16639 if test "${ac_cv_type_u_int64_t+set}" = set; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648 $ac_includes_default
16649 typedef u_int64_t ac__type_new_;
16650 int
16651 main ()
16652 {
16653 if ((ac__type_new_ *) 0)
16654   return 0;
16655 if (sizeof (ac__type_new_))
16656   return 0;
16657   ;
16658   return 0;
16659 }
16660 _ACEOF
16661 rm -f conftest.$ac_objext
16662 if { (ac_try="$ac_compile"
16663 case "(($ac_try" in
16664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665   *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668   (eval "$ac_compile") 2>conftest.er1
16669   ac_status=$?
16670   grep -v '^ *+' conftest.er1 >conftest.err
16671   rm -f conftest.er1
16672   cat conftest.err >&5
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); } &&
16675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676   { (case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_try") 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; } &&
16685          { ac_try='test -s conftest.$ac_objext'
16686   { (case "(($ac_try" in
16687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688   *) ac_try_echo=$ac_try;;
16689 esac
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691   (eval "$ac_try") 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); }; }; then
16695   ac_cv_type_u_int64_t=yes
16696 else
16697   echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700         ac_cv_type_u_int64_t=no
16701 fi
16702
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704 fi
16705 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16706 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16707 if test $ac_cv_type_u_int64_t = yes; then
16708
16709 cat >>confdefs.h <<_ACEOF
16710 #define HAVE_U_INT64_T 1
16711 _ACEOF
16712
16713
16714 else
16715   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16716 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16717    { (exit 1); exit 1; }; }
16718 fi
16719
16720 fi
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16732 do
16733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16737   echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739   cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16747 #define $ac_func innocuous_$ac_func
16748
16749 /* System header to define __stub macros and hopefully few prototypes,
16750     which can conflict with char $ac_func (); below.
16751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16752     <limits.h> exists even on freestanding compilers.  */
16753
16754 #ifdef __STDC__
16755 # include <limits.h>
16756 #else
16757 # include <assert.h>
16758 #endif
16759
16760 #undef $ac_func
16761
16762 /* Override any GCC internal prototype to avoid an error.
16763    Use char because int might match the return type of a GCC
16764    builtin and then its argument prototype would still apply.  */
16765 #ifdef __cplusplus
16766 extern "C"
16767 #endif
16768 char $ac_func ();
16769 /* The GNU C library defines this for functions which it implements
16770     to always fail with ENOSYS.  Some functions are actually named
16771     something starting with __ and the normal name is an alias.  */
16772 #if defined __stub_$ac_func || defined __stub___$ac_func
16773 choke me
16774 #endif
16775
16776 int
16777 main ()
16778 {
16779 return $ac_func ();
16780   ;
16781   return 0;
16782 }
16783 _ACEOF
16784 rm -f conftest.$ac_objext conftest$ac_exeext
16785 if { (ac_try="$ac_link"
16786 case "(($ac_try" in
16787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788   *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791   (eval "$ac_link") 2>conftest.er1
16792   ac_status=$?
16793   grep -v '^ *+' conftest.er1 >conftest.err
16794   rm -f conftest.er1
16795   cat conftest.err >&5
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); } &&
16798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16799   { (case "(($ac_try" in
16800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801   *) ac_try_echo=$ac_try;;
16802 esac
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804   (eval "$ac_try") 2>&5
16805   ac_status=$?
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); }; } &&
16808          { ac_try='test -s conftest$ac_exeext'
16809   { (case "(($ac_try" in
16810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811   *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814   (eval "$ac_try") 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); }; }; then
16818   eval "$as_ac_var=yes"
16819 else
16820   echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823         eval "$as_ac_var=no"
16824 fi
16825
16826 rm -f core conftest.err conftest.$ac_objext \
16827       conftest$ac_exeext conftest.$ac_ext
16828 fi
16829 ac_res=`eval echo '${'$as_ac_var'}'`
16830                { echo "$as_me:$LINENO: result: $ac_res" >&5
16831 echo "${ECHO_T}$ac_res" >&6; }
16832 if test `eval echo '${'$as_ac_var'}'` = yes; then
16833   cat >>confdefs.h <<_ACEOF
16834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16835 _ACEOF
16836
16837 fi
16838 done
16839
16840
16841
16842
16843
16844 for ac_func in powf fmodf strtof round
16845 do
16846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852   cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h.  */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h.  */
16858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16860 #define $ac_func innocuous_$ac_func
16861
16862 /* System header to define __stub macros and hopefully few prototypes,
16863     which can conflict with char $ac_func (); below.
16864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16865     <limits.h> exists even on freestanding compilers.  */
16866
16867 #ifdef __STDC__
16868 # include <limits.h>
16869 #else
16870 # include <assert.h>
16871 #endif
16872
16873 #undef $ac_func
16874
16875 /* Override any GCC internal prototype to avoid an error.
16876    Use char because int might match the return type of a GCC
16877    builtin and then its argument prototype would still apply.  */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 char $ac_func ();
16882 /* The GNU C library defines this for functions which it implements
16883     to always fail with ENOSYS.  Some functions are actually named
16884     something starting with __ and the normal name is an alias.  */
16885 #if defined __stub_$ac_func || defined __stub___$ac_func
16886 choke me
16887 #endif
16888
16889 int
16890 main ()
16891 {
16892 return $ac_func ();
16893   ;
16894   return 0;
16895 }
16896 _ACEOF
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (ac_try="$ac_link"
16899 case "(($ac_try" in
16900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901   *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904   (eval "$ac_link") 2>conftest.er1
16905   ac_status=$?
16906   grep -v '^ *+' conftest.er1 >conftest.err
16907   rm -f conftest.er1
16908   cat conftest.err >&5
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); } &&
16911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912   { (case "(($ac_try" in
16913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914   *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917   (eval "$ac_try") 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; } &&
16921          { ac_try='test -s conftest$ac_exeext'
16922   { (case "(($ac_try" in
16923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924   *) ac_try_echo=$ac_try;;
16925 esac
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927   (eval "$ac_try") 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; }; then
16931   eval "$as_ac_var=yes"
16932 else
16933   echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936         eval "$as_ac_var=no"
16937 fi
16938
16939 rm -f core conftest.err conftest.$ac_objext \
16940       conftest$ac_exeext conftest.$ac_ext
16941 fi
16942 ac_res=`eval echo '${'$as_ac_var'}'`
16943                { echo "$as_me:$LINENO: result: $ac_res" >&5
16944 echo "${ECHO_T}$ac_res" >&6; }
16945 if test `eval echo '${'$as_ac_var'}'` = yes; then
16946   cat >>confdefs.h <<_ACEOF
16947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16948 _ACEOF
16949
16950 fi
16951 done
16952
16953
16954
16955
16956
16957
16958 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16959 do
16960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16964   echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966   cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h.  */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h.  */
16972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16974 #define $ac_func innocuous_$ac_func
16975
16976 /* System header to define __stub macros and hopefully few prototypes,
16977     which can conflict with char $ac_func (); below.
16978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16979     <limits.h> exists even on freestanding compilers.  */
16980
16981 #ifdef __STDC__
16982 # include <limits.h>
16983 #else
16984 # include <assert.h>
16985 #endif
16986
16987 #undef $ac_func
16988
16989 /* Override any GCC internal prototype to avoid an error.
16990    Use char because int might match the return type of a GCC
16991    builtin and then its argument prototype would still apply.  */
16992 #ifdef __cplusplus
16993 extern "C"
16994 #endif
16995 char $ac_func ();
16996 /* The GNU C library defines this for functions which it implements
16997     to always fail with ENOSYS.  Some functions are actually named
16998     something starting with __ and the normal name is an alias.  */
16999 #if defined __stub_$ac_func || defined __stub___$ac_func
17000 choke me
17001 #endif
17002
17003 int
17004 main ()
17005 {
17006 return $ac_func ();
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015   *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018   (eval "$ac_link") 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } &&
17025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026   { (case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_try") 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; } &&
17035          { ac_try='test -s conftest$ac_exeext'
17036   { (case "(($ac_try" in
17037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038   *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041   (eval "$ac_try") 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; }; then
17045   eval "$as_ac_var=yes"
17046 else
17047   echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050         eval "$as_ac_var=no"
17051 fi
17052
17053 rm -f core conftest.err conftest.$ac_objext \
17054       conftest$ac_exeext conftest.$ac_ext
17055 fi
17056 ac_res=`eval echo '${'$as_ac_var'}'`
17057                { echo "$as_me:$LINENO: result: $ac_res" >&5
17058 echo "${ECHO_T}$ac_res" >&6; }
17059 if test `eval echo '${'$as_ac_var'}'` = yes; then
17060   cat >>confdefs.h <<_ACEOF
17061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17062 _ACEOF
17063
17064 fi
17065 done
17066
17067
17068
17069
17070 for ac_func in isatty mkdtemp mkstemp
17071 do
17072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17076   echo $ECHO_N "(cached) $ECHO_C" >&6
17077 else
17078   cat >conftest.$ac_ext <<_ACEOF
17079 /* confdefs.h.  */
17080 _ACEOF
17081 cat confdefs.h >>conftest.$ac_ext
17082 cat >>conftest.$ac_ext <<_ACEOF
17083 /* end confdefs.h.  */
17084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17086 #define $ac_func innocuous_$ac_func
17087
17088 /* System header to define __stub macros and hopefully few prototypes,
17089     which can conflict with char $ac_func (); below.
17090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17091     <limits.h> exists even on freestanding compilers.  */
17092
17093 #ifdef __STDC__
17094 # include <limits.h>
17095 #else
17096 # include <assert.h>
17097 #endif
17098
17099 #undef $ac_func
17100
17101 /* Override any GCC internal prototype to avoid an error.
17102    Use char because int might match the return type of a GCC
17103    builtin and then its argument prototype would still apply.  */
17104 #ifdef __cplusplus
17105 extern "C"
17106 #endif
17107 char $ac_func ();
17108 /* The GNU C library defines this for functions which it implements
17109     to always fail with ENOSYS.  Some functions are actually named
17110     something starting with __ and the normal name is an alias.  */
17111 #if defined __stub_$ac_func || defined __stub___$ac_func
17112 choke me
17113 #endif
17114
17115 int
17116 main ()
17117 {
17118 return $ac_func ();
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext conftest$ac_exeext
17124 if { (ac_try="$ac_link"
17125 case "(($ac_try" in
17126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127   *) ac_try_echo=$ac_try;;
17128 esac
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130   (eval "$ac_link") 2>conftest.er1
17131   ac_status=$?
17132   grep -v '^ *+' conftest.er1 >conftest.err
17133   rm -f conftest.er1
17134   cat conftest.err >&5
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } &&
17137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138   { (case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143   (eval "$ac_try") 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; } &&
17147          { ac_try='test -s conftest$ac_exeext'
17148   { (case "(($ac_try" in
17149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150   *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153   (eval "$ac_try") 2>&5
17154   ac_status=$?
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); }; }; then
17157   eval "$as_ac_var=yes"
17158 else
17159   echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162         eval "$as_ac_var=no"
17163 fi
17164
17165 rm -f core conftest.err conftest.$ac_objext \
17166       conftest$ac_exeext conftest.$ac_ext
17167 fi
17168 ac_res=`eval echo '${'$as_ac_var'}'`
17169                { echo "$as_me:$LINENO: result: $ac_res" >&5
17170 echo "${ECHO_T}$ac_res" >&6; }
17171 if test `eval echo '${'$as_ac_var'}'` = yes; then
17172   cat >>confdefs.h <<_ACEOF
17173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17174 _ACEOF
17175
17176 fi
17177 done
17178
17179
17180
17181
17182
17183
17184
17185
17186 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17187 do
17188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17192   echo $ECHO_N "(cached) $ECHO_C" >&6
17193 else
17194   cat >conftest.$ac_ext <<_ACEOF
17195 /* confdefs.h.  */
17196 _ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h.  */
17200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17202 #define $ac_func innocuous_$ac_func
17203
17204 /* System header to define __stub macros and hopefully few prototypes,
17205     which can conflict with char $ac_func (); below.
17206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17207     <limits.h> exists even on freestanding compilers.  */
17208
17209 #ifdef __STDC__
17210 # include <limits.h>
17211 #else
17212 # include <assert.h>
17213 #endif
17214
17215 #undef $ac_func
17216
17217 /* Override any GCC internal prototype to avoid an error.
17218    Use char because int might match the return type of a GCC
17219    builtin and then its argument prototype would still apply.  */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 char $ac_func ();
17224 /* The GNU C library defines this for functions which it implements
17225     to always fail with ENOSYS.  Some functions are actually named
17226     something starting with __ and the normal name is an alias.  */
17227 #if defined __stub_$ac_func || defined __stub___$ac_func
17228 choke me
17229 #endif
17230
17231 int
17232 main ()
17233 {
17234 return $ac_func ();
17235   ;
17236   return 0;
17237 }
17238 _ACEOF
17239 rm -f conftest.$ac_objext conftest$ac_exeext
17240 if { (ac_try="$ac_link"
17241 case "(($ac_try" in
17242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243   *) ac_try_echo=$ac_try;;
17244 esac
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246   (eval "$ac_link") 2>conftest.er1
17247   ac_status=$?
17248   grep -v '^ *+' conftest.er1 >conftest.err
17249   rm -f conftest.er1
17250   cat conftest.err >&5
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); } &&
17253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17254   { (case "(($ac_try" in
17255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256   *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259   (eval "$ac_try") 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; } &&
17263          { ac_try='test -s conftest$ac_exeext'
17264   { (case "(($ac_try" in
17265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266   *) ac_try_echo=$ac_try;;
17267 esac
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269   (eval "$ac_try") 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; }; then
17273   eval "$as_ac_var=yes"
17274 else
17275   echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278         eval "$as_ac_var=no"
17279 fi
17280
17281 rm -f core conftest.err conftest.$ac_objext \
17282       conftest$ac_exeext conftest.$ac_ext
17283 fi
17284 ac_res=`eval echo '${'$as_ac_var'}'`
17285                { echo "$as_me:$LINENO: result: $ac_res" >&5
17286 echo "${ECHO_T}$ac_res" >&6; }
17287 if test `eval echo '${'$as_ac_var'}'` = yes; then
17288   cat >>confdefs.h <<_ACEOF
17289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17290 _ACEOF
17291
17292 fi
17293 done
17294
17295
17296
17297
17298
17299 for ac_func in strerror strerror_r setenv arc4random
17300 do
17301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17305   echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307   cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h.  */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h.  */
17313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17315 #define $ac_func innocuous_$ac_func
17316
17317 /* System header to define __stub macros and hopefully few prototypes,
17318     which can conflict with char $ac_func (); below.
17319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320     <limits.h> exists even on freestanding compilers.  */
17321
17322 #ifdef __STDC__
17323 # include <limits.h>
17324 #else
17325 # include <assert.h>
17326 #endif
17327
17328 #undef $ac_func
17329
17330 /* Override any GCC internal prototype to avoid an error.
17331    Use char because int might match the return type of a GCC
17332    builtin and then its argument prototype would still apply.  */
17333 #ifdef __cplusplus
17334 extern "C"
17335 #endif
17336 char $ac_func ();
17337 /* The GNU C library defines this for functions which it implements
17338     to always fail with ENOSYS.  Some functions are actually named
17339     something starting with __ and the normal name is an alias.  */
17340 #if defined __stub_$ac_func || defined __stub___$ac_func
17341 choke me
17342 #endif
17343
17344 int
17345 main ()
17346 {
17347 return $ac_func ();
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359   (eval "$ac_link") 2>conftest.er1
17360   ac_status=$?
17361   grep -v '^ *+' conftest.er1 >conftest.err
17362   rm -f conftest.er1
17363   cat conftest.err >&5
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } &&
17366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367   { (case "(($ac_try" in
17368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369   *) ac_try_echo=$ac_try;;
17370 esac
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372   (eval "$ac_try") 2>&5
17373   ac_status=$?
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); }; } &&
17376          { ac_try='test -s conftest$ac_exeext'
17377   { (case "(($ac_try" in
17378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379   *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382   (eval "$ac_try") 2>&5
17383   ac_status=$?
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); }; }; then
17386   eval "$as_ac_var=yes"
17387 else
17388   echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17390
17391         eval "$as_ac_var=no"
17392 fi
17393
17394 rm -f core conftest.err conftest.$ac_objext \
17395       conftest$ac_exeext conftest.$ac_ext
17396 fi
17397 ac_res=`eval echo '${'$as_ac_var'}'`
17398                { echo "$as_me:$LINENO: result: $ac_res" >&5
17399 echo "${ECHO_T}$ac_res" >&6; }
17400 if test `eval echo '${'$as_ac_var'}'` = yes; then
17401   cat >>confdefs.h <<_ACEOF
17402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17403 _ACEOF
17404
17405 fi
17406 done
17407
17408
17409
17410
17411
17412 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17413 do
17414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17418   echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420   cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17428 #define $ac_func innocuous_$ac_func
17429
17430 /* System header to define __stub macros and hopefully few prototypes,
17431     which can conflict with char $ac_func (); below.
17432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433     <limits.h> exists even on freestanding compilers.  */
17434
17435 #ifdef __STDC__
17436 # include <limits.h>
17437 #else
17438 # include <assert.h>
17439 #endif
17440
17441 #undef $ac_func
17442
17443 /* Override any GCC internal prototype to avoid an error.
17444    Use char because int might match the return type of a GCC
17445    builtin and then its argument prototype would still apply.  */
17446 #ifdef __cplusplus
17447 extern "C"
17448 #endif
17449 char $ac_func ();
17450 /* The GNU C library defines this for functions which it implements
17451     to always fail with ENOSYS.  Some functions are actually named
17452     something starting with __ and the normal name is an alias.  */
17453 #if defined __stub_$ac_func || defined __stub___$ac_func
17454 choke me
17455 #endif
17456
17457 int
17458 main ()
17459 {
17460 return $ac_func ();
17461   ;
17462   return 0;
17463 }
17464 _ACEOF
17465 rm -f conftest.$ac_objext conftest$ac_exeext
17466 if { (ac_try="$ac_link"
17467 case "(($ac_try" in
17468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469   *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472   (eval "$ac_link") 2>conftest.er1
17473   ac_status=$?
17474   grep -v '^ *+' conftest.er1 >conftest.err
17475   rm -f conftest.er1
17476   cat conftest.err >&5
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); } &&
17479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17480   { (case "(($ac_try" in
17481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482   *) ac_try_echo=$ac_try;;
17483 esac
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485   (eval "$ac_try") 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); }; } &&
17489          { ac_try='test -s conftest$ac_exeext'
17490   { (case "(($ac_try" in
17491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492   *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495   (eval "$ac_try") 2>&5
17496   ac_status=$?
17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); }; }; then
17499   eval "$as_ac_var=yes"
17500 else
17501   echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17503
17504         eval "$as_ac_var=no"
17505 fi
17506
17507 rm -f core conftest.err conftest.$ac_objext \
17508       conftest$ac_exeext conftest.$ac_ext
17509 fi
17510 ac_res=`eval echo '${'$as_ac_var'}'`
17511                { echo "$as_me:$LINENO: result: $ac_res" >&5
17512 echo "${ECHO_T}$ac_res" >&6; }
17513 if test `eval echo '${'$as_ac_var'}'` = yes; then
17514   cat >>confdefs.h <<_ACEOF
17515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17516 _ACEOF
17517
17518 fi
17519 done
17520
17521
17522
17523
17524
17525
17526 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17527 do
17528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17532   echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534   cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h.  */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h.  */
17540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17542 #define $ac_func innocuous_$ac_func
17543
17544 /* System header to define __stub macros and hopefully few prototypes,
17545     which can conflict with char $ac_func (); below.
17546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547     <limits.h> exists even on freestanding compilers.  */
17548
17549 #ifdef __STDC__
17550 # include <limits.h>
17551 #else
17552 # include <assert.h>
17553 #endif
17554
17555 #undef $ac_func
17556
17557 /* Override any GCC internal prototype to avoid an error.
17558    Use char because int might match the return type of a GCC
17559    builtin and then its argument prototype would still apply.  */
17560 #ifdef __cplusplus
17561 extern "C"
17562 #endif
17563 char $ac_func ();
17564 /* The GNU C library defines this for functions which it implements
17565     to always fail with ENOSYS.  Some functions are actually named
17566     something starting with __ and the normal name is an alias.  */
17567 #if defined __stub_$ac_func || defined __stub___$ac_func
17568 choke me
17569 #endif
17570
17571 int
17572 main ()
17573 {
17574 return $ac_func ();
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_link") 2>conftest.er1
17587   ac_status=$?
17588   grep -v '^ *+' conftest.er1 >conftest.err
17589   rm -f conftest.er1
17590   cat conftest.err >&5
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); } &&
17593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594   { (case "(($ac_try" in
17595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596   *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599   (eval "$ac_try") 2>&5
17600   ac_status=$?
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); }; } &&
17603          { ac_try='test -s conftest$ac_exeext'
17604   { (case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_try") 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; }; then
17613   eval "$as_ac_var=yes"
17614 else
17615   echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17617
17618         eval "$as_ac_var=no"
17619 fi
17620
17621 rm -f core conftest.err conftest.$ac_objext \
17622       conftest$ac_exeext conftest.$ac_ext
17623 fi
17624 ac_res=`eval echo '${'$as_ac_var'}'`
17625                { echo "$as_me:$LINENO: result: $ac_res" >&5
17626 echo "${ECHO_T}$ac_res" >&6; }
17627 if test `eval echo '${'$as_ac_var'}'` = yes; then
17628   cat >>confdefs.h <<_ACEOF
17629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17630 _ACEOF
17631
17632 fi
17633 done
17634
17635 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17636 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17637 if test "${llvm_cv_c_printf_a+set}" = set; then
17638   echo $ECHO_N "(cached) $ECHO_C" >&6
17639 else
17640   ac_ext=c
17641 ac_cpp='$CPP $CPPFLAGS'
17642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17645
17646  if test "$cross_compiling" = yes; then
17647   llvmac_cv_c_printf_a=no
17648 else
17649   cat >conftest.$ac_ext <<_ACEOF
17650
17651   /* confdefs.h.  */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h.  */
17656
17657 #include <stdio.h>
17658 #include <stdlib.h>
17659
17660 int
17661 main ()
17662 {
17663
17664 volatile double A, B;
17665 char Buffer[100];
17666 A = 1;
17667 A /= 10.0;
17668 sprintf(Buffer, "%a", A);
17669 B = atof(Buffer);
17670 if (A != B)
17671   return (1);
17672 if (A != 0x1.999999999999ap-4)
17673   return (1);
17674 return (0);
17675   ;
17676   return 0;
17677 }
17678 _ACEOF
17679 rm -f conftest$ac_exeext
17680 if { (ac_try="$ac_link"
17681 case "(($ac_try" in
17682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683   *) ac_try_echo=$ac_try;;
17684 esac
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686   (eval "$ac_link") 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17690   { (case "(($ac_try" in
17691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692   *) ac_try_echo=$ac_try;;
17693 esac
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695   (eval "$ac_try") 2>&5
17696   ac_status=$?
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); }; }; then
17699   llvm_cv_c_printf_a=yes
17700 else
17701   echo "$as_me: program exited with status $ac_status" >&5
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705 ( exit $ac_status )
17706 llvmac_cv_c_printf_a=no
17707 fi
17708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17709 fi
17710
17711
17712  ac_ext=c
17713 ac_cpp='$CPP $CPPFLAGS'
17714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717
17718 fi
17719 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17720 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17721  if test "$llvm_cv_c_printf_a" = "yes"; then
17722
17723 cat >>confdefs.h <<\_ACEOF
17724 #define HAVE_PRINTF_A 1
17725 _ACEOF
17726
17727  fi
17728
17729
17730 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17731 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17732 if test "${ac_cv_func_rand48+set}" = set; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735   ac_ext=cpp
17736 ac_cpp='$CXXCPP $CPPFLAGS'
17737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17740
17741    cat >conftest.$ac_ext <<_ACEOF
17742 /* confdefs.h.  */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h.  */
17747 #include <stdlib.h>
17748 int
17749 main ()
17750 {
17751 srand48(0);lrand48();drand48();
17752   ;
17753   return 0;
17754 }
17755 _ACEOF
17756 rm -f conftest.$ac_objext
17757 if { (ac_try="$ac_compile"
17758 case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_compile") 2>conftest.er1
17764   ac_status=$?
17765   grep -v '^ *+' conftest.er1 >conftest.err
17766   rm -f conftest.er1
17767   cat conftest.err >&5
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } &&
17770          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17771   { (case "(($ac_try" in
17772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773   *) ac_try_echo=$ac_try;;
17774 esac
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776   (eval "$ac_try") 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; } &&
17780          { ac_try='test -s conftest.$ac_objext'
17781   { (case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786   (eval "$ac_try") 2>&5
17787   ac_status=$?
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); }; }; then
17790   ac_cv_func_rand48=yes
17791 else
17792   echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17794
17795         ac_cv_func_rand48=no
17796 fi
17797
17798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17799   ac_ext=c
17800 ac_cpp='$CPP $CPPFLAGS'
17801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17804
17805 fi
17806 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17807 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17808
17809 if test "$ac_cv_func_rand48" = "yes" ; then
17810
17811 cat >>confdefs.h <<\_ACEOF
17812 #define HAVE_RAND48 1
17813 _ACEOF
17814
17815 fi
17816
17817
17818 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17819 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17820 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17821   echo $ECHO_N "(cached) $ECHO_C" >&6
17822 else
17823   cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h.  */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h.  */
17829 $ac_includes_default
17830 int
17831 main ()
17832 {
17833 #ifndef strerror_s
17834   char *p = (char *) strerror_s;
17835   return !p;
17836 #endif
17837
17838   ;
17839   return 0;
17840 }
17841 _ACEOF
17842 rm -f conftest.$ac_objext
17843 if { (ac_try="$ac_compile"
17844 case "(($ac_try" in
17845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846   *) ac_try_echo=$ac_try;;
17847 esac
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849   (eval "$ac_compile") 2>conftest.er1
17850   ac_status=$?
17851   grep -v '^ *+' conftest.er1 >conftest.err
17852   rm -f conftest.er1
17853   cat conftest.err >&5
17854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855   (exit $ac_status); } &&
17856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857   { (case "(($ac_try" in
17858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859   *) ac_try_echo=$ac_try;;
17860 esac
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862   (eval "$ac_try") 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; } &&
17866          { ac_try='test -s conftest.$ac_objext'
17867   { (case "(($ac_try" in
17868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869   *) ac_try_echo=$ac_try;;
17870 esac
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872   (eval "$ac_try") 2>&5
17873   ac_status=$?
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); }; }; then
17876   ac_cv_have_decl_strerror_s=yes
17877 else
17878   echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881         ac_cv_have_decl_strerror_s=no
17882 fi
17883
17884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885 fi
17886 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17887 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17888 if test $ac_cv_have_decl_strerror_s = yes; then
17889
17890 cat >>confdefs.h <<_ACEOF
17891 #define HAVE_DECL_STRERROR_S 1
17892 _ACEOF
17893
17894
17895 else
17896   cat >>confdefs.h <<_ACEOF
17897 #define HAVE_DECL_STRERROR_S 0
17898 _ACEOF
17899
17900
17901 fi
17902
17903
17904
17905 if test "$llvm_cv_os_type" = "MingW" ; then
17906   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17907 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17908 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17909   echo $ECHO_N "(cached) $ECHO_C" >&6
17910 else
17911   ac_check_lib_save_LIBS=$LIBS
17912 LIBS="-lgcc  $LIBS"
17913 cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h.  */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h.  */
17919
17920 /* Override any GCC internal prototype to avoid an error.
17921    Use char because int might match the return type of a GCC
17922    builtin and then its argument prototype would still apply.  */
17923 #ifdef __cplusplus
17924 extern "C"
17925 #endif
17926 char _alloca ();
17927 int
17928 main ()
17929 {
17930 return _alloca ();
17931   ;
17932   return 0;
17933 }
17934 _ACEOF
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (ac_try="$ac_link"
17937 case "(($ac_try" in
17938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939   *) ac_try_echo=$ac_try;;
17940 esac
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942   (eval "$ac_link") 2>conftest.er1
17943   ac_status=$?
17944   grep -v '^ *+' conftest.er1 >conftest.err
17945   rm -f conftest.er1
17946   cat conftest.err >&5
17947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948   (exit $ac_status); } &&
17949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17950   { (case "(($ac_try" in
17951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952   *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955   (eval "$ac_try") 2>&5
17956   ac_status=$?
17957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); }; } &&
17959          { ac_try='test -s conftest$ac_exeext'
17960   { (case "(($ac_try" in
17961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962   *) ac_try_echo=$ac_try;;
17963 esac
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965   (eval "$ac_try") 2>&5
17966   ac_status=$?
17967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); }; }; then
17969   ac_cv_lib_gcc__alloca=yes
17970 else
17971   echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17973
17974         ac_cv_lib_gcc__alloca=no
17975 fi
17976
17977 rm -f core conftest.err conftest.$ac_objext \
17978       conftest$ac_exeext conftest.$ac_ext
17979 LIBS=$ac_check_lib_save_LIBS
17980 fi
17981 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17982 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17983 if test $ac_cv_lib_gcc__alloca = yes; then
17984
17985 cat >>confdefs.h <<\_ACEOF
17986 #define HAVE__ALLOCA 1
17987 _ACEOF
17988
17989 fi
17990
17991   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17992 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17993 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17994   echo $ECHO_N "(cached) $ECHO_C" >&6
17995 else
17996   ac_check_lib_save_LIBS=$LIBS
17997 LIBS="-lgcc  $LIBS"
17998 cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h.  */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h.  */
18004
18005 /* Override any GCC internal prototype to avoid an error.
18006    Use char because int might match the return type of a GCC
18007    builtin and then its argument prototype would still apply.  */
18008 #ifdef __cplusplus
18009 extern "C"
18010 #endif
18011 char __alloca ();
18012 int
18013 main ()
18014 {
18015 return __alloca ();
18016   ;
18017   return 0;
18018 }
18019 _ACEOF
18020 rm -f conftest.$ac_objext conftest$ac_exeext
18021 if { (ac_try="$ac_link"
18022 case "(($ac_try" in
18023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024   *) ac_try_echo=$ac_try;;
18025 esac
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027   (eval "$ac_link") 2>conftest.er1
18028   ac_status=$?
18029   grep -v '^ *+' conftest.er1 >conftest.err
18030   rm -f conftest.er1
18031   cat conftest.err >&5
18032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033   (exit $ac_status); } &&
18034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18035   { (case "(($ac_try" in
18036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037   *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040   (eval "$ac_try") 2>&5
18041   ac_status=$?
18042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043   (exit $ac_status); }; } &&
18044          { ac_try='test -s conftest$ac_exeext'
18045   { (case "(($ac_try" in
18046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047   *) ac_try_echo=$ac_try;;
18048 esac
18049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18050   (eval "$ac_try") 2>&5
18051   ac_status=$?
18052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053   (exit $ac_status); }; }; then
18054   ac_cv_lib_gcc___alloca=yes
18055 else
18056   echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059         ac_cv_lib_gcc___alloca=no
18060 fi
18061
18062 rm -f core conftest.err conftest.$ac_objext \
18063       conftest$ac_exeext conftest.$ac_ext
18064 LIBS=$ac_check_lib_save_LIBS
18065 fi
18066 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18067 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18068 if test $ac_cv_lib_gcc___alloca = yes; then
18069
18070 cat >>confdefs.h <<\_ACEOF
18071 #define HAVE___ALLOCA 1
18072 _ACEOF
18073
18074 fi
18075
18076   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18077 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18078 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18079   echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18081   ac_check_lib_save_LIBS=$LIBS
18082 LIBS="-lgcc  $LIBS"
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089
18090 /* Override any GCC internal prototype to avoid an error.
18091    Use char because int might match the return type of a GCC
18092    builtin and then its argument prototype would still apply.  */
18093 #ifdef __cplusplus
18094 extern "C"
18095 #endif
18096 char __chkstk ();
18097 int
18098 main ()
18099 {
18100 return __chkstk ();
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (ac_try="$ac_link"
18107 case "(($ac_try" in
18108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109   *) ac_try_echo=$ac_try;;
18110 esac
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112   (eval "$ac_link") 2>conftest.er1
18113   ac_status=$?
18114   grep -v '^ *+' conftest.er1 >conftest.err
18115   rm -f conftest.er1
18116   cat conftest.err >&5
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); } &&
18119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120   { (case "(($ac_try" in
18121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122   *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125   (eval "$ac_try") 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; } &&
18129          { ac_try='test -s conftest$ac_exeext'
18130   { (case "(($ac_try" in
18131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132   *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135   (eval "$ac_try") 2>&5
18136   ac_status=$?
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); }; }; then
18139   ac_cv_lib_gcc___chkstk=yes
18140 else
18141   echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18143
18144         ac_cv_lib_gcc___chkstk=no
18145 fi
18146
18147 rm -f core conftest.err conftest.$ac_objext \
18148       conftest$ac_exeext conftest.$ac_ext
18149 LIBS=$ac_check_lib_save_LIBS
18150 fi
18151 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18152 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18153 if test $ac_cv_lib_gcc___chkstk = yes; then
18154
18155 cat >>confdefs.h <<\_ACEOF
18156 #define HAVE___CHKSTK 1
18157 _ACEOF
18158
18159 fi
18160
18161   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18162 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18163 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18164   echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18166   ac_check_lib_save_LIBS=$LIBS
18167 LIBS="-lgcc  $LIBS"
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h.  */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h.  */
18174
18175 /* Override any GCC internal prototype to avoid an error.
18176    Use char because int might match the return type of a GCC
18177    builtin and then its argument prototype would still apply.  */
18178 #ifdef __cplusplus
18179 extern "C"
18180 #endif
18181 char ___chkstk ();
18182 int
18183 main ()
18184 {
18185 return ___chkstk ();
18186   ;
18187   return 0;
18188 }
18189 _ACEOF
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194   *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197   (eval "$ac_link") 2>conftest.er1
18198   ac_status=$?
18199   grep -v '^ *+' conftest.er1 >conftest.err
18200   rm -f conftest.er1
18201   cat conftest.err >&5
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); } &&
18204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205   { (case "(($ac_try" in
18206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207   *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210   (eval "$ac_try") 2>&5
18211   ac_status=$?
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); }; } &&
18214          { ac_try='test -s conftest$ac_exeext'
18215   { (case "(($ac_try" in
18216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217   *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220   (eval "$ac_try") 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; }; then
18224   ac_cv_lib_gcc____chkstk=yes
18225 else
18226   echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229         ac_cv_lib_gcc____chkstk=no
18230 fi
18231
18232 rm -f core conftest.err conftest.$ac_objext \
18233       conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_check_lib_save_LIBS
18235 fi
18236 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18237 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18238 if test $ac_cv_lib_gcc____chkstk = yes; then
18239
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE____CHKSTK 1
18242 _ACEOF
18243
18244 fi
18245
18246
18247   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18248 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18249 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18250   echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252   ac_check_lib_save_LIBS=$LIBS
18253 LIBS="-lgcc  $LIBS"
18254 cat >conftest.$ac_ext <<_ACEOF
18255 /* confdefs.h.  */
18256 _ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h.  */
18260
18261 /* Override any GCC internal prototype to avoid an error.
18262    Use char because int might match the return type of a GCC
18263    builtin and then its argument prototype would still apply.  */
18264 #ifdef __cplusplus
18265 extern "C"
18266 #endif
18267 char __ashldi3 ();
18268 int
18269 main ()
18270 {
18271 return __ashldi3 ();
18272   ;
18273   return 0;
18274 }
18275 _ACEOF
18276 rm -f conftest.$ac_objext conftest$ac_exeext
18277 if { (ac_try="$ac_link"
18278 case "(($ac_try" in
18279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280   *) ac_try_echo=$ac_try;;
18281 esac
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283   (eval "$ac_link") 2>conftest.er1
18284   ac_status=$?
18285   grep -v '^ *+' conftest.er1 >conftest.err
18286   rm -f conftest.er1
18287   cat conftest.err >&5
18288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289   (exit $ac_status); } &&
18290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18291   { (case "(($ac_try" in
18292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293   *) ac_try_echo=$ac_try;;
18294 esac
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296   (eval "$ac_try") 2>&5
18297   ac_status=$?
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); }; } &&
18300          { ac_try='test -s conftest$ac_exeext'
18301   { (case "(($ac_try" in
18302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303   *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306   (eval "$ac_try") 2>&5
18307   ac_status=$?
18308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309   (exit $ac_status); }; }; then
18310   ac_cv_lib_gcc___ashldi3=yes
18311 else
18312   echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18314
18315         ac_cv_lib_gcc___ashldi3=no
18316 fi
18317
18318 rm -f core conftest.err conftest.$ac_objext \
18319       conftest$ac_exeext conftest.$ac_ext
18320 LIBS=$ac_check_lib_save_LIBS
18321 fi
18322 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18323 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18324 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18325
18326 cat >>confdefs.h <<\_ACEOF
18327 #define HAVE___ASHLDI3 1
18328 _ACEOF
18329
18330 fi
18331
18332   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18333 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18334 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18335   echo $ECHO_N "(cached) $ECHO_C" >&6
18336 else
18337   ac_check_lib_save_LIBS=$LIBS
18338 LIBS="-lgcc  $LIBS"
18339 cat >conftest.$ac_ext <<_ACEOF
18340 /* confdefs.h.  */
18341 _ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h.  */
18345
18346 /* Override any GCC internal prototype to avoid an error.
18347    Use char because int might match the return type of a GCC
18348    builtin and then its argument prototype would still apply.  */
18349 #ifdef __cplusplus
18350 extern "C"
18351 #endif
18352 char __ashrdi3 ();
18353 int
18354 main ()
18355 {
18356 return __ashrdi3 ();
18357   ;
18358   return 0;
18359 }
18360 _ACEOF
18361 rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (ac_try="$ac_link"
18363 case "(($ac_try" in
18364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365   *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368   (eval "$ac_link") 2>conftest.er1
18369   ac_status=$?
18370   grep -v '^ *+' conftest.er1 >conftest.err
18371   rm -f conftest.er1
18372   cat conftest.err >&5
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); } &&
18375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18376   { (case "(($ac_try" in
18377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378   *) ac_try_echo=$ac_try;;
18379 esac
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381   (eval "$ac_try") 2>&5
18382   ac_status=$?
18383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384   (exit $ac_status); }; } &&
18385          { ac_try='test -s conftest$ac_exeext'
18386   { (case "(($ac_try" in
18387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388   *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391   (eval "$ac_try") 2>&5
18392   ac_status=$?
18393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394   (exit $ac_status); }; }; then
18395   ac_cv_lib_gcc___ashrdi3=yes
18396 else
18397   echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18399
18400         ac_cv_lib_gcc___ashrdi3=no
18401 fi
18402
18403 rm -f core conftest.err conftest.$ac_objext \
18404       conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18406 fi
18407 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18408 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18409 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18410
18411 cat >>confdefs.h <<\_ACEOF
18412 #define HAVE___ASHRDI3 1
18413 _ACEOF
18414
18415 fi
18416
18417   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18418 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18419 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18420   echo $ECHO_N "(cached) $ECHO_C" >&6
18421 else
18422   ac_check_lib_save_LIBS=$LIBS
18423 LIBS="-lgcc  $LIBS"
18424 cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h.  */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h.  */
18430
18431 /* Override any GCC internal prototype to avoid an error.
18432    Use char because int might match the return type of a GCC
18433    builtin and then its argument prototype would still apply.  */
18434 #ifdef __cplusplus
18435 extern "C"
18436 #endif
18437 char __divdi3 ();
18438 int
18439 main ()
18440 {
18441 return __divdi3 ();
18442   ;
18443   return 0;
18444 }
18445 _ACEOF
18446 rm -f conftest.$ac_objext conftest$ac_exeext
18447 if { (ac_try="$ac_link"
18448 case "(($ac_try" in
18449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450   *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453   (eval "$ac_link") 2>conftest.er1
18454   ac_status=$?
18455   grep -v '^ *+' conftest.er1 >conftest.err
18456   rm -f conftest.er1
18457   cat conftest.err >&5
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); } &&
18460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18461   { (case "(($ac_try" in
18462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463   *) ac_try_echo=$ac_try;;
18464 esac
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466   (eval "$ac_try") 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); }; } &&
18470          { ac_try='test -s conftest$ac_exeext'
18471   { (case "(($ac_try" in
18472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473   *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476   (eval "$ac_try") 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); }; }; then
18480   ac_cv_lib_gcc___divdi3=yes
18481 else
18482   echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18484
18485         ac_cv_lib_gcc___divdi3=no
18486 fi
18487
18488 rm -f core conftest.err conftest.$ac_objext \
18489       conftest$ac_exeext conftest.$ac_ext
18490 LIBS=$ac_check_lib_save_LIBS
18491 fi
18492 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18493 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18494 if test $ac_cv_lib_gcc___divdi3 = yes; then
18495
18496 cat >>confdefs.h <<\_ACEOF
18497 #define HAVE___DIVDI3 1
18498 _ACEOF
18499
18500 fi
18501
18502   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18503 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18504 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18505   echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507   ac_check_lib_save_LIBS=$LIBS
18508 LIBS="-lgcc  $LIBS"
18509 cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h.  */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h.  */
18515
18516 /* Override any GCC internal prototype to avoid an error.
18517    Use char because int might match the return type of a GCC
18518    builtin and then its argument prototype would still apply.  */
18519 #ifdef __cplusplus
18520 extern "C"
18521 #endif
18522 char __fixdfdi ();
18523 int
18524 main ()
18525 {
18526 return __fixdfdi ();
18527   ;
18528   return 0;
18529 }
18530 _ACEOF
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535   *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538   (eval "$ac_link") 2>conftest.er1
18539   ac_status=$?
18540   grep -v '^ *+' conftest.er1 >conftest.err
18541   rm -f conftest.er1
18542   cat conftest.err >&5
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } &&
18545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546   { (case "(($ac_try" in
18547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548   *) ac_try_echo=$ac_try;;
18549 esac
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551   (eval "$ac_try") 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; } &&
18555          { ac_try='test -s conftest$ac_exeext'
18556   { (case "(($ac_try" in
18557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558   *) ac_try_echo=$ac_try;;
18559 esac
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561   (eval "$ac_try") 2>&5
18562   ac_status=$?
18563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564   (exit $ac_status); }; }; then
18565   ac_cv_lib_gcc___fixdfdi=yes
18566 else
18567   echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18569
18570         ac_cv_lib_gcc___fixdfdi=no
18571 fi
18572
18573 rm -f core conftest.err conftest.$ac_objext \
18574       conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18576 fi
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18578 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18579 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18580
18581 cat >>confdefs.h <<\_ACEOF
18582 #define HAVE___FIXDFDI 1
18583 _ACEOF
18584
18585 fi
18586
18587   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18588 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18589 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18590   echo $ECHO_N "(cached) $ECHO_C" >&6
18591 else
18592   ac_check_lib_save_LIBS=$LIBS
18593 LIBS="-lgcc  $LIBS"
18594 cat >conftest.$ac_ext <<_ACEOF
18595 /* confdefs.h.  */
18596 _ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h.  */
18600
18601 /* Override any GCC internal prototype to avoid an error.
18602    Use char because int might match the return type of a GCC
18603    builtin and then its argument prototype would still apply.  */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 char __fixsfdi ();
18608 int
18609 main ()
18610 {
18611 return __fixsfdi ();
18612   ;
18613   return 0;
18614 }
18615 _ACEOF
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620   *) ac_try_echo=$ac_try;;
18621 esac
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623   (eval "$ac_link") 2>conftest.er1
18624   ac_status=$?
18625   grep -v '^ *+' conftest.er1 >conftest.err
18626   rm -f conftest.er1
18627   cat conftest.err >&5
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); } &&
18630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631   { (case "(($ac_try" in
18632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633   *) ac_try_echo=$ac_try;;
18634 esac
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636   (eval "$ac_try") 2>&5
18637   ac_status=$?
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); }; } &&
18640          { ac_try='test -s conftest$ac_exeext'
18641   { (case "(($ac_try" in
18642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643   *) ac_try_echo=$ac_try;;
18644 esac
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646   (eval "$ac_try") 2>&5
18647   ac_status=$?
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); }; }; then
18650   ac_cv_lib_gcc___fixsfdi=yes
18651 else
18652   echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18654
18655         ac_cv_lib_gcc___fixsfdi=no
18656 fi
18657
18658 rm -f core conftest.err conftest.$ac_objext \
18659       conftest$ac_exeext conftest.$ac_ext
18660 LIBS=$ac_check_lib_save_LIBS
18661 fi
18662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18663 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18664 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18665
18666 cat >>confdefs.h <<\_ACEOF
18667 #define HAVE___FIXSFDI 1
18668 _ACEOF
18669
18670 fi
18671
18672   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18673 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18674 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18675   echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677   ac_check_lib_save_LIBS=$LIBS
18678 LIBS="-lgcc  $LIBS"
18679 cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h.  */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h.  */
18685
18686 /* Override any GCC internal prototype to avoid an error.
18687    Use char because int might match the return type of a GCC
18688    builtin and then its argument prototype would still apply.  */
18689 #ifdef __cplusplus
18690 extern "C"
18691 #endif
18692 char __floatdidf ();
18693 int
18694 main ()
18695 {
18696 return __floatdidf ();
18697   ;
18698   return 0;
18699 }
18700 _ACEOF
18701 rm -f conftest.$ac_objext conftest$ac_exeext
18702 if { (ac_try="$ac_link"
18703 case "(($ac_try" in
18704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705   *) ac_try_echo=$ac_try;;
18706 esac
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708   (eval "$ac_link") 2>conftest.er1
18709   ac_status=$?
18710   grep -v '^ *+' conftest.er1 >conftest.err
18711   rm -f conftest.er1
18712   cat conftest.err >&5
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); } &&
18715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716   { (case "(($ac_try" in
18717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718   *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721   (eval "$ac_try") 2>&5
18722   ac_status=$?
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); }; } &&
18725          { ac_try='test -s conftest$ac_exeext'
18726   { (case "(($ac_try" in
18727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728   *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731   (eval "$ac_try") 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); }; }; then
18735   ac_cv_lib_gcc___floatdidf=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740         ac_cv_lib_gcc___floatdidf=no
18741 fi
18742
18743 rm -f core conftest.err conftest.$ac_objext \
18744       conftest$ac_exeext conftest.$ac_ext
18745 LIBS=$ac_check_lib_save_LIBS
18746 fi
18747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18748 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18749 if test $ac_cv_lib_gcc___floatdidf = yes; then
18750
18751 cat >>confdefs.h <<\_ACEOF
18752 #define HAVE___FLOATDIDF 1
18753 _ACEOF
18754
18755 fi
18756
18757   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18758 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18759 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18760   echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762   ac_check_lib_save_LIBS=$LIBS
18763 LIBS="-lgcc  $LIBS"
18764 cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h.  */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h.  */
18770
18771 /* Override any GCC internal prototype to avoid an error.
18772    Use char because int might match the return type of a GCC
18773    builtin and then its argument prototype would still apply.  */
18774 #ifdef __cplusplus
18775 extern "C"
18776 #endif
18777 char __lshrdi3 ();
18778 int
18779 main ()
18780 {
18781 return __lshrdi3 ();
18782   ;
18783   return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790   *) ac_try_echo=$ac_try;;
18791 esac
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793   (eval "$ac_link") 2>conftest.er1
18794   ac_status=$?
18795   grep -v '^ *+' conftest.er1 >conftest.err
18796   rm -f conftest.er1
18797   cat conftest.err >&5
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); } &&
18800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801   { (case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_try") 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); }; } &&
18810          { ac_try='test -s conftest$ac_exeext'
18811   { (case "(($ac_try" in
18812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813   *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816   (eval "$ac_try") 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); }; }; then
18820   ac_cv_lib_gcc___lshrdi3=yes
18821 else
18822   echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18824
18825         ac_cv_lib_gcc___lshrdi3=no
18826 fi
18827
18828 rm -f core conftest.err conftest.$ac_objext \
18829       conftest$ac_exeext conftest.$ac_ext
18830 LIBS=$ac_check_lib_save_LIBS
18831 fi
18832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18833 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18834 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18835
18836 cat >>confdefs.h <<\_ACEOF
18837 #define HAVE___LSHRDI3 1
18838 _ACEOF
18839
18840 fi
18841
18842   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18843 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18844 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   ac_check_lib_save_LIBS=$LIBS
18848 LIBS="-lgcc  $LIBS"
18849 cat >conftest.$ac_ext <<_ACEOF
18850 /* confdefs.h.  */
18851 _ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h.  */
18855
18856 /* Override any GCC internal prototype to avoid an error.
18857    Use char because int might match the return type of a GCC
18858    builtin and then its argument prototype would still apply.  */
18859 #ifdef __cplusplus
18860 extern "C"
18861 #endif
18862 char __moddi3 ();
18863 int
18864 main ()
18865 {
18866 return __moddi3 ();
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878   (eval "$ac_link") 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } &&
18885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886   { (case "(($ac_try" in
18887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888   *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891   (eval "$ac_try") 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); }; } &&
18895          { ac_try='test -s conftest$ac_exeext'
18896   { (case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_try") 2>&5
18902   ac_status=$?
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); }; }; then
18905   ac_cv_lib_gcc___moddi3=yes
18906 else
18907   echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910         ac_cv_lib_gcc___moddi3=no
18911 fi
18912
18913 rm -f core conftest.err conftest.$ac_objext \
18914       conftest$ac_exeext conftest.$ac_ext
18915 LIBS=$ac_check_lib_save_LIBS
18916 fi
18917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18918 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18919 if test $ac_cv_lib_gcc___moddi3 = yes; then
18920
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE___MODDI3 1
18923 _ACEOF
18924
18925 fi
18926
18927   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18928 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18929 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18930   echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932   ac_check_lib_save_LIBS=$LIBS
18933 LIBS="-lgcc  $LIBS"
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h.  */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h.  */
18940
18941 /* Override any GCC internal prototype to avoid an error.
18942    Use char because int might match the return type of a GCC
18943    builtin and then its argument prototype would still apply.  */
18944 #ifdef __cplusplus
18945 extern "C"
18946 #endif
18947 char __udivdi3 ();
18948 int
18949 main ()
18950 {
18951 return __udivdi3 ();
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (ac_try="$ac_link"
18958 case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_link") 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } &&
18970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971   { (case "(($ac_try" in
18972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973   *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976   (eval "$ac_try") 2>&5
18977   ac_status=$?
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); }; } &&
18980          { ac_try='test -s conftest$ac_exeext'
18981   { (case "(($ac_try" in
18982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983   *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986   (eval "$ac_try") 2>&5
18987   ac_status=$?
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); }; }; then
18990   ac_cv_lib_gcc___udivdi3=yes
18991 else
18992   echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995         ac_cv_lib_gcc___udivdi3=no
18996 fi
18997
18998 rm -f core conftest.err conftest.$ac_objext \
18999       conftest$ac_exeext conftest.$ac_ext
19000 LIBS=$ac_check_lib_save_LIBS
19001 fi
19002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19003 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19004 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19005
19006 cat >>confdefs.h <<\_ACEOF
19007 #define HAVE___UDIVDI3 1
19008 _ACEOF
19009
19010 fi
19011
19012   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19013 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19014 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19015   echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017   ac_check_lib_save_LIBS=$LIBS
19018 LIBS="-lgcc  $LIBS"
19019 cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h.  */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h.  */
19025
19026 /* Override any GCC internal prototype to avoid an error.
19027    Use char because int might match the return type of a GCC
19028    builtin and then its argument prototype would still apply.  */
19029 #ifdef __cplusplus
19030 extern "C"
19031 #endif
19032 char __umoddi3 ();
19033 int
19034 main ()
19035 {
19036 return __umoddi3 ();
19037   ;
19038   return 0;
19039 }
19040 _ACEOF
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (ac_try="$ac_link"
19043 case "(($ac_try" in
19044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045   *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048   (eval "$ac_link") 2>conftest.er1
19049   ac_status=$?
19050   grep -v '^ *+' conftest.er1 >conftest.err
19051   rm -f conftest.er1
19052   cat conftest.err >&5
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); } &&
19055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056   { (case "(($ac_try" in
19057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058   *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061   (eval "$ac_try") 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); }; } &&
19065          { ac_try='test -s conftest$ac_exeext'
19066   { (case "(($ac_try" in
19067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068   *) ac_try_echo=$ac_try;;
19069 esac
19070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071   (eval "$ac_try") 2>&5
19072   ac_status=$?
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); }; }; then
19075   ac_cv_lib_gcc___umoddi3=yes
19076 else
19077   echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080         ac_cv_lib_gcc___umoddi3=no
19081 fi
19082
19083 rm -f core conftest.err conftest.$ac_objext \
19084       conftest$ac_exeext conftest.$ac_ext
19085 LIBS=$ac_check_lib_save_LIBS
19086 fi
19087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19088 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19089 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19090
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE___UMODDI3 1
19093 _ACEOF
19094
19095 fi
19096
19097
19098   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19099 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19100 if test "${ac_cv_lib_gcc___main+set}" = set; then
19101   echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103   ac_check_lib_save_LIBS=$LIBS
19104 LIBS="-lgcc  $LIBS"
19105 cat >conftest.$ac_ext <<_ACEOF
19106 /* confdefs.h.  */
19107 _ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h.  */
19111
19112 /* Override any GCC internal prototype to avoid an error.
19113    Use char because int might match the return type of a GCC
19114    builtin and then its argument prototype would still apply.  */
19115 #ifdef __cplusplus
19116 extern "C"
19117 #endif
19118 char __main ();
19119 int
19120 main ()
19121 {
19122 return __main ();
19123   ;
19124   return 0;
19125 }
19126 _ACEOF
19127 rm -f conftest.$ac_objext conftest$ac_exeext
19128 if { (ac_try="$ac_link"
19129 case "(($ac_try" in
19130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131   *) ac_try_echo=$ac_try;;
19132 esac
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134   (eval "$ac_link") 2>conftest.er1
19135   ac_status=$?
19136   grep -v '^ *+' conftest.er1 >conftest.err
19137   rm -f conftest.er1
19138   cat conftest.err >&5
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); } &&
19141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19142   { (case "(($ac_try" in
19143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144   *) ac_try_echo=$ac_try;;
19145 esac
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147   (eval "$ac_try") 2>&5
19148   ac_status=$?
19149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150   (exit $ac_status); }; } &&
19151          { ac_try='test -s conftest$ac_exeext'
19152   { (case "(($ac_try" in
19153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154   *) ac_try_echo=$ac_try;;
19155 esac
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157   (eval "$ac_try") 2>&5
19158   ac_status=$?
19159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); }; }; then
19161   ac_cv_lib_gcc___main=yes
19162 else
19163   echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19165
19166         ac_cv_lib_gcc___main=no
19167 fi
19168
19169 rm -f core conftest.err conftest.$ac_objext \
19170       conftest$ac_exeext conftest.$ac_ext
19171 LIBS=$ac_check_lib_save_LIBS
19172 fi
19173 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19174 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19175 if test $ac_cv_lib_gcc___main = yes; then
19176
19177 cat >>confdefs.h <<\_ACEOF
19178 #define HAVE___MAIN 1
19179 _ACEOF
19180
19181 fi
19182
19183   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19184 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19185 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19186   echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188   ac_check_lib_save_LIBS=$LIBS
19189 LIBS="-lgcc  $LIBS"
19190 cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h.  */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h.  */
19196
19197 /* Override any GCC internal prototype to avoid an error.
19198    Use char because int might match the return type of a GCC
19199    builtin and then its argument prototype would still apply.  */
19200 #ifdef __cplusplus
19201 extern "C"
19202 #endif
19203 char __cmpdi2 ();
19204 int
19205 main ()
19206 {
19207 return __cmpdi2 ();
19208   ;
19209   return 0;
19210 }
19211 _ACEOF
19212 rm -f conftest.$ac_objext conftest$ac_exeext
19213 if { (ac_try="$ac_link"
19214 case "(($ac_try" in
19215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216   *) ac_try_echo=$ac_try;;
19217 esac
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219   (eval "$ac_link") 2>conftest.er1
19220   ac_status=$?
19221   grep -v '^ *+' conftest.er1 >conftest.err
19222   rm -f conftest.er1
19223   cat conftest.err >&5
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); } &&
19226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19227   { (case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232   (eval "$ac_try") 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); }; } &&
19236          { ac_try='test -s conftest$ac_exeext'
19237   { (case "(($ac_try" in
19238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239   *) ac_try_echo=$ac_try;;
19240 esac
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242   (eval "$ac_try") 2>&5
19243   ac_status=$?
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); }; }; then
19246   ac_cv_lib_gcc___cmpdi2=yes
19247 else
19248   echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251         ac_cv_lib_gcc___cmpdi2=no
19252 fi
19253
19254 rm -f core conftest.err conftest.$ac_objext \
19255       conftest$ac_exeext conftest.$ac_ext
19256 LIBS=$ac_check_lib_save_LIBS
19257 fi
19258 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19259 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19260 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19261
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE___CMPDI2 1
19264 _ACEOF
19265
19266 fi
19267
19268 fi
19269
19270 if test "$llvm_cv_os_type" = "MingW" ; then
19271   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19272 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19273   cat >conftest.$ac_ext <<_ACEOF
19274 #include <windows.h>
19275 #include <imagehlp.h>
19276 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19277 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19278 _ACEOF
19279 rm -f conftest.$ac_objext
19280 if { (ac_try="$ac_compile"
19281 case "(($ac_try" in
19282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283   *) ac_try_echo=$ac_try;;
19284 esac
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286   (eval "$ac_compile") 2>conftest.er1
19287   ac_status=$?
19288   grep -v '^ *+' conftest.er1 >conftest.err
19289   rm -f conftest.er1
19290   cat conftest.err >&5
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); } &&
19293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19294   { (case "(($ac_try" in
19295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296   *) ac_try_echo=$ac_try;;
19297 esac
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299   (eval "$ac_try") 2>&5
19300   ac_status=$?
19301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302   (exit $ac_status); }; } &&
19303          { ac_try='test -s conftest.$ac_objext'
19304   { (case "(($ac_try" in
19305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306   *) ac_try_echo=$ac_try;;
19307 esac
19308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19309   (eval "$ac_try") 2>&5
19310   ac_status=$?
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); }; }; then
19313
19314   { echo "$as_me:$LINENO: result: yes" >&5
19315 echo "${ECHO_T}yes" >&6; }
19316   llvm_cv_win32_elmcb_pcstr="PCSTR"
19317
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322
19323   { echo "$as_me:$LINENO: result: no" >&5
19324 echo "${ECHO_T}no" >&6; }
19325   llvm_cv_win32_elmcb_pcstr="PSTR"
19326
19327 fi
19328
19329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19330
19331 cat >>confdefs.h <<_ACEOF
19332 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19333 _ACEOF
19334
19335 fi
19336
19337
19338 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19339 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19340 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19341   echo $ECHO_N "(cached) $ECHO_C" >&6
19342 else
19343   ac_ext=cpp
19344 ac_cpp='$CXXCPP $CPPFLAGS'
19345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19348
19349    cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h.  */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h.  */
19355 #include <math.h>
19356 int
19357 main ()
19358 {
19359 float f; isnan(f);
19360   ;
19361   return 0;
19362 }
19363 _ACEOF
19364 rm -f conftest.$ac_objext
19365 if { (ac_try="$ac_compile"
19366 case "(($ac_try" in
19367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368   *) ac_try_echo=$ac_try;;
19369 esac
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371   (eval "$ac_compile") 2>conftest.er1
19372   ac_status=$?
19373   grep -v '^ *+' conftest.er1 >conftest.err
19374   rm -f conftest.er1
19375   cat conftest.err >&5
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); } &&
19378          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19379   { (case "(($ac_try" in
19380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381   *) ac_try_echo=$ac_try;;
19382 esac
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384   (eval "$ac_try") 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; } &&
19388          { ac_try='test -s conftest.$ac_objext'
19389   { (case "(($ac_try" in
19390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391   *) ac_try_echo=$ac_try;;
19392 esac
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394   (eval "$ac_try") 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); }; }; then
19398   ac_cv_func_isnan_in_math_h=yes
19399 else
19400   echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403         ac_cv_func_isnan_in_math_h=no
19404 fi
19405
19406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19407   ac_ext=c
19408 ac_cpp='$CPP $CPPFLAGS'
19409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19412
19413 fi
19414 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19415 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19416
19417
19418 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19419
19420 cat >>confdefs.h <<\_ACEOF
19421 #define HAVE_ISNAN_IN_MATH_H 1
19422 _ACEOF
19423
19424 fi
19425
19426 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19427 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19428 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19429   echo $ECHO_N "(cached) $ECHO_C" >&6
19430 else
19431   ac_ext=cpp
19432 ac_cpp='$CXXCPP $CPPFLAGS'
19433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19436
19437    cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h.  */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h.  */
19443 #include <cmath>
19444 int
19445 main ()
19446 {
19447 float f; isnan(f);
19448   ;
19449   return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext
19453 if { (ac_try="$ac_compile"
19454 case "(($ac_try" in
19455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456   *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459   (eval "$ac_compile") 2>conftest.er1
19460   ac_status=$?
19461   grep -v '^ *+' conftest.er1 >conftest.err
19462   rm -f conftest.er1
19463   cat conftest.err >&5
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); } &&
19466          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19467   { (case "(($ac_try" in
19468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469   *) ac_try_echo=$ac_try;;
19470 esac
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472   (eval "$ac_try") 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; } &&
19476          { ac_try='test -s conftest.$ac_objext'
19477   { (case "(($ac_try" in
19478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479   *) ac_try_echo=$ac_try;;
19480 esac
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482   (eval "$ac_try") 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; }; then
19486   ac_cv_func_isnan_in_cmath=yes
19487 else
19488   echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19490
19491         ac_cv_func_isnan_in_cmath=no
19492 fi
19493
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495   ac_ext=c
19496 ac_cpp='$CPP $CPPFLAGS'
19497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19500
19501 fi
19502 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19503 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19504
19505 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19506
19507 cat >>confdefs.h <<\_ACEOF
19508 #define HAVE_ISNAN_IN_CMATH 1
19509 _ACEOF
19510
19511 fi
19512
19513 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19514 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19515 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   ac_ext=cpp
19519 ac_cpp='$CXXCPP $CPPFLAGS'
19520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19523
19524    cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h.  */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h.  */
19530 #include <cmath>
19531 int
19532 main ()
19533 {
19534 float f; std::isnan(f);
19535   ;
19536   return 0;
19537 }
19538 _ACEOF
19539 rm -f conftest.$ac_objext
19540 if { (ac_try="$ac_compile"
19541 case "(($ac_try" in
19542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543   *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546   (eval "$ac_compile") 2>conftest.er1
19547   ac_status=$?
19548   grep -v '^ *+' conftest.er1 >conftest.err
19549   rm -f conftest.er1
19550   cat conftest.err >&5
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); } &&
19553          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19554   { (case "(($ac_try" in
19555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556   *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559   (eval "$ac_try") 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); }; } &&
19563          { ac_try='test -s conftest.$ac_objext'
19564   { (case "(($ac_try" in
19565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566   *) ac_try_echo=$ac_try;;
19567 esac
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569   (eval "$ac_try") 2>&5
19570   ac_status=$?
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); }; }; then
19573   ac_cv_func_std_isnan_in_cmath=yes
19574 else
19575   echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19577
19578         ac_cv_func_std_isnan_in_cmath=no
19579 fi
19580
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582   ac_ext=c
19583 ac_cpp='$CPP $CPPFLAGS'
19584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19587
19588 fi
19589 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19590 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19591
19592 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19593
19594 cat >>confdefs.h <<\_ACEOF
19595 #define HAVE_STD_ISNAN_IN_CMATH 1
19596 _ACEOF
19597
19598 fi
19599
19600
19601 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19602 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19603 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   ac_ext=cpp
19607 ac_cpp='$CXXCPP $CPPFLAGS'
19608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19611
19612    cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h.  */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h.  */
19618 #include <math.h>
19619 int
19620 main ()
19621 {
19622 float f; isinf(f);
19623   ;
19624   return 0;
19625 }
19626 _ACEOF
19627 rm -f conftest.$ac_objext
19628 if { (ac_try="$ac_compile"
19629 case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634   (eval "$ac_compile") 2>conftest.er1
19635   ac_status=$?
19636   grep -v '^ *+' conftest.er1 >conftest.err
19637   rm -f conftest.er1
19638   cat conftest.err >&5
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); } &&
19641          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19642   { (case "(($ac_try" in
19643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644   *) ac_try_echo=$ac_try;;
19645 esac
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647   (eval "$ac_try") 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; } &&
19651          { ac_try='test -s conftest.$ac_objext'
19652   { (case "(($ac_try" in
19653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654   *) ac_try_echo=$ac_try;;
19655 esac
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657   (eval "$ac_try") 2>&5
19658   ac_status=$?
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); }; }; then
19661   ac_cv_func_isinf_in_math_h=yes
19662 else
19663   echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666         ac_cv_func_isinf_in_math_h=no
19667 fi
19668
19669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19670   ac_ext=c
19671 ac_cpp='$CPP $CPPFLAGS'
19672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19675
19676 fi
19677 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19678 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19679
19680 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19681
19682 cat >>confdefs.h <<\_ACEOF
19683 #define HAVE_ISINF_IN_MATH_H 1
19684 _ACEOF
19685
19686 fi
19687
19688 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19689 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19690 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19691   echo $ECHO_N "(cached) $ECHO_C" >&6
19692 else
19693   ac_ext=cpp
19694 ac_cpp='$CXXCPP $CPPFLAGS'
19695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19698
19699    cat >conftest.$ac_ext <<_ACEOF
19700 /* confdefs.h.  */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h.  */
19705 #include <cmath>
19706 int
19707 main ()
19708 {
19709 float f; isinf(f);
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext
19715 if { (ac_try="$ac_compile"
19716 case "(($ac_try" in
19717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718   *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721   (eval "$ac_compile") 2>conftest.er1
19722   ac_status=$?
19723   grep -v '^ *+' conftest.er1 >conftest.err
19724   rm -f conftest.er1
19725   cat conftest.err >&5
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); } &&
19728          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19729   { (case "(($ac_try" in
19730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731   *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734   (eval "$ac_try") 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); }; } &&
19738          { ac_try='test -s conftest.$ac_objext'
19739   { (case "(($ac_try" in
19740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741   *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744   (eval "$ac_try") 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); }; }; then
19748   ac_cv_func_isinf_in_cmath=yes
19749 else
19750   echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753         ac_cv_func_isinf_in_cmath=no
19754 fi
19755
19756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19757   ac_ext=c
19758 ac_cpp='$CPP $CPPFLAGS'
19759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19762
19763 fi
19764 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19765 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19766
19767 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19768
19769 cat >>confdefs.h <<\_ACEOF
19770 #define HAVE_ISINF_IN_CMATH 1
19771 _ACEOF
19772
19773 fi
19774
19775 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19776 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19777 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780   ac_ext=cpp
19781 ac_cpp='$CXXCPP $CPPFLAGS'
19782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19785
19786    cat >conftest.$ac_ext <<_ACEOF
19787 /* confdefs.h.  */
19788 _ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h.  */
19792 #include <cmath>
19793 int
19794 main ()
19795 {
19796 float f; std::isinf(f);
19797   ;
19798   return 0;
19799 }
19800 _ACEOF
19801 rm -f conftest.$ac_objext
19802 if { (ac_try="$ac_compile"
19803 case "(($ac_try" in
19804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805   *) ac_try_echo=$ac_try;;
19806 esac
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808   (eval "$ac_compile") 2>conftest.er1
19809   ac_status=$?
19810   grep -v '^ *+' conftest.er1 >conftest.err
19811   rm -f conftest.er1
19812   cat conftest.err >&5
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); } &&
19815          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19816   { (case "(($ac_try" in
19817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818   *) ac_try_echo=$ac_try;;
19819 esac
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821   (eval "$ac_try") 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; } &&
19825          { ac_try='test -s conftest.$ac_objext'
19826   { (case "(($ac_try" in
19827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828   *) ac_try_echo=$ac_try;;
19829 esac
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831   (eval "$ac_try") 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }; }; then
19835   ac_cv_func_std_isinf_in_cmath=yes
19836 else
19837   echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840         ac_cv_func_std_isinf_in_cmath=no
19841 fi
19842
19843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19844   ac_ext=c
19845 ac_cpp='$CPP $CPPFLAGS'
19846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19849
19850 fi
19851 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19852 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19853
19854 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19855
19856 cat >>confdefs.h <<\_ACEOF
19857 #define HAVE_STD_ISINF_IN_CMATH 1
19858 _ACEOF
19859
19860 fi
19861
19862 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19863 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19864 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19865   echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867   ac_ext=cpp
19868 ac_cpp='$CXXCPP $CPPFLAGS'
19869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19872
19873    cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h.  */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h.  */
19879 #include <ieeefp.h>
19880 int
19881 main ()
19882 {
19883 float f; finite(f);
19884   ;
19885   return 0;
19886 }
19887 _ACEOF
19888 rm -f conftest.$ac_objext
19889 if { (ac_try="$ac_compile"
19890 case "(($ac_try" in
19891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892   *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895   (eval "$ac_compile") 2>conftest.er1
19896   ac_status=$?
19897   grep -v '^ *+' conftest.er1 >conftest.err
19898   rm -f conftest.er1
19899   cat conftest.err >&5
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); } &&
19902          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19903   { (case "(($ac_try" in
19904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905   *) ac_try_echo=$ac_try;;
19906 esac
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908   (eval "$ac_try") 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; } &&
19912          { ac_try='test -s conftest.$ac_objext'
19913   { (case "(($ac_try" in
19914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915   *) ac_try_echo=$ac_try;;
19916 esac
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918   (eval "$ac_try") 2>&5
19919   ac_status=$?
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); }; }; then
19922   ac_cv_func_finite_in_ieeefp_h=yes
19923 else
19924   echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19926
19927         ac_cv_func_finite_in_ieeefp_h=no
19928 fi
19929
19930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19931   ac_ext=c
19932 ac_cpp='$CPP $CPPFLAGS'
19933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19936
19937 fi
19938 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19939 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19940
19941 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19942
19943 cat >>confdefs.h <<\_ACEOF
19944 #define HAVE_FINITE_IN_IEEEFP_H 1
19945 _ACEOF
19946
19947 fi
19948
19949
19950
19951 if test "$llvm_cv_platform_type" = "Unix" ; then
19952
19953
19954 for ac_header in stdlib.h unistd.h
19955 do
19956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19958   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19961   echo $ECHO_N "(cached) $ECHO_C" >&6
19962 fi
19963 ac_res=`eval echo '${'$as_ac_Header'}'`
19964                { echo "$as_me:$LINENO: result: $ac_res" >&5
19965 echo "${ECHO_T}$ac_res" >&6; }
19966 else
19967   # Is the header compilable?
19968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19970 cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h.  */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h.  */
19976 $ac_includes_default
19977 #include <$ac_header>
19978 _ACEOF
19979 rm -f conftest.$ac_objext
19980 if { (ac_try="$ac_compile"
19981 case "(($ac_try" in
19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983   *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986   (eval "$ac_compile") 2>conftest.er1
19987   ac_status=$?
19988   grep -v '^ *+' conftest.er1 >conftest.err
19989   rm -f conftest.er1
19990   cat conftest.err >&5
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); } &&
19993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19994   { (case "(($ac_try" in
19995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996   *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999   (eval "$ac_try") 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; } &&
20003          { ac_try='test -s conftest.$ac_objext'
20004   { (case "(($ac_try" in
20005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006   *) ac_try_echo=$ac_try;;
20007 esac
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009   (eval "$ac_try") 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; }; then
20013   ac_header_compiler=yes
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018         ac_header_compiler=no
20019 fi
20020
20021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20023 echo "${ECHO_T}$ac_header_compiler" >&6; }
20024
20025 # Is the header present?
20026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20028 cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h.  */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h.  */
20034 #include <$ac_header>
20035 _ACEOF
20036 if { (ac_try="$ac_cpp conftest.$ac_ext"
20037 case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20043   ac_status=$?
20044   grep -v '^ *+' conftest.er1 >conftest.err
20045   rm -f conftest.er1
20046   cat conftest.err >&5
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); } >/dev/null; then
20049   if test -s conftest.err; then
20050     ac_cpp_err=$ac_c_preproc_warn_flag
20051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20052   else
20053     ac_cpp_err=
20054   fi
20055 else
20056   ac_cpp_err=yes
20057 fi
20058 if test -z "$ac_cpp_err"; then
20059   ac_header_preproc=yes
20060 else
20061   echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064   ac_header_preproc=no
20065 fi
20066
20067 rm -f conftest.err conftest.$ac_ext
20068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20069 echo "${ECHO_T}$ac_header_preproc" >&6; }
20070
20071 # So?  What about this header?
20072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20073   yes:no: )
20074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20078     ac_header_preproc=yes
20079     ;;
20080   no:yes:* )
20081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20093     ( cat <<\_ASBOX
20094 ## ------------------------------------ ##
20095 ## Report this to http://llvm.org/bugs/ ##
20096 ## ------------------------------------ ##
20097 _ASBOX
20098      ) | sed "s/^/$as_me: WARNING:     /" >&2
20099     ;;
20100 esac
20101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20104   echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106   eval "$as_ac_Header=\$ac_header_preproc"
20107 fi
20108 ac_res=`eval echo '${'$as_ac_Header'}'`
20109                { echo "$as_me:$LINENO: result: $ac_res" >&5
20110 echo "${ECHO_T}$ac_res" >&6; }
20111
20112 fi
20113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20114   cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20116 _ACEOF
20117
20118 fi
20119
20120 done
20121
20122
20123 for ac_func in getpagesize
20124 do
20125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20126 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20128 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20129   echo $ECHO_N "(cached) $ECHO_C" >&6
20130 else
20131   cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20139 #define $ac_func innocuous_$ac_func
20140
20141 /* System header to define __stub macros and hopefully few prototypes,
20142     which can conflict with char $ac_func (); below.
20143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20144     <limits.h> exists even on freestanding compilers.  */
20145
20146 #ifdef __STDC__
20147 # include <limits.h>
20148 #else
20149 # include <assert.h>
20150 #endif
20151
20152 #undef $ac_func
20153
20154 /* Override any GCC internal prototype to avoid an error.
20155    Use char because int might match the return type of a GCC
20156    builtin and then its argument prototype would still apply.  */
20157 #ifdef __cplusplus
20158 extern "C"
20159 #endif
20160 char $ac_func ();
20161 /* The GNU C library defines this for functions which it implements
20162     to always fail with ENOSYS.  Some functions are actually named
20163     something starting with __ and the normal name is an alias.  */
20164 #if defined __stub_$ac_func || defined __stub___$ac_func
20165 choke me
20166 #endif
20167
20168 int
20169 main ()
20170 {
20171 return $ac_func ();
20172   ;
20173   return 0;
20174 }
20175 _ACEOF
20176 rm -f conftest.$ac_objext conftest$ac_exeext
20177 if { (ac_try="$ac_link"
20178 case "(($ac_try" in
20179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180   *) ac_try_echo=$ac_try;;
20181 esac
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183   (eval "$ac_link") 2>conftest.er1
20184   ac_status=$?
20185   grep -v '^ *+' conftest.er1 >conftest.err
20186   rm -f conftest.er1
20187   cat conftest.err >&5
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); } &&
20190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20191   { (case "(($ac_try" in
20192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193   *) ac_try_echo=$ac_try;;
20194 esac
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196   (eval "$ac_try") 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; } &&
20200          { ac_try='test -s conftest$ac_exeext'
20201   { (case "(($ac_try" in
20202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203   *) ac_try_echo=$ac_try;;
20204 esac
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206   (eval "$ac_try") 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   eval "$as_ac_var=yes"
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215         eval "$as_ac_var=no"
20216 fi
20217
20218 rm -f core conftest.err conftest.$ac_objext \
20219       conftest$ac_exeext conftest.$ac_ext
20220 fi
20221 ac_res=`eval echo '${'$as_ac_var'}'`
20222                { echo "$as_me:$LINENO: result: $ac_res" >&5
20223 echo "${ECHO_T}$ac_res" >&6; }
20224 if test `eval echo '${'$as_ac_var'}'` = yes; then
20225   cat >>confdefs.h <<_ACEOF
20226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20227 _ACEOF
20228
20229 fi
20230 done
20231
20232 { echo "$as_me:$LINENO: checking for working mmap" >&5
20233 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20234 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20235   echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237   if test "$cross_compiling" = yes; then
20238   ac_cv_func_mmap_fixed_mapped=no
20239 else
20240   cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h.  */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h.  */
20246 $ac_includes_default
20247 /* malloc might have been renamed as rpl_malloc. */
20248 #undef malloc
20249
20250 /* Thanks to Mike Haertel and Jim Avera for this test.
20251    Here is a matrix of mmap possibilities:
20252         mmap private not fixed
20253         mmap private fixed at somewhere currently unmapped
20254         mmap private fixed at somewhere already mapped
20255         mmap shared not fixed
20256         mmap shared fixed at somewhere currently unmapped
20257         mmap shared fixed at somewhere already mapped
20258    For private mappings, we should verify that changes cannot be read()
20259    back from the file, nor mmap's back from the file at a different
20260    address.  (There have been systems where private was not correctly
20261    implemented like the infamous i386 svr4.0, and systems where the
20262    VM page cache was not coherent with the file system buffer cache
20263    like early versions of FreeBSD and possibly contemporary NetBSD.)
20264    For shared mappings, we should conversely verify that changes get
20265    propagated back to all the places they're supposed to be.
20266
20267    Grep wants private fixed already mapped.
20268    The main things grep needs to know about mmap are:
20269    * does it exist and is it safe to write into the mmap'd area
20270    * how to use it (BSD variants)  */
20271
20272 #include <fcntl.h>
20273 #include <sys/mman.h>
20274
20275 #if !STDC_HEADERS && !HAVE_STDLIB_H
20276 char *malloc ();
20277 #endif
20278
20279 /* This mess was copied from the GNU getpagesize.h.  */
20280 #if !HAVE_GETPAGESIZE
20281 /* Assume that all systems that can run configure have sys/param.h.  */
20282 # if !HAVE_SYS_PARAM_H
20283 #  define HAVE_SYS_PARAM_H 1
20284 # endif
20285
20286 # ifdef _SC_PAGESIZE
20287 #  define getpagesize() sysconf(_SC_PAGESIZE)
20288 # else /* no _SC_PAGESIZE */
20289 #  if HAVE_SYS_PARAM_H
20290 #   include <sys/param.h>
20291 #   ifdef EXEC_PAGESIZE
20292 #    define getpagesize() EXEC_PAGESIZE
20293 #   else /* no EXEC_PAGESIZE */
20294 #    ifdef NBPG
20295 #     define getpagesize() NBPG * CLSIZE
20296 #     ifndef CLSIZE
20297 #      define CLSIZE 1
20298 #     endif /* no CLSIZE */
20299 #    else /* no NBPG */
20300 #     ifdef NBPC
20301 #      define getpagesize() NBPC
20302 #     else /* no NBPC */
20303 #      ifdef PAGESIZE
20304 #       define getpagesize() PAGESIZE
20305 #      endif /* PAGESIZE */
20306 #     endif /* no NBPC */
20307 #    endif /* no NBPG */
20308 #   endif /* no EXEC_PAGESIZE */
20309 #  else /* no HAVE_SYS_PARAM_H */
20310 #   define getpagesize() 8192   /* punt totally */
20311 #  endif /* no HAVE_SYS_PARAM_H */
20312 # endif /* no _SC_PAGESIZE */
20313
20314 #endif /* no HAVE_GETPAGESIZE */
20315
20316 int
20317 main ()
20318 {
20319   char *data, *data2, *data3;
20320   int i, pagesize;
20321   int fd;
20322
20323   pagesize = getpagesize ();
20324
20325   /* First, make a file with some known garbage in it. */
20326   data = (char *) malloc (pagesize);
20327   if (!data)
20328     return 1;
20329   for (i = 0; i < pagesize; ++i)
20330     *(data + i) = rand ();
20331   umask (0);
20332   fd = creat ("conftest.mmap", 0600);
20333   if (fd < 0)
20334     return 1;
20335   if (write (fd, data, pagesize) != pagesize)
20336     return 1;
20337   close (fd);
20338
20339   /* Next, try to mmap the file at a fixed address which already has
20340      something else allocated at it.  If we can, also make sure that
20341      we see the same garbage.  */
20342   fd = open ("conftest.mmap", O_RDWR);
20343   if (fd < 0)
20344     return 1;
20345   data2 = (char *) malloc (2 * pagesize);
20346   if (!data2)
20347     return 1;
20348   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20349   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20350                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20351     return 1;
20352   for (i = 0; i < pagesize; ++i)
20353     if (*(data + i) != *(data2 + i))
20354       return 1;
20355
20356   /* Finally, make sure that changes to the mapped area do not
20357      percolate back to the file as seen by read().  (This is a bug on
20358      some variants of i386 svr4.0.)  */
20359   for (i = 0; i < pagesize; ++i)
20360     *(data2 + i) = *(data2 + i) + 1;
20361   data3 = (char *) malloc (pagesize);
20362   if (!data3)
20363     return 1;
20364   if (read (fd, data3, pagesize) != pagesize)
20365     return 1;
20366   for (i = 0; i < pagesize; ++i)
20367     if (*(data + i) != *(data3 + i))
20368       return 1;
20369   close (fd);
20370   return 0;
20371 }
20372 _ACEOF
20373 rm -f conftest$ac_exeext
20374 if { (ac_try="$ac_link"
20375 case "(($ac_try" in
20376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377   *) ac_try_echo=$ac_try;;
20378 esac
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380   (eval "$ac_link") 2>&5
20381   ac_status=$?
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20384   { (case "(($ac_try" in
20385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386   *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389   (eval "$ac_try") 2>&5
20390   ac_status=$?
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); }; }; then
20393   ac_cv_func_mmap_fixed_mapped=yes
20394 else
20395   echo "$as_me: program exited with status $ac_status" >&5
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20398
20399 ( exit $ac_status )
20400 ac_cv_func_mmap_fixed_mapped=no
20401 fi
20402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20403 fi
20404
20405
20406 fi
20407 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20408 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20409 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20410
20411 cat >>confdefs.h <<\_ACEOF
20412 #define HAVE_MMAP 1
20413 _ACEOF
20414
20415 fi
20416 rm -f conftest.mmap
20417
20418   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20419 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20420 if test "${ac_cv_func_mmap_file+set}" = set; then
20421   echo $ECHO_N "(cached) $ECHO_C" >&6
20422 else
20423    ac_ext=c
20424 ac_cpp='$CPP $CPPFLAGS'
20425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20428
20429   if test "$cross_compiling" = yes; then
20430   ac_cv_func_mmap_file=no
20431 else
20432   cat >conftest.$ac_ext <<_ACEOF
20433
20434     /* confdefs.h.  */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h.  */
20439
20440 #include <sys/types.h>
20441 #include <sys/mman.h>
20442 #include <fcntl.h>
20443
20444 int
20445 main ()
20446 {
20447
20448   int fd;
20449   fd = creat ("foo",0777);
20450   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20451   unlink ("foo");
20452   return (fd != (int) MAP_FAILED);
20453   ;
20454   return 0;
20455 }
20456 _ACEOF
20457 rm -f conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461   *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464   (eval "$ac_link") 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20468   { (case "(($ac_try" in
20469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470   *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473   (eval "$ac_try") 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   ac_cv_func_mmap_file=yes
20478 else
20479   echo "$as_me: program exited with status $ac_status" >&5
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ( exit $ac_status )
20484 ac_cv_func_mmap_file=no
20485 fi
20486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20487 fi
20488
20489
20490   ac_ext=c
20491 ac_cpp='$CPP $CPPFLAGS'
20492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20495
20496
20497 fi
20498 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20499 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20500 if test "$ac_cv_func_mmap_file" = yes; then
20501
20502 cat >>confdefs.h <<\_ACEOF
20503 #define HAVE_MMAP_FILE
20504 _ACEOF
20505
20506    MMAP_FILE=yes
20507
20508 fi
20509
20510   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20511 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20512 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20513   echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515   if test "$llvm_cv_os_type" = "Interix" ; then
20516    ac_cv_need_dev_zero_for_mmap=yes
20517  else
20518    ac_cv_need_dev_zero_for_mmap=no
20519  fi
20520
20521 fi
20522 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20523 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20524 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20525
20526 cat >>confdefs.h <<\_ACEOF
20527 #define NEED_DEV_ZERO_FOR_MMAP 1
20528 _ACEOF
20529
20530 fi
20531
20532   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20533   then
20534     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20535 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20536   fi
20537   if test "$ac_cv_func_mmap_file" = "no"
20538   then
20539     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20540 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20541   fi
20542 fi
20543
20544 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20545 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20546 ac_ext=cpp
20547 ac_cpp='$CXXCPP $CPPFLAGS'
20548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20551
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h.  */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h.  */
20558 int main() {
20559         volatile unsigned long val = 1;
20560         __sync_synchronize();
20561         __sync_val_compare_and_swap(&val, 1, 0);
20562         __sync_add_and_fetch(&val, 1);
20563         __sync_sub_and_fetch(&val, 1);
20564         return 0;
20565       }
20566
20567 _ACEOF
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575   (eval "$ac_link") 2>conftest.er1
20576   ac_status=$?
20577   grep -v '^ *+' conftest.er1 >conftest.err
20578   rm -f conftest.er1
20579   cat conftest.err >&5
20580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); } &&
20582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20583   { (case "(($ac_try" in
20584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585   *) ac_try_echo=$ac_try;;
20586 esac
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588   (eval "$ac_try") 2>&5
20589   ac_status=$?
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); }; } &&
20592          { ac_try='test -s conftest$ac_exeext'
20593   { (case "(($ac_try" in
20594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595   *) ac_try_echo=$ac_try;;
20596 esac
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598   (eval "$ac_try") 2>&5
20599   ac_status=$?
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); }; }; then
20602   ac_ext=c
20603 ac_cpp='$CPP $CPPFLAGS'
20604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20607
20608   { echo "$as_me:$LINENO: result: yes" >&5
20609 echo "${ECHO_T}yes" >&6; }
20610
20611 cat >>confdefs.h <<\_ACEOF
20612 #define LLVM_HAS_ATOMICS 1
20613 _ACEOF
20614
20615 else
20616   echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20618
20619         { echo "$as_me:$LINENO: result: no" >&5
20620 echo "${ECHO_T}no" >&6; }
20621
20622 cat >>confdefs.h <<\_ACEOF
20623 #define LLVM_HAS_ATOMICS 0
20624 _ACEOF
20625
20626   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20627 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20628 fi
20629
20630 rm -f core conftest.err conftest.$ac_objext \
20631       conftest$ac_exeext conftest.$ac_ext
20632
20633
20634 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20635   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20636 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20637 if test "${llvm_cv_linux_mixed+set}" = set; then
20638   echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640    ac_ext=c
20641 ac_cpp='$CPP $CPPFLAGS'
20642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20645
20646   cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h.  */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h.  */
20652 #ifndef __x86_64__
20653        error: Not x86-64 even if uname says so!
20654       #endif
20655
20656 int
20657 main ()
20658 {
20659
20660   ;
20661   return 0;
20662 }
20663 _ACEOF
20664 rm -f conftest.$ac_objext
20665 if { (ac_try="$ac_compile"
20666 case "(($ac_try" in
20667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668   *) ac_try_echo=$ac_try;;
20669 esac
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671   (eval "$ac_compile") 2>conftest.er1
20672   ac_status=$?
20673   grep -v '^ *+' conftest.er1 >conftest.err
20674   rm -f conftest.er1
20675   cat conftest.err >&5
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); } &&
20678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20679   { (case "(($ac_try" in
20680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681   *) ac_try_echo=$ac_try;;
20682 esac
20683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684   (eval "$ac_try") 2>&5
20685   ac_status=$?
20686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687   (exit $ac_status); }; } &&
20688          { ac_try='test -s conftest.$ac_objext'
20689   { (case "(($ac_try" in
20690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691   *) ac_try_echo=$ac_try;;
20692 esac
20693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694   (eval "$ac_try") 2>&5
20695   ac_status=$?
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); }; }; then
20698   llvm_cv_linux_mixed=no
20699 else
20700   echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20702
20703         llvm_cv_linux_mixed=yes
20704 fi
20705
20706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707   ac_ext=c
20708 ac_cpp='$CPP $CPPFLAGS'
20709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20712
20713
20714 fi
20715 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20716 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20717
20718   if test "$llvm_cv_linux_mixed" = "yes"; then
20719     llvm_cv_target_arch="x86"
20720     ARCH="x86"
20721   fi
20722 fi
20723
20724
20725 for ac_func in __dso_handle
20726 do
20727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20731   echo $ECHO_N "(cached) $ECHO_C" >&6
20732 else
20733   cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h.  */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h.  */
20739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20741 #define $ac_func innocuous_$ac_func
20742
20743 /* System header to define __stub macros and hopefully few prototypes,
20744     which can conflict with char $ac_func (); below.
20745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20746     <limits.h> exists even on freestanding compilers.  */
20747
20748 #ifdef __STDC__
20749 # include <limits.h>
20750 #else
20751 # include <assert.h>
20752 #endif
20753
20754 #undef $ac_func
20755
20756 /* Override any GCC internal prototype to avoid an error.
20757    Use char because int might match the return type of a GCC
20758    builtin and then its argument prototype would still apply.  */
20759 #ifdef __cplusplus
20760 extern "C"
20761 #endif
20762 char $ac_func ();
20763 /* The GNU C library defines this for functions which it implements
20764     to always fail with ENOSYS.  Some functions are actually named
20765     something starting with __ and the normal name is an alias.  */
20766 #if defined __stub_$ac_func || defined __stub___$ac_func
20767 choke me
20768 #endif
20769
20770 int
20771 main ()
20772 {
20773 return $ac_func ();
20774   ;
20775   return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext conftest$ac_exeext
20779 if { (ac_try="$ac_link"
20780 case "(($ac_try" in
20781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782   *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785   (eval "$ac_link") 2>conftest.er1
20786   ac_status=$?
20787   grep -v '^ *+' conftest.er1 >conftest.err
20788   rm -f conftest.er1
20789   cat conftest.err >&5
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } &&
20792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20793   { (case "(($ac_try" in
20794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795   *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798   (eval "$ac_try") 2>&5
20799   ac_status=$?
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); }; } &&
20802          { ac_try='test -s conftest$ac_exeext'
20803   { (case "(($ac_try" in
20804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805   *) ac_try_echo=$ac_try;;
20806 esac
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808   (eval "$ac_try") 2>&5
20809   ac_status=$?
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); }; }; then
20812   eval "$as_ac_var=yes"
20813 else
20814   echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20816
20817         eval "$as_ac_var=no"
20818 fi
20819
20820 rm -f core conftest.err conftest.$ac_objext \
20821       conftest$ac_exeext conftest.$ac_ext
20822 fi
20823 ac_res=`eval echo '${'$as_ac_var'}'`
20824                { echo "$as_me:$LINENO: result: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20826 if test `eval echo '${'$as_ac_var'}'` = yes; then
20827   cat >>confdefs.h <<_ACEOF
20828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20829 _ACEOF
20830
20831 fi
20832 done
20833
20834
20835 SHLIBEXT=$libltdl_cv_shlibext
20836
20837
20838 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20839
20840
20841 if test "${prefix}" = "NONE" ; then
20842   prefix="/usr/local"
20843 fi
20844 eval LLVM_PREFIX="${prefix}";
20845 eval LLVM_BINDIR="${prefix}/bin";
20846 eval LLVM_LIBDIR="${prefix}/lib";
20847 eval LLVM_DATADIR="${prefix}/share/llvm";
20848 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20849 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20850 eval LLVM_INCLUDEDIR="${prefix}/include";
20851 eval LLVM_INFODIR="${prefix}/info";
20852 eval LLVM_MANDIR="${prefix}/man";
20853 LLVM_CONFIGTIME=`date`
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20866   LLVM_CONFIGTIME="(timestamp not enabled)"
20867 fi
20868
20869
20870 cat >>confdefs.h <<_ACEOF
20871 #define LLVM_PREFIX "$LLVM_PREFIX"
20872 _ACEOF
20873
20874
20875 cat >>confdefs.h <<_ACEOF
20876 #define LLVM_BINDIR "$LLVM_BINDIR"
20877 _ACEOF
20878
20879
20880 cat >>confdefs.h <<_ACEOF
20881 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20882 _ACEOF
20883
20884
20885 cat >>confdefs.h <<_ACEOF
20886 #define LLVM_DATADIR "$LLVM_DATADIR"
20887 _ACEOF
20888
20889
20890 cat >>confdefs.h <<_ACEOF
20891 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20892 _ACEOF
20893
20894
20895 cat >>confdefs.h <<_ACEOF
20896 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20897 _ACEOF
20898
20899
20900 cat >>confdefs.h <<_ACEOF
20901 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20902 _ACEOF
20903
20904
20905 cat >>confdefs.h <<_ACEOF
20906 #define LLVM_INFODIR "$LLVM_INFODIR"
20907 _ACEOF
20908
20909
20910 cat >>confdefs.h <<_ACEOF
20911 #define LLVM_MANDIR "$LLVM_MANDIR"
20912 _ACEOF
20913
20914
20915 cat >>confdefs.h <<_ACEOF
20916 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20917 _ACEOF
20918
20919
20920 cat >>confdefs.h <<_ACEOF
20921 #define LLVM_HOSTTRIPLE "$host"
20922 _ACEOF
20923
20924
20925 cat >>confdefs.h <<_ACEOF
20926 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20927 _ACEOF
20928
20929
20930 if test "$BINDINGS_TO_BUILD" = auto ; then
20931   BINDINGS_TO_BUILD=""
20932   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20933     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20934   fi
20935 fi
20936 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20937
20938
20939 ALL_BINDINGS=ocaml
20940
20941
20942 binding_prereqs_failed=0
20943 for a_binding in $BINDINGS_TO_BUILD ; do
20944   case "$a_binding" in
20945   ocaml)
20946     if test "x$OCAMLC" = x ; then
20947       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20948 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20949       binding_prereqs_failed=1
20950     fi
20951     if test "x$OCAMLDEP" = x ; then
20952       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20953 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20954       binding_prereqs_failed=1
20955     fi
20956     if test "x$OCAMLOPT" = x ; then
20957       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20958 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20959           fi
20960     if test "x$with_ocaml_libdir" != xauto ; then
20961       OCAML_LIBDIR=$with_ocaml_libdir
20962
20963     else
20964       ocaml_stdlib="`"$OCAMLC" -where`"
20965       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20966       then
20967         # ocaml stdlib is beneath our prefix; use stdlib
20968         OCAML_LIBDIR=$ocaml_stdlib
20969
20970       else
20971         # ocaml stdlib is outside our prefix; use libdir/ocaml
20972         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20973
20974       fi
20975     fi
20976     ;;
20977   esac
20978 done
20979 if test "$binding_prereqs_failed" = 1 ; then
20980   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20981 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20982    { (exit 1); exit 1; }; }
20983 fi
20984
20985 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20986 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20987 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20988   echo $ECHO_N "(cached) $ECHO_C" >&6
20989 else
20990    ac_ext=cpp
20991 ac_cpp='$CXXCPP $CPPFLAGS'
20992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20995
20996   oldcxxflags="$CXXFLAGS"
20997   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20998   cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h.  */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h.  */
21004 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21005 int
21006 main ()
21007 {
21008 X<int>().f();
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017   *) ac_try_echo=$ac_try;;
21018 esac
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020   (eval "$ac_compile") 2>conftest.er1
21021   ac_status=$?
21022   grep -v '^ *+' conftest.er1 >conftest.err
21023   rm -f conftest.er1
21024   cat conftest.err >&5
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); } &&
21027          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21028   { (case "(($ac_try" in
21029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030   *) ac_try_echo=$ac_try;;
21031 esac
21032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033   (eval "$ac_try") 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; } &&
21037          { ac_try='test -s conftest.$ac_objext'
21038   { (case "(($ac_try" in
21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040   *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043   (eval "$ac_try") 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); }; }; then
21047   llvm_cv_cxx_visibility_inlines_hidden=yes
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052         llvm_cv_cxx_visibility_inlines_hidden=no
21053 fi
21054
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056   CXXFLAGS="$oldcxxflags"
21057   ac_ext=c
21058 ac_cpp='$CPP $CPPFLAGS'
21059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062
21063
21064 fi
21065 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21066 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21067 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21068   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21069
21070 else
21071   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21072
21073 fi
21074
21075
21076 if test "$llvm_cv_link_use_r" = "yes" ; then
21077   RPATH="-Wl,-R"
21078 else
21079   RPATH="-Wl,-rpath"
21080 fi
21081
21082
21083 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21084   RDYNAMIC="-Wl,-export-dynamic"
21085 else
21086   RDYNAMIC=""
21087 fi
21088
21089
21090
21091 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21092
21093
21094
21095
21096
21097
21098 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21099
21100 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21101
21102 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21103
21104 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21105
21106 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21107
21108
21109 ac_config_files="$ac_config_files Makefile.config"
21110
21111
21112 ac_config_files="$ac_config_files llvm.spec"
21113
21114
21115 ac_config_files="$ac_config_files docs/doxygen.cfg"
21116
21117
21118 if test "${clang_src_root}" = ""; then
21119   clang_src_root="$srcdir/tools/clang"
21120 fi
21121 if test -f ${clang_src_root}/README.txt; then
21122     configh="include/clang/Config/config.h"
21123   doxy="docs/doxygen.cfg"
21124   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21125
21126   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21127
21128 fi
21129
21130 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21131
21132
21133 test "x$program_prefix" = "xNONE" && program_prefix=""
21134
21135
21136
21137 ac_config_commands="$ac_config_commands setup"
21138
21139 ac_config_commands="$ac_config_commands Makefile"
21140
21141
21142 ac_config_commands="$ac_config_commands Makefile.common"
21143
21144
21145 ac_config_commands="$ac_config_commands examples/Makefile"
21146
21147
21148 ac_config_commands="$ac_config_commands lib/Makefile"
21149
21150
21151 ac_config_commands="$ac_config_commands runtime/Makefile"
21152
21153
21154 ac_config_commands="$ac_config_commands test/Makefile"
21155
21156
21157 ac_config_commands="$ac_config_commands test/Makefile.tests"
21158
21159
21160 ac_config_commands="$ac_config_commands unittests/Makefile"
21161
21162
21163 ac_config_commands="$ac_config_commands tools/Makefile"
21164
21165
21166 ac_config_commands="$ac_config_commands utils/Makefile"
21167
21168
21169 ac_config_commands="$ac_config_commands projects/Makefile"
21170
21171
21172 ac_config_commands="$ac_config_commands bindings/Makefile"
21173
21174
21175 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21176
21177
21178
21179 cat >confcache <<\_ACEOF
21180 # This file is a shell script that caches the results of configure
21181 # tests run on this system so they can be shared between configure
21182 # scripts and configure runs, see configure's option --config-cache.
21183 # It is not useful on other systems.  If it contains results you don't
21184 # want to keep, you may remove or edit it.
21185 #
21186 # config.status only pays attention to the cache file if you give it
21187 # the --recheck option to rerun configure.
21188 #
21189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21191 # following values.
21192
21193 _ACEOF
21194
21195 # The following way of writing the cache mishandles newlines in values,
21196 # but we know of no workaround that is simple, portable, and efficient.
21197 # So, we kill variables containing newlines.
21198 # Ultrix sh set writes to stderr and can't be redirected directly,
21199 # and sets the high bit in the cache file unless we assign to the vars.
21200 (
21201   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21202     eval ac_val=\$$ac_var
21203     case $ac_val in #(
21204     *${as_nl}*)
21205       case $ac_var in #(
21206       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21207 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21208       esac
21209       case $ac_var in #(
21210       _ | IFS | as_nl) ;; #(
21211       *) $as_unset $ac_var ;;
21212       esac ;;
21213     esac
21214   done
21215
21216   (set) 2>&1 |
21217     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21218     *${as_nl}ac_space=\ *)
21219       # `set' does not quote correctly, so add quotes (double-quote
21220       # substitution turns \\\\ into \\, and sed turns \\ into \).
21221       sed -n \
21222         "s/'/'\\\\''/g;
21223           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21224       ;; #(
21225     *)
21226       # `set' quotes correctly as required by POSIX, so do not add quotes.
21227       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21228       ;;
21229     esac |
21230     sort
21231 ) |
21232   sed '
21233      /^ac_cv_env_/b end
21234      t clear
21235      :clear
21236      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21237      t end
21238      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21239      :end' >>confcache
21240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21241   if test -w "$cache_file"; then
21242     test "x$cache_file" != "x/dev/null" &&
21243       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21244 echo "$as_me: updating cache $cache_file" >&6;}
21245     cat confcache >$cache_file
21246   else
21247     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21248 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21249   fi
21250 fi
21251 rm -f confcache
21252
21253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21254 # Let make expand exec_prefix.
21255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21256
21257 DEFS=-DHAVE_CONFIG_H
21258
21259 ac_libobjs=
21260 ac_ltlibobjs=
21261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21262   # 1. Remove the extension, and $U if already installed.
21263   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21264   ac_i=`echo "$ac_i" | sed "$ac_script"`
21265   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21266   #    will be set to the directory where LIBOBJS objects are built.
21267   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21268   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21269 done
21270 LIBOBJS=$ac_libobjs
21271
21272 LTLIBOBJS=$ac_ltlibobjs
21273
21274
21275 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21276   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21277 Usually this means the macro was only invoked conditionally." >&5
21278 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21279 Usually this means the macro was only invoked conditionally." >&2;}
21280    { (exit 1); exit 1; }; }
21281 fi
21282 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21283   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21284 Usually this means the macro was only invoked conditionally." >&5
21285 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21286 Usually this means the macro was only invoked conditionally." >&2;}
21287    { (exit 1); exit 1; }; }
21288 fi
21289
21290 : ${CONFIG_STATUS=./config.status}
21291 ac_clean_files_save=$ac_clean_files
21292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21293 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21294 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21295 cat >$CONFIG_STATUS <<_ACEOF
21296 #! $SHELL
21297 # Generated by $as_me.
21298 # Run this file to recreate the current configuration.
21299 # Compiler output produced by configure, useful for debugging
21300 # configure, is in config.log if it exists.
21301
21302 debug=false
21303 ac_cs_recheck=false
21304 ac_cs_silent=false
21305 SHELL=\${CONFIG_SHELL-$SHELL}
21306 _ACEOF
21307
21308 cat >>$CONFIG_STATUS <<\_ACEOF
21309 ## --------------------- ##
21310 ## M4sh Initialization.  ##
21311 ## --------------------- ##
21312
21313 # Be Bourne compatible
21314 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21315   emulate sh
21316   NULLCMD=:
21317   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21318   # is contrary to our usage.  Disable this feature.
21319   alias -g '${1+"$@"}'='"$@"'
21320   setopt NO_GLOB_SUBST
21321 else
21322   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21323 fi
21324 BIN_SH=xpg4; export BIN_SH # for Tru64
21325 DUALCASE=1; export DUALCASE # for MKS sh
21326
21327
21328 # PATH needs CR
21329 # Avoid depending upon Character Ranges.
21330 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21331 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21332 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21333 as_cr_digits='0123456789'
21334 as_cr_alnum=$as_cr_Letters$as_cr_digits
21335
21336 # The user is always right.
21337 if test "${PATH_SEPARATOR+set}" != set; then
21338   echo "#! /bin/sh" >conf$$.sh
21339   echo  "exit 0"   >>conf$$.sh
21340   chmod +x conf$$.sh
21341   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21342     PATH_SEPARATOR=';'
21343   else
21344     PATH_SEPARATOR=:
21345   fi
21346   rm -f conf$$.sh
21347 fi
21348
21349 # Support unset when possible.
21350 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21351   as_unset=unset
21352 else
21353   as_unset=false
21354 fi
21355
21356
21357 # IFS
21358 # We need space, tab and new line, in precisely that order.  Quoting is
21359 # there to prevent editors from complaining about space-tab.
21360 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21361 # splitting by setting IFS to empty value.)
21362 as_nl='
21363 '
21364 IFS=" ""        $as_nl"
21365
21366 # Find who we are.  Look in the path if we contain no directory separator.
21367 case $0 in
21368   *[\\/]* ) as_myself=$0 ;;
21369   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21370 for as_dir in $PATH
21371 do
21372   IFS=$as_save_IFS
21373   test -z "$as_dir" && as_dir=.
21374   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21375 done
21376 IFS=$as_save_IFS
21377
21378      ;;
21379 esac
21380 # We did not find ourselves, most probably we were run as `sh COMMAND'
21381 # in which case we are not to be found in the path.
21382 if test "x$as_myself" = x; then
21383   as_myself=$0
21384 fi
21385 if test ! -f "$as_myself"; then
21386   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21387   { (exit 1); exit 1; }
21388 fi
21389
21390 # Work around bugs in pre-3.0 UWIN ksh.
21391 for as_var in ENV MAIL MAILPATH
21392 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21393 done
21394 PS1='$ '
21395 PS2='> '
21396 PS4='+ '
21397
21398 # NLS nuisances.
21399 for as_var in \
21400   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21401   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21402   LC_TELEPHONE LC_TIME
21403 do
21404   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21405     eval $as_var=C; export $as_var
21406   else
21407     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21408   fi
21409 done
21410
21411 # Required to use basename.
21412 if expr a : '\(a\)' >/dev/null 2>&1 &&
21413    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21414   as_expr=expr
21415 else
21416   as_expr=false
21417 fi
21418
21419 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21420   as_basename=basename
21421 else
21422   as_basename=false
21423 fi
21424
21425
21426 # Name of the executable.
21427 as_me=`$as_basename -- "$0" ||
21428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21429          X"$0" : 'X\(//\)$' \| \
21430          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21431 echo X/"$0" |
21432     sed '/^.*\/\([^/][^/]*\)\/*$/{
21433             s//\1/
21434             q
21435           }
21436           /^X\/\(\/\/\)$/{
21437             s//\1/
21438             q
21439           }
21440           /^X\/\(\/\).*/{
21441             s//\1/
21442             q
21443           }
21444           s/.*/./; q'`
21445
21446 # CDPATH.
21447 $as_unset CDPATH
21448
21449
21450
21451   as_lineno_1=$LINENO
21452   as_lineno_2=$LINENO
21453   test "x$as_lineno_1" != "x$as_lineno_2" &&
21454   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21455
21456   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21457   # uniformly replaced by the line number.  The first 'sed' inserts a
21458   # line-number line after each line using $LINENO; the second 'sed'
21459   # does the real work.  The second script uses 'N' to pair each
21460   # line-number line with the line containing $LINENO, and appends
21461   # trailing '-' during substitution so that $LINENO is not a special
21462   # case at line end.
21463   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21464   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21465   # E. McMahon (1931-1989) for sed's syntax.  :-)
21466   sed -n '
21467     p
21468     /[$]LINENO/=
21469   ' <$as_myself |
21470     sed '
21471       s/[$]LINENO.*/&-/
21472       t lineno
21473       b
21474       :lineno
21475       N
21476       :loop
21477       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21478       t loop
21479       s/-\n.*//
21480     ' >$as_me.lineno &&
21481   chmod +x "$as_me.lineno" ||
21482     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21483    { (exit 1); exit 1; }; }
21484
21485   # Don't try to exec as it changes $[0], causing all sort of problems
21486   # (the dirname of $[0] is not the place where we might find the
21487   # original and so on.  Autoconf is especially sensitive to this).
21488   . "./$as_me.lineno"
21489   # Exit status is that of the last command.
21490   exit
21491 }
21492
21493
21494 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21495   as_dirname=dirname
21496 else
21497   as_dirname=false
21498 fi
21499
21500 ECHO_C= ECHO_N= ECHO_T=
21501 case `echo -n x` in
21502 -n*)
21503   case `echo 'x\c'` in
21504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21505   *)   ECHO_C='\c';;
21506   esac;;
21507 *)
21508   ECHO_N='-n';;
21509 esac
21510
21511 if expr a : '\(a\)' >/dev/null 2>&1 &&
21512    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21513   as_expr=expr
21514 else
21515   as_expr=false
21516 fi
21517
21518 rm -f conf$$ conf$$.exe conf$$.file
21519 if test -d conf$$.dir; then
21520   rm -f conf$$.dir/conf$$.file
21521 else
21522   rm -f conf$$.dir
21523   mkdir conf$$.dir
21524 fi
21525 echo >conf$$.file
21526 if ln -s conf$$.file conf$$ 2>/dev/null; then
21527   as_ln_s='ln -s'
21528   # ... but there are two gotchas:
21529   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21530   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21531   # In both cases, we have to default to `cp -p'.
21532   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21533     as_ln_s='cp -p'
21534 elif ln conf$$.file conf$$ 2>/dev/null; then
21535   as_ln_s=ln
21536 else
21537   as_ln_s='cp -p'
21538 fi
21539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21540 rmdir conf$$.dir 2>/dev/null
21541
21542 if mkdir -p . 2>/dev/null; then
21543   as_mkdir_p=:
21544 else
21545   test -d ./-p && rmdir ./-p
21546   as_mkdir_p=false
21547 fi
21548
21549 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21550 # systems may use methods other than mode bits to determine executability.
21551 cat >conf$$.file <<_ASEOF
21552 #! /bin/sh
21553 exit 0
21554 _ASEOF
21555 chmod +x conf$$.file
21556 if test -x conf$$.file >/dev/null 2>&1; then
21557   as_executable_p="test -x"
21558 else
21559   as_executable_p=:
21560 fi
21561 rm -f conf$$.file
21562
21563 # Sed expression to map a string onto a valid CPP name.
21564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21565
21566 # Sed expression to map a string onto a valid variable name.
21567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21568
21569
21570 exec 6>&1
21571
21572 # Save the log message, to keep $[0] and so on meaningful, and to
21573 # report actual input values of CONFIG_FILES etc. instead of their
21574 # values after options handling.
21575 ac_log="
21576 This file was extended by LLVM $as_me 3.2svn, which was
21577 generated by GNU Autoconf 2.60.  Invocation command line was
21578
21579   CONFIG_FILES    = $CONFIG_FILES
21580   CONFIG_HEADERS  = $CONFIG_HEADERS
21581   CONFIG_LINKS    = $CONFIG_LINKS
21582   CONFIG_COMMANDS = $CONFIG_COMMANDS
21583   $ $0 $@
21584
21585 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21586 "
21587
21588 _ACEOF
21589
21590 cat >>$CONFIG_STATUS <<_ACEOF
21591 # Files that config.status was made for.
21592 config_files="$ac_config_files"
21593 config_headers="$ac_config_headers"
21594 config_commands="$ac_config_commands"
21595
21596 _ACEOF
21597
21598 cat >>$CONFIG_STATUS <<\_ACEOF
21599 ac_cs_usage="\
21600 \`$as_me' instantiates files from templates according to the
21601 current configuration.
21602
21603 Usage: $0 [OPTIONS] [FILE]...
21604
21605   -h, --help       print this help, then exit
21606   -V, --version    print version number, then exit
21607   -q, --quiet      do not print progress messages
21608   -d, --debug      don't remove temporary files
21609       --recheck    update $as_me by reconfiguring in the same conditions
21610   --file=FILE[:TEMPLATE]
21611                    instantiate the configuration file FILE
21612   --header=FILE[:TEMPLATE]
21613                    instantiate the configuration header FILE
21614
21615 Configuration files:
21616 $config_files
21617
21618 Configuration headers:
21619 $config_headers
21620
21621 Configuration commands:
21622 $config_commands
21623
21624 Report bugs to <bug-autoconf@gnu.org>."
21625
21626 _ACEOF
21627 cat >>$CONFIG_STATUS <<_ACEOF
21628 ac_cs_version="\\
21629 LLVM config.status 3.2svn
21630 configured by $0, generated by GNU Autoconf 2.60,
21631   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21632
21633 Copyright (C) 2006 Free Software Foundation, Inc.
21634 This config.status script is free software; the Free Software Foundation
21635 gives unlimited permission to copy, distribute and modify it."
21636
21637 ac_pwd='$ac_pwd'
21638 srcdir='$srcdir'
21639 INSTALL='$INSTALL'
21640 _ACEOF
21641
21642 cat >>$CONFIG_STATUS <<\_ACEOF
21643 # If no file are specified by the user, then we need to provide default
21644 # value.  By we need to know if files were specified by the user.
21645 ac_need_defaults=:
21646 while test $# != 0
21647 do
21648   case $1 in
21649   --*=*)
21650     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21651     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21652     ac_shift=:
21653     ;;
21654   *)
21655     ac_option=$1
21656     ac_optarg=$2
21657     ac_shift=shift
21658     ;;
21659   esac
21660
21661   case $ac_option in
21662   # Handling of the options.
21663   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21664     ac_cs_recheck=: ;;
21665   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21666     echo "$ac_cs_version"; exit ;;
21667   --debug | --debu | --deb | --de | --d | -d )
21668     debug=: ;;
21669   --file | --fil | --fi | --f )
21670     $ac_shift
21671     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21672     ac_need_defaults=false;;
21673   --header | --heade | --head | --hea )
21674     $ac_shift
21675     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21676     ac_need_defaults=false;;
21677   --he | --h)
21678     # Conflict between --help and --header
21679     { echo "$as_me: error: ambiguous option: $1
21680 Try \`$0 --help' for more information." >&2
21681    { (exit 1); exit 1; }; };;
21682   --help | --hel | -h )
21683     echo "$ac_cs_usage"; exit ;;
21684   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21685   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21686     ac_cs_silent=: ;;
21687
21688   # This is an error.
21689   -*) { echo "$as_me: error: unrecognized option: $1
21690 Try \`$0 --help' for more information." >&2
21691    { (exit 1); exit 1; }; } ;;
21692
21693   *) ac_config_targets="$ac_config_targets $1"
21694      ac_need_defaults=false ;;
21695
21696   esac
21697   shift
21698 done
21699
21700 ac_configure_extra_args=
21701
21702 if $ac_cs_silent; then
21703   exec 6>/dev/null
21704   ac_configure_extra_args="$ac_configure_extra_args --silent"
21705 fi
21706
21707 _ACEOF
21708 cat >>$CONFIG_STATUS <<_ACEOF
21709 if \$ac_cs_recheck; then
21710   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21711   CONFIG_SHELL=$SHELL
21712   export CONFIG_SHELL
21713   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21714 fi
21715
21716 _ACEOF
21717 cat >>$CONFIG_STATUS <<\_ACEOF
21718 exec 5>>config.log
21719 {
21720   echo
21721   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21722 ## Running $as_me. ##
21723 _ASBOX
21724   echo "$ac_log"
21725 } >&5
21726
21727 _ACEOF
21728 cat >>$CONFIG_STATUS <<_ACEOF
21729 #
21730 # INIT-COMMANDS
21731 #
21732 llvm_src="${srcdir}"
21733
21734 _ACEOF
21735
21736 cat >>$CONFIG_STATUS <<\_ACEOF
21737
21738 # Handling of arguments.
21739 for ac_config_target in $ac_config_targets
21740 do
21741   case $ac_config_target in
21742     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21743     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21744     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21745     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21746     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21747     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21748     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21749     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21750     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21751     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21752     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21753     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21754     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21755     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21756     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21757     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21758     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21759     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21760     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21761     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21762     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21763     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21764     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21765     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21766     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21767     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21768     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21769
21770   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21771 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21772    { (exit 1); exit 1; }; };;
21773   esac
21774 done
21775
21776
21777 # If the user did not use the arguments to specify the items to instantiate,
21778 # then the envvar interface is used.  Set only those that are not.
21779 # We use the long form for the default assignment because of an extremely
21780 # bizarre bug on SunOS 4.1.3.
21781 if $ac_need_defaults; then
21782   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21783   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21784   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21785 fi
21786
21787 # Have a temporary directory for convenience.  Make it in the build tree
21788 # simply because there is no reason against having it here, and in addition,
21789 # creating and moving files from /tmp can sometimes cause problems.
21790 # Hook for its removal unless debugging.
21791 # Note that there is a small window in which the directory will not be cleaned:
21792 # after its creation but before its name has been assigned to `$tmp'.
21793 $debug ||
21794 {
21795   tmp=
21796   trap 'exit_status=$?
21797   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21798 ' 0
21799   trap '{ (exit 1); exit 1; }' 1 2 13 15
21800 }
21801 # Create a (secure) tmp directory for tmp files.
21802
21803 {
21804   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21805   test -n "$tmp" && test -d "$tmp"
21806 }  ||
21807 {
21808   tmp=./conf$$-$RANDOM
21809   (umask 077 && mkdir "$tmp")
21810 } ||
21811 {
21812    echo "$me: cannot create a temporary directory in ." >&2
21813    { (exit 1); exit 1; }
21814 }
21815
21816 #
21817 # Set up the sed scripts for CONFIG_FILES section.
21818 #
21819
21820 # No need to generate the scripts if there are no CONFIG_FILES.
21821 # This happens for instance when ./config.status config.h
21822 if test -n "$CONFIG_FILES"; then
21823
21824 _ACEOF
21825
21826
21827
21828 ac_delim='%!_!# '
21829 for ac_last_try in false false false false false :; do
21830   cat >conf$$subs.sed <<_ACEOF
21831 SHELL!$SHELL$ac_delim
21832 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21833 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21834 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21835 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21836 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21837 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21838 exec_prefix!$exec_prefix$ac_delim
21839 prefix!$prefix$ac_delim
21840 program_transform_name!$program_transform_name$ac_delim
21841 bindir!$bindir$ac_delim
21842 sbindir!$sbindir$ac_delim
21843 libexecdir!$libexecdir$ac_delim
21844 datarootdir!$datarootdir$ac_delim
21845 datadir!$datadir$ac_delim
21846 sysconfdir!$sysconfdir$ac_delim
21847 sharedstatedir!$sharedstatedir$ac_delim
21848 localstatedir!$localstatedir$ac_delim
21849 includedir!$includedir$ac_delim
21850 oldincludedir!$oldincludedir$ac_delim
21851 docdir!$docdir$ac_delim
21852 infodir!$infodir$ac_delim
21853 htmldir!$htmldir$ac_delim
21854 dvidir!$dvidir$ac_delim
21855 pdfdir!$pdfdir$ac_delim
21856 psdir!$psdir$ac_delim
21857 libdir!$libdir$ac_delim
21858 localedir!$localedir$ac_delim
21859 mandir!$mandir$ac_delim
21860 DEFS!$DEFS$ac_delim
21861 ECHO_C!$ECHO_C$ac_delim
21862 ECHO_N!$ECHO_N$ac_delim
21863 ECHO_T!$ECHO_T$ac_delim
21864 LIBS!$LIBS$ac_delim
21865 build_alias!$build_alias$ac_delim
21866 host_alias!$host_alias$ac_delim
21867 target_alias!$target_alias$ac_delim
21868 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21869 CC!$CC$ac_delim
21870 CFLAGS!$CFLAGS$ac_delim
21871 LDFLAGS!$LDFLAGS$ac_delim
21872 CPPFLAGS!$CPPFLAGS$ac_delim
21873 ac_ct_CC!$ac_ct_CC$ac_delim
21874 EXEEXT!$EXEEXT$ac_delim
21875 OBJEXT!$OBJEXT$ac_delim
21876 CXX!$CXX$ac_delim
21877 CXXFLAGS!$CXXFLAGS$ac_delim
21878 ac_ct_CXX!$ac_ct_CXX$ac_delim
21879 CPP!$CPP$ac_delim
21880 subdirs!$subdirs$ac_delim
21881 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21882 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21883 build!$build$ac_delim
21884 build_cpu!$build_cpu$ac_delim
21885 build_vendor!$build_vendor$ac_delim
21886 build_os!$build_os$ac_delim
21887 host!$host$ac_delim
21888 host_cpu!$host_cpu$ac_delim
21889 host_vendor!$host_vendor$ac_delim
21890 host_os!$host_os$ac_delim
21891 target!$target$ac_delim
21892 target_cpu!$target_cpu$ac_delim
21893 target_vendor!$target_vendor$ac_delim
21894 target_os!$target_os$ac_delim
21895 OS!$OS$ac_delim
21896 HOST_OS!$HOST_OS$ac_delim
21897 TARGET_OS!$TARGET_OS$ac_delim
21898 LINKALL!$LINKALL$ac_delim
21899 NOLINKALL!$NOLINKALL$ac_delim
21900 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21901 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21902 ARCH!$ARCH$ac_delim
21903 HOST_ARCH!$HOST_ARCH$ac_delim
21904 ENDIAN!$ENDIAN$ac_delim
21905 GREP!$GREP$ac_delim
21906 EGREP!$EGREP$ac_delim
21907 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21908 BUILD_CC!$BUILD_CC$ac_delim
21909 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21910 BUILD_CXX!$BUILD_CXX$ac_delim
21911 CVSBUILD!$CVSBUILD$ac_delim
21912 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21913 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21914 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21915 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21916 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21917 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21918 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21919 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21920 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21921 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21922 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
21923 JIT!$JIT$ac_delim
21924 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21925 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21926 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21927 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21928 _ACEOF
21929
21930   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21931     break
21932   elif $ac_last_try; then
21933     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21934 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21935    { (exit 1); exit 1; }; }
21936   else
21937     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21938   fi
21939 done
21940
21941 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21942 if test -n "$ac_eof"; then
21943   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21944   ac_eof=`expr $ac_eof + 1`
21945 fi
21946
21947 cat >>$CONFIG_STATUS <<_ACEOF
21948 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21950 _ACEOF
21951 sed '
21952 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21953 s/^/s,@/; s/!/@,|#_!!_#|/
21954 :n
21955 t n
21956 s/'"$ac_delim"'$/,g/; t
21957 s/$/\\/; p
21958 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21959 ' >>$CONFIG_STATUS <conf$$subs.sed
21960 rm -f conf$$subs.sed
21961 cat >>$CONFIG_STATUS <<_ACEOF
21962 CEOF$ac_eof
21963 _ACEOF
21964
21965
21966 ac_delim='%!_!# '
21967 for ac_last_try in false false false false false :; do
21968   cat >conf$$subs.sed <<_ACEOF
21969 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21970 ENABLE_PIC!$ENABLE_PIC$ac_delim
21971 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21972 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21973 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21974 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21975 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21976 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21977 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21978 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21979 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21980 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21981 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21982 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21983 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21984 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21985 NM!$NM$ac_delim
21986 ifGNUmake!$ifGNUmake$ac_delim
21987 LN_S!$LN_S$ac_delim
21988 CMP!$CMP$ac_delim
21989 CP!$CP$ac_delim
21990 DATE!$DATE$ac_delim
21991 FIND!$FIND$ac_delim
21992 MKDIR!$MKDIR$ac_delim
21993 MV!$MV$ac_delim
21994 RANLIB!$RANLIB$ac_delim
21995 AR!$AR$ac_delim
21996 RM!$RM$ac_delim
21997 SED!$SED$ac_delim
21998 TAR!$TAR$ac_delim
21999 BINPWD!$BINPWD$ac_delim
22000 GRAPHVIZ!$GRAPHVIZ$ac_delim
22001 DOT!$DOT$ac_delim
22002 FDP!$FDP$ac_delim
22003 NEATO!$NEATO$ac_delim
22004 TWOPI!$TWOPI$ac_delim
22005 CIRCO!$CIRCO$ac_delim
22006 GV!$GV$ac_delim
22007 DOTTY!$DOTTY$ac_delim
22008 XDOT_PY!$XDOT_PY$ac_delim
22009 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22010 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22011 INSTALL_DATA!$INSTALL_DATA$ac_delim
22012 BZIP2!$BZIP2$ac_delim
22013 CAT!$CAT$ac_delim
22014 DOXYGEN!$DOXYGEN$ac_delim
22015 GROFF!$GROFF$ac_delim
22016 GZIPBIN!$GZIPBIN$ac_delim
22017 PDFROFF!$PDFROFF$ac_delim
22018 ZIP!$ZIP$ac_delim
22019 OCAMLC!$OCAMLC$ac_delim
22020 OCAMLOPT!$OCAMLOPT$ac_delim
22021 OCAMLDEP!$OCAMLDEP$ac_delim
22022 OCAMLDOC!$OCAMLDOC$ac_delim
22023 GAS!$GAS$ac_delim
22024 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22025 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22026 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22027 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22028 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22029 LIBADD_DL!$LIBADD_DL$ac_delim
22030 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22031 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22032 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22033 USE_UDIS86!$USE_UDIS86$ac_delim
22034 USE_OPROFILE!$USE_OPROFILE$ac_delim
22035 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22036 XML2CONFIG!$XML2CONFIG$ac_delim
22037 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22038 LIBXML2_INC!$LIBXML2_INC$ac_delim
22039 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22040 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22041 MMAP_FILE!$MMAP_FILE$ac_delim
22042 SHLIBEXT!$SHLIBEXT$ac_delim
22043 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22044 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22045 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22046 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22047 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22048 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22049 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22050 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22051 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22052 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22053 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22054 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22055 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22056 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22057 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22058 RPATH!$RPATH$ac_delim
22059 RDYNAMIC!$RDYNAMIC$ac_delim
22060 program_prefix!$program_prefix$ac_delim
22061 LIBOBJS!$LIBOBJS$ac_delim
22062 LTLIBOBJS!$LTLIBOBJS$ac_delim
22063 _ACEOF
22064
22065   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
22066     break
22067   elif $ac_last_try; then
22068     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22070    { (exit 1); exit 1; }; }
22071   else
22072     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22073   fi
22074 done
22075
22076 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22077 if test -n "$ac_eof"; then
22078   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22079   ac_eof=`expr $ac_eof + 1`
22080 fi
22081
22082 cat >>$CONFIG_STATUS <<_ACEOF
22083 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22085 _ACEOF
22086 sed '
22087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22088 s/^/s,@/; s/!/@,|#_!!_#|/
22089 :n
22090 t n
22091 s/'"$ac_delim"'$/,g/; t
22092 s/$/\\/; p
22093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22094 ' >>$CONFIG_STATUS <conf$$subs.sed
22095 rm -f conf$$subs.sed
22096 cat >>$CONFIG_STATUS <<_ACEOF
22097 :end
22098 s/|#_!!_#|//g
22099 CEOF$ac_eof
22100 _ACEOF
22101
22102
22103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22105 # trailing colons and then remove the whole line if VPATH becomes empty
22106 # (actually we leave an empty line to preserve line numbers).
22107 if test "x$srcdir" = x.; then
22108   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22109 s/:*\$(srcdir):*/:/
22110 s/:*\${srcdir}:*/:/
22111 s/:*@srcdir@:*/:/
22112 s/^\([^=]*=[     ]*\):*/\1/
22113 s/:*$//
22114 s/^[^=]*=[       ]*$//
22115 }'
22116 fi
22117
22118 cat >>$CONFIG_STATUS <<\_ACEOF
22119 fi # test -n "$CONFIG_FILES"
22120
22121
22122 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22123 do
22124   case $ac_tag in
22125   :[FHLC]) ac_mode=$ac_tag; continue;;
22126   esac
22127   case $ac_mode$ac_tag in
22128   :[FHL]*:*);;
22129   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22130 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22131    { (exit 1); exit 1; }; };;
22132   :[FH]-) ac_tag=-:-;;
22133   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22134   esac
22135   ac_save_IFS=$IFS
22136   IFS=:
22137   set x $ac_tag
22138   IFS=$ac_save_IFS
22139   shift
22140   ac_file=$1
22141   shift
22142
22143   case $ac_mode in
22144   :L) ac_source=$1;;
22145   :[FH])
22146     ac_file_inputs=
22147     for ac_f
22148     do
22149       case $ac_f in
22150       -) ac_f="$tmp/stdin";;
22151       *) # Look for the file first in the build tree, then in the source tree
22152          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22153          # because $ac_f cannot contain `:'.
22154          test -f "$ac_f" ||
22155            case $ac_f in
22156            [\\/$]*) false;;
22157            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22158            esac ||
22159            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22160 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22161    { (exit 1); exit 1; }; };;
22162       esac
22163       ac_file_inputs="$ac_file_inputs $ac_f"
22164     done
22165
22166     # Let's still pretend it is `configure' which instantiates (i.e., don't
22167     # use $as_me), people would be surprised to read:
22168     #    /* config.h.  Generated by config.status.  */
22169     configure_input="Generated from "`IFS=:
22170           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22171     if test x"$ac_file" != x-; then
22172       configure_input="$ac_file.  $configure_input"
22173       { echo "$as_me:$LINENO: creating $ac_file" >&5
22174 echo "$as_me: creating $ac_file" >&6;}
22175     fi
22176
22177     case $ac_tag in
22178     *:-:* | *:-) cat >"$tmp/stdin";;
22179     esac
22180     ;;
22181   esac
22182
22183   ac_dir=`$as_dirname -- "$ac_file" ||
22184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22185          X"$ac_file" : 'X\(//\)[^/]' \| \
22186          X"$ac_file" : 'X\(//\)$' \| \
22187          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22188 echo X"$ac_file" |
22189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22190             s//\1/
22191             q
22192           }
22193           /^X\(\/\/\)[^/].*/{
22194             s//\1/
22195             q
22196           }
22197           /^X\(\/\/\)$/{
22198             s//\1/
22199             q
22200           }
22201           /^X\(\/\).*/{
22202             s//\1/
22203             q
22204           }
22205           s/.*/./; q'`
22206   { as_dir="$ac_dir"
22207   case $as_dir in #(
22208   -*) as_dir=./$as_dir;;
22209   esac
22210   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22211     as_dirs=
22212     while :; do
22213       case $as_dir in #(
22214       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22215       *) as_qdir=$as_dir;;
22216       esac
22217       as_dirs="'$as_qdir' $as_dirs"
22218       as_dir=`$as_dirname -- "$as_dir" ||
22219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220          X"$as_dir" : 'X\(//\)[^/]' \| \
22221          X"$as_dir" : 'X\(//\)$' \| \
22222          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22223 echo X"$as_dir" |
22224     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22225             s//\1/
22226             q
22227           }
22228           /^X\(\/\/\)[^/].*/{
22229             s//\1/
22230             q
22231           }
22232           /^X\(\/\/\)$/{
22233             s//\1/
22234             q
22235           }
22236           /^X\(\/\).*/{
22237             s//\1/
22238             q
22239           }
22240           s/.*/./; q'`
22241       test -d "$as_dir" && break
22242     done
22243     test -z "$as_dirs" || eval "mkdir $as_dirs"
22244   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22245 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22246    { (exit 1); exit 1; }; }; }
22247   ac_builddir=.
22248
22249 case "$ac_dir" in
22250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22251 *)
22252   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22253   # A ".." for each directory in $ac_dir_suffix.
22254   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22255   case $ac_top_builddir_sub in
22256   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22257   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22258   esac ;;
22259 esac
22260 ac_abs_top_builddir=$ac_pwd
22261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22262 # for backward compatibility:
22263 ac_top_builddir=$ac_top_build_prefix
22264
22265 case $srcdir in
22266   .)  # We are building in place.
22267     ac_srcdir=.
22268     ac_top_srcdir=$ac_top_builddir_sub
22269     ac_abs_top_srcdir=$ac_pwd ;;
22270   [\\/]* | ?:[\\/]* )  # Absolute name.
22271     ac_srcdir=$srcdir$ac_dir_suffix;
22272     ac_top_srcdir=$srcdir
22273     ac_abs_top_srcdir=$srcdir ;;
22274   *) # Relative name.
22275     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22276     ac_top_srcdir=$ac_top_build_prefix$srcdir
22277     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22278 esac
22279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22280
22281
22282   case $ac_mode in
22283   :F)
22284   #
22285   # CONFIG_FILE
22286   #
22287
22288   case $INSTALL in
22289   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22290   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22291   esac
22292 _ACEOF
22293
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22295 # If the template does not know about datarootdir, expand it.
22296 # FIXME: This hack should be removed a few years after 2.60.
22297 ac_datarootdir_hack=; ac_datarootdir_seen=
22298
22299 case `sed -n '/datarootdir/ {
22300   p
22301   q
22302 }
22303 /@datadir@/p
22304 /@docdir@/p
22305 /@infodir@/p
22306 /@localedir@/p
22307 /@mandir@/p
22308 ' $ac_file_inputs` in
22309 *datarootdir*) ac_datarootdir_seen=yes;;
22310 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22311   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22312 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22313 _ACEOF
22314 cat >>$CONFIG_STATUS <<_ACEOF
22315   ac_datarootdir_hack='
22316   s&@datadir@&$datadir&g
22317   s&@docdir@&$docdir&g
22318   s&@infodir@&$infodir&g
22319   s&@localedir@&$localedir&g
22320   s&@mandir@&$mandir&g
22321     s&\\\${datarootdir}&$datarootdir&g' ;;
22322 esac
22323 _ACEOF
22324
22325 # Neutralize VPATH when `$srcdir' = `.'.
22326 # Shell code in configure.ac might set extrasub.
22327 # FIXME: do we really want to maintain this feature?
22328 cat >>$CONFIG_STATUS <<_ACEOF
22329   sed "$ac_vpsub
22330 $extrasub
22331 _ACEOF
22332 cat >>$CONFIG_STATUS <<\_ACEOF
22333 :t
22334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22335 s&@configure_input@&$configure_input&;t t
22336 s&@top_builddir@&$ac_top_builddir_sub&;t t
22337 s&@srcdir@&$ac_srcdir&;t t
22338 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22339 s&@top_srcdir@&$ac_top_srcdir&;t t
22340 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22341 s&@builddir@&$ac_builddir&;t t
22342 s&@abs_builddir@&$ac_abs_builddir&;t t
22343 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22344 s&@INSTALL@&$ac_INSTALL&;t t
22345 $ac_datarootdir_hack
22346 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22347
22348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22349   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22350   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22351   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22352 which seems to be undefined.  Please make sure it is defined." >&5
22353 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22354 which seems to be undefined.  Please make sure it is defined." >&2;}
22355
22356   rm -f "$tmp/stdin"
22357   case $ac_file in
22358   -) cat "$tmp/out"; rm -f "$tmp/out";;
22359   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22360   esac
22361  ;;
22362   :H)
22363   #
22364   # CONFIG_HEADER
22365   #
22366 _ACEOF
22367
22368 # Transform confdefs.h into a sed script `conftest.defines', that
22369 # substitutes the proper values into config.h.in to produce config.h.
22370 rm -f conftest.defines conftest.tail
22371 # First, append a space to every undef/define line, to ease matching.
22372 echo 's/$/ /' >conftest.defines
22373 # Then, protect against being on the right side of a sed subst, or in
22374 # an unquoted here document, in config.status.  If some macros were
22375 # called several times there might be several #defines for the same
22376 # symbol, which is useless.  But do not sort them, since the last
22377 # AC_DEFINE must be honored.
22378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22379 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22380 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22381 # PARAMS is the parameter list in the macro definition--in most cases, it's
22382 # just an empty string.
22383 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22384 ac_dB='\\)[      (].*,\\1define\\2'
22385 ac_dC=' '
22386 ac_dD=' ,'
22387
22388 uniq confdefs.h |
22389   sed -n '
22390         t rset
22391         :rset
22392         s/^[     ]*#[    ]*define[       ][      ]*//
22393         t ok
22394         d
22395         :ok
22396         s/[\\&,]/\\&/g
22397         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22398         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22399   ' >>conftest.defines
22400
22401 # Remove the space that was appended to ease matching.
22402 # Then replace #undef with comments.  This is necessary, for
22403 # example, in the case of _POSIX_SOURCE, which is predefined and required
22404 # on some systems where configure will not decide to define it.
22405 # (The regexp can be short, since the line contains either #define or #undef.)
22406 echo 's/ $//
22407 s,^[     #]*u.*,/* & */,' >>conftest.defines
22408
22409 # Break up conftest.defines:
22410 ac_max_sed_lines=50
22411
22412 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22413 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22414 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22415 # et cetera.
22416 ac_in='$ac_file_inputs'
22417 ac_out='"$tmp/out1"'
22418 ac_nxt='"$tmp/out2"'
22419
22420 while :
22421 do
22422   # Write a here document:
22423     cat >>$CONFIG_STATUS <<_ACEOF
22424     # First, check the format of the line:
22425     cat >"\$tmp/defines.sed" <<\\CEOF
22426 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22427 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22428 b
22429 :def
22430 _ACEOF
22431   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22432   echo 'CEOF
22433     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22434   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22435   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22436   grep . conftest.tail >/dev/null || break
22437   rm -f conftest.defines
22438   mv conftest.tail conftest.defines
22439 done
22440 rm -f conftest.defines conftest.tail
22441
22442 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22443 cat >>$CONFIG_STATUS <<\_ACEOF
22444   if test x"$ac_file" != x-; then
22445     echo "/* $configure_input  */" >"$tmp/config.h"
22446     cat "$ac_result" >>"$tmp/config.h"
22447     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22448       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22449 echo "$as_me: $ac_file is unchanged" >&6;}
22450     else
22451       rm -f $ac_file
22452       mv "$tmp/config.h" $ac_file
22453     fi
22454   else
22455     echo "/* $configure_input  */"
22456     cat "$ac_result"
22457   fi
22458   rm -f "$tmp/out12"
22459  ;;
22460
22461   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22462 echo "$as_me: executing $ac_file commands" >&6;}
22463  ;;
22464   esac
22465
22466
22467   case $ac_file$ac_mode in
22468     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22469    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22470     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22471    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22472     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22473    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22474     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22475    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22476     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22477    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22478     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22479    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22480     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22481    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22482     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22483    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22484     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22485    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22486     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22487    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22488     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22489    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22490     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22491    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22492     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22493    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22494
22495   esac
22496 done # for ac_tag
22497
22498
22499 { (exit 0); exit 0; }
22500 _ACEOF
22501 chmod +x $CONFIG_STATUS
22502 ac_clean_files=$ac_clean_files_save
22503
22504
22505 # configure is writing to config.log, and then calls config.status.
22506 # config.status does its own redirection, appending to config.log.
22507 # Unfortunately, on DOS this fails, as config.log is still kept open
22508 # by configure, so config.status won't be able to write to it; its
22509 # output is simply discarded.  So we exec the FD to /dev/null,
22510 # effectively closing config.log, so it can be properly (re)opened and
22511 # appended to by config.status.  When coming back to configure, we
22512 # need to make the FD available again.
22513 if test "$no_create" != yes; then
22514   ac_cs_success=:
22515   ac_config_status_args=
22516   test "$silent" = yes &&
22517     ac_config_status_args="$ac_config_status_args --quiet"
22518   exec 5>/dev/null
22519   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22520   exec 5>>config.log
22521   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22522   # would make configure fail if this is the last instruction.
22523   $ac_cs_success || { (exit 1); exit 1; }
22524 fi
22525
22526 #
22527 # CONFIG_SUBDIRS section.
22528 #
22529 if test "$no_recursion" != yes; then
22530
22531   # Remove --cache-file and --srcdir arguments so they do not pile up.
22532   ac_sub_configure_args=
22533   ac_prev=
22534   eval "set x $ac_configure_args"
22535   shift
22536   for ac_arg
22537   do
22538     if test -n "$ac_prev"; then
22539       ac_prev=
22540       continue
22541     fi
22542     case $ac_arg in
22543     -cache-file | --cache-file | --cache-fil | --cache-fi \
22544     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22545       ac_prev=cache_file ;;
22546     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22547     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22548     | --c=*)
22549       ;;
22550     --config-cache | -C)
22551       ;;
22552     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22553       ac_prev=srcdir ;;
22554     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22555       ;;
22556     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22557       ac_prev=prefix ;;
22558     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22559       ;;
22560     *)
22561       case $ac_arg in
22562       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22563       esac
22564       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22565     esac
22566   done
22567
22568   # Always prepend --prefix to ensure using the same prefix
22569   # in subdir configurations.
22570   ac_arg="--prefix=$prefix"
22571   case $ac_arg in
22572   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22573   esac
22574   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22575
22576   ac_popdir=`pwd`
22577   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22578
22579     # Do not complain, so a configure script can configure whichever
22580     # parts of a large source tree are present.
22581     test -d "$srcdir/$ac_dir" || continue
22582
22583     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22584     echo "$as_me:$LINENO: $ac_msg" >&5
22585     echo "$ac_msg" >&6
22586     { as_dir="$ac_dir"
22587   case $as_dir in #(
22588   -*) as_dir=./$as_dir;;
22589   esac
22590   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22591     as_dirs=
22592     while :; do
22593       case $as_dir in #(
22594       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22595       *) as_qdir=$as_dir;;
22596       esac
22597       as_dirs="'$as_qdir' $as_dirs"
22598       as_dir=`$as_dirname -- "$as_dir" ||
22599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600          X"$as_dir" : 'X\(//\)[^/]' \| \
22601          X"$as_dir" : 'X\(//\)$' \| \
22602          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22603 echo X"$as_dir" |
22604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22605             s//\1/
22606             q
22607           }
22608           /^X\(\/\/\)[^/].*/{
22609             s//\1/
22610             q
22611           }
22612           /^X\(\/\/\)$/{
22613             s//\1/
22614             q
22615           }
22616           /^X\(\/\).*/{
22617             s//\1/
22618             q
22619           }
22620           s/.*/./; q'`
22621       test -d "$as_dir" && break
22622     done
22623     test -z "$as_dirs" || eval "mkdir $as_dirs"
22624   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22625 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22626    { (exit 1); exit 1; }; }; }
22627     ac_builddir=.
22628
22629 case "$ac_dir" in
22630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22631 *)
22632   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22633   # A ".." for each directory in $ac_dir_suffix.
22634   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22635   case $ac_top_builddir_sub in
22636   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22637   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22638   esac ;;
22639 esac
22640 ac_abs_top_builddir=$ac_pwd
22641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22642 # for backward compatibility:
22643 ac_top_builddir=$ac_top_build_prefix
22644
22645 case $srcdir in
22646   .)  # We are building in place.
22647     ac_srcdir=.
22648     ac_top_srcdir=$ac_top_builddir_sub
22649     ac_abs_top_srcdir=$ac_pwd ;;
22650   [\\/]* | ?:[\\/]* )  # Absolute name.
22651     ac_srcdir=$srcdir$ac_dir_suffix;
22652     ac_top_srcdir=$srcdir
22653     ac_abs_top_srcdir=$srcdir ;;
22654   *) # Relative name.
22655     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22656     ac_top_srcdir=$ac_top_build_prefix$srcdir
22657     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22658 esac
22659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22660
22661
22662     cd "$ac_dir"
22663
22664     # Check for guested configure; otherwise get Cygnus style configure.
22665     if test -f "$ac_srcdir/configure.gnu"; then
22666       ac_sub_configure=$ac_srcdir/configure.gnu
22667     elif test -f "$ac_srcdir/configure"; then
22668       ac_sub_configure=$ac_srcdir/configure
22669     elif test -f "$ac_srcdir/configure.in"; then
22670       # This should be Cygnus configure.
22671       ac_sub_configure=$ac_aux_dir/configure
22672     else
22673       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22674 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22675       ac_sub_configure=
22676     fi
22677
22678     # The recursion is here.
22679     if test -n "$ac_sub_configure"; then
22680       # Make the cache file name correct relative to the subdirectory.
22681       case $cache_file in
22682       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22683       *) # Relative name.
22684         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22685       esac
22686
22687       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22688 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22689       # The eval makes quoting arguments work.
22690       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22691            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22692         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22693 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22694    { (exit 1); exit 1; }; }
22695     fi
22696
22697     cd "$ac_popdir"
22698   done
22699 fi
22700