Add Win32 support to llvm::llvm_execute_on_thread(). Thanks to Aaron Ballman!
[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.0svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2011 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.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 CLANGPATH
709 CLANGXXPATH
710 ENABLE_BUILT_CLANG
711 OPTIMIZE_OPTION
712 EXTRA_OPTIONS
713 EXTRA_LD_OPTIONS
714 BINUTILS_INCDIR
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
745 CAT
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 LLVMGCCCOMMAND
767 LLVMGXXCOMMAND
768 LLVMGCC
769 LLVMGXX
770 LLVMCC_OPTION
771 NO_VARIADIC_MACROS
772 NO_MISSING_FIELD_INITIALIZERS
773 USE_UDIS86
774 USE_OPROFILE
775 HAVE_PTHREAD
776 HUGE_VAL_SANITY
777 MMAP_FILE
778 LLVMCC_EMITIR_FLAG
779 LLVMCC1
780 LLVMCC1PLUS
781 LLVMGCCDIR
782 LLVMGCC_LANGS
783 LLVMGCC_DRAGONEGG
784 LLVMCC_DISABLEOPT_FLAGS
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_LIBDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
813 CXX
814 CXXFLAGS
815 CCC
816 CPP'
817 ac_subdirs_all='projects/llvm-gcc
818 projects/test-suite
819 projects/llvm-test
820 projects/poolalloc
821 projects/llvm-poolalloc
822 projects/sample
823 projects/privbracket
824 projects/llvm-stacker
825 projects/llvm-reopt
826 projects/llvm-java
827 projects/llvm-tv
828 projects/safecode
829 projects/llvm-kernel
830 tools/polly'
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
877
878 ac_prev=
879 ac_dashdash=
880 for ac_option
881 do
882   # If the previous option needs an argument, assign it.
883   if test -n "$ac_prev"; then
884     eval $ac_prev=\$ac_option
885     ac_prev=
886     continue
887   fi
888
889   case $ac_option in
890   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891   *)    ac_optarg=yes ;;
892   esac
893
894   # Accept the important Cygnus configure options, so we can diagnose typos.
895
896   case $ac_dashdash$ac_option in
897   --)
898     ac_dashdash=yes ;;
899
900   -bindir | --bindir | --bindi | --bind | --bin | --bi)
901     ac_prev=bindir ;;
902   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903     bindir=$ac_optarg ;;
904
905   -build | --build | --buil | --bui | --bu)
906     ac_prev=build_alias ;;
907   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908     build_alias=$ac_optarg ;;
909
910   -cache-file | --cache-file | --cache-fil | --cache-fi \
911   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912     ac_prev=cache_file ;;
913   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915     cache_file=$ac_optarg ;;
916
917   --config-cache | -C)
918     cache_file=config.cache ;;
919
920   -datadir | --datadir | --datadi | --datad)
921     ac_prev=datadir ;;
922   -datadir=* | --datadir=* | --datadi=* | --datad=*)
923     datadir=$ac_optarg ;;
924
925   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926   | --dataroo | --dataro | --datar)
927     ac_prev=datarootdir ;;
928   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930     datarootdir=$ac_optarg ;;
931
932   -disable-* | --disable-*)
933     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937    { (exit 1); exit 1; }; }
938     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939     eval enable_$ac_feature=no ;;
940
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
945
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
950
951   -enable-* | --enable-*)
952     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956    { (exit 1); exit 1; }; }
957     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958     eval enable_$ac_feature=\$ac_optarg ;;
959
960   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962   | --exec | --exe | --ex)
963     ac_prev=exec_prefix ;;
964   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966   | --exec=* | --exe=* | --ex=*)
967     exec_prefix=$ac_optarg ;;
968
969   -gas | --gas | --ga | --g)
970     # Obsolete; use --with-gas.
971     with_gas=yes ;;
972
973   -help | --help | --hel | --he | -h)
974     ac_init_help=long ;;
975   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976     ac_init_help=recursive ;;
977   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978     ac_init_help=short ;;
979
980   -host | --host | --hos | --ho)
981     ac_prev=host_alias ;;
982   -host=* | --host=* | --hos=* | --ho=*)
983     host_alias=$ac_optarg ;;
984
985   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986     ac_prev=htmldir ;;
987   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988   | --ht=*)
989     htmldir=$ac_optarg ;;
990
991   -includedir | --includedir | --includedi | --included | --include \
992   | --includ | --inclu | --incl | --inc)
993     ac_prev=includedir ;;
994   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995   | --includ=* | --inclu=* | --incl=* | --inc=*)
996     includedir=$ac_optarg ;;
997
998   -infodir | --infodir | --infodi | --infod | --info | --inf)
999     ac_prev=infodir ;;
1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001     infodir=$ac_optarg ;;
1002
1003   -libdir | --libdir | --libdi | --libd)
1004     ac_prev=libdir ;;
1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006     libdir=$ac_optarg ;;
1007
1008   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009   | --libexe | --libex | --libe)
1010     ac_prev=libexecdir ;;
1011   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012   | --libexe=* | --libex=* | --libe=*)
1013     libexecdir=$ac_optarg ;;
1014
1015   -localedir | --localedir | --localedi | --localed | --locale)
1016     ac_prev=localedir ;;
1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018     localedir=$ac_optarg ;;
1019
1020   -localstatedir | --localstatedir | --localstatedi | --localstated \
1021   | --localstate | --localstat | --localsta | --localst | --locals)
1022     ac_prev=localstatedir ;;
1023   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025     localstatedir=$ac_optarg ;;
1026
1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028     ac_prev=mandir ;;
1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030     mandir=$ac_optarg ;;
1031
1032   -nfp | --nfp | --nf)
1033     # Obsolete; use --without-fp.
1034     with_fp=no ;;
1035
1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037   | --no-cr | --no-c | -n)
1038     no_create=yes ;;
1039
1040   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042     no_recursion=yes ;;
1043
1044   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046   | --oldin | --oldi | --old | --ol | --o)
1047     ac_prev=oldincludedir ;;
1048   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051     oldincludedir=$ac_optarg ;;
1052
1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054     ac_prev=prefix ;;
1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056     prefix=$ac_optarg ;;
1057
1058   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059   | --program-pre | --program-pr | --program-p)
1060     ac_prev=program_prefix ;;
1061   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063     program_prefix=$ac_optarg ;;
1064
1065   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066   | --program-suf | --program-su | --program-s)
1067     ac_prev=program_suffix ;;
1068   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070     program_suffix=$ac_optarg ;;
1071
1072   -program-transform-name | --program-transform-name \
1073   | --program-transform-nam | --program-transform-na \
1074   | --program-transform-n | --program-transform- \
1075   | --program-transform | --program-transfor \
1076   | --program-transfo | --program-transf \
1077   | --program-trans | --program-tran \
1078   | --progr-tra | --program-tr | --program-t)
1079     ac_prev=program_transform_name ;;
1080   -program-transform-name=* | --program-transform-name=* \
1081   | --program-transform-nam=* | --program-transform-na=* \
1082   | --program-transform-n=* | --program-transform-=* \
1083   | --program-transform=* | --program-transfor=* \
1084   | --program-transfo=* | --program-transf=* \
1085   | --program-trans=* | --program-tran=* \
1086   | --progr-tra=* | --program-tr=* | --program-t=*)
1087     program_transform_name=$ac_optarg ;;
1088
1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090     ac_prev=pdfdir ;;
1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092     pdfdir=$ac_optarg ;;
1093
1094   -psdir | --psdir | --psdi | --psd | --ps)
1095     ac_prev=psdir ;;
1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097     psdir=$ac_optarg ;;
1098
1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100   | -silent | --silent | --silen | --sile | --sil)
1101     silent=yes ;;
1102
1103   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104     ac_prev=sbindir ;;
1105   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106   | --sbi=* | --sb=*)
1107     sbindir=$ac_optarg ;;
1108
1109   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111   | --sharedst | --shareds | --shared | --share | --shar \
1112   | --sha | --sh)
1113     ac_prev=sharedstatedir ;;
1114   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117   | --sha=* | --sh=*)
1118     sharedstatedir=$ac_optarg ;;
1119
1120   -site | --site | --sit)
1121     ac_prev=site ;;
1122   -site=* | --site=* | --sit=*)
1123     site=$ac_optarg ;;
1124
1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126     ac_prev=srcdir ;;
1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128     srcdir=$ac_optarg ;;
1129
1130   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131   | --syscon | --sysco | --sysc | --sys | --sy)
1132     ac_prev=sysconfdir ;;
1133   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135     sysconfdir=$ac_optarg ;;
1136
1137   -target | --target | --targe | --targ | --tar | --ta | --t)
1138     ac_prev=target_alias ;;
1139   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140     target_alias=$ac_optarg ;;
1141
1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143     verbose=yes ;;
1144
1145   -version | --version | --versio | --versi | --vers | -V)
1146     ac_init_version=: ;;
1147
1148   -with-* | --with-*)
1149     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1156
1157   -without-* | --without-*)
1158     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161       { echo "$as_me: error: invalid package name: $ac_package" >&2
1162    { (exit 1); exit 1; }; }
1163     ac_package=`echo $ac_package | sed 's/-/_/g'`
1164     eval with_$ac_package=no ;;
1165
1166   --x)
1167     # Obsolete; use --with-x.
1168     with_x=yes ;;
1169
1170   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171   | --x-incl | --x-inc | --x-in | --x-i)
1172     ac_prev=x_includes ;;
1173   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175     x_includes=$ac_optarg ;;
1176
1177   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179     ac_prev=x_libraries ;;
1180   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182     x_libraries=$ac_optarg ;;
1183
1184   -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186    { (exit 1); exit 1; }; }
1187     ;;
1188
1189   *=*)
1190     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194    { (exit 1); exit 1; }; }
1195     eval $ac_envvar=\$ac_optarg
1196     export $ac_envvar ;;
1197
1198   *)
1199     # FIXME: should be removed in autoconf 3.0.
1200     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204     ;;
1205
1206   esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211   { echo "$as_me: error: missing argument to $ac_option" >&2
1212    { (exit 1); exit 1; }; }
1213 fi
1214
1215 # Be sure to have absolute directory names.
1216 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217                 datadir sysconfdir sharedstatedir localstatedir includedir \
1218                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219                 libdir localedir mandir
1220 do
1221   eval ac_val=\$$ac_var
1222   case $ac_val in
1223     [\\/$]* | ?:[\\/]* )  continue;;
1224     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225   esac
1226   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227    { (exit 1); exit 1; }; }
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239   if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242     If a cross compiler is detected then cross compile mode will be used." >&2
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   { echo "$as_me: error: Working directory cannot be determined" >&2
1258    { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260   { echo "$as_me: error: pwd does not report name of working directory" >&2
1261    { (exit 1); exit 1; }; }
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266   ac_srcdir_defaulted=yes
1267   # Try the directory containing this script, then the parent directory.
1268   ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270          X"$0" : 'X\(//\)[^/]' \| \
1271          X"$0" : 'X\(//\)$' \| \
1272          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)[^/].*/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)$/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\).*/{
1287             s//\1/
1288             q
1289           }
1290           s/.*/./; q'`
1291   srcdir=$ac_confdir
1292   if test ! -r "$srcdir/$ac_unique_file"; then
1293     srcdir=..
1294   fi
1295 else
1296   ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301    { (exit 1); exit 1; }; }
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306    { (exit 1); exit 1; }; }
1307         pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310   srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_env_${ac_var}_value=\$${ac_var}
1321   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329   # Omit some internal or obsolete options to make the list less imposing.
1330   # This message is too long to be a string in the A/UX 3.1 sh.
1331   cat <<_ACEOF
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342   -h, --help              display this help and exit
1343       --help=short        display options specific to this package
1344       --help=recursive    display the short help of all the included packages
1345   -V, --version           display version information and exit
1346   -q, --quiet, --silent   do not print \`checking...' messages
1347       --cache-file=FILE   cache test results in FILE [disabled]
1348   -C, --config-cache      alias for \`--cache-file=config.cache'
1349   -n, --no-create         do not create output files
1350       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353   --prefix=PREFIX         install architecture-independent files in PREFIX
1354                           [$ac_default_prefix]
1355   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                           [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366   --bindir=DIR           user executables [EPREFIX/bin]
1367   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1368   --libexecdir=DIR       program executables [EPREFIX/libexec]
1369   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1370   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1371   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1372   --libdir=DIR           object code libraries [EPREFIX/lib]
1373   --includedir=DIR       C header files [PREFIX/include]
1374   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1375   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1376   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1377   --infodir=DIR          info documentation [DATAROOTDIR/info]
1378   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1379   --mandir=DIR           man documentation [DATAROOTDIR/man]
1380   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1381   --htmldir=DIR          html documentation [DOCDIR]
1382   --dvidir=DIR           dvi documentation [DOCDIR]
1383   --pdfdir=DIR           pdf documentation [DOCDIR]
1384   --psdir=DIR            ps documentation [DOCDIR]
1385 _ACEOF
1386
1387   cat <<\_ACEOF
1388
1389 System types:
1390   --build=BUILD     configure for building on BUILD [guessed]
1391   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392   --target=TARGET   configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397   case $ac_init_help in
1398      short | recursive ) echo "Configuration of llvm 3.0svn:";;
1399    esac
1400   cat <<\_ACEOF
1401
1402 Optional Features:
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-polly          Use polly if available (default is YES)
1406   --enable-optimized      Compile with optimizations enabled (default is NO)
1407   --enable-profiling      Compile with profiling enabled (default is NO)
1408   --enable-assertions     Compile with assertion checks enabled (default is
1409                           YES)
1410   --enable-expensive-checks
1411                           Compile with expensive debug checks enabled (default
1412                           is NO)
1413   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1414                           NO)
1415   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1416                           optimization is on and YES if it's off)
1417   --enable-jit            Enable Just In Time Compiling (default is YES)
1418   --enable-docs           Build documents (default is YES)
1419   --enable-doxygen        Build doxygen documentation (default is NO)
1420   --enable-threads        Use threads if available (default is YES)
1421   --enable-pthreads       Use pthreads if available (default is YES)
1422   --enable-pic            Build LLVM with Position Independent Code (default
1423                           is YES)
1424   --enable-shared         Build a shared library and link tools against it
1425                           (default is NO)
1426   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1427                           Win32 DLL (default is YES)
1428   --enable-timestamps     Enable embedding timestamp information in build
1429                           (default is YES)
1430   --enable-targets        Build specific host targets: all or
1431                           target1,target2,... Valid targets are: host, x86,
1432                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434                           (default=all)
1435   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1436                           %a (default is YES)
1437   --enable-bindings       Build specific language bindings:
1438                           all,auto,none,{binding-name} (default=auto)
1439   --enable-libffi         Check for the presence of libffi (default is NO)
1440   --enable-ltdl-install   install libltdl
1441
1442 Optional Packages:
1443   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1446                           searches PATH)
1447   --with-llvmgcc          Specify location of llvm-gcc driver (default
1448                           searches PATH)
1449   --with-llvmgxx          Specify location of llvm-g++ driver (default
1450                           searches PATH)
1451   --with-clang            Specify location of clang compiler (default is
1452                           --with-built-clang)
1453   --with-built-clang      Use the compiled Clang as the LLVM compiler
1454                           (default=check)
1455   --with-optimize-option  Select the compiler options to use for optimized
1456                           builds
1457   --with-extra-options    Specify additional options to compile LLVM with
1458   --with-extra-ld-options Specify additional options to link LLVM with
1459   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1460                           is stdlib)
1461   --with-clang-resource-dir
1462                           Relative directory from the Clang binary for
1463                           resource files
1464   --with-c-include-dirs   Colon separated list of directories clang will
1465                           search for headers
1466   --with-cxx-include-root Directory with the libstdc++ headers.
1467   --with-cxx-include-arch Architecture of the libstdc++ headers.
1468   --with-cxx-include-32bit-dir
1469                           32 bit multilib dir.
1470   --with-cxx-include-64bit-dir
1471                           64 bit multilib directory.
1472   --with-binutils-include Specify path to binutils/include/ containing
1473                           plugin-api.h file for gold plugin.
1474   --with-bug-report-url   Specify the URL where bug reports should be
1475                           submitted (default=http://llvm.org/bugs/)
1476   --with-tclinclude       directory where tcl headers are
1477   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1478                           clang, or none; default=check)
1479   --with-udis86=<path>    Use udis86 external x86 disassembler library
1480   --with-oprofile=<prefix>
1481                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489               you have headers in a nonstandard directory <include dir>
1490   CXX         C++ compiler command
1491   CXXFLAGS    C++ compiler flags
1492   CPP         C preprocessor
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <llvmbugs@cs.uiuc.edu>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503   # If there are subdirs, report their specific --help.
1504   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505     test -d "$ac_dir" || continue
1506     ac_builddir=.
1507
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *)
1511   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1512   # A ".." for each directory in $ac_dir_suffix.
1513   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1514   case $ac_top_builddir_sub in
1515   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517   esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1523
1524 case $srcdir in
1525   .)  # We are building in place.
1526     ac_srcdir=.
1527     ac_top_srcdir=$ac_top_builddir_sub
1528     ac_abs_top_srcdir=$ac_pwd ;;
1529   [\\/]* | ?:[\\/]* )  # Absolute name.
1530     ac_srcdir=$srcdir$ac_dir_suffix;
1531     ac_top_srcdir=$srcdir
1532     ac_abs_top_srcdir=$srcdir ;;
1533   *) # Relative name.
1534     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535     ac_top_srcdir=$ac_top_build_prefix$srcdir
1536     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539
1540     cd "$ac_dir" || { ac_status=$?; continue; }
1541     # Check for guested configure.
1542     if test -f "$ac_srcdir/configure.gnu"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545     elif test -f "$ac_srcdir/configure"; then
1546       echo &&
1547       $SHELL "$ac_srcdir/configure" --help=recursive
1548     else
1549       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550     fi || ac_status=$?
1551     cd "$ac_pwd" || { ac_status=$?; break; }
1552   done
1553 fi
1554
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557   cat <<\_ACEOF
1558 llvm configure 3.0svn
1559 generated by GNU Autoconf 2.60
1560
1561 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1562 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565
1566 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1567 _ACEOF
1568   exit
1569 fi
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1573
1574 It was created by llvm $as_me 3.0svn, which was
1575 generated by GNU Autoconf 2.60.  Invocation command line was
1576
1577   $ $0 $@
1578
1579 _ACEOF
1580 exec 5>>config.log
1581 {
1582 cat <<_ASUNAME
1583 ## --------- ##
1584 ## Platform. ##
1585 ## --------- ##
1586
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1595
1596 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1597 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1600 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1601 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1602 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1603
1604 _ASUNAME
1605
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   echo "PATH: $as_dir"
1612 done
1613 IFS=$as_save_IFS
1614
1615 } >&5
1616
1617 cat >&5 <<_ACEOF
1618
1619
1620 ## ----------- ##
1621 ## Core tests. ##
1622 ## ----------- ##
1623
1624 _ACEOF
1625
1626
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1632 ac_configure_args=
1633 ac_configure_args0=
1634 ac_configure_args1=
1635 ac_must_keep_next=false
1636 for ac_pass in 1 2
1637 do
1638   for ac_arg
1639   do
1640     case $ac_arg in
1641     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643     | -silent | --silent | --silen | --sile | --sil)
1644       continue ;;
1645     *\'*)
1646       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647     esac
1648     case $ac_pass in
1649     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1650     2)
1651       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652       if test $ac_must_keep_next = true; then
1653         ac_must_keep_next=false # Got value, back to normal.
1654       else
1655         case $ac_arg in
1656           *=* | --config-cache | -C | -disable-* | --disable-* \
1657           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659           | -with-* | --with-* | -without-* | --without-* | --x)
1660             case "$ac_configure_args0 " in
1661               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662             esac
1663             ;;
1664           -* ) ac_must_keep_next=true ;;
1665         esac
1666       fi
1667       ac_configure_args="$ac_configure_args '$ac_arg'"
1668       ;;
1669     esac
1670   done
1671 done
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1674
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log.  We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681   # Save into config.log some information that might help in debugging.
1682   {
1683     echo
1684
1685     cat <<\_ASBOX
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1689 _ASBOX
1690     echo
1691     # The following way of writing the cache mishandles newlines in values,
1692 (
1693   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694     eval ac_val=\$$ac_var
1695     case $ac_val in #(
1696     *${as_nl}*)
1697       case $ac_var in #(
1698       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700       esac
1701       case $ac_var in #(
1702       _ | IFS | as_nl) ;; #(
1703       *) $as_unset $ac_var ;;
1704       esac ;;
1705     esac
1706   done
1707   (set) 2>&1 |
1708     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709     *${as_nl}ac_space=\ *)
1710       sed -n \
1711         "s/'\''/'\''\\\\'\'''\''/g;
1712           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713       ;; #(
1714     *)
1715       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716       ;;
1717     esac |
1718     sort
1719 )
1720     echo
1721
1722     cat <<\_ASBOX
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1726 _ASBOX
1727     echo
1728     for ac_var in $ac_subst_vars
1729     do
1730       eval ac_val=\$$ac_var
1731       case $ac_val in
1732       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733       esac
1734       echo "$ac_var='\''$ac_val'\''"
1735     done | sort
1736     echo
1737
1738     if test -n "$ac_subst_files"; then
1739       cat <<\_ASBOX
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1743 _ASBOX
1744       echo
1745       for ac_var in $ac_subst_files
1746       do
1747         eval ac_val=\$$ac_var
1748         case $ac_val in
1749         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750         esac
1751         echo "$ac_var='\''$ac_val'\''"
1752       done | sort
1753       echo
1754     fi
1755
1756     if test -s confdefs.h; then
1757       cat <<\_ASBOX
1758 ## ----------- ##
1759 ## confdefs.h. ##
1760 ## ----------- ##
1761 _ASBOX
1762       echo
1763       cat confdefs.h
1764       echo
1765     fi
1766     test "$ac_signal" != 0 &&
1767       echo "$as_me: caught signal $ac_signal"
1768     echo "$as_me: exit $exit_status"
1769   } >&5
1770   rm -f core *.core core.conftest.* &&
1771     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772     exit $exit_status
1773 ' 0
1774 for ac_signal in 1 2 13 15; do
1775   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 done
1777 ac_signal=0
1778
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1781
1782 # Predefined preprocessor variables.
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 _ACEOF
1807
1808
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812   set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815 else
1816   set x "$ac_default_prefix/share/config.site" \
1817         "$ac_default_prefix/etc/config.site"
1818 fi
1819 shift
1820 for ac_site_file
1821 do
1822   if test -r "$ac_site_file"; then
1823     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825     sed 's/^/| /' "$ac_site_file" >&5
1826     . "$ac_site_file"
1827   fi
1828 done
1829
1830 if test -r "$cache_file"; then
1831   # Some versions of bash will fail to source /dev/null (special
1832   # files actually), so we avoid doing that.
1833   if test -f "$cache_file"; then
1834     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1836     case $cache_file in
1837       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838       *)                      . "./$cache_file";;
1839     esac
1840   fi
1841 else
1842   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1844   >$cache_file
1845 fi
1846
1847 # Check that the precious variables saved in the cache have kept the same
1848 # value.
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852   eval ac_new_set=\$ac_env_${ac_var}_set
1853   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854   eval ac_new_val=\$ac_env_${ac_var}_value
1855   case $ac_old_set,$ac_new_set in
1856     set,)
1857       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859       ac_cache_corrupted=: ;;
1860     ,set)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,);;
1865     *)
1866       if test "x$ac_old_val" != "x$ac_new_val"; then
1867         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1870 echo "$as_me:   former value:  $ac_old_val" >&2;}
1871         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1872 echo "$as_me:   current value: $ac_new_val" >&2;}
1873         ac_cache_corrupted=:
1874       fi;;
1875   esac
1876   # Pass precious variables to config.status.
1877   if test "$ac_new_set" = set; then
1878     case $ac_new_val in
1879     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880     *) ac_arg=$ac_var=$ac_new_val ;;
1881     esac
1882     case " $ac_configure_args " in
1883       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1884       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885     esac
1886   fi
1887 done
1888 if $ac_cache_corrupted; then
1889   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893    { (exit 1); exit 1; }; }
1894 fi
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920 ac_ext=c
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
1928 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1929
1930
1931
1932
1933
1934
1935
1936 ac_aux_dir=
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938   if test -f "$ac_dir/install-sh"; then
1939     ac_aux_dir=$ac_dir
1940     ac_install_sh="$ac_aux_dir/install-sh -c"
1941     break
1942   elif test -f "$ac_dir/install.sh"; then
1943     ac_aux_dir=$ac_dir
1944     ac_install_sh="$ac_aux_dir/install.sh -c"
1945     break
1946   elif test -f "$ac_dir/shtool"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/shtool install -c"
1949     break
1950   fi
1951 done
1952 if test -z "$ac_aux_dir"; then
1953   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1965
1966
1967
1968 if test ${srcdir} != "." ; then
1969   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1970     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972    { (exit 1); exit 1; }; }
1973   fi
1974 fi
1975
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982   for ac_prog in clang llvm-gcc gcc
1983   do
1984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   if test -n "$CC"; then
1992   ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997   IFS=$as_save_IFS
1998   test -z "$as_dir" && as_dir=.
1999   for ac_exec_ext in '' $ac_executable_extensions; do
2000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2001     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003     break 2
2004   fi
2005 done
2006 done
2007 IFS=$as_save_IFS
2008
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013   { echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6; }
2015 else
2016   { echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6; }
2018 fi
2019
2020
2021     test -n "$CC" && break
2022   done
2023 fi
2024 if test -z "$CC"; then
2025   ac_ct_CC=$CC
2026   for ac_prog in clang llvm-gcc gcc
2027 do
2028   # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$ac_ct_CC"; then
2036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2045     ac_cv_prog_ac_ct_CC="$ac_prog"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051 IFS=$as_save_IFS
2052
2053 fi
2054 fi
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6; }
2059 else
2060   { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2062 fi
2063
2064
2065   test -n "$ac_ct_CC" && break
2066 done
2067
2068   if test "x$ac_ct_CC" = x; then
2069     CC=""
2070   else
2071     case $cross_compiling:$ac_tool_warned in
2072 yes:)
2073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet.  If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&5
2076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2077 whose name does not start with the host triplet.  If you think this
2078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2079 ac_tool_warned=yes ;;
2080 esac
2081     CC=$ac_ct_CC
2082   fi
2083 fi
2084
2085
2086 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: no acceptable C compiler found in \$PATH
2089 See \`config.log' for more details." >&2;}
2090    { (exit 1); exit 1; }; }
2091
2092 # Provide some information about the compiler.
2093 echo "$as_me:$LINENO: checking for C compiler version" >&5
2094 ac_compiler=`set X $ac_compile; echo $2`
2095 { (ac_try="$ac_compiler --version >&5"
2096 case "(($ac_try" in
2097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098   *) ac_try_echo=$ac_try;;
2099 esac
2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101   (eval "$ac_compiler --version >&5") 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }
2105 { (ac_try="$ac_compiler -v >&5"
2106 case "(($ac_try" in
2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108   *) ac_try_echo=$ac_try;;
2109 esac
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111   (eval "$ac_compiler -v >&5") 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }
2115 { (ac_try="$ac_compiler -V >&5"
2116 case "(($ac_try" in
2117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118   *) ac_try_echo=$ac_try;;
2119 esac
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121   (eval "$ac_compiler -V >&5") 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }
2125
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132
2133 int
2134 main ()
2135 {
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2145 # of exeext.
2146 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2147 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 #
2150 # List of possible output files, starting from the most likely.
2151 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2152 # only as a last resort.  b.out is created by i960 compilers.
2153 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2154 #
2155 # The IRIX 6 linker writes into existing files which may not be
2156 # executable, retaining their permissions.  Remove them first so a
2157 # subsequent execution test works.
2158 ac_rmfiles=
2159 for ac_file in $ac_files
2160 do
2161   case $ac_file in
2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2163     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2164   esac
2165 done
2166 rm -f $ac_rmfiles
2167
2168 if { (ac_try="$ac_link_default"
2169 case "(($ac_try" in
2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171   *) ac_try_echo=$ac_try;;
2172 esac
2173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2174   (eval "$ac_link_default") 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }; then
2178   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2179 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2180 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2181 # so that the user can short-circuit this test for compilers unknown to
2182 # Autoconf.
2183 for ac_file in $ac_files
2184 do
2185   test -f "$ac_file" || continue
2186   case $ac_file in
2187     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2188         ;;
2189     [ab].out )
2190         # We found the default executable, but exeext='' is most
2191         # certainly right.
2192         break;;
2193     *.* )
2194         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2195         then :; else
2196            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197         fi
2198         # We set ac_cv_exeext here because the later test for it is not
2199         # safe: cross compilers may not add the suffix if given an `-o'
2200         # argument, so we may need to know it at that point already.
2201         # Even if this section looks crufty: it has the advantage of
2202         # actually working.
2203         break;;
2204     * )
2205         break;;
2206   esac
2207 done
2208 test "$ac_cv_exeext" = no && ac_cv_exeext=
2209
2210 else
2211   echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: C compiler cannot create executables
2217 See \`config.log' for more details." >&2;}
2218    { (exit 77); exit 77; }; }
2219 fi
2220
2221 ac_exeext=$ac_cv_exeext
2222 { echo "$as_me:$LINENO: result: $ac_file" >&5
2223 echo "${ECHO_T}$ac_file" >&6; }
2224
2225 # Check that the compiler produces executables we can run.  If not, either
2226 # the compiler is broken, or we cross compile.
2227 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2228 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2229 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2230 # If not cross compiling, check that we can run a simple program.
2231 if test "$cross_compiling" != yes; then
2232   if { ac_try='./$ac_file'
2233   { (case "(($ac_try" in
2234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235   *) ac_try_echo=$ac_try;;
2236 esac
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238   (eval "$ac_try") 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242     cross_compiling=no
2243   else
2244     if test "$cross_compiling" = maybe; then
2245         cross_compiling=yes
2246     else
2247         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253    { (exit 1); exit 1; }; }
2254     fi
2255   fi
2256 fi
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2259
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check that the compiler produces executables we can run.  If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2266 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6; }
2268
2269 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2271 if { (ac_try="$ac_link"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277   (eval "$ac_link") 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; then
2281   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2284 # `rm'.
2285 for ac_file in conftest.exe conftest conftest.*; do
2286   test -f "$ac_file" || continue
2287   case $ac_file in
2288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2289     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290           break;;
2291     * ) break;;
2292   esac
2293 done
2294 else
2295   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&2;}
2299    { (exit 1); exit 1; }; }
2300 fi
2301
2302 rm -f conftest$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2305
2306 rm -f conftest.$ac_ext
2307 EXEEXT=$ac_cv_exeext
2308 ac_exeext=$EXEEXT
2309 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2311 if test "${ac_cv_objext+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   cat >conftest.$ac_ext <<_ACEOF
2315 /* confdefs.h.  */
2316 _ACEOF
2317 cat confdefs.h >>conftest.$ac_ext
2318 cat >>conftest.$ac_ext <<_ACEOF
2319 /* end confdefs.h.  */
2320
2321 int
2322 main ()
2323 {
2324
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 rm -f conftest.o conftest.obj
2330 if { (ac_try="$ac_compile"
2331 case "(($ac_try" in
2332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333   *) ac_try_echo=$ac_try;;
2334 esac
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336   (eval "$ac_compile") 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; then
2340   for ac_file in conftest.o conftest.obj conftest.*; do
2341   test -f "$ac_file" || continue;
2342   case $ac_file in
2343     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2344     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345        break;;
2346   esac
2347 done
2348 else
2349   echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&2;}
2356    { (exit 1); exit 1; }; }
2357 fi
2358
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360 fi
2361 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362 echo "${ECHO_T}$ac_cv_objext" >&6; }
2363 OBJEXT=$ac_cv_objext
2364 ac_objext=$OBJEXT
2365 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2367 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376
2377 int
2378 main ()
2379 {
2380 #ifndef __GNUC__
2381        choke me
2382 #endif
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (ac_try="$ac_compile"
2390 case "(($ac_try" in
2391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392   *) ac_try_echo=$ac_try;;
2393 esac
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395   (eval "$ac_compile") 2>conftest.er1
2396   ac_status=$?
2397   grep -v '^ *+' conftest.er1 >conftest.err
2398   rm -f conftest.er1
2399   cat conftest.err >&5
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); } &&
2402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2403   { (case "(($ac_try" in
2404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405   *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408   (eval "$ac_try") 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; } &&
2412          { ac_try='test -s conftest.$ac_objext'
2413   { (case "(($ac_try" in
2414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415   *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418   (eval "$ac_try") 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; }; then
2422   ac_compiler_gnu=yes
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427         ac_compiler_gnu=no
2428 fi
2429
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432
2433 fi
2434 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2436 GCC=`test $ac_compiler_gnu = yes && echo yes`
2437 ac_test_CFLAGS=${CFLAGS+set}
2438 ac_save_CFLAGS=$CFLAGS
2439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_cc_g+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   ac_save_c_werror_flag=$ac_c_werror_flag
2445    ac_c_werror_flag=yes
2446    ac_cv_prog_cc_g=no
2447    CFLAGS="-g"
2448    cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h.  */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h.  */
2454
2455 int
2456 main ()
2457 {
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 rm -f conftest.$ac_objext
2464 if { (ac_try="$ac_compile"
2465 case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470   (eval "$ac_compile") 2>conftest.er1
2471   ac_status=$?
2472   grep -v '^ *+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } &&
2477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2478   { (case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483   (eval "$ac_try") 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; } &&
2487          { ac_try='test -s conftest.$ac_objext'
2488   { (case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493   (eval "$ac_try") 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; }; then
2497   ac_cv_prog_cc_g=yes
2498 else
2499   echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502         CFLAGS=""
2503       cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (ac_try="$ac_compile"
2520 case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525   (eval "$ac_compile") 2>conftest.er1
2526   ac_status=$?
2527   grep -v '^ *+' conftest.er1 >conftest.err
2528   rm -f conftest.er1
2529   cat conftest.err >&5
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); } &&
2532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2533   { (case "(($ac_try" in
2534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535   *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538   (eval "$ac_try") 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest.$ac_objext'
2543   { (case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548   (eval "$ac_try") 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; }; then
2552   :
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557         ac_c_werror_flag=$ac_save_c_werror_flag
2558          CFLAGS="-g"
2559          cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2576 case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_compile") 2>conftest.er1
2582   ac_status=$?
2583   grep -v '^ *+' conftest.er1 >conftest.err
2584   rm -f conftest.er1
2585   cat conftest.err >&5
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589   { (case "(($ac_try" in
2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591   *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594   (eval "$ac_try") 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_try") 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608   ac_cv_prog_cc_g=yes
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 fi
2621
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623    ac_c_werror_flag=$ac_save_c_werror_flag
2624 fi
2625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2627 if test "$ac_test_CFLAGS" = set; then
2628   CFLAGS=$ac_save_CFLAGS
2629 elif test $ac_cv_prog_cc_g = yes; then
2630   if test "$GCC" = yes; then
2631     CFLAGS="-g -O2"
2632   else
2633     CFLAGS="-g"
2634   fi
2635 else
2636   if test "$GCC" = yes; then
2637     CFLAGS="-O2"
2638   else
2639     CFLAGS=
2640   fi
2641 fi
2642 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2643 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_cc_c89+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   ac_cv_prog_cc_c89=no
2648 ac_save_CC=$CC
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h.  */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h.  */
2655 #include <stdarg.h>
2656 #include <stdio.h>
2657 #include <sys/types.h>
2658 #include <sys/stat.h>
2659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2660 struct buf { int x; };
2661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662 static char *e (p, i)
2663      char **p;
2664      int i;
2665 {
2666   return p[i];
2667 }
2668 static char *f (char * (*g) (char **, int), char **p, ...)
2669 {
2670   char *s;
2671   va_list v;
2672   va_start (v,p);
2673   s = g (p, va_arg (v,int));
2674   va_end (v);
2675   return s;
2676 }
2677
2678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2679    function prototypes and stuff, but not '\xHH' hex character constants.
2680    These don't provoke an error unfortunately, instead are silently treated
2681    as 'x'.  The following induces an error, until -std is added to get
2682    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2683    array size at least.  It's necessary to write '\x00'==0 to get something
2684    that's true only with -std.  */
2685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2686
2687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2688    inside strings and character constants.  */
2689 #define FOO(x) 'x'
2690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2691
2692 int test (int i, double x);
2693 struct s1 {int (*f) (int a);};
2694 struct s2 {int (*f) (double a);};
2695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696 int argc;
2697 char **argv;
2698 int
2699 main ()
2700 {
2701 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2707         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2708 do
2709   CC="$ac_save_CC $ac_arg"
2710   rm -f conftest.$ac_objext
2711 if { (ac_try="$ac_compile"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_compile") 2>conftest.er1
2718   ac_status=$?
2719   grep -v '^ *+' conftest.er1 >conftest.err
2720   rm -f conftest.er1
2721   cat conftest.err >&5
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); } &&
2724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725   { (case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_try") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_try") 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; }; then
2744   ac_cv_prog_cc_c89=$ac_arg
2745 else
2746   echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749
2750 fi
2751
2752 rm -f core conftest.err conftest.$ac_objext
2753   test "x$ac_cv_prog_cc_c89" != "xno" && break
2754 done
2755 rm -f conftest.$ac_ext
2756 CC=$ac_save_CC
2757
2758 fi
2759 # AC_CACHE_VAL
2760 case "x$ac_cv_prog_cc_c89" in
2761   x)
2762     { echo "$as_me:$LINENO: result: none needed" >&5
2763 echo "${ECHO_T}none needed" >&6; } ;;
2764   xno)
2765     { echo "$as_me:$LINENO: result: unsupported" >&5
2766 echo "${ECHO_T}unsupported" >&6; } ;;
2767   *)
2768     CC="$CC $ac_cv_prog_cc_c89"
2769     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2771 esac
2772
2773
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780 ac_ext=cpp
2781 ac_cpp='$CXXCPP $CPPFLAGS'
2782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2785 if test -z "$CXX"; then
2786   if test -n "$CCC"; then
2787     CXX=$CCC
2788   else
2789     if test -n "$ac_tool_prefix"; then
2790   for ac_prog in clang++ llvm-g++ g++
2791   do
2792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_CXX+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   if test -n "$CXX"; then
2800   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807   for ac_exec_ext in '' $ac_executable_extensions; do
2808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2809     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CXX=$ac_cv_prog_CXX
2820 if test -n "$CXX"; then
2821   { echo "$as_me:$LINENO: result: $CXX" >&5
2822 echo "${ECHO_T}$CXX" >&6; }
2823 else
2824   { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2826 fi
2827
2828
2829     test -n "$CXX" && break
2830   done
2831 fi
2832 if test -z "$CXX"; then
2833   ac_ct_CXX=$CXX
2834   for ac_prog in clang++ llvm-g++ g++
2835 do
2836   # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   if test -n "$ac_ct_CXX"; then
2844   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     ac_cv_prog_ac_ct_CXX="$ac_prog"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2864 if test -n "$ac_ct_CXX"; then
2865   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2866 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2867 else
2868   { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2870 fi
2871
2872
2873   test -n "$ac_ct_CXX" && break
2874 done
2875
2876   if test "x$ac_ct_CXX" = x; then
2877     CXX="g++"
2878   else
2879     case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet.  If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet.  If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2888 esac
2889     CXX=$ac_ct_CXX
2890   fi
2891 fi
2892
2893   fi
2894 fi
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2897 ac_compiler=`set X $ac_compile; echo $2`
2898 { (ac_try="$ac_compiler --version >&5"
2899 case "(($ac_try" in
2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901   *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904   (eval "$ac_compiler --version >&5") 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }
2908 { (ac_try="$ac_compiler -v >&5"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compiler -v >&5") 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }
2918 { (ac_try="$ac_compiler -V >&5"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_compiler -V >&5") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }
2928
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940
2941 int
2942 main ()
2943 {
2944 #ifndef __GNUC__
2945        choke me
2946 #endif
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_compile") 2>conftest.er1
2960   ac_status=$?
2961   grep -v '^ *+' conftest.er1 >conftest.err
2962   rm -f conftest.er1
2963   cat conftest.err >&5
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } &&
2966          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2967   { (case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_try") 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; } &&
2976          { ac_try='test -s conftest.$ac_objext'
2977   { (case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_try") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; }; then
2986   ac_compiler_gnu=yes
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991         ac_compiler_gnu=no
2992 fi
2993
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996
2997 fi
2998 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3000 GXX=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CXXFLAGS=${CXXFLAGS+set}
3002 ac_save_CXXFLAGS=$CXXFLAGS
3003 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3004 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cxx_g+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3009    ac_cxx_werror_flag=yes
3010    ac_cv_prog_cxx_g=no
3011    CXXFLAGS="-g"
3012    cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018
3019 int
3020 main ()
3021 {
3022
3023   ;
3024   return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3029 case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_compile") 2>conftest.er1
3035   ac_status=$?
3036   grep -v '^ *+' conftest.er1 >conftest.err
3037   rm -f conftest.er1
3038   cat conftest.err >&5
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); } &&
3041          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3042   { (case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_try") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; } &&
3051          { ac_try='test -s conftest.$ac_objext'
3052   { (case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_try") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; }; then
3061   ac_cv_prog_cxx_g=yes
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066         CXXFLAGS=""
3067       cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_compile") 2>conftest.er1
3090   ac_status=$?
3091   grep -v '^ *+' conftest.er1 >conftest.err
3092   rm -f conftest.er1
3093   cat conftest.err >&5
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } &&
3096          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3097   { (case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_try") 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; } &&
3106          { ac_try='test -s conftest.$ac_objext'
3107   { (case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_try") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; }; then
3116   :
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3122          CXXFLAGS="-g"
3123          cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_compile") 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } &&
3152          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153   { (case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_try") 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; } &&
3162          { ac_try='test -s conftest.$ac_objext'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; }; then
3172   ac_cv_prog_cxx_g=yes
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3188 fi
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3191 if test "$ac_test_CXXFLAGS" = set; then
3192   CXXFLAGS=$ac_save_CXXFLAGS
3193 elif test $ac_cv_prog_cxx_g = yes; then
3194   if test "$GXX" = yes; then
3195     CXXFLAGS="-g -O2"
3196   else
3197     CXXFLAGS="-g"
3198   fi
3199 else
3200   if test "$GXX" = yes; then
3201     CXXFLAGS="-O2"
3202   else
3203     CXXFLAGS=
3204   fi
3205 fi
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
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3218 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3219 # On Suns, sometimes $CPP names a directory.
3220 if test -n "$CPP" && test -d "$CPP"; then
3221   CPP=
3222 fi
3223 if test -z "$CPP"; then
3224   if test "${ac_cv_prog_CPP+set}" = set; then
3225   echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227       # Double quotes because CPP needs to be expanded
3228     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229     do
3230       ac_preproc_ok=false
3231 for ac_c_preproc_warn_flag in '' yes
3232 do
3233   # Use a header file that comes with gcc, so configuring glibc
3234   # with a fresh cross-compiler works.
3235   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236   # <limits.h> exists even on freestanding compilers.
3237   # On the NeXT, cc -E runs the code through the compiler's parser,
3238   # not just through cpp. "Syntax error" is here to catch this case.
3239   cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245 #ifdef __STDC__
3246 # include <limits.h>
3247 #else
3248 # include <assert.h>
3249 #endif
3250                      Syntax error
3251 _ACEOF
3252 if { (ac_try="$ac_cpp conftest.$ac_ext"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3259   ac_status=$?
3260   grep -v '^ *+' conftest.er1 >conftest.err
3261   rm -f conftest.er1
3262   cat conftest.err >&5
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); } >/dev/null; then
3265   if test -s conftest.err; then
3266     ac_cpp_err=$ac_c_preproc_warn_flag
3267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268   else
3269     ac_cpp_err=
3270   fi
3271 else
3272   ac_cpp_err=yes
3273 fi
3274 if test -z "$ac_cpp_err"; then
3275   :
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280   # Broken: fails on valid input.
3281 continue
3282 fi
3283
3284 rm -f conftest.err conftest.$ac_ext
3285
3286   # OK, works on sane cases.  Now check whether nonexistent headers
3287   # can be detected and how.
3288   cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h.  */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h.  */
3294 #include <ac_nonexistent.h>
3295 _ACEOF
3296 if { (ac_try="$ac_cpp conftest.$ac_ext"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } >/dev/null; then
3309   if test -s conftest.err; then
3310     ac_cpp_err=$ac_c_preproc_warn_flag
3311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312   else
3313     ac_cpp_err=
3314   fi
3315 else
3316   ac_cpp_err=yes
3317 fi
3318 if test -z "$ac_cpp_err"; then
3319   # Broken: success on invalid input.
3320 continue
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325   # Passes both tests.
3326 ac_preproc_ok=:
3327 break
3328 fi
3329
3330 rm -f conftest.err conftest.$ac_ext
3331
3332 done
3333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334 rm -f conftest.err conftest.$ac_ext
3335 if $ac_preproc_ok; then
3336   break
3337 fi
3338
3339     done
3340     ac_cv_prog_CPP=$CPP
3341
3342 fi
3343   CPP=$ac_cv_prog_CPP
3344 else
3345   ac_cv_prog_CPP=$CPP
3346 fi
3347 { echo "$as_me:$LINENO: result: $CPP" >&5
3348 echo "${ECHO_T}$CPP" >&6; }
3349 ac_preproc_ok=false
3350 for ac_c_preproc_warn_flag in '' yes
3351 do
3352   # Use a header file that comes with gcc, so configuring glibc
3353   # with a fresh cross-compiler works.
3354   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355   # <limits.h> exists even on freestanding compilers.
3356   # On the NeXT, cc -E runs the code through the compiler's parser,
3357   # not just through cpp. "Syntax error" is here to catch this case.
3358   cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h.  */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h.  */
3364 #ifdef __STDC__
3365 # include <limits.h>
3366 #else
3367 # include <assert.h>
3368 #endif
3369                      Syntax error
3370 _ACEOF
3371 if { (ac_try="$ac_cpp conftest.$ac_ext"
3372 case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } >/dev/null; then
3384   if test -s conftest.err; then
3385     ac_cpp_err=$ac_c_preproc_warn_flag
3386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387   else
3388     ac_cpp_err=
3389   fi
3390 else
3391   ac_cpp_err=yes
3392 fi
3393 if test -z "$ac_cpp_err"; then
3394   :
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399   # Broken: fails on valid input.
3400 continue
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405   # OK, works on sane cases.  Now check whether nonexistent headers
3406   # can be detected and how.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 #include <ac_nonexistent.h>
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } >/dev/null; then
3428   if test -s conftest.err; then
3429     ac_cpp_err=$ac_c_preproc_warn_flag
3430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431   else
3432     ac_cpp_err=
3433   fi
3434 else
3435   ac_cpp_err=yes
3436 fi
3437 if test -z "$ac_cpp_err"; then
3438   # Broken: success on invalid input.
3439 continue
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444   # Passes both tests.
3445 ac_preproc_ok=:
3446 break
3447 fi
3448
3449 rm -f conftest.err conftest.$ac_ext
3450
3451 done
3452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453 rm -f conftest.err conftest.$ac_ext
3454 if $ac_preproc_ok; then
3455   :
3456 else
3457   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&5
3459 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3460 See \`config.log' for more details." >&2;}
3461    { (exit 1); exit 1; }; }
3462 fi
3463
3464 ac_ext=c
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469
3470
3471
3472
3473 if test -d ${srcdir}/projects/llvm-gcc ; then
3474   subdirs="$subdirs projects/llvm-gcc"
3475
3476 fi
3477
3478 if test -d ${srcdir}/projects/test-suite ; then
3479   subdirs="$subdirs projects/test-suite"
3480
3481 fi
3482
3483 if test -d ${srcdir}/projects/llvm-test ; then
3484   subdirs="$subdirs projects/llvm-test"
3485
3486 fi
3487
3488 if test -d ${srcdir}/projects/poolalloc ; then
3489   subdirs="$subdirs projects/poolalloc"
3490
3491 fi
3492
3493 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3494   subdirs="$subdirs projects/llvm-poolalloc"
3495
3496 fi
3497
3498 for i in `ls ${srcdir}/projects`
3499 do
3500   if test -d ${srcdir}/projects/${i} ; then
3501     case ${i} in
3502       sample)       subdirs="$subdirs projects/sample"
3503     ;;
3504       privbracket)  subdirs="$subdirs projects/privbracket"
3505  ;;
3506       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3507  ;;
3508       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3509 ;;
3510       llvm-java)    subdirs="$subdirs projects/llvm-java"
3511  ;;
3512       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3513    ;;
3514       safecode)     subdirs="$subdirs projects/safecode"
3515  ;;
3516       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3517  ;;
3518       llvm-gcc)       ;;
3519       test-suite)     ;;
3520       llvm-test)      ;;
3521       poolalloc)      ;;
3522       llvm-poolalloc) ;;
3523       *)
3524         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3525 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3526         ;;
3527     esac
3528   fi
3529 done
3530
3531 # Check whether --enable-polly was given.
3532 if test "${enable_polly+set}" = set; then
3533   enableval=$enable_polly;
3534 else
3535   enableval=default
3536 fi
3537
3538 case "$enableval" in
3539   yes) ENABLE_POLLY=1
3540  ;;
3541   no)  ENABLE_POLLY=0
3542  ;;
3543   default) ENABLE_POLLY=1
3544  ;;
3545   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3546 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3547    { (exit 1); exit 1; }; } ;;
3548 esac
3549
3550
3551 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3552   LLVM_HAS_POLLY=1
3553
3554   subdirs="$subdirs tools/polly"
3555
3556 fi
3557
3558
3559 # Make sure we can run config.sub.
3560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3561   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3562 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3563    { (exit 1); exit 1; }; }
3564
3565 { echo "$as_me:$LINENO: checking build system type" >&5
3566 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3567 if test "${ac_cv_build+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   ac_build_alias=$build_alias
3571 test "x$ac_build_alias" = x &&
3572   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3573 test "x$ac_build_alias" = x &&
3574   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3575 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3576    { (exit 1); exit 1; }; }
3577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3579 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3580    { (exit 1); exit 1; }; }
3581
3582 fi
3583 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3584 echo "${ECHO_T}$ac_cv_build" >&6; }
3585 case $ac_cv_build in
3586 *-*-*) ;;
3587 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3588 echo "$as_me: error: invalid value of canonical build" >&2;}
3589    { (exit 1); exit 1; }; };;
3590 esac
3591 build=$ac_cv_build
3592 ac_save_IFS=$IFS; IFS='-'
3593 set x $ac_cv_build
3594 shift
3595 build_cpu=$1
3596 build_vendor=$2
3597 shift; shift
3598 # Remember, the first character of IFS is used to create $*,
3599 # except with old shells:
3600 build_os=$*
3601 IFS=$ac_save_IFS
3602 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3603
3604
3605 { echo "$as_me:$LINENO: checking host system type" >&5
3606 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3607 if test "${ac_cv_host+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   if test "x$host_alias" = x; then
3611   ac_cv_host=$ac_cv_build
3612 else
3613   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3614     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3615 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3616    { (exit 1); exit 1; }; }
3617 fi
3618
3619 fi
3620 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3621 echo "${ECHO_T}$ac_cv_host" >&6; }
3622 case $ac_cv_host in
3623 *-*-*) ;;
3624 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3625 echo "$as_me: error: invalid value of canonical host" >&2;}
3626    { (exit 1); exit 1; }; };;
3627 esac
3628 host=$ac_cv_host
3629 ac_save_IFS=$IFS; IFS='-'
3630 set x $ac_cv_host
3631 shift
3632 host_cpu=$1
3633 host_vendor=$2
3634 shift; shift
3635 # Remember, the first character of IFS is used to create $*,
3636 # except with old shells:
3637 host_os=$*
3638 IFS=$ac_save_IFS
3639 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3640
3641
3642 { echo "$as_me:$LINENO: checking target system type" >&5
3643 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3644 if test "${ac_cv_target+set}" = set; then
3645   echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647   if test "x$target_alias" = x; then
3648   ac_cv_target=$ac_cv_host
3649 else
3650   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3651     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3652 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3653    { (exit 1); exit 1; }; }
3654 fi
3655
3656 fi
3657 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3658 echo "${ECHO_T}$ac_cv_target" >&6; }
3659 case $ac_cv_target in
3660 *-*-*) ;;
3661 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3662 echo "$as_me: error: invalid value of canonical target" >&2;}
3663    { (exit 1); exit 1; }; };;
3664 esac
3665 target=$ac_cv_target
3666 ac_save_IFS=$IFS; IFS='-'
3667 set x $ac_cv_target
3668 shift
3669 target_cpu=$1
3670 target_vendor=$2
3671 shift; shift
3672 # Remember, the first character of IFS is used to create $*,
3673 # except with old shells:
3674 target_os=$*
3675 IFS=$ac_save_IFS
3676 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3677
3678
3679 # The aliases save the names the user supplied, while $host etc.
3680 # will get canonicalized.
3681 test -n "$target_alias" &&
3682   test "$program_prefix$program_suffix$program_transform_name" = \
3683     NONENONEs,x,x, &&
3684   program_prefix=${target_alias}-
3685
3686 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3687 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3688 if test "${llvm_cv_os_type+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   case $host in
3692   *-*-aix*)
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="AIX"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-irix*)
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="IRIX"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-cygwin*)
3703     llvm_cv_link_all_option="-Wl,--whole-archive"
3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705     llvm_cv_os_type="Cygwin"
3706     llvm_cv_platform_type="Unix" ;;
3707   *-*-darwin*)
3708     llvm_cv_link_all_option="-Wl,-all_load"
3709     llvm_cv_no_link_all_option="-Wl,-noall_load"
3710     llvm_cv_os_type="Darwin"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-*-minix*)
3713     llvm_cv_link_all_option="-Wl,-all_load"
3714     llvm_cv_no_link_all_option="-Wl,-noall_load"
3715     llvm_cv_os_type="Minix"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-*-freebsd*)
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="FreeBSD"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-*-openbsd*)
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="OpenBSD"
3726     llvm_cv_platform_type="Unix" ;;
3727   *-*-netbsd*)
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="NetBSD"
3731     llvm_cv_platform_type="Unix" ;;
3732   *-*-dragonfly*)
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="DragonFly"
3736     llvm_cv_platform_type="Unix" ;;
3737   *-*-hpux*)
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="HP-UX"
3741     llvm_cv_platform_type="Unix" ;;
3742   *-*-interix*)
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="Interix"
3746     llvm_cv_platform_type="Unix" ;;
3747   *-*-linux*)
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="Linux"
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*)
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   *-*-solaris*)
3828     llvm_cv_target_os_type="SunOS" ;;
3829   *-*-auroraux*)
3830     llvm_cv_target_os_type="AuroraUX" ;;
3831   *-*-win32*)
3832     llvm_cv_target_os_type="Win32" ;;
3833   *-*-mingw*)
3834     llvm_cv_target_os_type="MingW" ;;
3835   *-*-haiku*)
3836     llvm_cv_target_os_type="Haiku" ;;
3837   *-*-rtems*)
3838     llvm_cv_target_os_type="RTEMS" ;;
3839   *-*-nacl*)
3840     llvm_cv_target_os_type="NativeClient" ;;
3841   *-unknown-eabi*)
3842     llvm_cv_target_os_type="Freestanding" ;;
3843   *)
3844     llvm_cv_target_os_type="Unknown" ;;
3845 esac
3846 fi
3847 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3848 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3849
3850 if test "$llvm_cv_os_type" = "Unknown" ; then
3851   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3852 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3853    { (exit 1); exit 1; }; }
3854 fi
3855
3856 OS=$llvm_cv_os_type
3857
3858 HOST_OS=$llvm_cv_os_type
3859
3860 TARGET_OS=$llvm_cv_target_os_type
3861
3862
3863 LINKALL=$llvm_cv_link_all_option
3864
3865 NOLINKALL=$llvm_cv_no_link_all_option
3866
3867
3868 case $llvm_cv_platform_type in
3869   Unix)
3870
3871 cat >>confdefs.h <<\_ACEOF
3872 #define LLVM_ON_UNIX 1
3873 _ACEOF
3874
3875     LLVM_ON_UNIX=1
3876
3877     LLVM_ON_WIN32=0
3878
3879     ;;
3880   Win32)
3881
3882 cat >>confdefs.h <<\_ACEOF
3883 #define LLVM_ON_WIN32 1
3884 _ACEOF
3885
3886     LLVM_ON_UNIX=0
3887
3888     LLVM_ON_WIN32=1
3889
3890     ;;
3891 esac
3892
3893 { echo "$as_me:$LINENO: checking target architecture" >&5
3894 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3895 if test "${llvm_cv_target_arch+set}" = set; then
3896   echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898   case $target in
3899   i?86-*)                 llvm_cv_target_arch="x86" ;;
3900   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3901   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3902   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3903   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
3904   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3905   mips-*)                 llvm_cv_target_arch="Mips" ;;
3906   xcore-*)                llvm_cv_target_arch="XCore" ;;
3907   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3908   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3909   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
3910   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3911   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3912   *)                      llvm_cv_target_arch="Unknown" ;;
3913 esac
3914 fi
3915 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3917
3918 if test "$llvm_cv_target_arch" = "Unknown" ; then
3919   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3921 fi
3922
3923 # Determine the LLVM native architecture for the target
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
3934
3935 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3936 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3937 if test "${ac_cv_path_GREP+set}" = set; then
3938   echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940   # Extract the first word of "grep ggrep" to use in msg output
3941 if test -z "$GREP"; then
3942 set dummy grep ggrep; ac_prog_name=$2
3943 if test "${ac_cv_path_GREP+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   ac_path_GREP_found=false
3947 # Loop through the user's path and test for each of PROGNAME-LIST
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953   for ac_prog in grep ggrep; do
3954   for ac_exec_ext in '' $ac_executable_extensions; do
3955     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3956     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3957     # Check for GNU ac_path_GREP and select it if it is found.
3958   # Check for GNU $ac_path_GREP
3959 case `"$ac_path_GREP" --version 2>&1` in
3960 *GNU*)
3961   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3962 *)
3963   ac_count=0
3964   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3965   while :
3966   do
3967     cat "conftest.in" "conftest.in" >"conftest.tmp"
3968     mv "conftest.tmp" "conftest.in"
3969     cp "conftest.in" "conftest.nl"
3970     echo 'GREP' >> "conftest.nl"
3971     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3973     ac_count=`expr $ac_count + 1`
3974     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3975       # Best one so far, save it but keep looking for a better one
3976       ac_cv_path_GREP="$ac_path_GREP"
3977       ac_path_GREP_max=$ac_count
3978     fi
3979     # 10*(2^10) chars as input seems more than enough
3980     test $ac_count -gt 10 && break
3981   done
3982   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3983 esac
3984
3985
3986     $ac_path_GREP_found && break 3
3987   done
3988 done
3989
3990 done
3991 IFS=$as_save_IFS
3992
3993
3994 fi
3995
3996 GREP="$ac_cv_path_GREP"
3997 if test -z "$GREP"; then
3998   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3999 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4000    { (exit 1); exit 1; }; }
4001 fi
4002
4003 else
4004   ac_cv_path_GREP=$GREP
4005 fi
4006
4007
4008 fi
4009 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4010 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4011  GREP="$ac_cv_path_GREP"
4012
4013
4014 { echo "$as_me:$LINENO: checking for egrep" >&5
4015 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4016 if test "${ac_cv_path_EGREP+set}" = set; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020    then ac_cv_path_EGREP="$GREP -E"
4021    else
4022      # Extract the first word of "egrep" to use in msg output
4023 if test -z "$EGREP"; then
4024 set dummy egrep; ac_prog_name=$2
4025 if test "${ac_cv_path_EGREP+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   ac_path_EGREP_found=false
4029 # Loop through the user's path and test for each of PROGNAME-LIST
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4032 do
4033   IFS=$as_save_IFS
4034   test -z "$as_dir" && as_dir=.
4035   for ac_prog in egrep; do
4036   for ac_exec_ext in '' $ac_executable_extensions; do
4037     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4038     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4039     # Check for GNU ac_path_EGREP and select it if it is found.
4040   # Check for GNU $ac_path_EGREP
4041 case `"$ac_path_EGREP" --version 2>&1` in
4042 *GNU*)
4043   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4044 *)
4045   ac_count=0
4046   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4047   while :
4048   do
4049     cat "conftest.in" "conftest.in" >"conftest.tmp"
4050     mv "conftest.tmp" "conftest.in"
4051     cp "conftest.in" "conftest.nl"
4052     echo 'EGREP' >> "conftest.nl"
4053     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4055     ac_count=`expr $ac_count + 1`
4056     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4057       # Best one so far, save it but keep looking for a better one
4058       ac_cv_path_EGREP="$ac_path_EGREP"
4059       ac_path_EGREP_max=$ac_count
4060     fi
4061     # 10*(2^10) chars as input seems more than enough
4062     test $ac_count -gt 10 && break
4063   done
4064   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4065 esac
4066
4067
4068     $ac_path_EGREP_found && break 3
4069   done
4070 done
4071
4072 done
4073 IFS=$as_save_IFS
4074
4075
4076 fi
4077
4078 EGREP="$ac_cv_path_EGREP"
4079 if test -z "$EGREP"; then
4080   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4081 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4082    { (exit 1); exit 1; }; }
4083 fi
4084
4085 else
4086   ac_cv_path_EGREP=$EGREP
4087 fi
4088
4089
4090    fi
4091 fi
4092 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4093 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4094  EGREP="$ac_cv_path_EGREP"
4095
4096
4097 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4099 if test "${ac_cv_header_stdc+set}" = set; then
4100   echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102   cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h.  */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h.  */
4108 #include <stdlib.h>
4109 #include <stdarg.h>
4110 #include <string.h>
4111 #include <float.h>
4112
4113 int
4114 main ()
4115 {
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4123 case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128   (eval "$ac_compile") 2>conftest.er1
4129   ac_status=$?
4130   grep -v '^ *+' conftest.er1 >conftest.err
4131   rm -f conftest.er1
4132   cat conftest.err >&5
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); } &&
4135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136   { (case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_try") 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; } &&
4145          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; }; then
4155   ac_cv_header_stdc=yes
4156 else
4157   echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160         ac_cv_header_stdc=no
4161 fi
4162
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164
4165 if test $ac_cv_header_stdc = yes; then
4166   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167   cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <string.h>
4174
4175 _ACEOF
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177   $EGREP "memchr" >/dev/null 2>&1; then
4178   :
4179 else
4180   ac_cv_header_stdc=no
4181 fi
4182 rm -f conftest*
4183
4184 fi
4185
4186 if test $ac_cv_header_stdc = yes; then
4187   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 #include <stdlib.h>
4195
4196 _ACEOF
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198   $EGREP "free" >/dev/null 2>&1; then
4199   :
4200 else
4201   ac_cv_header_stdc=no
4202 fi
4203 rm -f conftest*
4204
4205 fi
4206
4207 if test $ac_cv_header_stdc = yes; then
4208   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209   if test "$cross_compiling" = yes; then
4210   :
4211 else
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 #include <ctype.h>
4219 #include <stdlib.h>
4220 #if ((' ' & 0x0FF) == 0x020)
4221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4223 #else
4224 # define ISLOWER(c) \
4225                    (('a' <= (c) && (c) <= 'i') \
4226                      || ('j' <= (c) && (c) <= 'r') \
4227                      || ('s' <= (c) && (c) <= 'z'))
4228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4229 #endif
4230
4231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4232 int
4233 main ()
4234 {
4235   int i;
4236   for (i = 0; i < 256; i++)
4237     if (XOR (islower (i), ISLOWER (i))
4238         || toupper (i) != TOUPPER (i))
4239       return 2;
4240   return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest$ac_exeext
4244 if { (ac_try="$ac_link"
4245 case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250   (eval "$ac_link") 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254   { (case "(($ac_try" in
4255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256   *) ac_try_echo=$ac_try;;
4257 esac
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259   (eval "$ac_try") 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }; }; then
4263   :
4264 else
4265   echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 ( exit $ac_status )
4270 ac_cv_header_stdc=no
4271 fi
4272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4273 fi
4274
4275
4276 fi
4277 fi
4278 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4279 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4280 if test $ac_cv_header_stdc = yes; then
4281
4282 cat >>confdefs.h <<\_ACEOF
4283 #define STDC_HEADERS 1
4284 _ACEOF
4285
4286 fi
4287
4288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4299                   inttypes.h stdint.h unistd.h
4300 do
4301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h.  */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h.  */
4313 $ac_includes_default
4314
4315 #include <$ac_header>
4316 _ACEOF
4317 rm -f conftest.$ac_objext
4318 if { (ac_try="$ac_compile"
4319 case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324   (eval "$ac_compile") 2>conftest.er1
4325   ac_status=$?
4326   grep -v '^ *+' conftest.er1 >conftest.err
4327   rm -f conftest.er1
4328   cat conftest.err >&5
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } &&
4331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4332   { (case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337   (eval "$ac_try") 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; } &&
4341          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); }; }; then
4351   eval "$as_ac_Header=yes"
4352 else
4353   echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356         eval "$as_ac_Header=no"
4357 fi
4358
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 fi
4361 ac_res=`eval echo '${'$as_ac_Header'}'`
4362                { echo "$as_me:$LINENO: result: $ac_res" >&5
4363 echo "${ECHO_T}$ac_res" >&6; }
4364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4365   cat >>confdefs.h <<_ACEOF
4366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4367 _ACEOF
4368
4369 fi
4370
4371 done
4372
4373
4374 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4375 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4376 if test "${ac_cv_c_bigendian+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   # See if sys/param.h defines the BYTE_ORDER macro.
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h.  */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h.  */
4386 #include <sys/types.h>
4387 #include <sys/param.h>
4388
4389 int
4390 main ()
4391 {
4392 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4393  bogus endian macros
4394 #endif
4395
4396   ;
4397   return 0;
4398 }
4399 _ACEOF
4400 rm -f conftest.$ac_objext
4401 if { (ac_try="$ac_compile"
4402 case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407   (eval "$ac_compile") 2>conftest.er1
4408   ac_status=$?
4409   grep -v '^ *+' conftest.er1 >conftest.err
4410   rm -f conftest.er1
4411   cat conftest.err >&5
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } &&
4414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4415   { (case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420   (eval "$ac_try") 2>&5
4421   ac_status=$?
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); }; } &&
4424          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; }; then
4434   # It does; now see whether it defined to BIG_ENDIAN or not.
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h.  */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h.  */
4441 #include <sys/types.h>
4442 #include <sys/param.h>
4443
4444 int
4445 main ()
4446 {
4447 #if BYTE_ORDER != BIG_ENDIAN
4448  not big endian
4449 #endif
4450
4451   ;
4452   return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4457 case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462   (eval "$ac_compile") 2>conftest.er1
4463   ac_status=$?
4464   grep -v '^ *+' conftest.er1 >conftest.err
4465   rm -f conftest.er1
4466   cat conftest.err >&5
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); } &&
4469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470   { (case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_try") 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; } &&
4479          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; }; then
4489   ac_cv_c_bigendian=yes
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494         ac_cv_c_bigendian=no
4495 fi
4496
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 else
4499   echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502         # It does not; compile a test program.
4503 if test "$cross_compiling" = yes; then
4504   # try to guess the endianness by grepping values into an object file
4505   ac_cv_c_bigendian=unknown
4506   cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h.  */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h.  */
4512 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4513 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4514 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4515 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4516 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4517 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4518 int
4519 main ()
4520 {
4521  _ascii (); _ebcdic ();
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest.$ac_objext
4527 if { (ac_try="$ac_compile"
4528 case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533   (eval "$ac_compile") 2>conftest.er1
4534   ac_status=$?
4535   grep -v '^ *+' conftest.er1 >conftest.err
4536   rm -f conftest.er1
4537   cat conftest.err >&5
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); } &&
4540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4541   { (case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546   (eval "$ac_try") 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; } &&
4550          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4561   ac_cv_c_bigendian=yes
4562 fi
4563 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4564   if test "$ac_cv_c_bigendian" = unknown; then
4565     ac_cv_c_bigendian=no
4566   else
4567     # finding both strings is unlikely to happen, but who knows?
4568     ac_cv_c_bigendian=unknown
4569   fi
4570 fi
4571 else
4572   echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575
4576 fi
4577
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 else
4580   cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h.  */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h.  */
4586 $ac_includes_default
4587 int
4588 main ()
4589 {
4590
4591   /* Are we little or big endian?  From Harbison&Steele.  */
4592   union
4593   {
4594     long int l;
4595     char c[sizeof (long int)];
4596   } u;
4597   u.l = 1;
4598   return u.c[sizeof (long int) - 1] == 1;
4599
4600   ;
4601   return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest$ac_exeext
4605 if { (ac_try="$ac_link"
4606 case "(($ac_try" in
4607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608   *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611   (eval "$ac_link") 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4615   { (case "(($ac_try" in
4616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617   *) ac_try_echo=$ac_try;;
4618 esac
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620   (eval "$ac_try") 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   ac_cv_c_bigendian=no
4625 else
4626   echo "$as_me: program exited with status $ac_status" >&5
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ( exit $ac_status )
4631 ac_cv_c_bigendian=yes
4632 fi
4633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4634 fi
4635
4636
4637 fi
4638
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 fi
4641 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4642 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4643 case $ac_cv_c_bigendian in
4644   yes)
4645     ENDIAN=big
4646  ;;
4647   no)
4648     ENDIAN=little
4649  ;;
4650   *)
4651     { { echo "$as_me:$LINENO: error: unknown endianness
4652 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4653 echo "$as_me: error: unknown endianness
4654 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4655    { (exit 1); exit 1; }; } ;;
4656 esac
4657
4658
4659 if test "$cross_compiling" = yes; then
4660   LLVM_CROSS_COMPILING=1
4661
4662
4663 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4664 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4665 if test "${ac_cv_build_exeext+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4669   ac_cv_build_exeext=.exe
4670 else
4671   ac_build_prefix=${build_alias}-
4672
4673   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4674 set dummy ${ac_build_prefix}gcc; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   if test -n "$BUILD_CC"; then
4681   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688   for ac_exec_ext in '' $ac_executable_extensions; do
4689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4690     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 BUILD_CC=$ac_cv_prog_BUILD_CC
4701 if test -n "$BUILD_CC"; then
4702   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4703 echo "${ECHO_T}$BUILD_CC" >&6; }
4704 else
4705   { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4707 fi
4708
4709
4710   if test -z "$BUILD_CC"; then
4711      # Extract the first word of "gcc", so it can be a program name with args.
4712 set dummy gcc; ac_word=$2
4713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   if test -n "$BUILD_CC"; then
4719   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724   IFS=$as_save_IFS
4725   test -z "$as_dir" && as_dir=.
4726   for ac_exec_ext in '' $ac_executable_extensions; do
4727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4728     ac_cv_prog_BUILD_CC="gcc"
4729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730     break 2
4731   fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 BUILD_CC=$ac_cv_prog_BUILD_CC
4739 if test -n "$BUILD_CC"; then
4740   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4741 echo "${ECHO_T}$BUILD_CC" >&6; }
4742 else
4743   { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4745 fi
4746
4747
4748      if test -z "$BUILD_CC"; then
4749        # Extract the first word of "cc", so it can be a program name with args.
4750 set dummy cc; ac_word=$2
4751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4753 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4754   echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756   if test -n "$BUILD_CC"; then
4757   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4758 else
4759   ac_prog_rejected=no
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765   for ac_exec_ext in '' $ac_executable_extensions; do
4766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4767     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4768        ac_prog_rejected=yes
4769        continue
4770      fi
4771     ac_cv_prog_BUILD_CC="cc"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777 IFS=$as_save_IFS
4778
4779 if test $ac_prog_rejected = yes; then
4780   # We found a bogon in the path, so make sure we never use it.
4781   set dummy $ac_cv_prog_BUILD_CC
4782   shift
4783   if test $# != 0; then
4784     # We chose a different compiler from the bogus one.
4785     # However, it has the same basename, so the bogon will be chosen
4786     # first if we set BUILD_CC to just the basename; use the full file name.
4787     shift
4788     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4789   fi
4790 fi
4791 fi
4792 fi
4793 BUILD_CC=$ac_cv_prog_BUILD_CC
4794 if test -n "$BUILD_CC"; then
4795   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4796 echo "${ECHO_T}$BUILD_CC" >&6; }
4797 else
4798   { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4800 fi
4801
4802
4803      fi
4804   fi
4805   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4806 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4807    { (exit 1); exit 1; }; }
4808   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4809   rm -f conftest*
4810   echo 'int main () { return 0; }' > conftest.$ac_ext
4811   ac_cv_build_exeext=
4812   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4813   (eval $ac_build_link) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; then
4817     for file in conftest.*; do
4818       case $file in
4819       *.c | *.o | *.obj | *.dSYM) ;;
4820       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4821       esac
4822     done
4823   else
4824     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4825 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4826    { (exit 1); exit 1; }; }
4827   fi
4828   rm -f conftest*
4829   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4830 fi
4831 fi
4832
4833 BUILD_EXEEXT=""
4834 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4835 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4836 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4837 ac_build_exeext=$BUILD_EXEEXT
4838
4839   ac_build_prefix=${build_alias}-
4840   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4841 set dummy ${ac_build_prefix}g++; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847   if test -n "$BUILD_CXX"; then
4848   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855   for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4868 if test -n "$BUILD_CXX"; then
4869   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4870 echo "${ECHO_T}$BUILD_CXX" >&6; }
4871 else
4872   { echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6; }
4874 fi
4875
4876
4877   if test -z "$BUILD_CXX"; then
4878      # Extract the first word of "g++", so it can be a program name with args.
4879 set dummy g++; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   if test -n "$BUILD_CXX"; then
4886   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893   for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_prog_BUILD_CXX="g++"
4896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4906 if test -n "$BUILD_CXX"; then
4907   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4908 echo "${ECHO_T}$BUILD_CXX" >&6; }
4909 else
4910   { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4912 fi
4913
4914
4915      if test -z "$BUILD_CXX"; then
4916        # Extract the first word of "c++", so it can be a program name with args.
4917 set dummy c++; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   if test -n "$BUILD_CXX"; then
4924   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4925 else
4926   ac_prog_rejected=no
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930   IFS=$as_save_IFS
4931   test -z "$as_dir" && as_dir=.
4932   for ac_exec_ext in '' $ac_executable_extensions; do
4933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4934     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4935        ac_prog_rejected=yes
4936        continue
4937      fi
4938     ac_cv_prog_BUILD_CXX="c++"
4939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943 done
4944 IFS=$as_save_IFS
4945
4946 if test $ac_prog_rejected = yes; then
4947   # We found a bogon in the path, so make sure we never use it.
4948   set dummy $ac_cv_prog_BUILD_CXX
4949   shift
4950   if test $# != 0; then
4951     # We chose a different compiler from the bogus one.
4952     # However, it has the same basename, so the bogon will be chosen
4953     # first if we set BUILD_CXX to just the basename; use the full file name.
4954     shift
4955     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4956   fi
4957 fi
4958 fi
4959 fi
4960 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4961 if test -n "$BUILD_CXX"; then
4962   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4963 echo "${ECHO_T}$BUILD_CXX" >&6; }
4964 else
4965   { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4967 fi
4968
4969
4970      fi
4971   fi
4972 else
4973   LLVM_CROSS_COMPILING=0
4974
4975 fi
4976
4977 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4978   cvsbuild="yes"
4979   optimize="no"
4980   CVSBUILD=CVSBUILD=1
4981
4982 else
4983   cvsbuild="no"
4984   optimize="yes"
4985 fi
4986
4987
4988 # Check whether --enable-optimized was given.
4989 if test "${enable_optimized+set}" = set; then
4990   enableval=$enable_optimized;
4991 else
4992   enableval=$optimize
4993 fi
4994
4995 if test ${enableval} = "no" ; then
4996   ENABLE_OPTIMIZED=
4997
4998 else
4999   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5000
5001 fi
5002
5003 # Check whether --enable-profiling was given.
5004 if test "${enable_profiling+set}" = set; then
5005   enableval=$enable_profiling;
5006 else
5007   enableval="no"
5008 fi
5009
5010 if test ${enableval} = "no" ; then
5011   ENABLE_PROFILING=
5012
5013 else
5014   ENABLE_PROFILING=ENABLE_PROFILING=1
5015
5016 fi
5017
5018 # Check whether --enable-assertions was given.
5019 if test "${enable_assertions+set}" = set; then
5020   enableval=$enable_assertions;
5021 else
5022   enableval="yes"
5023 fi
5024
5025 if test ${enableval} = "yes" ; then
5026   DISABLE_ASSERTIONS=
5027
5028 else
5029   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5030
5031 fi
5032
5033 # Check whether --enable-expensive-checks was given.
5034 if test "${enable_expensive_checks+set}" = set; then
5035   enableval=$enable_expensive_checks;
5036 else
5037   enableval="no"
5038 fi
5039
5040 if test ${enableval} = "yes" ; then
5041   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5042
5043   EXPENSIVE_CHECKS=yes
5044
5045 else
5046   ENABLE_EXPENSIVE_CHECKS=
5047
5048   EXPENSIVE_CHECKS=no
5049
5050 fi
5051
5052 # Check whether --enable-debug-runtime was given.
5053 if test "${enable_debug_runtime+set}" = set; then
5054   enableval=$enable_debug_runtime;
5055 else
5056   enableval=no
5057 fi
5058
5059 if test ${enableval} = "no" ; then
5060   DEBUG_RUNTIME=
5061
5062 else
5063   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5064
5065 fi
5066
5067 # Check whether --enable-debug-symbols was given.
5068 if test "${enable_debug_symbols+set}" = set; then
5069   enableval=$enable_debug_symbols;
5070 else
5071   enableval=no
5072 fi
5073
5074 if test ${enableval} = "no" ; then
5075   DEBUG_SYMBOLS=
5076
5077 else
5078   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5079
5080 fi
5081
5082 # Check whether --enable-jit was given.
5083 if test "${enable_jit+set}" = set; then
5084   enableval=$enable_jit;
5085 else
5086   enableval=default
5087 fi
5088
5089 if test ${enableval} = "no"
5090 then
5091   JIT=
5092
5093 else
5094   case "$llvm_cv_target_arch" in
5095     x86)         TARGET_HAS_JIT=1
5096  ;;
5097     Sparc)       TARGET_HAS_JIT=0
5098  ;;
5099     PowerPC)     TARGET_HAS_JIT=1
5100  ;;
5101     x86_64)      TARGET_HAS_JIT=1
5102  ;;
5103     Alpha)       TARGET_HAS_JIT=0
5104  ;;
5105     ARM)         TARGET_HAS_JIT=1
5106  ;;
5107     Mips)        TARGET_HAS_JIT=1
5108  ;;
5109     XCore)       TARGET_HAS_JIT=0
5110  ;;
5111     MSP430)      TARGET_HAS_JIT=0
5112  ;;
5113     SystemZ)     TARGET_HAS_JIT=0
5114  ;;
5115     Blackfin)    TARGET_HAS_JIT=0
5116  ;;
5117     MBlaze)      TARGET_HAS_JIT=0
5118  ;;
5119     PTX)         TARGET_HAS_JIT=0
5120  ;;
5121     *)           TARGET_HAS_JIT=0
5122  ;;
5123   esac
5124 fi
5125
5126 # Check whether --enable-docs was given.
5127 if test "${enable_docs+set}" = set; then
5128   enableval=$enable_docs;
5129 else
5130   enableval=default
5131 fi
5132
5133 case "$enableval" in
5134   yes) ENABLE_DOCS=1
5135  ;;
5136   no)  ENABLE_DOCS=0
5137  ;;
5138   default) ENABLE_DOCS=1
5139  ;;
5140   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5141 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5142    { (exit 1); exit 1; }; } ;;
5143 esac
5144
5145 # Check whether --enable-doxygen was given.
5146 if test "${enable_doxygen+set}" = set; then
5147   enableval=$enable_doxygen;
5148 else
5149   enableval=default
5150 fi
5151
5152 case "$enableval" in
5153   yes) ENABLE_DOXYGEN=1
5154  ;;
5155   no)  ENABLE_DOXYGEN=0
5156  ;;
5157   default) ENABLE_DOXYGEN=0
5158  ;;
5159   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5160 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5161    { (exit 1); exit 1; }; } ;;
5162 esac
5163
5164 # Check whether --enable-threads was given.
5165 if test "${enable_threads+set}" = set; then
5166   enableval=$enable_threads;
5167 else
5168   enableval=default
5169 fi
5170
5171 case "$enableval" in
5172   yes) ENABLE_THREADS=1
5173  ;;
5174   no)  ENABLE_THREADS=0
5175  ;;
5176   default) ENABLE_THREADS=1
5177  ;;
5178   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5180    { (exit 1); exit 1; }; } ;;
5181 esac
5182
5183 cat >>confdefs.h <<_ACEOF
5184 #define ENABLE_THREADS $ENABLE_THREADS
5185 _ACEOF
5186
5187
5188 # Check whether --enable-pthreads was given.
5189 if test "${enable_pthreads+set}" = set; then
5190   enableval=$enable_pthreads;
5191 else
5192   enableval=default
5193 fi
5194
5195 case "$enableval" in
5196   yes) ENABLE_PTHREADS=1
5197  ;;
5198   no)  ENABLE_PTHREADS=0
5199  ;;
5200   default) ENABLE_PTHREADS=1
5201  ;;
5202   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5204    { (exit 1); exit 1; }; } ;;
5205 esac
5206
5207 # Check whether --enable-pic was given.
5208 if test "${enable_pic+set}" = set; then
5209   enableval=$enable_pic;
5210 else
5211   enableval=default
5212 fi
5213
5214 case "$enableval" in
5215   yes) ENABLE_PIC=1
5216  ;;
5217   no)  ENABLE_PIC=0
5218  ;;
5219   default) ENABLE_PIC=1
5220  ;;
5221   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5222 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5223    { (exit 1); exit 1; }; } ;;
5224 esac
5225
5226 cat >>confdefs.h <<_ACEOF
5227 #define ENABLE_PIC $ENABLE_PIC
5228 _ACEOF
5229
5230
5231 # Check whether --enable-shared was given.
5232 if test "${enable_shared+set}" = set; then
5233   enableval=$enable_shared;
5234 else
5235   enableval=default
5236 fi
5237
5238 case "$enableval" in
5239   yes) ENABLE_SHARED=1
5240  ;;
5241   no)  ENABLE_SHARED=0
5242  ;;
5243   default) ENABLE_SHARED=0
5244  ;;
5245   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5246 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5247    { (exit 1); exit 1; }; } ;;
5248 esac
5249
5250 # Check whether --enable-embed-stdcxx was given.
5251 if test "${enable_embed_stdcxx+set}" = set; then
5252   enableval=$enable_embed_stdcxx;
5253 else
5254   enableval=default
5255 fi
5256
5257 case "$enableval" in
5258   yes) ENABLE_EMBED_STDCXX=1
5259  ;;
5260   no)  ENABLE_EMBED_STDCXX=0
5261  ;;
5262   default) ENABLE_EMBED_STDCXX=1
5263  ;;
5264   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5265 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5266    { (exit 1); exit 1; }; } ;;
5267 esac
5268
5269 # Check whether --enable-timestamps was given.
5270 if test "${enable_timestamps+set}" = set; then
5271   enableval=$enable_timestamps;
5272 else
5273   enableval=default
5274 fi
5275
5276 case "$enableval" in
5277   yes) ENABLE_TIMESTAMPS=1
5278  ;;
5279   no)  ENABLE_TIMESTAMPS=0
5280  ;;
5281   default) ENABLE_TIMESTAMPS=1
5282  ;;
5283   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5284 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5285    { (exit 1); exit 1; }; } ;;
5286 esac
5287
5288 cat >>confdefs.h <<_ACEOF
5289 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5290 _ACEOF
5291
5292
5293 TARGETS_TO_BUILD=""
5294 # Check whether --enable-targets was given.
5295 if test "${enable_targets+set}" = set; then
5296   enableval=$enable_targets;
5297 else
5298   enableval=all
5299 fi
5300
5301 if test "$enableval" = host-only ; then
5302   enableval=host
5303 fi
5304 case "$enableval" in
5305   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5306   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5307       case "$a_target" in
5308         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5313         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5316         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5319         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5320         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5321         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5322         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5323         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5324         host) case "$llvm_cv_target_arch" in
5325             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5329             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5330             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5331             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5332             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5333             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5334             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5335             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5336             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5337             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5338             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5339             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5340 echo "$as_me: error: Can not set target to build" >&2;}
5341    { (exit 1); exit 1; }; } ;;
5342           esac ;;
5343         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5344 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5345    { (exit 1); exit 1; }; } ;;
5346       esac
5347   done
5348   ;;
5349 esac
5350 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5351
5352
5353 # Determine whether we are building LLVM support for the native architecture.
5354 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5355 for a_target in $TARGETS_TO_BUILD; do
5356   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5357
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5360 _ACEOF
5361
5362     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5363     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5364     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5365     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5366     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5367       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5368     fi
5369
5370 cat >>confdefs.h <<_ACEOF
5371 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5372 _ACEOF
5373
5374
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5377 _ACEOF
5378
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5382 _ACEOF
5383
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5387 _ACEOF
5388
5389     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5390
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5393 _ACEOF
5394
5395     fi
5396   fi
5397 done
5398
5399 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5400 # target feature def files.
5401 LLVM_ENUM_TARGETS=""
5402 LLVM_ENUM_ASM_PRINTERS=""
5403 LLVM_ENUM_ASM_PARSERS=""
5404 LLVM_ENUM_DISASSEMBLERS=""
5405 for target_to_build in $TARGETS_TO_BUILD; do
5406   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5407   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5408     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5409   fi
5410   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5411     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5412   fi
5413   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5414     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5415   fi
5416 done
5417
5418
5419
5420
5421
5422 # Check whether --enable-cbe-printf-a was given.
5423 if test "${enable_cbe_printf_a+set}" = set; then
5424   enableval=$enable_cbe_printf_a;
5425 else
5426   enableval=default
5427 fi
5428
5429 case "$enableval" in
5430   yes) ENABLE_CBE_PRINTF_A=1
5431  ;;
5432   no)  ENABLE_CBE_PRINTF_A=0
5433  ;;
5434   default)  ENABLE_CBE_PRINTF_A=1
5435  ;;
5436   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5437 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5438    { (exit 1); exit 1; }; } ;;
5439 esac
5440
5441 cat >>confdefs.h <<_ACEOF
5442 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5443 _ACEOF
5444
5445
5446
5447 # Check whether --with-llvmgccdir was given.
5448 if test "${with_llvmgccdir+set}" = set; then
5449   withval=$with_llvmgccdir;
5450 else
5451   withval=default
5452 fi
5453
5454 case "$withval" in
5455   default) WITH_LLVMGCCDIR=default ;;
5456   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5457   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5458 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5459    { (exit 1); exit 1; }; } ;;
5460 esac
5461
5462
5463 # Check whether --with-llvmgcc was given.
5464 if test "${with_llvmgcc+set}" = set; then
5465   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5466       WITH_LLVMGCCDIR=""
5467 fi
5468
5469
5470
5471 # Check whether --with-llvmgxx was given.
5472 if test "${with_llvmgxx+set}" = set; then
5473   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5474     WITH_LLVMGCCDIR=""
5475 fi
5476
5477
5478 if test -n "$LLVMGCC"; then
5479    LLVMGCCCOMMAND="$LLVMGCC"
5480 fi
5481
5482 if test -n "$LLVMGXX"; then
5483    LLVMGXXCOMMAND="$LLVMGXX"
5484 fi
5485
5486 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5487    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5488 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5489    { (exit 1); exit 1; }; };
5490 fi
5491
5492 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5493    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5494 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5495    { (exit 1); exit 1; }; };
5496 fi
5497
5498
5499 # Check whether --with-clang was given.
5500 if test "${with_clang+set}" = set; then
5501   withval=$with_clang;
5502 else
5503   with_clang=default
5504 fi
5505
5506
5507
5508 # Check whether --with-built-clang was given.
5509 if test "${with_built_clang+set}" = set; then
5510   withval=$with_built_clang;
5511 else
5512   with_built_clang=check
5513 fi
5514
5515
5516 { echo "$as_me:$LINENO: checking clang compiler" >&5
5517 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5518 WITH_CLANGPATH=""
5519 WITH_BUILT_CLANG=0
5520 if test "$with_clang" != "default"; then
5521    WITH_CLANGPATH="$with_clang"
5522    if ! test -x "$WITH_CLANGPATH"; then
5523      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5524 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5525    { (exit 1); exit 1; }; }
5526    fi
5527 elif test "$with_built_clang" = "yes"; then
5528    WITH_BUILT_CLANG=1
5529 elif test "$with_built_clang" = "no"; then
5530    WITH_BUILT_CLANG=0
5531 else
5532    if test "$with_built_clang" != "check"; then
5533       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5534 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5535    { (exit 1); exit 1; }; }
5536    fi
5537
5538    if test -f ${srcdir}/tools/clang/README.txt; then
5539      WITH_BUILT_CLANG=1
5540    fi
5541 fi
5542
5543 if ! test -z "$WITH_CLANGPATH"; then
5544    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5545 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5546    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5547 elif test "$WITH_BUILT_CLANG" = "1"; then
5548    { echo "$as_me:$LINENO: result: built" >&5
5549 echo "${ECHO_T}built" >&6; }
5550 else
5551    { echo "$as_me:$LINENO: result: none" >&5
5552 echo "${ECHO_T}none" >&6; }
5553 fi
5554 CLANGPATH=$WITH_CLANGPATH
5555
5556 CLANGXXPATH=$WITH_CLANGXXPATH
5557
5558 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5559
5560
5561
5562 # Check whether --with-optimize-option was given.
5563 if test "${with_optimize_option+set}" = set; then
5564   withval=$with_optimize_option;
5565 else
5566   withval=default
5567 fi
5568
5569 { echo "$as_me:$LINENO: checking optimization flags" >&5
5570 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5571 case "$withval" in
5572   default)
5573     case "$llvm_cv_os_type" in
5574     FreeBSD) optimize_option=-O2 ;;
5575     MingW) optimize_option=-O2 ;;
5576     *)     optimize_option=-O3 ;;
5577     esac ;;
5578   *) optimize_option="$withval" ;;
5579 esac
5580 OPTIMIZE_OPTION=$optimize_option
5581
5582 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5583 echo "${ECHO_T}$optimize_option" >&6; }
5584
5585
5586 # Check whether --with-extra-options was given.
5587 if test "${with_extra_options+set}" = set; then
5588   withval=$with_extra_options;
5589 else
5590   withval=default
5591 fi
5592
5593 case "$withval" in
5594   default) EXTRA_OPTIONS= ;;
5595   *) EXTRA_OPTIONS=$withval ;;
5596 esac
5597 EXTRA_OPTIONS=$EXTRA_OPTIONS
5598
5599
5600
5601 # Check whether --with-extra-ld-options was given.
5602 if test "${with_extra_ld_options+set}" = set; then
5603   withval=$with_extra_ld_options;
5604 else
5605   withval=default
5606 fi
5607
5608 case "$withval" in
5609   default) EXTRA_LD_OPTIONS= ;;
5610   *) EXTRA_LD_OPTIONS=$withval ;;
5611 esac
5612 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5613
5614
5615 # Check whether --enable-bindings was given.
5616 if test "${enable_bindings+set}" = set; then
5617   enableval=$enable_bindings;
5618 else
5619   enableval=default
5620 fi
5621
5622 BINDINGS_TO_BUILD=""
5623 case "$enableval" in
5624   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5625   all ) BINDINGS_TO_BUILD="ocaml" ;;
5626   none | no) BINDINGS_TO_BUILD="" ;;
5627   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5628       case "$a_binding" in
5629         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5630         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5631 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5632    { (exit 1); exit 1; }; } ;;
5633       esac
5634   done
5635   ;;
5636 esac
5637
5638
5639 # Check whether --with-ocaml-libdir was given.
5640 if test "${with_ocaml_libdir+set}" = set; then
5641   withval=$with_ocaml_libdir;
5642 else
5643   withval=auto
5644 fi
5645
5646 case "$withval" in
5647   auto) with_ocaml_libdir="$withval" ;;
5648   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5649   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5650 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5651    { (exit 1); exit 1; }; } ;;
5652 esac
5653
5654
5655 # Check whether --with-clang-resource-dir was given.
5656 if test "${with_clang_resource_dir+set}" = set; then
5657   withval=$with_clang_resource_dir;
5658 else
5659   withval=""
5660 fi
5661
5662
5663 cat >>confdefs.h <<_ACEOF
5664 #define CLANG_RESOURCE_DIR "$withval"
5665 _ACEOF
5666
5667
5668
5669 # Check whether --with-c-include-dirs was given.
5670 if test "${with_c_include_dirs+set}" = set; then
5671   withval=$with_c_include_dirs;
5672 else
5673   withval=""
5674 fi
5675
5676
5677 cat >>confdefs.h <<_ACEOF
5678 #define C_INCLUDE_DIRS "$withval"
5679 _ACEOF
5680
5681
5682
5683 # Check whether --with-cxx-include-root was given.
5684 if test "${with_cxx_include_root+set}" = set; then
5685   withval=$with_cxx_include_root;
5686 else
5687   withval=""
5688 fi
5689
5690
5691 cat >>confdefs.h <<_ACEOF
5692 #define CXX_INCLUDE_ROOT "$withval"
5693 _ACEOF
5694
5695
5696
5697 # Check whether --with-cxx-include-arch was given.
5698 if test "${with_cxx_include_arch+set}" = set; then
5699   withval=$with_cxx_include_arch;
5700 else
5701   withval=""
5702 fi
5703
5704
5705 cat >>confdefs.h <<_ACEOF
5706 #define CXX_INCLUDE_ARCH "$withval"
5707 _ACEOF
5708
5709
5710
5711 # Check whether --with-cxx-include-32bit-dir was given.
5712 if test "${with_cxx_include_32bit_dir+set}" = set; then
5713   withval=$with_cxx_include_32bit_dir;
5714 else
5715   withval=""
5716 fi
5717
5718
5719 cat >>confdefs.h <<_ACEOF
5720 #define CXX_INCLUDE_32BIT_DIR "$withval"
5721 _ACEOF
5722
5723
5724
5725 # Check whether --with-cxx-include-64bit-dir was given.
5726 if test "${with_cxx_include_64bit_dir+set}" = set; then
5727   withval=$with_cxx_include_64bit_dir;
5728 else
5729   withval=""
5730 fi
5731
5732
5733 cat >>confdefs.h <<_ACEOF
5734 #define CXX_INCLUDE_64BIT_DIR "$withval"
5735 _ACEOF
5736
5737
5738
5739 # Check whether --with-binutils-include was given.
5740 if test "${with_binutils_include+set}" = set; then
5741   withval=$with_binutils_include;
5742 else
5743   withval=default
5744 fi
5745
5746 case "$withval" in
5747   default) WITH_BINUTILS_INCDIR=default ;;
5748   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5749   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5750 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5751    { (exit 1); exit 1; }; } ;;
5752 esac
5753 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5754   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5755
5756   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5757      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5758      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5759 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5760    { (exit 1); exit 1; }; };
5761   fi
5762 fi
5763
5764
5765 # Check whether --with-bug-report-url was given.
5766 if test "${with_bug_report_url+set}" = set; then
5767   withval=$with_bug_report_url;
5768 else
5769   withval="http://llvm.org/bugs/"
5770 fi
5771
5772
5773 cat >>confdefs.h <<_ACEOF
5774 #define BUG_REPORT_URL "$withval"
5775 _ACEOF
5776
5777
5778 # Check whether --enable-libffi was given.
5779 if test "${enable_libffi+set}" = set; then
5780   enableval=$enable_libffi; case "$enableval" in
5781     yes) llvm_cv_enable_libffi="yes" ;;
5782     no)  llvm_cv_enable_libffi="no"  ;;
5783     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5784 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5785    { (exit 1); exit 1; }; } ;;
5786   esac
5787 else
5788   llvm_cv_enable_libffi=no
5789 fi
5790
5791
5792
5793
5794 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5795 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5796 if test "${lt_cv_path_NM+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   if test -n "$NM"; then
5800   # Let the user override the test.
5801   lt_cv_path_NM="$NM"
5802 else
5803   lt_nm_to_check="${ac_tool_prefix}nm"
5804   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5805     lt_nm_to_check="$lt_nm_to_check nm"
5806   fi
5807   for lt_tmp_nm in $lt_nm_to_check; do
5808     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5809     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5810       IFS="$lt_save_ifs"
5811       test -z "$ac_dir" && ac_dir=.
5812       tmp_nm="$ac_dir/$lt_tmp_nm"
5813       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5814         # Check to see if the nm accepts a BSD-compat flag.
5815         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5816         #   nm: unknown option "B" ignored
5817         # Tru64's nm complains that /dev/null is an invalid object file
5818         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5819         */dev/null* | *'Invalid file or object type'*)
5820           lt_cv_path_NM="$tmp_nm -B"
5821           break
5822           ;;
5823         *)
5824           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5825           */dev/null*)
5826             lt_cv_path_NM="$tmp_nm -p"
5827             break
5828             ;;
5829           *)
5830             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5831             continue # so that we can try to find one that supports BSD flags
5832             ;;
5833           esac
5834           ;;
5835         esac
5836       fi
5837     done
5838     IFS="$lt_save_ifs"
5839   done
5840   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5841 fi
5842 fi
5843 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5844 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5845 NM="$lt_cv_path_NM"
5846
5847
5848
5849 { echo "$as_me:$LINENO: checking for GNU make" >&5
5850 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5851 if test "${llvm_cv_gnu_make_command+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   llvm_cv_gnu_make_command=''
5855  for a in "$MAKE" make gmake gnumake ; do
5856   if test -z "$a" ; then continue ; fi ;
5857   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5858   then
5859    llvm_cv_gnu_make_command=$a ;
5860    break;
5861   fi
5862  done
5863 fi
5864 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5865 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5866  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5867    ifGNUmake='' ;
5868  else
5869    ifGNUmake='#' ;
5870    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5871 echo "${ECHO_T}\"Not found\"" >&6; };
5872  fi
5873
5874
5875 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5876 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5877 LN_S=$as_ln_s
5878 if test "$LN_S" = "ln -s"; then
5879   { echo "$as_me:$LINENO: result: yes" >&5
5880 echo "${ECHO_T}yes" >&6; }
5881 else
5882   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5883 echo "${ECHO_T}no, using $LN_S" >&6; }
5884 fi
5885
5886 # Extract the first word of "cmp", so it can be a program name with args.
5887 set dummy cmp; ac_word=$2
5888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5890 if test "${ac_cv_path_CMP+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   case $CMP in
5894   [\\/]* | ?:[\\/]*)
5895   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5896   ;;
5897   *)
5898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901   IFS=$as_save_IFS
5902   test -z "$as_dir" && as_dir=.
5903   for ac_exec_ext in '' $ac_executable_extensions; do
5904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5905     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908   fi
5909 done
5910 done
5911 IFS=$as_save_IFS
5912
5913   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5914   ;;
5915 esac
5916 fi
5917 CMP=$ac_cv_path_CMP
5918 if test -n "$CMP"; then
5919   { echo "$as_me:$LINENO: result: $CMP" >&5
5920 echo "${ECHO_T}$CMP" >&6; }
5921 else
5922   { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5924 fi
5925
5926
5927 # Extract the first word of "cp", so it can be a program name with args.
5928 set dummy cp; ac_word=$2
5929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5931 if test "${ac_cv_path_CP+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   case $CP in
5935   [\\/]* | ?:[\\/]*)
5936   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5937   ;;
5938   *)
5939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942   IFS=$as_save_IFS
5943   test -z "$as_dir" && as_dir=.
5944   for ac_exec_ext in '' $ac_executable_extensions; do
5945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5946     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948     break 2
5949   fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5955   ;;
5956 esac
5957 fi
5958 CP=$ac_cv_path_CP
5959 if test -n "$CP"; then
5960   { echo "$as_me:$LINENO: result: $CP" >&5
5961 echo "${ECHO_T}$CP" >&6; }
5962 else
5963   { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5965 fi
5966
5967
5968 # Extract the first word of "date", so it can be a program name with args.
5969 set dummy date; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_path_DATE+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   case $DATE in
5976   [\\/]* | ?:[\\/]*)
5977   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5978   ;;
5979   *)
5980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983   IFS=$as_save_IFS
5984   test -z "$as_dir" && as_dir=.
5985   for ac_exec_ext in '' $ac_executable_extensions; do
5986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5987     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992 done
5993 IFS=$as_save_IFS
5994
5995   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5996   ;;
5997 esac
5998 fi
5999 DATE=$ac_cv_path_DATE
6000 if test -n "$DATE"; then
6001   { echo "$as_me:$LINENO: result: $DATE" >&5
6002 echo "${ECHO_T}$DATE" >&6; }
6003 else
6004   { echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6; }
6006 fi
6007
6008
6009 # Extract the first word of "find", so it can be a program name with args.
6010 set dummy find; ac_word=$2
6011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6013 if test "${ac_cv_path_FIND+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016   case $FIND in
6017   [\\/]* | ?:[\\/]*)
6018   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6019   ;;
6020   *)
6021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026   for ac_exec_ext in '' $ac_executable_extensions; do
6027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6028     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030     break 2
6031   fi
6032 done
6033 done
6034 IFS=$as_save_IFS
6035
6036   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6037   ;;
6038 esac
6039 fi
6040 FIND=$ac_cv_path_FIND
6041 if test -n "$FIND"; then
6042   { echo "$as_me:$LINENO: result: $FIND" >&5
6043 echo "${ECHO_T}$FIND" >&6; }
6044 else
6045   { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6047 fi
6048
6049
6050 # Extract the first word of "grep", so it can be a program name with args.
6051 set dummy grep; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_path_GREP+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   case $GREP in
6058   [\\/]* | ?:[\\/]*)
6059   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6060   ;;
6061   *)
6062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065   IFS=$as_save_IFS
6066   test -z "$as_dir" && as_dir=.
6067   for ac_exec_ext in '' $ac_executable_extensions; do
6068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6069     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071     break 2
6072   fi
6073 done
6074 done
6075 IFS=$as_save_IFS
6076
6077   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6078   ;;
6079 esac
6080 fi
6081 GREP=$ac_cv_path_GREP
6082 if test -n "$GREP"; then
6083   { echo "$as_me:$LINENO: result: $GREP" >&5
6084 echo "${ECHO_T}$GREP" >&6; }
6085 else
6086   { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6088 fi
6089
6090
6091 # Extract the first word of "mkdir", so it can be a program name with args.
6092 set dummy mkdir; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_path_MKDIR+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   case $MKDIR in
6099   [\\/]* | ?:[\\/]*)
6100   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6101   ;;
6102   *)
6103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108   for ac_exec_ext in '' $ac_executable_extensions; do
6109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6110     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112     break 2
6113   fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6119   ;;
6120 esac
6121 fi
6122 MKDIR=$ac_cv_path_MKDIR
6123 if test -n "$MKDIR"; then
6124   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6125 echo "${ECHO_T}$MKDIR" >&6; }
6126 else
6127   { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6129 fi
6130
6131
6132 # Extract the first word of "mv", so it can be a program name with args.
6133 set dummy mv; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_path_MV+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   case $MV in
6140   [\\/]* | ?:[\\/]*)
6141   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6142   ;;
6143   *)
6144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149   for ac_exec_ext in '' $ac_executable_extensions; do
6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6160   ;;
6161 esac
6162 fi
6163 MV=$ac_cv_path_MV
6164 if test -n "$MV"; then
6165   { echo "$as_me:$LINENO: result: $MV" >&5
6166 echo "${ECHO_T}$MV" >&6; }
6167 else
6168   { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6170 fi
6171
6172
6173 if test -n "$ac_tool_prefix"; then
6174   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_RANLIB+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   if test -n "$RANLIB"; then
6182   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189   for ac_exec_ext in '' $ac_executable_extensions; do
6190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6191     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196 done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 RANLIB=$ac_cv_prog_RANLIB
6202 if test -n "$RANLIB"; then
6203   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6204 echo "${ECHO_T}$RANLIB" >&6; }
6205 else
6206   { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6208 fi
6209
6210
6211 fi
6212 if test -z "$ac_cv_prog_RANLIB"; then
6213   ac_ct_RANLIB=$RANLIB
6214   # Extract the first word of "ranlib", so it can be a program name with args.
6215 set dummy ranlib; ac_word=$2
6216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   if test -n "$ac_ct_RANLIB"; then
6222   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6223 else
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6226 do
6227   IFS=$as_save_IFS
6228   test -z "$as_dir" && as_dir=.
6229   for ac_exec_ext in '' $ac_executable_extensions; do
6230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6231     ac_cv_prog_ac_ct_RANLIB="ranlib"
6232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233     break 2
6234   fi
6235 done
6236 done
6237 IFS=$as_save_IFS
6238
6239 fi
6240 fi
6241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6242 if test -n "$ac_ct_RANLIB"; then
6243   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6244 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6245 else
6246   { echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6; }
6248 fi
6249
6250   if test "x$ac_ct_RANLIB" = x; then
6251     RANLIB=":"
6252   else
6253     case $cross_compiling:$ac_tool_warned in
6254 yes:)
6255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6256 whose name does not start with the host triplet.  If you think this
6257 configuration is useful to you, please write to autoconf@gnu.org." >&5
6258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6259 whose name does not start with the host triplet.  If you think this
6260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6261 ac_tool_warned=yes ;;
6262 esac
6263     RANLIB=$ac_ct_RANLIB
6264   fi
6265 else
6266   RANLIB="$ac_cv_prog_RANLIB"
6267 fi
6268
6269 if test -n "$ac_tool_prefix"; then
6270   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6271 set dummy ${ac_tool_prefix}ar; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_prog_AR+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   if test -n "$AR"; then
6278   ac_cv_prog_AR="$AR" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285   for ac_exec_ext in '' $ac_executable_extensions; do
6286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287     ac_cv_prog_AR="${ac_tool_prefix}ar"
6288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 AR=$ac_cv_prog_AR
6298 if test -n "$AR"; then
6299   { echo "$as_me:$LINENO: result: $AR" >&5
6300 echo "${ECHO_T}$AR" >&6; }
6301 else
6302   { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6304 fi
6305
6306
6307 fi
6308 if test -z "$ac_cv_prog_AR"; then
6309   ac_ct_AR=$AR
6310   # Extract the first word of "ar", so it can be a program name with args.
6311 set dummy ar; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   if test -n "$ac_ct_AR"; then
6318   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325   for ac_exec_ext in '' $ac_executable_extensions; do
6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327     ac_cv_prog_ac_ct_AR="ar"
6328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6338 if test -n "$ac_ct_AR"; then
6339   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6340 echo "${ECHO_T}$ac_ct_AR" >&6; }
6341 else
6342   { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6344 fi
6345
6346   if test "x$ac_ct_AR" = x; then
6347     AR="false"
6348   else
6349     case $cross_compiling:$ac_tool_warned in
6350 yes:)
6351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6352 whose name does not start with the host triplet.  If you think this
6353 configuration is useful to you, please write to autoconf@gnu.org." >&5
6354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6355 whose name does not start with the host triplet.  If you think this
6356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359     AR=$ac_ct_AR
6360   fi
6361 else
6362   AR="$ac_cv_prog_AR"
6363 fi
6364
6365 # Extract the first word of "rm", so it can be a program name with args.
6366 set dummy rm; ac_word=$2
6367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369 if test "${ac_cv_path_RM+set}" = set; then
6370   echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372   case $RM in
6373   [\\/]* | ?:[\\/]*)
6374   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6375   ;;
6376   *)
6377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6379 do
6380   IFS=$as_save_IFS
6381   test -z "$as_dir" && as_dir=.
6382   for ac_exec_ext in '' $ac_executable_extensions; do
6383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6384     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386     break 2
6387   fi
6388 done
6389 done
6390 IFS=$as_save_IFS
6391
6392   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6393   ;;
6394 esac
6395 fi
6396 RM=$ac_cv_path_RM
6397 if test -n "$RM"; then
6398   { echo "$as_me:$LINENO: result: $RM" >&5
6399 echo "${ECHO_T}$RM" >&6; }
6400 else
6401   { echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6; }
6403 fi
6404
6405
6406 # Extract the first word of "sed", so it can be a program name with args.
6407 set dummy sed; ac_word=$2
6408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6410 if test "${ac_cv_path_SED+set}" = set; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413   case $SED in
6414   [\\/]* | ?:[\\/]*)
6415   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6416   ;;
6417   *)
6418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421   IFS=$as_save_IFS
6422   test -z "$as_dir" && as_dir=.
6423   for ac_exec_ext in '' $ac_executable_extensions; do
6424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6425     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427     break 2
6428   fi
6429 done
6430 done
6431 IFS=$as_save_IFS
6432
6433   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6434   ;;
6435 esac
6436 fi
6437 SED=$ac_cv_path_SED
6438 if test -n "$SED"; then
6439   { echo "$as_me:$LINENO: result: $SED" >&5
6440 echo "${ECHO_T}$SED" >&6; }
6441 else
6442   { echo "$as_me:$LINENO: result: no" >&5
6443 echo "${ECHO_T}no" >&6; }
6444 fi
6445
6446
6447 # Extract the first word of "tar", so it can be a program name with args.
6448 set dummy tar; ac_word=$2
6449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451 if test "${ac_cv_path_TAR+set}" = set; then
6452   echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454   case $TAR in
6455   [\\/]* | ?:[\\/]*)
6456   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6457   ;;
6458   *)
6459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462   IFS=$as_save_IFS
6463   test -z "$as_dir" && as_dir=.
6464   for ac_exec_ext in '' $ac_executable_extensions; do
6465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6466     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468     break 2
6469   fi
6470 done
6471 done
6472 IFS=$as_save_IFS
6473
6474   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6475   ;;
6476 esac
6477 fi
6478 TAR=$ac_cv_path_TAR
6479 if test -n "$TAR"; then
6480   { echo "$as_me:$LINENO: result: $TAR" >&5
6481 echo "${ECHO_T}$TAR" >&6; }
6482 else
6483   { echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6; }
6485 fi
6486
6487
6488 # Extract the first word of "pwd", so it can be a program name with args.
6489 set dummy pwd; ac_word=$2
6490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492 if test "${ac_cv_path_BINPWD+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   case $BINPWD in
6496   [\\/]* | ?:[\\/]*)
6497   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6498   ;;
6499   *)
6500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
6503   IFS=$as_save_IFS
6504   test -z "$as_dir" && as_dir=.
6505   for ac_exec_ext in '' $ac_executable_extensions; do
6506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6507     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509     break 2
6510   fi
6511 done
6512 done
6513 IFS=$as_save_IFS
6514
6515   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6516   ;;
6517 esac
6518 fi
6519 BINPWD=$ac_cv_path_BINPWD
6520 if test -n "$BINPWD"; then
6521   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6522 echo "${ECHO_T}$BINPWD" >&6; }
6523 else
6524   { echo "$as_me:$LINENO: result: no" >&5
6525 echo "${ECHO_T}no" >&6; }
6526 fi
6527
6528
6529
6530 # Extract the first word of "Graphviz", so it can be a program name with args.
6531 set dummy Graphviz; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   case $GRAPHVIZ in
6538   [\\/]* | ?:[\\/]*)
6539   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6540   ;;
6541   *)
6542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547   for ac_exec_ext in '' $ac_executable_extensions; do
6548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6549     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6558   ;;
6559 esac
6560 fi
6561 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6562 if test -n "$GRAPHVIZ"; then
6563   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6564 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6565 else
6566   { echo "$as_me:$LINENO: result: no" >&5
6567 echo "${ECHO_T}no" >&6; }
6568 fi
6569
6570
6571 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6572
6573 cat >>confdefs.h <<\_ACEOF
6574 #define HAVE_GRAPHVIZ 1
6575 _ACEOF
6576
6577     if test "$llvm_cv_os_type" = "MingW" ; then
6578     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6579   fi
6580
6581 cat >>confdefs.h <<_ACEOF
6582 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6583 _ACEOF
6584
6585 fi
6586 # Extract the first word of "dot", so it can be a program name with args.
6587 set dummy dot; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_path_DOT+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593   case $DOT in
6594   [\\/]* | ?:[\\/]*)
6595   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6596   ;;
6597   *)
6598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601   IFS=$as_save_IFS
6602   test -z "$as_dir" && as_dir=.
6603   for ac_exec_ext in '' $ac_executable_extensions; do
6604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6605     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607     break 2
6608   fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6614   ;;
6615 esac
6616 fi
6617 DOT=$ac_cv_path_DOT
6618 if test -n "$DOT"; then
6619   { echo "$as_me:$LINENO: result: $DOT" >&5
6620 echo "${ECHO_T}$DOT" >&6; }
6621 else
6622   { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6624 fi
6625
6626
6627 if test "$DOT" != "echo dot" ; then
6628
6629 cat >>confdefs.h <<\_ACEOF
6630 #define HAVE_DOT 1
6631 _ACEOF
6632
6633     if test "$llvm_cv_os_type" = "MingW" ; then
6634     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6635   fi
6636
6637 cat >>confdefs.h <<_ACEOF
6638 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6639 _ACEOF
6640
6641 fi
6642 # Extract the first word of "fdp", so it can be a program name with args.
6643 set dummy fdp; ac_word=$2
6644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646 if test "${ac_cv_path_FDP+set}" = set; then
6647   echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649   case $FDP in
6650   [\\/]* | ?:[\\/]*)
6651   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6652   ;;
6653   *)
6654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657   IFS=$as_save_IFS
6658   test -z "$as_dir" && as_dir=.
6659   for ac_exec_ext in '' $ac_executable_extensions; do
6660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6661     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663     break 2
6664   fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6668
6669   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6670   ;;
6671 esac
6672 fi
6673 FDP=$ac_cv_path_FDP
6674 if test -n "$FDP"; then
6675   { echo "$as_me:$LINENO: result: $FDP" >&5
6676 echo "${ECHO_T}$FDP" >&6; }
6677 else
6678   { echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6; }
6680 fi
6681
6682
6683 if test "$FDP" != "echo fdp" ; then
6684
6685 cat >>confdefs.h <<\_ACEOF
6686 #define HAVE_FDP 1
6687 _ACEOF
6688
6689     if test "$llvm_cv_os_type" = "MingW" ; then
6690     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6691   fi
6692
6693 cat >>confdefs.h <<_ACEOF
6694 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6695 _ACEOF
6696
6697 fi
6698 # Extract the first word of "neato", so it can be a program name with args.
6699 set dummy neato; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_path_NEATO+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   case $NEATO in
6706   [\\/]* | ?:[\\/]*)
6707   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6708   ;;
6709   *)
6710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713   IFS=$as_save_IFS
6714   test -z "$as_dir" && as_dir=.
6715   for ac_exec_ext in '' $ac_executable_extensions; do
6716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719     break 2
6720   fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6726   ;;
6727 esac
6728 fi
6729 NEATO=$ac_cv_path_NEATO
6730 if test -n "$NEATO"; then
6731   { echo "$as_me:$LINENO: result: $NEATO" >&5
6732 echo "${ECHO_T}$NEATO" >&6; }
6733 else
6734   { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6736 fi
6737
6738
6739 if test "$NEATO" != "echo neato" ; then
6740
6741 cat >>confdefs.h <<\_ACEOF
6742 #define HAVE_NEATO 1
6743 _ACEOF
6744
6745     if test "$llvm_cv_os_type" = "MingW" ; then
6746     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6747   fi
6748
6749 cat >>confdefs.h <<_ACEOF
6750 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6751 _ACEOF
6752
6753 fi
6754 # Extract the first word of "twopi", so it can be a program name with args.
6755 set dummy twopi; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_TWOPI+set}" = set; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   case $TWOPI in
6762   [\\/]* | ?:[\\/]*)
6763   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6764   ;;
6765   *)
6766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771   for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6782   ;;
6783 esac
6784 fi
6785 TWOPI=$ac_cv_path_TWOPI
6786 if test -n "$TWOPI"; then
6787   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6788 echo "${ECHO_T}$TWOPI" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794
6795 if test "$TWOPI" != "echo twopi" ; then
6796
6797 cat >>confdefs.h <<\_ACEOF
6798 #define HAVE_TWOPI 1
6799 _ACEOF
6800
6801     if test "$llvm_cv_os_type" = "MingW" ; then
6802     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6803   fi
6804
6805 cat >>confdefs.h <<_ACEOF
6806 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6807 _ACEOF
6808
6809 fi
6810 # Extract the first word of "circo", so it can be a program name with args.
6811 set dummy circo; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_CIRCO+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817   case $CIRCO in
6818   [\\/]* | ?:[\\/]*)
6819   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6820   ;;
6821   *)
6822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6838   ;;
6839 esac
6840 fi
6841 CIRCO=$ac_cv_path_CIRCO
6842 if test -n "$CIRCO"; then
6843   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6844 echo "${ECHO_T}$CIRCO" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850
6851 if test "$CIRCO" != "echo circo" ; then
6852
6853 cat >>confdefs.h <<\_ACEOF
6854 #define HAVE_CIRCO 1
6855 _ACEOF
6856
6857     if test "$llvm_cv_os_type" = "MingW" ; then
6858     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6859   fi
6860
6861 cat >>confdefs.h <<_ACEOF
6862 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6863 _ACEOF
6864
6865 fi
6866 for ac_prog in gv gsview32
6867 do
6868   # Extract the first word of "$ac_prog", so it can be a program name with args.
6869 set dummy $ac_prog; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_path_GV+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   case $GV in
6876   [\\/]* | ?:[\\/]*)
6877   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6878   ;;
6879   *)
6880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883   IFS=$as_save_IFS
6884   test -z "$as_dir" && as_dir=.
6885   for ac_exec_ext in '' $ac_executable_extensions; do
6886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6887     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889     break 2
6890   fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895   ;;
6896 esac
6897 fi
6898 GV=$ac_cv_path_GV
6899 if test -n "$GV"; then
6900   { echo "$as_me:$LINENO: result: $GV" >&5
6901 echo "${ECHO_T}$GV" >&6; }
6902 else
6903   { echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6; }
6905 fi
6906
6907
6908   test -n "$GV" && break
6909 done
6910 test -n "$GV" || GV="echo gv"
6911
6912 if test "$GV" != "echo gv" ; then
6913
6914 cat >>confdefs.h <<\_ACEOF
6915 #define HAVE_GV 1
6916 _ACEOF
6917
6918     if test "$llvm_cv_os_type" = "MingW" ; then
6919     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6920   fi
6921
6922 cat >>confdefs.h <<_ACEOF
6923 #define LLVM_PATH_GV "$GV${EXEEXT}"
6924 _ACEOF
6925
6926 fi
6927 # Extract the first word of "dotty", so it can be a program name with args.
6928 set dummy dotty; ac_word=$2
6929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931 if test "${ac_cv_path_DOTTY+set}" = set; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934   case $DOTTY in
6935   [\\/]* | ?:[\\/]*)
6936   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6937   ;;
6938   *)
6939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942   IFS=$as_save_IFS
6943   test -z "$as_dir" && as_dir=.
6944   for ac_exec_ext in '' $ac_executable_extensions; do
6945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6946     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948     break 2
6949   fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6955   ;;
6956 esac
6957 fi
6958 DOTTY=$ac_cv_path_DOTTY
6959 if test -n "$DOTTY"; then
6960   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6961 echo "${ECHO_T}$DOTTY" >&6; }
6962 else
6963   { echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6; }
6965 fi
6966
6967
6968 if test "$DOTTY" != "echo dotty" ; then
6969
6970 cat >>confdefs.h <<\_ACEOF
6971 #define HAVE_DOTTY 1
6972 _ACEOF
6973
6974     if test "$llvm_cv_os_type" = "MingW" ; then
6975     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6976   fi
6977
6978 cat >>confdefs.h <<_ACEOF
6979 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6980 _ACEOF
6981
6982 fi
6983 # Extract the first word of "xdot.py", so it can be a program name with args.
6984 set dummy xdot.py; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6988   echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990   case $XDOT_PY in
6991   [\\/]* | ?:[\\/]*)
6992   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6993   ;;
6994   *)
6995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   for ac_exec_ext in '' $ac_executable_extensions; do
7001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7011   ;;
7012 esac
7013 fi
7014 XDOT_PY=$ac_cv_path_XDOT_PY
7015 if test -n "$XDOT_PY"; then
7016   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7017 echo "${ECHO_T}$XDOT_PY" >&6; }
7018 else
7019   { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7021 fi
7022
7023
7024 if test "$XDOT_PY" != "echo xdot.py" ; then
7025
7026 cat >>confdefs.h <<\_ACEOF
7027 #define HAVE_XDOT_PY 1
7028 _ACEOF
7029
7030     if test "$llvm_cv_os_type" = "MingW" ; then
7031     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7032   fi
7033
7034 cat >>confdefs.h <<_ACEOF
7035 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7036 _ACEOF
7037
7038 fi
7039
7040
7041 # Extract the first word of "perl", so it can be a program name with args.
7042 set dummy perl; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_path_PERL+set}" = set; then
7046   echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048   case $PERL in
7049   [\\/]* | ?:[\\/]*)
7050   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7051   ;;
7052   *)
7053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058   for ac_exec_ext in '' $ac_executable_extensions; do
7059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7060     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065 done
7066 IFS=$as_save_IFS
7067
7068   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7069   ;;
7070 esac
7071 fi
7072 PERL=$ac_cv_path_PERL
7073 if test -n "$PERL"; then
7074   { echo "$as_me:$LINENO: result: $PERL" >&5
7075 echo "${ECHO_T}$PERL" >&6; }
7076 else
7077   { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7079 fi
7080
7081
7082 if test "$PERL" != "none"; then
7083   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7084 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7085   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7086     { echo "$as_me:$LINENO: result: yes" >&5
7087 echo "${ECHO_T}yes" >&6; }
7088   else
7089     PERL=none
7090     { echo "$as_me:$LINENO: result: not found" >&5
7091 echo "${ECHO_T}not found" >&6; }
7092   fi
7093 fi
7094
7095
7096 if test x"$PERL" = xnone; then
7097    HAVE_PERL=0
7098
7099    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7100 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7101    { (exit 1); exit 1; }; }
7102 else
7103    HAVE_PERL=1
7104
7105 fi
7106
7107 # Find a good install program.  We prefer a C program (faster),
7108 # so one script is as good as another.  But avoid the broken or
7109 # incompatible versions:
7110 # SysV /etc/install, /usr/sbin/install
7111 # SunOS /usr/etc/install
7112 # IRIX /sbin/install
7113 # AIX /bin/install
7114 # AmigaOS /C/install, which installs bootblocks on floppy discs
7115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7118 # OS/2's system install, which has a completely different semantic
7119 # ./install, which can be erroneously created by make from ./install.sh.
7120 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7122 if test -z "$INSTALL"; then
7123 if test "${ac_cv_path_install+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131   # Account for people who put trailing slashes in PATH elements.
7132 case $as_dir/ in
7133   ./ | .// | /cC/* | \
7134   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7135   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7136   /usr/ucb/* ) ;;
7137   *)
7138     # OSF1 and SCO ODT 3.0 have their own names for install.
7139     # Don't use installbsd from OSF since it installs stuff as root
7140     # by default.
7141     for ac_prog in ginstall scoinst install; do
7142       for ac_exec_ext in '' $ac_executable_extensions; do
7143         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7144           if test $ac_prog = install &&
7145             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7146             # AIX install.  It has an incompatible calling convention.
7147             :
7148           elif test $ac_prog = install &&
7149             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7150             # program-specific install script used by HP pwplus--don't use.
7151             :
7152           else
7153             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7154             break 3
7155           fi
7156         fi
7157       done
7158     done
7159     ;;
7160 esac
7161 done
7162 IFS=$as_save_IFS
7163
7164
7165 fi
7166   if test "${ac_cv_path_install+set}" = set; then
7167     INSTALL=$ac_cv_path_install
7168   else
7169     # As a last resort, use the slow shell script.  Don't cache a
7170     # value for INSTALL within a source directory, because that will
7171     # break other packages using the cache if that directory is
7172     # removed, or if the value is a relative name.
7173     INSTALL=$ac_install_sh
7174   fi
7175 fi
7176 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7177 echo "${ECHO_T}$INSTALL" >&6; }
7178
7179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7180 # It thinks the first close brace ends the variable substitution.
7181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7182
7183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7184
7185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7186
7187 case "$INSTALL" in
7188  [\\/$]* | ?:[\\/]* ) ;;
7189  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7190 esac
7191
7192 # Extract the first word of "bzip2", so it can be a program name with args.
7193 set dummy bzip2; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_path_BZIP2+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   case $BZIP2 in
7200   [\\/]* | ?:[\\/]*)
7201   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7202   ;;
7203   *)
7204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207   IFS=$as_save_IFS
7208   test -z "$as_dir" && as_dir=.
7209   for ac_exec_ext in '' $ac_executable_extensions; do
7210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7211     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213     break 2
7214   fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219   ;;
7220 esac
7221 fi
7222 BZIP2=$ac_cv_path_BZIP2
7223 if test -n "$BZIP2"; then
7224   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7225 echo "${ECHO_T}$BZIP2" >&6; }
7226 else
7227   { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7229 fi
7230
7231
7232 # Extract the first word of "cat", so it can be a program name with args.
7233 set dummy cat; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_CAT+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   case $CAT in
7240   [\\/]* | ?:[\\/]*)
7241   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7242   ;;
7243   *)
7244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249   for ac_exec_ext in '' $ac_executable_extensions; do
7250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253     break 2
7254   fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259   ;;
7260 esac
7261 fi
7262 CAT=$ac_cv_path_CAT
7263 if test -n "$CAT"; then
7264   { echo "$as_me:$LINENO: result: $CAT" >&5
7265 echo "${ECHO_T}$CAT" >&6; }
7266 else
7267   { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7269 fi
7270
7271
7272 # Extract the first word of "doxygen", so it can be a program name with args.
7273 set dummy doxygen; ac_word=$2
7274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   case $DOXYGEN in
7280   [\\/]* | ?:[\\/]*)
7281   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7282   ;;
7283   *)
7284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287   IFS=$as_save_IFS
7288   test -z "$as_dir" && as_dir=.
7289   for ac_exec_ext in '' $ac_executable_extensions; do
7290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7291     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293     break 2
7294   fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298
7299   ;;
7300 esac
7301 fi
7302 DOXYGEN=$ac_cv_path_DOXYGEN
7303 if test -n "$DOXYGEN"; then
7304   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7305 echo "${ECHO_T}$DOXYGEN" >&6; }
7306 else
7307   { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7309 fi
7310
7311
7312 # Extract the first word of "groff", so it can be a program name with args.
7313 set dummy groff; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_GROFF+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   case $GROFF in
7320   [\\/]* | ?:[\\/]*)
7321   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7322   ;;
7323   *)
7324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329   for ac_exec_ext in '' $ac_executable_extensions; do
7330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339   ;;
7340 esac
7341 fi
7342 GROFF=$ac_cv_path_GROFF
7343 if test -n "$GROFF"; then
7344   { echo "$as_me:$LINENO: result: $GROFF" >&5
7345 echo "${ECHO_T}$GROFF" >&6; }
7346 else
7347   { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7349 fi
7350
7351
7352 # Extract the first word of "gzip", so it can be a program name with args.
7353 set dummy gzip; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   case $GZIPBIN in
7360   [\\/]* | ?:[\\/]*)
7361   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7362   ;;
7363   *)
7364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369   for ac_exec_ext in '' $ac_executable_extensions; do
7370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379   ;;
7380 esac
7381 fi
7382 GZIPBIN=$ac_cv_path_GZIPBIN
7383 if test -n "$GZIPBIN"; then
7384   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7385 echo "${ECHO_T}$GZIPBIN" >&6; }
7386 else
7387   { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7389 fi
7390
7391
7392 # Extract the first word of "pod2html", so it can be a program name with args.
7393 set dummy pod2html; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_POD2HTML+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   case $POD2HTML in
7400   [\\/]* | ?:[\\/]*)
7401   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7402   ;;
7403   *)
7404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409   for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419   ;;
7420 esac
7421 fi
7422 POD2HTML=$ac_cv_path_POD2HTML
7423 if test -n "$POD2HTML"; then
7424   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7425 echo "${ECHO_T}$POD2HTML" >&6; }
7426 else
7427   { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7429 fi
7430
7431
7432 # Extract the first word of "pod2man", so it can be a program name with args.
7433 set dummy pod2man; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_POD2MAN+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   case $POD2MAN in
7440   [\\/]* | ?:[\\/]*)
7441   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7442   ;;
7443   *)
7444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449   for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459   ;;
7460 esac
7461 fi
7462 POD2MAN=$ac_cv_path_POD2MAN
7463 if test -n "$POD2MAN"; then
7464   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7465 echo "${ECHO_T}$POD2MAN" >&6; }
7466 else
7467   { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7469 fi
7470
7471
7472 # Extract the first word of "pdfroff", so it can be a program name with args.
7473 set dummy pdfroff; ac_word=$2
7474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7476 if test "${ac_cv_path_PDFROFF+set}" = set; then
7477   echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479   case $PDFROFF in
7480   [\\/]* | ?:[\\/]*)
7481   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7482   ;;
7483   *)
7484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489   for ac_exec_ext in '' $ac_executable_extensions; do
7490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7491     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496 done
7497 IFS=$as_save_IFS
7498
7499   ;;
7500 esac
7501 fi
7502 PDFROFF=$ac_cv_path_PDFROFF
7503 if test -n "$PDFROFF"; then
7504   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7505 echo "${ECHO_T}$PDFROFF" >&6; }
7506 else
7507   { echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6; }
7509 fi
7510
7511
7512 # Extract the first word of "runtest", so it can be a program name with args.
7513 set dummy runtest; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_RUNTEST+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   case $RUNTEST in
7520   [\\/]* | ?:[\\/]*)
7521   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7522   ;;
7523   *)
7524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529   for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539   ;;
7540 esac
7541 fi
7542 RUNTEST=$ac_cv_path_RUNTEST
7543 if test -n "$RUNTEST"; then
7544   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7545 echo "${ECHO_T}$RUNTEST" >&6; }
7546 else
7547   { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7549 fi
7550
7551
7552
7553 no_itcl=true
7554 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7555 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7556
7557 # Check whether --with-tclinclude was given.
7558 if test "${with_tclinclude+set}" = set; then
7559   withval=$with_tclinclude; with_tclinclude=${withval}
7560 else
7561   with_tclinclude=''
7562 fi
7563
7564 if test "${ac_cv_path_tclsh+set}" = set; then
7565   echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567
7568 if test x"${with_tclinclude}" != x ; then
7569   if test -f ${with_tclinclude}/tclsh ; then
7570     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7571   elif test -f ${with_tclinclude}/src/tclsh ; then
7572     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7573   else
7574     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7575 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7576    { (exit 1); exit 1; }; }
7577   fi
7578 fi
7579 fi
7580
7581
7582 if test x"${ac_cv_path_tclsh}" = x ; then
7583   { echo "$as_me:$LINENO: result: none" >&5
7584 echo "${ECHO_T}none" >&6; }
7585   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7586 do
7587   # Extract the first word of "$ac_prog", so it can be a program name with args.
7588 set dummy $ac_prog; ac_word=$2
7589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591 if test "${ac_cv_path_TCLSH+set}" = set; then
7592   echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594   case $TCLSH in
7595   [\\/]* | ?:[\\/]*)
7596   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7597   ;;
7598   *)
7599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602   IFS=$as_save_IFS
7603   test -z "$as_dir" && as_dir=.
7604   for ac_exec_ext in '' $ac_executable_extensions; do
7605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7606     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608     break 2
7609   fi
7610 done
7611 done
7612 IFS=$as_save_IFS
7613
7614   ;;
7615 esac
7616 fi
7617 TCLSH=$ac_cv_path_TCLSH
7618 if test -n "$TCLSH"; then
7619   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7620 echo "${ECHO_T}$TCLSH" >&6; }
7621 else
7622   { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7624 fi
7625
7626
7627   test -n "$TCLSH" && break
7628 done
7629
7630   if test x"${TCLSH}" = x ; then
7631     ac_cv_path_tclsh='';
7632   else
7633     ac_cv_path_tclsh="${TCLSH}";
7634   fi
7635 else
7636   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7637 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7638   TCLSH="${ac_cv_path_tclsh}"
7639
7640 fi
7641
7642 # Extract the first word of "zip", so it can be a program name with args.
7643 set dummy zip; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_ZIP+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649   case $ZIP in
7650   [\\/]* | ?:[\\/]*)
7651   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7652   ;;
7653   *)
7654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669   ;;
7670 esac
7671 fi
7672 ZIP=$ac_cv_path_ZIP
7673 if test -n "$ZIP"; then
7674   { echo "$as_me:$LINENO: result: $ZIP" >&5
7675 echo "${ECHO_T}$ZIP" >&6; }
7676 else
7677   { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7679 fi
7680
7681
7682 for ac_prog in ocamlc
7683 do
7684   # Extract the first word of "$ac_prog", so it can be a program name with args.
7685 set dummy $ac_prog; ac_word=$2
7686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688 if test "${ac_cv_path_OCAMLC+set}" = set; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691   case $OCAMLC in
7692   [\\/]* | ?:[\\/]*)
7693   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7694   ;;
7695   *)
7696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699   IFS=$as_save_IFS
7700   test -z "$as_dir" && as_dir=.
7701   for ac_exec_ext in '' $ac_executable_extensions; do
7702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7703     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705     break 2
7706   fi
7707 done
7708 done
7709 IFS=$as_save_IFS
7710
7711   ;;
7712 esac
7713 fi
7714 OCAMLC=$ac_cv_path_OCAMLC
7715 if test -n "$OCAMLC"; then
7716   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7717 echo "${ECHO_T}$OCAMLC" >&6; }
7718 else
7719   { echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6; }
7721 fi
7722
7723
7724   test -n "$OCAMLC" && break
7725 done
7726
7727 for ac_prog in ocamlopt
7728 do
7729   # Extract the first word of "$ac_prog", so it can be a program name with args.
7730 set dummy $ac_prog; ac_word=$2
7731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736   case $OCAMLOPT in
7737   [\\/]* | ?:[\\/]*)
7738   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7739   ;;
7740   *)
7741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744   IFS=$as_save_IFS
7745   test -z "$as_dir" && as_dir=.
7746   for ac_exec_ext in '' $ac_executable_extensions; do
7747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7748     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750     break 2
7751   fi
7752 done
7753 done
7754 IFS=$as_save_IFS
7755
7756   ;;
7757 esac
7758 fi
7759 OCAMLOPT=$ac_cv_path_OCAMLOPT
7760 if test -n "$OCAMLOPT"; then
7761   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7762 echo "${ECHO_T}$OCAMLOPT" >&6; }
7763 else
7764   { echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6; }
7766 fi
7767
7768
7769   test -n "$OCAMLOPT" && break
7770 done
7771
7772 for ac_prog in ocamldep
7773 do
7774   # Extract the first word of "$ac_prog", so it can be a program name with args.
7775 set dummy $ac_prog; ac_word=$2
7776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7778 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781   case $OCAMLDEP in
7782   [\\/]* | ?:[\\/]*)
7783   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7784   ;;
7785   *)
7786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789   IFS=$as_save_IFS
7790   test -z "$as_dir" && as_dir=.
7791   for ac_exec_ext in '' $ac_executable_extensions; do
7792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7793     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798 done
7799 IFS=$as_save_IFS
7800
7801   ;;
7802 esac
7803 fi
7804 OCAMLDEP=$ac_cv_path_OCAMLDEP
7805 if test -n "$OCAMLDEP"; then
7806   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7807 echo "${ECHO_T}$OCAMLDEP" >&6; }
7808 else
7809   { echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6; }
7811 fi
7812
7813
7814   test -n "$OCAMLDEP" && break
7815 done
7816
7817 for ac_prog in ocamldoc
7818 do
7819   # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7823 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   case $OCAMLDOC in
7827   [\\/]* | ?:[\\/]*)
7828   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7829   ;;
7830   *)
7831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 for as_dir in $PATH
7833 do
7834   IFS=$as_save_IFS
7835   test -z "$as_dir" && as_dir=.
7836   for ac_exec_ext in '' $ac_executable_extensions; do
7837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7838     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840     break 2
7841   fi
7842 done
7843 done
7844 IFS=$as_save_IFS
7845
7846   ;;
7847 esac
7848 fi
7849 OCAMLDOC=$ac_cv_path_OCAMLDOC
7850 if test -n "$OCAMLDOC"; then
7851   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7852 echo "${ECHO_T}$OCAMLDOC" >&6; }
7853 else
7854   { echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6; }
7856 fi
7857
7858
7859   test -n "$OCAMLDOC" && break
7860 done
7861
7862 for ac_prog in gas as
7863 do
7864   # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy $ac_prog; ac_word=$2
7866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7868 if test "${ac_cv_path_GAS+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871   case $GAS in
7872   [\\/]* | ?:[\\/]*)
7873   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7874   ;;
7875   *)
7876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879   IFS=$as_save_IFS
7880   test -z "$as_dir" && as_dir=.
7881   for ac_exec_ext in '' $ac_executable_extensions; do
7882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7883     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885     break 2
7886   fi
7887 done
7888 done
7889 IFS=$as_save_IFS
7890
7891   ;;
7892 esac
7893 fi
7894 GAS=$ac_cv_path_GAS
7895 if test -n "$GAS"; then
7896   { echo "$as_me:$LINENO: result: $GAS" >&5
7897 echo "${ECHO_T}$GAS" >&6; }
7898 else
7899   { echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6; }
7901 fi
7902
7903
7904   test -n "$GAS" && break
7905 done
7906
7907
7908 { echo "$as_me:$LINENO: checking for linker version" >&5
7909 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7910 if test "${llvm_cv_link_version+set}" = set; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913
7914    version_string="$(ld -v 2>&1 | head -1)"
7915
7916    # Check for ld64.
7917    if (echo "$version_string" | grep -q "ld64"); then
7918      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7919    else
7920      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7921    fi
7922
7923 fi
7924 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7925 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7926
7927 cat >>confdefs.h <<_ACEOF
7928 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7929 _ACEOF
7930
7931
7932
7933 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7934 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7935 if test "${llvm_cv_link_use_r+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938    ac_ext=c
7939 ac_cpp='$CPP $CPPFLAGS'
7940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943
7944   oldcflags="$CFLAGS"
7945   CFLAGS="$CFLAGS -Wl,-R."
7946   cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952
7953 int
7954 main ()
7955 {
7956
7957   ;
7958   return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7963 case "(($ac_try" in
7964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965   *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968   (eval "$ac_link") 2>conftest.er1
7969   ac_status=$?
7970   grep -v '^ *+' conftest.er1 >conftest.err
7971   rm -f conftest.er1
7972   cat conftest.err >&5
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } &&
7975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976   { (case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_try") 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest$ac_exeext'
7986   { (case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991   (eval "$ac_try") 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; }; then
7995   llvm_cv_link_use_r=yes
7996 else
7997   echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000         llvm_cv_link_use_r=no
8001 fi
8002
8003 rm -f core conftest.err conftest.$ac_objext \
8004       conftest$ac_exeext conftest.$ac_ext
8005   CFLAGS="$oldcflags"
8006   ac_ext=c
8007 ac_cpp='$CPP $CPPFLAGS'
8008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8011
8012
8013 fi
8014 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8015 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8016 if test "$llvm_cv_link_use_r" = yes ; then
8017
8018 cat >>confdefs.h <<\_ACEOF
8019 #define HAVE_LINK_R 1
8020 _ACEOF
8021
8022   fi
8023
8024
8025 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8026 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8027 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8028   echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030    ac_ext=c
8031 ac_cpp='$CPP $CPPFLAGS'
8032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035
8036   oldcflags="$CFLAGS"
8037   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8038   cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h.  */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h.  */
8044
8045 int
8046 main ()
8047 {
8048
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 rm -f conftest.$ac_objext conftest$ac_exeext
8054 if { (ac_try="$ac_link"
8055 case "(($ac_try" in
8056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057   *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060   (eval "$ac_link") 2>conftest.er1
8061   ac_status=$?
8062   grep -v '^ *+' conftest.er1 >conftest.err
8063   rm -f conftest.er1
8064   cat conftest.err >&5
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); } &&
8067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8068   { (case "(($ac_try" in
8069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070   *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073   (eval "$ac_try") 2>&5
8074   ac_status=$?
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); }; } &&
8077          { ac_try='test -s conftest$ac_exeext'
8078   { (case "(($ac_try" in
8079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080   *) ac_try_echo=$ac_try;;
8081 esac
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083   (eval "$ac_try") 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; }; then
8087   llvm_cv_link_use_export_dynamic=yes
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092         llvm_cv_link_use_export_dynamic=no
8093 fi
8094
8095 rm -f core conftest.err conftest.$ac_objext \
8096       conftest$ac_exeext conftest.$ac_ext
8097   CFLAGS="$oldcflags"
8098   ac_ext=c
8099 ac_cpp='$CPP $CPPFLAGS'
8100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8103
8104
8105 fi
8106 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8107 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8108 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8109
8110 cat >>confdefs.h <<\_ACEOF
8111 #define HAVE_LINK_EXPORT_DYNAMIC 1
8112 _ACEOF
8113
8114   fi
8115
8116
8117 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8118 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8119 if test "${llvm_cv_link_use_version_script+set}" = set; then
8120   echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122    ac_ext=c
8123 ac_cpp='$CPP $CPPFLAGS'
8124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127
8128   oldcflags="$CFLAGS"
8129
8130   # The following code is from the autoconf manual,
8131   # "11.13: Limitations of Usual Tools".
8132   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8133   # Use mktemp if possible; otherwise fall back on mkdir,
8134   # with $RANDOM to make collisions less likely.
8135   : ${TMPDIR=/tmp}
8136   {
8137     tmp=`
8138       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8139     ` &&
8140     test -n "$tmp" && test -d "$tmp"
8141   } || {
8142     tmp=$TMPDIR/foo$$-$RANDOM
8143     (umask 077 && mkdir "$tmp")
8144   } || exit $?
8145
8146   echo "{" > "$tmp/export.map"
8147   echo "  global: main;" >> "$tmp/export.map"
8148   echo "  local: *;" >> "$tmp/export.map"
8149   echo "};" >> "$tmp/export.map"
8150
8151   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8152   cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158
8159 int
8160 main ()
8161 {
8162
8163   ;
8164   return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8169 case "(($ac_try" in
8170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171   *) ac_try_echo=$ac_try;;
8172 esac
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174   (eval "$ac_link") 2>conftest.er1
8175   ac_status=$?
8176   grep -v '^ *+' conftest.er1 >conftest.err
8177   rm -f conftest.er1
8178   cat conftest.err >&5
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } &&
8181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8182   { (case "(($ac_try" in
8183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184   *) ac_try_echo=$ac_try;;
8185 esac
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187   (eval "$ac_try") 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; } &&
8191          { ac_try='test -s conftest$ac_exeext'
8192   { (case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197   (eval "$ac_try") 2>&5
8198   ac_status=$?
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); }; }; then
8201   llvm_cv_link_use_version_script=yes
8202 else
8203   echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206         llvm_cv_link_use_version_script=no
8207 fi
8208
8209 rm -f core conftest.err conftest.$ac_objext \
8210       conftest$ac_exeext conftest.$ac_ext
8211   rm "$tmp/export.map"
8212   rmdir "$tmp"
8213   CFLAGS="$oldcflags"
8214   ac_ext=c
8215 ac_cpp='$CPP $CPPFLAGS'
8216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8219
8220
8221 fi
8222 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8223 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8224 if test "$llvm_cv_link_use_version_script" = yes ; then
8225   HAVE_LINK_VERSION_SCRIPT=1
8226
8227   fi
8228
8229
8230
8231
8232 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8233 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8234 if test "${ac_cv_c_const+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243
8244 int
8245 main ()
8246 {
8247 /* FIXME: Include the comments suggested by Paul. */
8248 #ifndef __cplusplus
8249   /* Ultrix mips cc rejects this.  */
8250   typedef int charset[2];
8251   const charset x;
8252   /* SunOS 4.1.1 cc rejects this.  */
8253   char const *const *ccp;
8254   char **p;
8255   /* NEC SVR4.0.2 mips cc rejects this.  */
8256   struct point {int x, y;};
8257   static struct point const zero = {0,0};
8258   /* AIX XL C 1.02.0.0 rejects this.
8259      It does not let you subtract one const X* pointer from another in
8260      an arm of an if-expression whose if-part is not a constant
8261      expression */
8262   const char *g = "string";
8263   ccp = &g + (g ? g-g : 0);
8264   /* HPUX 7.0 cc rejects these. */
8265   ++ccp;
8266   p = (char**) ccp;
8267   ccp = (char const *const *) p;
8268   { /* SCO 3.2v4 cc rejects this.  */
8269     char *t;
8270     char const *s = 0 ? (char *) 0 : (char const *) 0;
8271
8272     *t++ = 0;
8273     if (s) return 0;
8274   }
8275   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8276     int x[] = {25, 17};
8277     const int *foo = &x[0];
8278     ++foo;
8279   }
8280   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8281     typedef const int *iptr;
8282     iptr p = 0;
8283     ++p;
8284   }
8285   { /* AIX XL C 1.02.0.0 rejects this saying
8286        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8287     struct s { int j; const int *ap[3]; };
8288     struct s *b; b->j = 5;
8289   }
8290   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8291     const int foo = 10;
8292     if (!foo) return 0;
8293   }
8294   return !x[0] && !zero.x;
8295 #endif
8296
8297   ;
8298   return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8303 case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_compile") 2>conftest.er1
8309   ac_status=$?
8310   grep -v '^ *+' conftest.er1 >conftest.err
8311   rm -f conftest.er1
8312   cat conftest.err >&5
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); } &&
8315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8316   { (case "(($ac_try" in
8317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318   *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321   (eval "$ac_try") 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); }; } &&
8325          { ac_try='test -s conftest.$ac_objext'
8326   { (case "(($ac_try" in
8327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328   *) ac_try_echo=$ac_try;;
8329 esac
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331   (eval "$ac_try") 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); }; }; then
8335   ac_cv_c_const=yes
8336 else
8337   echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340         ac_cv_c_const=no
8341 fi
8342
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 fi
8345 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8346 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8347 if test $ac_cv_c_const = no; then
8348
8349 cat >>confdefs.h <<\_ACEOF
8350 #define const
8351 _ACEOF
8352
8353 fi
8354
8355
8356
8357
8358
8359
8360 ac_header_dirent=no
8361 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8362   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8363 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8364 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8366   echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368   cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h.  */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h.  */
8374 #include <sys/types.h>
8375 #include <$ac_hdr>
8376
8377 int
8378 main ()
8379 {
8380 if ((DIR *) 0)
8381 return 0;
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext
8387 if { (ac_try="$ac_compile"
8388 case "(($ac_try" in
8389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390   *) ac_try_echo=$ac_try;;
8391 esac
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393   (eval "$ac_compile") 2>conftest.er1
8394   ac_status=$?
8395   grep -v '^ *+' conftest.er1 >conftest.err
8396   rm -f conftest.er1
8397   cat conftest.err >&5
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } &&
8400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401   { (case "(($ac_try" in
8402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403   *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406   (eval "$ac_try") 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; } &&
8410          { ac_try='test -s conftest.$ac_objext'
8411   { (case "(($ac_try" in
8412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413   *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416   (eval "$ac_try") 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; }; then
8420   eval "$as_ac_Header=yes"
8421 else
8422   echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8424
8425         eval "$as_ac_Header=no"
8426 fi
8427
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 fi
8430 ac_res=`eval echo '${'$as_ac_Header'}'`
8431                { echo "$as_me:$LINENO: result: $ac_res" >&5
8432 echo "${ECHO_T}$ac_res" >&6; }
8433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8434   cat >>confdefs.h <<_ACEOF
8435 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8436 _ACEOF
8437
8438 ac_header_dirent=$ac_hdr; break
8439 fi
8440
8441 done
8442 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8443 if test $ac_header_dirent = dirent.h; then
8444   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8445 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8446 if test "${ac_cv_search_opendir+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   ac_func_search_save_LIBS=$LIBS
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456
8457 /* Override any GCC internal prototype to avoid an error.
8458    Use char because int might match the return type of a GCC
8459    builtin and then its argument prototype would still apply.  */
8460 #ifdef __cplusplus
8461 extern "C"
8462 #endif
8463 char opendir ();
8464 int
8465 main ()
8466 {
8467 return opendir ();
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 for ac_lib in '' dir; do
8473   if test -z "$ac_lib"; then
8474     ac_res="none required"
8475   else
8476     ac_res=-l$ac_lib
8477     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8478   fi
8479   rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (ac_try="$ac_link"
8481 case "(($ac_try" in
8482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483   *) ac_try_echo=$ac_try;;
8484 esac
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486   (eval "$ac_link") 2>conftest.er1
8487   ac_status=$?
8488   grep -v '^ *+' conftest.er1 >conftest.err
8489   rm -f conftest.er1
8490   cat conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); } &&
8493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8494   { (case "(($ac_try" in
8495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496   *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499   (eval "$ac_try") 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; } &&
8503          { ac_try='test -s conftest$ac_exeext'
8504   { (case "(($ac_try" in
8505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506   *) ac_try_echo=$ac_try;;
8507 esac
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509   (eval "$ac_try") 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; }; then
8513   ac_cv_search_opendir=$ac_res
8514 else
8515   echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518
8519 fi
8520
8521 rm -f core conftest.err conftest.$ac_objext \
8522       conftest$ac_exeext
8523   if test "${ac_cv_search_opendir+set}" = set; then
8524   break
8525 fi
8526 done
8527 if test "${ac_cv_search_opendir+set}" = set; then
8528   :
8529 else
8530   ac_cv_search_opendir=no
8531 fi
8532 rm conftest.$ac_ext
8533 LIBS=$ac_func_search_save_LIBS
8534 fi
8535 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8536 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8537 ac_res=$ac_cv_search_opendir
8538 if test "$ac_res" != no; then
8539   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8540
8541 fi
8542
8543 else
8544   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8545 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8546 if test "${ac_cv_search_opendir+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   ac_func_search_save_LIBS=$LIBS
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h.  */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h.  */
8556
8557 /* Override any GCC internal prototype to avoid an error.
8558    Use char because int might match the return type of a GCC
8559    builtin and then its argument prototype would still apply.  */
8560 #ifdef __cplusplus
8561 extern "C"
8562 #endif
8563 char opendir ();
8564 int
8565 main ()
8566 {
8567 return opendir ();
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 for ac_lib in '' x; do
8573   if test -z "$ac_lib"; then
8574     ac_res="none required"
8575   else
8576     ac_res=-l$ac_lib
8577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8578   fi
8579   rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (ac_try="$ac_link"
8581 case "(($ac_try" in
8582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583   *) ac_try_echo=$ac_try;;
8584 esac
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586   (eval "$ac_link") 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8594   { (case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599   (eval "$ac_try") 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); }; } &&
8603          { ac_try='test -s conftest$ac_exeext'
8604   { (case "(($ac_try" in
8605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606   *) ac_try_echo=$ac_try;;
8607 esac
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609   (eval "$ac_try") 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); }; }; then
8613   ac_cv_search_opendir=$ac_res
8614 else
8615   echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618
8619 fi
8620
8621 rm -f core conftest.err conftest.$ac_objext \
8622       conftest$ac_exeext
8623   if test "${ac_cv_search_opendir+set}" = set; then
8624   break
8625 fi
8626 done
8627 if test "${ac_cv_search_opendir+set}" = set; then
8628   :
8629 else
8630   ac_cv_search_opendir=no
8631 fi
8632 rm conftest.$ac_ext
8633 LIBS=$ac_func_search_save_LIBS
8634 fi
8635 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8636 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8637 ac_res=$ac_cv_search_opendir
8638 if test "$ac_res" != no; then
8639   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8640
8641 fi
8642
8643 fi
8644
8645
8646 for ac_header in dlfcn.h
8647 do
8648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8650   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8653   echo $ECHO_N "(cached) $ECHO_C" >&6
8654 fi
8655 ac_res=`eval echo '${'$as_ac_Header'}'`
8656                { echo "$as_me:$LINENO: result: $ac_res" >&5
8657 echo "${ECHO_T}$ac_res" >&6; }
8658 else
8659   # Is the header compilable?
8660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668 $ac_includes_default
8669 #include <$ac_header>
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8673 case "(($ac_try" in
8674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675   *) ac_try_echo=$ac_try;;
8676 esac
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678   (eval "$ac_compile") 2>conftest.er1
8679   ac_status=$?
8680   grep -v '^ *+' conftest.er1 >conftest.err
8681   rm -f conftest.er1
8682   cat conftest.err >&5
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); } &&
8685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686   { (case "(($ac_try" in
8687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688   *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691   (eval "$ac_try") 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; } &&
8695          { ac_try='test -s conftest.$ac_objext'
8696   { (case "(($ac_try" in
8697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698   *) ac_try_echo=$ac_try;;
8699 esac
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701   (eval "$ac_try") 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; }; then
8705   ac_header_compiler=yes
8706 else
8707   echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710         ac_header_compiler=no
8711 fi
8712
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8715 echo "${ECHO_T}$ac_header_compiler" >&6; }
8716
8717 # Is the header present?
8718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8720 cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h.  */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h.  */
8726 #include <$ac_header>
8727 _ACEOF
8728 if { (ac_try="$ac_cpp conftest.$ac_ext"
8729 case "(($ac_try" in
8730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731   *) ac_try_echo=$ac_try;;
8732 esac
8733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8735   ac_status=$?
8736   grep -v '^ *+' conftest.er1 >conftest.err
8737   rm -f conftest.er1
8738   cat conftest.err >&5
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); } >/dev/null; then
8741   if test -s conftest.err; then
8742     ac_cpp_err=$ac_c_preproc_warn_flag
8743     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8744   else
8745     ac_cpp_err=
8746   fi
8747 else
8748   ac_cpp_err=yes
8749 fi
8750 if test -z "$ac_cpp_err"; then
8751   ac_header_preproc=yes
8752 else
8753   echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756   ac_header_preproc=no
8757 fi
8758
8759 rm -f conftest.err conftest.$ac_ext
8760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8761 echo "${ECHO_T}$ac_header_preproc" >&6; }
8762
8763 # So?  What about this header?
8764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8765   yes:no: )
8766     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8770     ac_header_preproc=yes
8771     ;;
8772   no:yes:* )
8773     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8775     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8776 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8777     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8779     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8780 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8783     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8785     ( cat <<\_ASBOX
8786 ## ----------------------------------- ##
8787 ## Report this to llvmbugs@cs.uiuc.edu ##
8788 ## ----------------------------------- ##
8789 _ASBOX
8790      ) | sed "s/^/$as_me: WARNING:     /" >&2
8791     ;;
8792 esac
8793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798   eval "$as_ac_Header=\$ac_header_preproc"
8799 fi
8800 ac_res=`eval echo '${'$as_ac_Header'}'`
8801                { echo "$as_me:$LINENO: result: $ac_res" >&5
8802 echo "${ECHO_T}$ac_res" >&6; }
8803
8804 fi
8805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8806   cat >>confdefs.h <<_ACEOF
8807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8808 _ACEOF
8809
8810 fi
8811
8812 done
8813
8814 # Check whether --enable-ltdl-install was given.
8815 if test "${enable_ltdl_install+set}" = set; then
8816   enableval=$enable_ltdl_install;
8817 fi
8818
8819
8820
8821
8822 if test x"${enable_ltdl_install-no}" != xno; then
8823   INSTALL_LTDL_TRUE=
8824   INSTALL_LTDL_FALSE='#'
8825 else
8826   INSTALL_LTDL_TRUE='#'
8827   INSTALL_LTDL_FALSE=
8828 fi
8829
8830
8831
8832 if test x"${enable_ltdl_convenience-no}" != xno; then
8833   CONVENIENCE_LTDL_TRUE=
8834   CONVENIENCE_LTDL_FALSE='#'
8835 else
8836   CONVENIENCE_LTDL_TRUE='#'
8837   CONVENIENCE_LTDL_FALSE=
8838 fi
8839
8840
8841 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8843 library_names_spec=
8844 libname_spec='lib$name'
8845 soname_spec=
8846 shrext_cmds=".so"
8847 postinstall_cmds=
8848 postuninstall_cmds=
8849 finish_cmds=
8850 finish_eval=
8851 shlibpath_var=
8852 shlibpath_overrides_runpath=unknown
8853 version_type=none
8854 dynamic_linker="$host_os ld.so"
8855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8856 if test "$GCC" = yes; then
8857   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8858   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8859     # if the path contains ";" then we assume it to be the separator
8860     # otherwise default to the standard path separator (i.e. ":") - it is
8861     # assumed that no part of a normal pathname contains ";" but that should
8862     # okay in the real world where ";" in dirpaths is itself problematic.
8863     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8864   else
8865     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8866   fi
8867 else
8868   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8869 fi
8870 need_lib_prefix=unknown
8871 hardcode_into_libs=no
8872
8873 # when you set need_version to no, make sure it does not cause -set_version
8874 # flags to be left without arguments
8875 need_version=unknown
8876
8877 case $host_os in
8878 aix3*)
8879   version_type=linux
8880   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8881   shlibpath_var=LIBPATH
8882
8883   # AIX 3 has no versioning support, so we append a major version to the name.
8884   soname_spec='${libname}${release}${shared_ext}$major'
8885   ;;
8886
8887 aix4* | aix5*)
8888   version_type=linux
8889   need_lib_prefix=no
8890   need_version=no
8891   hardcode_into_libs=yes
8892   if test "$host_cpu" = ia64; then
8893     # AIX 5 supports IA64
8894     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8895     shlibpath_var=LD_LIBRARY_PATH
8896   else
8897     # With GCC up to 2.95.x, collect2 would create an import file
8898     # for dependence libraries.  The import file would start with
8899     # the line `#! .'.  This would cause the generated library to
8900     # depend on `.', always an invalid library.  This was fixed in
8901     # development snapshots of GCC prior to 3.0.
8902     case $host_os in
8903       aix4 | aix4.[01] | aix4.[01].*)
8904       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8905            echo ' yes '
8906            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8907         :
8908       else
8909         can_build_shared=no
8910       fi
8911       ;;
8912     esac
8913     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8914     # soname into executable. Probably we can add versioning support to
8915     # collect2, so additional links can be useful in future.
8916     if test "$aix_use_runtimelinking" = yes; then
8917       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8918       # instead of lib<name>.a to let people know that these are not
8919       # typical AIX shared libraries.
8920       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921     else
8922       # We preserve .a as extension for shared libraries through AIX4.2
8923       # and later when we are not doing run time linking.
8924       library_names_spec='${libname}${release}.a $libname.a'
8925       soname_spec='${libname}${release}${shared_ext}$major'
8926     fi
8927     shlibpath_var=LIBPATH
8928   fi
8929   ;;
8930
8931 amigaos*)
8932   library_names_spec='$libname.ixlibrary $libname.a'
8933   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8934   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'
8935   ;;
8936
8937 beos*)
8938   library_names_spec='${libname}${shared_ext}'
8939   dynamic_linker="$host_os ld.so"
8940   shlibpath_var=LIBRARY_PATH
8941   ;;
8942
8943 bsdi[45]*)
8944   version_type=linux
8945   need_version=no
8946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947   soname_spec='${libname}${release}${shared_ext}$major'
8948   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8949   shlibpath_var=LD_LIBRARY_PATH
8950   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8951   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8952   # the default ld.so.conf also contains /usr/contrib/lib and
8953   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8954   # libtool to hard-code these into programs
8955   ;;
8956
8957 cygwin* | mingw* | pw32*)
8958   version_type=windows
8959   shrext_cmds=".dll"
8960   need_version=no
8961   need_lib_prefix=no
8962
8963   case $GCC,$host_os in
8964   yes,cygwin* | yes,mingw* | yes,pw32*)
8965     library_names_spec='$libname.dll.a'
8966     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8967     postinstall_cmds='base_file=`basename \${file}`~
8968       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8969       dldir=$destdir/`dirname \$dlpath`~
8970       test -d \$dldir || mkdir -p \$dldir~
8971       $install_prog $dir/$dlname \$dldir/$dlname~
8972       chmod a+x \$dldir/$dlname'
8973     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8974       dlpath=$dir/\$dldll~
8975        $rm \$dlpath'
8976     shlibpath_overrides_runpath=yes
8977
8978     case $host_os in
8979     cygwin*)
8980       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8981       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8982       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8983       ;;
8984     mingw*)
8985       # MinGW DLLs use traditional 'lib' prefix
8986       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8987       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8988       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8989         # It is most probably a Windows format PATH printed by
8990         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8991         # path with ; separators, and with drive letters. We can handle the
8992         # drive letters (cygwin fileutils understands them), so leave them,
8993         # especially as we might pass files found there to a mingw objdump,
8994         # which wouldn't understand a cygwinified path. Ahh.
8995         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8996       else
8997         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8998       fi
8999       ;;
9000     pw32*)
9001       # pw32 DLLs use 'pw' prefix rather than 'lib'
9002       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9003       ;;
9004     esac
9005     ;;
9006
9007   *)
9008     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9009     ;;
9010   esac
9011   dynamic_linker='Win32 ld.exe'
9012   # FIXME: first we should search . and the directory the executable is in
9013   shlibpath_var=PATH
9014   ;;
9015
9016 darwin* | rhapsody*)
9017   dynamic_linker="$host_os dyld"
9018   version_type=darwin
9019   need_lib_prefix=no
9020   need_version=no
9021   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9022   soname_spec='${libname}${release}${major}$shared_ext'
9023   shlibpath_overrides_runpath=yes
9024   shlibpath_var=DYLD_LIBRARY_PATH
9025   shrext_cmds='.dylib'
9026   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9027   if test "$GCC" = yes; then
9028     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"`
9029   else
9030     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9031   fi
9032   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9033   ;;
9034
9035 dgux*)
9036   version_type=linux
9037   need_lib_prefix=no
9038   need_version=no
9039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9040   soname_spec='${libname}${release}${shared_ext}$major'
9041   shlibpath_var=LD_LIBRARY_PATH
9042   ;;
9043
9044 freebsd1*)
9045   dynamic_linker=no
9046   ;;
9047
9048 kfreebsd*-gnu)
9049   version_type=linux
9050   need_lib_prefix=no
9051   need_version=no
9052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9053   soname_spec='${libname}${release}${shared_ext}$major'
9054   shlibpath_var=LD_LIBRARY_PATH
9055   shlibpath_overrides_runpath=no
9056   hardcode_into_libs=yes
9057   dynamic_linker='GNU ld.so'
9058   ;;
9059
9060 freebsd* | dragonfly*)
9061   # DragonFly does not have aout.  When/if they implement a new
9062   # versioning mechanism, adjust this.
9063   if test -x /usr/bin/objformat; then
9064     objformat=`/usr/bin/objformat`
9065   else
9066     case $host_os in
9067     freebsd[123]*) objformat=aout ;;
9068     *) objformat=elf ;;
9069     esac
9070   fi
9071   version_type=freebsd-$objformat
9072   case $version_type in
9073     freebsd-elf*)
9074       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9075       need_version=no
9076       need_lib_prefix=no
9077       ;;
9078     freebsd-*)
9079       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9080       need_version=yes
9081       ;;
9082   esac
9083   shlibpath_var=LD_LIBRARY_PATH
9084   case $host_os in
9085   freebsd2*)
9086     shlibpath_overrides_runpath=yes
9087     ;;
9088   freebsd3.[01]* | freebsdelf3.[01]*)
9089     shlibpath_overrides_runpath=yes
9090     hardcode_into_libs=yes
9091     ;;
9092   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9093   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9094     shlibpath_overrides_runpath=no
9095     hardcode_into_libs=yes
9096     ;;
9097   freebsd*) # from 4.6 on
9098     shlibpath_overrides_runpath=yes
9099     hardcode_into_libs=yes
9100     ;;
9101   esac
9102   ;;
9103
9104 gnu*)
9105   version_type=linux
9106   need_lib_prefix=no
9107   need_version=no
9108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9109   soname_spec='${libname}${release}${shared_ext}$major'
9110   shlibpath_var=LD_LIBRARY_PATH
9111   hardcode_into_libs=yes
9112   ;;
9113
9114 hpux9* | hpux10* | hpux11*)
9115   # Give a soname corresponding to the major version so that dld.sl refuses to
9116   # link against other versions.
9117   version_type=sunos
9118   need_lib_prefix=no
9119   need_version=no
9120   case $host_cpu in
9121   ia64*)
9122     shrext_cmds='.so'
9123     hardcode_into_libs=yes
9124     dynamic_linker="$host_os dld.so"
9125     shlibpath_var=LD_LIBRARY_PATH
9126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128     soname_spec='${libname}${release}${shared_ext}$major'
9129     if test "X$HPUX_IA64_MODE" = X32; then
9130       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9131     else
9132       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9133     fi
9134     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9135     ;;
9136    hppa*64*)
9137      shrext_cmds='.sl'
9138      hardcode_into_libs=yes
9139      dynamic_linker="$host_os dld.sl"
9140      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9141      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9142      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143      soname_spec='${libname}${release}${shared_ext}$major'
9144      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9145      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9146      ;;
9147    *)
9148     shrext_cmds='.sl'
9149     dynamic_linker="$host_os dld.sl"
9150     shlibpath_var=SHLIB_PATH
9151     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153     soname_spec='${libname}${release}${shared_ext}$major'
9154     ;;
9155   esac
9156   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9157   postinstall_cmds='chmod 555 $lib'
9158   ;;
9159
9160 interix3*)
9161   version_type=linux
9162   need_lib_prefix=no
9163   need_version=no
9164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9165   soname_spec='${libname}${release}${shared_ext}$major'
9166   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9167   shlibpath_var=LD_LIBRARY_PATH
9168   shlibpath_overrides_runpath=no
9169   hardcode_into_libs=yes
9170   ;;
9171
9172 irix5* | irix6* | nonstopux*)
9173   case $host_os in
9174     nonstopux*) version_type=nonstopux ;;
9175     *)
9176         if test "$lt_cv_prog_gnu_ld" = yes; then
9177                 version_type=linux
9178         else
9179                 version_type=irix
9180         fi ;;
9181   esac
9182   need_lib_prefix=no
9183   need_version=no
9184   soname_spec='${libname}${release}${shared_ext}$major'
9185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9186   case $host_os in
9187   irix5* | nonstopux*)
9188     libsuff= shlibsuff=
9189     ;;
9190   *)
9191     case $LD in # libtool.m4 will add one of these switches to LD
9192     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9193       libsuff= shlibsuff= libmagic=32-bit;;
9194     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9195       libsuff=32 shlibsuff=N32 libmagic=N32;;
9196     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9197       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9198     *) libsuff= shlibsuff= libmagic=never-match;;
9199     esac
9200     ;;
9201   esac
9202   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9203   shlibpath_overrides_runpath=no
9204   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9205   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9206   hardcode_into_libs=yes
9207   ;;
9208
9209 # No shared lib support for Linux oldld, aout, or coff.
9210 linux*oldld* | linux*aout* | linux*coff*)
9211   dynamic_linker=no
9212   ;;
9213
9214 # This must be Linux ELF.
9215 linux*)
9216   version_type=linux
9217   need_lib_prefix=no
9218   need_version=no
9219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220   soname_spec='${libname}${release}${shared_ext}$major'
9221   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9222   shlibpath_var=LD_LIBRARY_PATH
9223   shlibpath_overrides_runpath=no
9224   # This implies no fast_install, which is unacceptable.
9225   # Some rework will be needed to allow for fast_install
9226   # before this can be enabled.
9227   hardcode_into_libs=yes
9228
9229   # Append ld.so.conf contents to the search path
9230   if test -f /etc/ld.so.conf; then
9231     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' ' '`
9232     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9233   fi
9234
9235   # We used to test for /lib/ld.so.1 and disable shared libraries on
9236   # powerpc, because MkLinux only supported shared libraries with the
9237   # GNU dynamic linker.  Since this was broken with cross compilers,
9238   # most powerpc-linux boxes support dynamic linking these days and
9239   # people can always --disable-shared, the test was removed, and we
9240   # assume the GNU/Linux dynamic linker is in use.
9241   dynamic_linker='GNU/Linux ld.so'
9242   ;;
9243
9244 knetbsd*-gnu)
9245   version_type=linux
9246   need_lib_prefix=no
9247   need_version=no
9248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9249   soname_spec='${libname}${release}${shared_ext}$major'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   shlibpath_overrides_runpath=no
9252   hardcode_into_libs=yes
9253   dynamic_linker='GNU ld.so'
9254   ;;
9255
9256 netbsd*)
9257   version_type=sunos
9258   need_lib_prefix=no
9259   need_version=no
9260   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9262     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9263     dynamic_linker='NetBSD (a.out) ld.so'
9264   else
9265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9266     soname_spec='${libname}${release}${shared_ext}$major'
9267     dynamic_linker='NetBSD ld.elf_so'
9268   fi
9269   shlibpath_var=LD_LIBRARY_PATH
9270   shlibpath_overrides_runpath=yes
9271   hardcode_into_libs=yes
9272   ;;
9273
9274 newsos6)
9275   version_type=linux
9276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277   shlibpath_var=LD_LIBRARY_PATH
9278   shlibpath_overrides_runpath=yes
9279   ;;
9280
9281 nto-qnx*)
9282   version_type=linux
9283   need_lib_prefix=no
9284   need_version=no
9285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286   soname_spec='${libname}${release}${shared_ext}$major'
9287   shlibpath_var=LD_LIBRARY_PATH
9288   shlibpath_overrides_runpath=yes
9289   ;;
9290
9291 openbsd*)
9292   version_type=sunos
9293   sys_lib_dlsearch_path_spec="/usr/lib"
9294   need_lib_prefix=no
9295   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9296   case $host_os in
9297     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9298     *)                         need_version=no  ;;
9299   esac
9300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9302   shlibpath_var=LD_LIBRARY_PATH
9303   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9304     case $host_os in
9305       openbsd2.[89] | openbsd2.[89].*)
9306         shlibpath_overrides_runpath=no
9307         ;;
9308       *)
9309         shlibpath_overrides_runpath=yes
9310         ;;
9311       esac
9312   else
9313     shlibpath_overrides_runpath=yes
9314   fi
9315   ;;
9316
9317 os2*)
9318   libname_spec='$name'
9319   shrext_cmds=".dll"
9320   need_lib_prefix=no
9321   library_names_spec='$libname${shared_ext} $libname.a'
9322   dynamic_linker='OS/2 ld.exe'
9323   shlibpath_var=LIBPATH
9324   ;;
9325
9326 osf3* | osf4* | osf5*)
9327   version_type=osf
9328   need_lib_prefix=no
9329   need_version=no
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332   shlibpath_var=LD_LIBRARY_PATH
9333   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9334   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9335   ;;
9336
9337 solaris*)
9338   version_type=linux
9339   need_lib_prefix=no
9340   need_version=no
9341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342   soname_spec='${libname}${release}${shared_ext}$major'
9343   shlibpath_var=LD_LIBRARY_PATH
9344   shlibpath_overrides_runpath=yes
9345   hardcode_into_libs=yes
9346   # ldd complains unless libraries are executable
9347   postinstall_cmds='chmod +x $lib'
9348   ;;
9349
9350 sunos4*)
9351   version_type=sunos
9352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9353   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9354   shlibpath_var=LD_LIBRARY_PATH
9355   shlibpath_overrides_runpath=yes
9356   if test "$with_gnu_ld" = yes; then
9357     need_lib_prefix=no
9358   fi
9359   need_version=yes
9360   ;;
9361
9362 sysv4 | sysv4.3*)
9363   version_type=linux
9364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365   soname_spec='${libname}${release}${shared_ext}$major'
9366   shlibpath_var=LD_LIBRARY_PATH
9367   case $host_vendor in
9368     sni)
9369       shlibpath_overrides_runpath=no
9370       need_lib_prefix=no
9371       export_dynamic_flag_spec='${wl}-Blargedynsym'
9372       runpath_var=LD_RUN_PATH
9373       ;;
9374     siemens)
9375       need_lib_prefix=no
9376       ;;
9377     motorola)
9378       need_lib_prefix=no
9379       need_version=no
9380       shlibpath_overrides_runpath=no
9381       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9382       ;;
9383   esac
9384   ;;
9385
9386 sysv4*MP*)
9387   if test -d /usr/nec ;then
9388     version_type=linux
9389     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9390     soname_spec='$libname${shared_ext}.$major'
9391     shlibpath_var=LD_LIBRARY_PATH
9392   fi
9393   ;;
9394
9395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9396   version_type=freebsd-elf
9397   need_lib_prefix=no
9398   need_version=no
9399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9400   soname_spec='${libname}${release}${shared_ext}$major'
9401   shlibpath_var=LD_LIBRARY_PATH
9402   hardcode_into_libs=yes
9403   if test "$with_gnu_ld" = yes; then
9404     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9405     shlibpath_overrides_runpath=no
9406   else
9407     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9408     shlibpath_overrides_runpath=yes
9409     case $host_os in
9410       sco3.2v5*)
9411         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9412         ;;
9413     esac
9414   fi
9415   sys_lib_dlsearch_path_spec='/usr/lib'
9416   ;;
9417
9418 uts4*)
9419   version_type=linux
9420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421   soname_spec='${libname}${release}${shared_ext}$major'
9422   shlibpath_var=LD_LIBRARY_PATH
9423   ;;
9424
9425 *)
9426   dynamic_linker=no
9427   ;;
9428 esac
9429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9430 echo "${ECHO_T}$dynamic_linker" >&6; }
9431 test "$dynamic_linker" = no && can_build_shared=no
9432
9433 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9434 if test "$GCC" = yes; then
9435   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9436 fi
9437
9438
9439 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9440 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9441 if test "${libltdl_cv_shlibext+set}" = set; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444
9445 module=yes
9446 eval libltdl_cv_shlibext=$shrext_cmds
9447
9448 fi
9449 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9450 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9451 if test -n "$libltdl_cv_shlibext"; then
9452
9453 cat >>confdefs.h <<_ACEOF
9454 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9455 _ACEOF
9456
9457 fi
9458
9459
9460 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9461 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9462 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465   libltdl_cv_shlibpath_var="$shlibpath_var"
9466 fi
9467 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9468 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9469 if test -n "$libltdl_cv_shlibpath_var"; then
9470
9471 cat >>confdefs.h <<_ACEOF
9472 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9473 _ACEOF
9474
9475 fi
9476
9477
9478 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9479 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9480 if test "${libltdl_cv_sys_search_path+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9484 fi
9485 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9486 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9487 if test -n "$libltdl_cv_sys_search_path"; then
9488   sys_search_path=
9489   for dir in $libltdl_cv_sys_search_path; do
9490     if test -z "$sys_search_path"; then
9491       sys_search_path="$dir"
9492     else
9493       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9494     fi
9495   done
9496
9497 cat >>confdefs.h <<_ACEOF
9498 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9499 _ACEOF
9500
9501 fi
9502
9503 { echo "$as_me:$LINENO: checking for objdir" >&5
9504 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9505 if test "${libltdl_cv_objdir+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   libltdl_cv_objdir="$objdir"
9509   if test -n "$objdir"; then
9510     :
9511   else
9512     rm -f .libs 2>/dev/null
9513     mkdir .libs 2>/dev/null
9514     if test -d .libs; then
9515       libltdl_cv_objdir=.libs
9516     else
9517       # MS-DOS does not allow filenames that begin with a dot.
9518       libltdl_cv_objdir=_libs
9519     fi
9520   rmdir .libs 2>/dev/null
9521   fi
9522
9523 fi
9524 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9525 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9526
9527 cat >>confdefs.h <<_ACEOF
9528 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9529 _ACEOF
9530
9531
9532
9533
9534
9535
9536 # Check for command to grab the raw symbol name followed by C symbol from nm.
9537 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9538 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9539 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542
9543 # These are sane defaults that work on at least a few old systems.
9544 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9545
9546 # Character class describing NM global symbol codes.
9547 symcode='[BCDEGRST]'
9548
9549 # Regexp to match symbols that can be accessed directly from C.
9550 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9551
9552 # Transform an extracted symbol line into a proper C declaration
9553 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9554
9555 # Transform an extracted symbol line into symbol name and symbol address
9556 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'"
9557
9558 # Define system-specific variables.
9559 case $host_os in
9560 aix*)
9561   symcode='[BCDT]'
9562   ;;
9563 cygwin* | mingw* | pw32*)
9564   symcode='[ABCDGISTW]'
9565   ;;
9566 hpux*) # Its linker distinguishes data from code symbols
9567   if test "$host_cpu" = ia64; then
9568     symcode='[ABCDEGRST]'
9569   fi
9570   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9571   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'"
9572   ;;
9573 linux*)
9574   if test "$host_cpu" = ia64; then
9575     symcode='[ABCDGIRSTW]'
9576     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9577     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'"
9578   fi
9579   ;;
9580 irix* | nonstopux*)
9581   symcode='[BCDEGRST]'
9582   ;;
9583 osf*)
9584   symcode='[BCDEGQRST]'
9585   ;;
9586 solaris*)
9587   symcode='[BDRT]'
9588   ;;
9589 sco3.2v5*)
9590   symcode='[DT]'
9591   ;;
9592 sysv4.2uw2*)
9593   symcode='[DT]'
9594   ;;
9595 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9596   symcode='[ABDT]'
9597   ;;
9598 sysv4)
9599   symcode='[DFNSTU]'
9600   ;;
9601 esac
9602
9603 # Handle CRLF in mingw tool chain
9604 opt_cr=
9605 case $build_os in
9606 mingw*)
9607   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9608   ;;
9609 esac
9610
9611 # If we're using GNU nm, then use its standard symbol codes.
9612 case `$NM -V 2>&1` in
9613 *GNU* | *'with BFD'*)
9614   symcode='[ABCDGIRSTW]' ;;
9615 esac
9616
9617 # Try without a prefix undercore, then with it.
9618 for ac_symprfx in "" "_"; do
9619
9620   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9621   symxfrm="\\1 $ac_symprfx\\2 \\2"
9622
9623   # Write the raw and C identifiers.
9624   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9625
9626   # Check to see that the pipe works correctly.
9627   pipe_works=no
9628
9629   rm -f conftest*
9630   cat > conftest.$ac_ext <<EOF
9631 #ifdef __cplusplus
9632 extern "C" {
9633 #endif
9634 char nm_test_var;
9635 void nm_test_func(){}
9636 #ifdef __cplusplus
9637 }
9638 #endif
9639 int main(){nm_test_var='a';nm_test_func();return(0);}
9640 EOF
9641
9642   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643   (eval $ac_compile) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; then
9647     # Now try to grab the symbols.
9648     nlist=conftest.nm
9649     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9650   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } && test -s "$nlist"; then
9654       # Try sorting and uniquifying the output.
9655       if sort "$nlist" | uniq > "$nlist"T; then
9656         mv -f "$nlist"T "$nlist"
9657       else
9658         rm -f "$nlist"T
9659       fi
9660
9661       # Make sure that we snagged all the symbols we need.
9662       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9663         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9664           cat <<EOF > conftest.$ac_ext
9665 #ifdef __cplusplus
9666 extern "C" {
9667 #endif
9668
9669 EOF
9670           # Now generate the symbol file.
9671           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9672
9673           cat <<EOF >> conftest.$ac_ext
9674 #if defined (__STDC__) && __STDC__
9675 # define lt_ptr_t void *
9676 #else
9677 # define lt_ptr_t char *
9678 # define const
9679 #endif
9680
9681 /* The mapping between symbol names and symbols. */
9682 const struct {
9683   const char *name;
9684   lt_ptr_t address;
9685 }
9686 lt_preloaded_symbols[] =
9687 {
9688 EOF
9689           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9690           cat <<\EOF >> conftest.$ac_ext
9691   {0, (lt_ptr_t) 0}
9692 };
9693
9694 #ifdef __cplusplus
9695 }
9696 #endif
9697 EOF
9698           # Now try linking the two files.
9699           mv conftest.$ac_objext conftstm.$ac_objext
9700           lt_save_LIBS="$LIBS"
9701           lt_save_CFLAGS="$CFLAGS"
9702           LIBS="conftstm.$ac_objext"
9703           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9704           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9705   (eval $ac_link) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9709             pipe_works=yes
9710           fi
9711           LIBS="$lt_save_LIBS"
9712           CFLAGS="$lt_save_CFLAGS"
9713         else
9714           echo "cannot find nm_test_func in $nlist" >&5
9715         fi
9716       else
9717         echo "cannot find nm_test_var in $nlist" >&5
9718       fi
9719     else
9720       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9721     fi
9722   else
9723     echo "$progname: failed program was:" >&5
9724     cat conftest.$ac_ext >&5
9725   fi
9726   rm -f conftest* conftst*
9727
9728   # Do not use the global_symbol_pipe unless it works.
9729   if test "$pipe_works" = yes; then
9730     break
9731   else
9732     lt_cv_sys_global_symbol_pipe=
9733   fi
9734 done
9735
9736 fi
9737
9738 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9739   lt_cv_sys_global_symbol_to_cdecl=
9740 fi
9741 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9742   { echo "$as_me:$LINENO: result: failed" >&5
9743 echo "${ECHO_T}failed" >&6; }
9744 else
9745   { echo "$as_me:$LINENO: result: ok" >&5
9746 echo "${ECHO_T}ok" >&6; }
9747 fi
9748
9749
9750 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9751 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9752 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9753   echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9756     libltdl_cv_preloaded_symbols=yes
9757   else
9758     libltdl_cv_preloaded_symbols=no
9759   fi
9760
9761 fi
9762 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9763 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9764 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9765
9766 cat >>confdefs.h <<\_ACEOF
9767 #define HAVE_PRELOADED_SYMBOLS 1
9768 _ACEOF
9769
9770 fi
9771
9772 LIBADD_DL=
9773
9774 ac_ext=c
9775 ac_cpp='$CPP $CPPFLAGS'
9776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9779
9780
9781 { echo "$as_me:$LINENO: checking for shl_load" >&5
9782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9783 if test "${ac_cv_func_shl_load+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9794 #define shl_load innocuous_shl_load
9795
9796 /* System header to define __stub macros and hopefully few prototypes,
9797     which can conflict with char shl_load (); below.
9798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799     <limits.h> exists even on freestanding compilers.  */
9800
9801 #ifdef __STDC__
9802 # include <limits.h>
9803 #else
9804 # include <assert.h>
9805 #endif
9806
9807 #undef shl_load
9808
9809 /* Override any GCC internal prototype to avoid an error.
9810    Use char because int might match the return type of a GCC
9811    builtin and then its argument prototype would still apply.  */
9812 #ifdef __cplusplus
9813 extern "C"
9814 #endif
9815 char shl_load ();
9816 /* The GNU C library defines this for functions which it implements
9817     to always fail with ENOSYS.  Some functions are actually named
9818     something starting with __ and the normal name is an alias.  */
9819 #if defined __stub_shl_load || defined __stub___shl_load
9820 choke me
9821 #endif
9822
9823 int
9824 main ()
9825 {
9826 return shl_load ();
9827   ;
9828   return 0;
9829 }
9830 _ACEOF
9831 rm -f conftest.$ac_objext conftest$ac_exeext
9832 if { (ac_try="$ac_link"
9833 case "(($ac_try" in
9834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835   *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838   (eval "$ac_link") 2>conftest.er1
9839   ac_status=$?
9840   grep -v '^ *+' conftest.er1 >conftest.err
9841   rm -f conftest.er1
9842   cat conftest.err >&5
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); } &&
9845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9846   { (case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_try") 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; } &&
9855          { ac_try='test -s conftest$ac_exeext'
9856   { (case "(($ac_try" in
9857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858   *) ac_try_echo=$ac_try;;
9859 esac
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861   (eval "$ac_try") 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; }; then
9865   ac_cv_func_shl_load=yes
9866 else
9867   echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870         ac_cv_func_shl_load=no
9871 fi
9872
9873 rm -f core conftest.err conftest.$ac_objext \
9874       conftest$ac_exeext conftest.$ac_ext
9875 fi
9876 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9877 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9878 if test $ac_cv_func_shl_load = yes; then
9879
9880 cat >>confdefs.h <<\_ACEOF
9881 #define HAVE_SHL_LOAD 1
9882 _ACEOF
9883
9884 else
9885   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9886 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9887 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890   ac_check_lib_save_LIBS=$LIBS
9891 LIBS="-ldld  $LIBS"
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898
9899 /* Override any GCC internal prototype to avoid an error.
9900    Use char because int might match the return type of a GCC
9901    builtin and then its argument prototype would still apply.  */
9902 #ifdef __cplusplus
9903 extern "C"
9904 #endif
9905 char shl_load ();
9906 int
9907 main ()
9908 {
9909 return shl_load ();
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (ac_try="$ac_link"
9916 case "(($ac_try" in
9917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918   *) ac_try_echo=$ac_try;;
9919 esac
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921   (eval "$ac_link") 2>conftest.er1
9922   ac_status=$?
9923   grep -v '^ *+' conftest.er1 >conftest.err
9924   rm -f conftest.er1
9925   cat conftest.err >&5
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } &&
9928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9929   { (case "(($ac_try" in
9930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931   *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934   (eval "$ac_try") 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; } &&
9938          { ac_try='test -s conftest$ac_exeext'
9939   { (case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944   (eval "$ac_try") 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; }; then
9948   ac_cv_lib_dld_shl_load=yes
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953         ac_cv_lib_dld_shl_load=no
9954 fi
9955
9956 rm -f core conftest.err conftest.$ac_objext \
9957       conftest$ac_exeext conftest.$ac_ext
9958 LIBS=$ac_check_lib_save_LIBS
9959 fi
9960 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9961 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9962 if test $ac_cv_lib_dld_shl_load = yes; then
9963
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_SHL_LOAD 1
9966 _ACEOF
9967
9968         LIBADD_DL="$LIBADD_DL -ldld"
9969 else
9970   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9971 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9972 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975   ac_check_lib_save_LIBS=$LIBS
9976 LIBS="-ldl  $LIBS"
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983
9984 /* Override any GCC internal prototype to avoid an error.
9985    Use char because int might match the return type of a GCC
9986    builtin and then its argument prototype would still apply.  */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 char dlopen ();
9991 int
9992 main ()
9993 {
9994 return dlopen ();
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003   *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006   (eval "$ac_link") 2>conftest.er1
10007   ac_status=$?
10008   grep -v '^ *+' conftest.er1 >conftest.err
10009   rm -f conftest.er1
10010   cat conftest.err >&5
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); } &&
10013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014   { (case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_try") 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; } &&
10023          { ac_try='test -s conftest$ac_exeext'
10024   { (case "(($ac_try" in
10025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026   *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029   (eval "$ac_try") 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; }; then
10033   ac_cv_lib_dl_dlopen=yes
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038         ac_cv_lib_dl_dlopen=no
10039 fi
10040
10041 rm -f core conftest.err conftest.$ac_objext \
10042       conftest$ac_exeext conftest.$ac_ext
10043 LIBS=$ac_check_lib_save_LIBS
10044 fi
10045 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10046 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10047 if test $ac_cv_lib_dl_dlopen = yes; then
10048
10049 cat >>confdefs.h <<\_ACEOF
10050 #define HAVE_LIBDL 1
10051 _ACEOF
10052
10053                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10054 else
10055   cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h.  */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h.  */
10061 #if HAVE_DLFCN_H
10062 #  include <dlfcn.h>
10063 #endif
10064
10065 int
10066 main ()
10067 {
10068 dlopen(0, 0);
10069   ;
10070   return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (ac_try="$ac_link"
10075 case "(($ac_try" in
10076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077   *) ac_try_echo=$ac_try;;
10078 esac
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080   (eval "$ac_link") 2>conftest.er1
10081   ac_status=$?
10082   grep -v '^ *+' conftest.er1 >conftest.err
10083   rm -f conftest.er1
10084   cat conftest.err >&5
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); } &&
10087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10088   { (case "(($ac_try" in
10089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090   *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093   (eval "$ac_try") 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; } &&
10097          { ac_try='test -s conftest$ac_exeext'
10098   { (case "(($ac_try" in
10099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100   *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103   (eval "$ac_try") 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); }; }; then
10107
10108 cat >>confdefs.h <<\_ACEOF
10109 #define HAVE_LIBDL 1
10110 _ACEOF
10111  libltdl_cv_func_dlopen="yes"
10112 else
10113   echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10117 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10118 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121   ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-lsvld  $LIBS"
10123 cat >conftest.$ac_ext <<_ACEOF
10124 /* confdefs.h.  */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h.  */
10129
10130 /* Override any GCC internal prototype to avoid an error.
10131    Use char because int might match the return type of a GCC
10132    builtin and then its argument prototype would still apply.  */
10133 #ifdef __cplusplus
10134 extern "C"
10135 #endif
10136 char dlopen ();
10137 int
10138 main ()
10139 {
10140 return dlopen ();
10141   ;
10142   return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149   *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152   (eval "$ac_link") 2>conftest.er1
10153   ac_status=$?
10154   grep -v '^ *+' conftest.er1 >conftest.err
10155   rm -f conftest.er1
10156   cat conftest.err >&5
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); } &&
10159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160   { (case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165   (eval "$ac_try") 2>&5
10166   ac_status=$?
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); }; } &&
10169          { ac_try='test -s conftest$ac_exeext'
10170   { (case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_try") 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; }; then
10179   ac_cv_lib_svld_dlopen=yes
10180 else
10181   echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184         ac_cv_lib_svld_dlopen=no
10185 fi
10186
10187 rm -f core conftest.err conftest.$ac_objext \
10188       conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10190 fi
10191 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10192 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10193 if test $ac_cv_lib_svld_dlopen = yes; then
10194
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_LIBDL 1
10197 _ACEOF
10198
10199                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10200 else
10201   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10202 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10203 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10204   echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206   ac_check_lib_save_LIBS=$LIBS
10207 LIBS="-ldld  $LIBS"
10208 cat >conftest.$ac_ext <<_ACEOF
10209 /* confdefs.h.  */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h.  */
10214
10215 /* Override any GCC internal prototype to avoid an error.
10216    Use char because int might match the return type of a GCC
10217    builtin and then its argument prototype would still apply.  */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 char dld_link ();
10222 int
10223 main ()
10224 {
10225 return dld_link ();
10226   ;
10227   return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234   *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237   (eval "$ac_link") 2>conftest.er1
10238   ac_status=$?
10239   grep -v '^ *+' conftest.er1 >conftest.err
10240   rm -f conftest.er1
10241   cat conftest.err >&5
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); } &&
10244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245   { (case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_try") 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; } &&
10254          { ac_try='test -s conftest$ac_exeext'
10255   { (case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_try") 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; }; then
10264   ac_cv_lib_dld_dld_link=yes
10265 else
10266   echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269         ac_cv_lib_dld_dld_link=no
10270 fi
10271
10272 rm -f core conftest.err conftest.$ac_objext \
10273       conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10275 fi
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10277 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10278 if test $ac_cv_lib_dld_dld_link = yes; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_DLD 1
10282 _ACEOF
10283
10284                 LIBADD_DL="$LIBADD_DL -ldld"
10285 else
10286   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10287 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10288 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10289   echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291   cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h.  */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h.  */
10297 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10299 #define _dyld_func_lookup innocuous__dyld_func_lookup
10300
10301 /* System header to define __stub macros and hopefully few prototypes,
10302     which can conflict with char _dyld_func_lookup (); below.
10303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10304     <limits.h> exists even on freestanding compilers.  */
10305
10306 #ifdef __STDC__
10307 # include <limits.h>
10308 #else
10309 # include <assert.h>
10310 #endif
10311
10312 #undef _dyld_func_lookup
10313
10314 /* Override any GCC internal prototype to avoid an error.
10315    Use char because int might match the return type of a GCC
10316    builtin and then its argument prototype would still apply.  */
10317 #ifdef __cplusplus
10318 extern "C"
10319 #endif
10320 char _dyld_func_lookup ();
10321 /* The GNU C library defines this for functions which it implements
10322     to always fail with ENOSYS.  Some functions are actually named
10323     something starting with __ and the normal name is an alias.  */
10324 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10325 choke me
10326 #endif
10327
10328 int
10329 main ()
10330 {
10331 return _dyld_func_lookup ();
10332   ;
10333   return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (ac_try="$ac_link"
10338 case "(($ac_try" in
10339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340   *) ac_try_echo=$ac_try;;
10341 esac
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343   (eval "$ac_link") 2>conftest.er1
10344   ac_status=$?
10345   grep -v '^ *+' conftest.er1 >conftest.err
10346   rm -f conftest.er1
10347   cat conftest.err >&5
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); } &&
10350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10351   { (case "(($ac_try" in
10352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353   *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356   (eval "$ac_try") 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); }; } &&
10360          { ac_try='test -s conftest$ac_exeext'
10361   { (case "(($ac_try" in
10362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363   *) ac_try_echo=$ac_try;;
10364 esac
10365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366   (eval "$ac_try") 2>&5
10367   ac_status=$?
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); }; }; then
10370   ac_cv_func__dyld_func_lookup=yes
10371 else
10372   echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10374
10375         ac_cv_func__dyld_func_lookup=no
10376 fi
10377
10378 rm -f core conftest.err conftest.$ac_objext \
10379       conftest$ac_exeext conftest.$ac_ext
10380 fi
10381 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10382 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10383 if test $ac_cv_func__dyld_func_lookup = yes; then
10384
10385 cat >>confdefs.h <<\_ACEOF
10386 #define HAVE_DYLD 1
10387 _ACEOF
10388
10389 fi
10390
10391
10392 fi
10393
10394
10395 fi
10396
10397
10398 fi
10399
10400 rm -f core conftest.err conftest.$ac_objext \
10401       conftest$ac_exeext conftest.$ac_ext
10402
10403 fi
10404
10405
10406 fi
10407
10408
10409 fi
10410
10411
10412 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10413 then
10414   lt_save_LIBS="$LIBS"
10415   LIBS="$LIBS $LIBADD_DL"
10416
10417 for ac_func in dlerror
10418 do
10419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10423   echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425   cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h.  */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h.  */
10431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10433 #define $ac_func innocuous_$ac_func
10434
10435 /* System header to define __stub macros and hopefully few prototypes,
10436     which can conflict with char $ac_func (); below.
10437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10438     <limits.h> exists even on freestanding compilers.  */
10439
10440 #ifdef __STDC__
10441 # include <limits.h>
10442 #else
10443 # include <assert.h>
10444 #endif
10445
10446 #undef $ac_func
10447
10448 /* Override any GCC internal prototype to avoid an error.
10449    Use char because int might match the return type of a GCC
10450    builtin and then its argument prototype would still apply.  */
10451 #ifdef __cplusplus
10452 extern "C"
10453 #endif
10454 char $ac_func ();
10455 /* The GNU C library defines this for functions which it implements
10456     to always fail with ENOSYS.  Some functions are actually named
10457     something starting with __ and the normal name is an alias.  */
10458 #if defined __stub_$ac_func || defined __stub___$ac_func
10459 choke me
10460 #endif
10461
10462 int
10463 main ()
10464 {
10465 return $ac_func ();
10466   ;
10467   return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (ac_try="$ac_link"
10472 case "(($ac_try" in
10473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474   *) ac_try_echo=$ac_try;;
10475 esac
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477   (eval "$ac_link") 2>conftest.er1
10478   ac_status=$?
10479   grep -v '^ *+' conftest.er1 >conftest.err
10480   rm -f conftest.er1
10481   cat conftest.err >&5
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); } &&
10484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10485   { (case "(($ac_try" in
10486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487   *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490   (eval "$ac_try") 2>&5
10491   ac_status=$?
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); }; } &&
10494          { ac_try='test -s conftest$ac_exeext'
10495   { (case "(($ac_try" in
10496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497   *) ac_try_echo=$ac_try;;
10498 esac
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500   (eval "$ac_try") 2>&5
10501   ac_status=$?
10502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503   (exit $ac_status); }; }; then
10504   eval "$as_ac_var=yes"
10505 else
10506   echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509         eval "$as_ac_var=no"
10510 fi
10511
10512 rm -f core conftest.err conftest.$ac_objext \
10513       conftest$ac_exeext conftest.$ac_ext
10514 fi
10515 ac_res=`eval echo '${'$as_ac_var'}'`
10516                { echo "$as_me:$LINENO: result: $ac_res" >&5
10517 echo "${ECHO_T}$ac_res" >&6; }
10518 if test `eval echo '${'$as_ac_var'}'` = yes; then
10519   cat >>confdefs.h <<_ACEOF
10520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10521 _ACEOF
10522
10523 fi
10524 done
10525
10526   LIBS="$lt_save_LIBS"
10527 fi
10528 ac_ext=c
10529 ac_cpp='$CPP $CPPFLAGS'
10530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10533
10534
10535
10536 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10537 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10538 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10539   echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541   ac_cv_sys_symbol_underscore=no
10542   cat > conftest.$ac_ext <<EOF
10543 void nm_test_func(){}
10544 int main(){nm_test_func;return 0;}
10545 EOF
10546   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10547   (eval $ac_compile) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; then
10551     # Now try to grab the symbols.
10552     ac_nlist=conftest.nm
10553     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10554   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); } && test -s "$ac_nlist"; then
10558       # See whether the symbols have a leading underscore.
10559       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10560         ac_cv_sys_symbol_underscore=yes
10561       else
10562         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10563           :
10564         else
10565           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10566         fi
10567       fi
10568     else
10569       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10570     fi
10571   else
10572     echo "configure: failed program was:" >&5
10573     cat conftest.c >&5
10574   fi
10575   rm -rf conftest*
10576
10577 fi
10578 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10579 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10580
10581
10582 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10583   if test x"$libltdl_cv_func_dlopen" = xyes ||
10584      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10585         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10586 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10587 if test "${libltdl_cv_need_uscore+set}" = set; then
10588   echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590   libltdl_cv_need_uscore=unknown
10591           save_LIBS="$LIBS"
10592           LIBS="$LIBS $LIBADD_DL"
10593           if test "$cross_compiling" = yes; then :
10594   libltdl_cv_need_uscore=cross
10595 else
10596   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10597   lt_status=$lt_dlunknown
10598   cat > conftest.$ac_ext <<EOF
10599 #line 10599 "configure"
10600 #include "confdefs.h"
10601
10602 #if HAVE_DLFCN_H
10603 #include <dlfcn.h>
10604 #endif
10605
10606 #include <stdio.h>
10607
10608 #ifdef RTLD_GLOBAL
10609 #  define LT_DLGLOBAL           RTLD_GLOBAL
10610 #else
10611 #  ifdef DL_GLOBAL
10612 #    define LT_DLGLOBAL         DL_GLOBAL
10613 #  else
10614 #    define LT_DLGLOBAL         0
10615 #  endif
10616 #endif
10617
10618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10619    find out it does not work in some platform. */
10620 #ifndef LT_DLLAZY_OR_NOW
10621 #  ifdef RTLD_LAZY
10622 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10623 #  else
10624 #    ifdef DL_LAZY
10625 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10626 #    else
10627 #      ifdef RTLD_NOW
10628 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10629 #      else
10630 #        ifdef DL_NOW
10631 #          define LT_DLLAZY_OR_NOW      DL_NOW
10632 #        else
10633 #          define LT_DLLAZY_OR_NOW      0
10634 #        endif
10635 #      endif
10636 #    endif
10637 #  endif
10638 #endif
10639
10640 #ifdef __cplusplus
10641 extern "C" void exit (int);
10642 #endif
10643
10644 void fnord() { int i=42;}
10645 int main ()
10646 {
10647   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10648   int status = $lt_dlunknown;
10649
10650   if (self)
10651     {
10652       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10653       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10654       /* dlclose (self); */
10655     }
10656   else
10657     puts (dlerror ());
10658
10659     exit (status);
10660 }
10661 EOF
10662   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663   (eval $ac_link) 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10667     (./conftest; exit; ) >&5 2>/dev/null
10668     lt_status=$?
10669     case x$lt_status in
10670       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10671       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10672       x$lt_dlunknown|x*)  ;;
10673     esac
10674   else :
10675     # compilation failed
10676
10677   fi
10678 fi
10679 rm -fr conftest*
10680
10681           LIBS="$save_LIBS"
10682
10683 fi
10684 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10685 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10686   fi
10687 fi
10688
10689 if test x"$libltdl_cv_need_uscore" = xyes; then
10690
10691 cat >>confdefs.h <<\_ACEOF
10692 #define NEED_USCORE 1
10693 _ACEOF
10694
10695 fi
10696
10697
10698 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10699 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10700 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   # PORTME does your system automatically load deplibs for dlopen?
10704   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10705   # For now, we just catch OSes we know something about -- in the
10706   # future, we'll try test this programmatically.
10707   libltdl_cv_sys_dlopen_deplibs=unknown
10708   case "$host_os" in
10709   aix3*|aix4.1.*|aix4.2.*)
10710     # Unknown whether this is true for these versions of AIX, but
10711     # we want this `case' here to explicitly catch those versions.
10712     libltdl_cv_sys_dlopen_deplibs=unknown
10713     ;;
10714   aix[45]*)
10715     libltdl_cv_sys_dlopen_deplibs=yes
10716     ;;
10717   darwin*)
10718     # Assuming the user has installed a libdl from somewhere, this is true
10719     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10720     libltdl_cv_sys_dlopen_deplibs=yes
10721     ;;
10722   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10723     # GNU and its variants, using gnu ld.so (Glibc)
10724     libltdl_cv_sys_dlopen_deplibs=yes
10725     ;;
10726   hpux10*|hpux11*)
10727     libltdl_cv_sys_dlopen_deplibs=yes
10728     ;;
10729   interix*)
10730     libltdl_cv_sys_dlopen_deplibs=yes
10731     ;;
10732   irix[12345]*|irix6.[01]*)
10733     # Catch all versions of IRIX before 6.2, and indicate that we don't
10734     # know how it worked for any of those versions.
10735     libltdl_cv_sys_dlopen_deplibs=unknown
10736     ;;
10737   irix*)
10738     # The case above catches anything before 6.2, and it's known that
10739     # at 6.2 and later dlopen does load deplibs.
10740     libltdl_cv_sys_dlopen_deplibs=yes
10741     ;;
10742   netbsd*)
10743     libltdl_cv_sys_dlopen_deplibs=yes
10744     ;;
10745   openbsd*)
10746     libltdl_cv_sys_dlopen_deplibs=yes
10747     ;;
10748   osf[1234]*)
10749     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10750     # it did *not* use an RPATH in a shared library to find objects the
10751     # library depends on, so we explicitly say `no'.
10752     libltdl_cv_sys_dlopen_deplibs=no
10753     ;;
10754   osf5.0|osf5.0a|osf5.1)
10755     # dlopen *does* load deplibs and with the right loader patch applied
10756     # it even uses RPATH in a shared library to search for shared objects
10757     # that the library depends on, but there's no easy way to know if that
10758     # patch is installed.  Since this is the case, all we can really
10759     # say is unknown -- it depends on the patch being installed.  If
10760     # it is, this changes to `yes'.  Without it, it would be `no'.
10761     libltdl_cv_sys_dlopen_deplibs=unknown
10762     ;;
10763   osf*)
10764     # the two cases above should catch all versions of osf <= 5.1.  Read
10765     # the comments above for what we know about them.
10766     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10767     # is used to find them so we can finally say `yes'.
10768     libltdl_cv_sys_dlopen_deplibs=yes
10769     ;;
10770   solaris*)
10771     libltdl_cv_sys_dlopen_deplibs=yes
10772     ;;
10773   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10774     libltdl_cv_sys_dlopen_deplibs=yes
10775     ;;
10776   esac
10777
10778 fi
10779 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10780 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10781 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10782
10783 cat >>confdefs.h <<\_ACEOF
10784 #define LTDL_DLOPEN_DEPLIBS 1
10785 _ACEOF
10786
10787 fi
10788
10789
10790 for ac_header in argz.h
10791 do
10792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10794   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10797   echo $ECHO_N "(cached) $ECHO_C" >&6
10798 fi
10799 ac_res=`eval echo '${'$as_ac_Header'}'`
10800                { echo "$as_me:$LINENO: result: $ac_res" >&5
10801 echo "${ECHO_T}$ac_res" >&6; }
10802 else
10803   # Is the header compilable?
10804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10806 cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h.  */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h.  */
10812 $ac_includes_default
10813 #include <$ac_header>
10814 _ACEOF
10815 rm -f conftest.$ac_objext
10816 if { (ac_try="$ac_compile"
10817 case "(($ac_try" in
10818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819   *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822   (eval "$ac_compile") 2>conftest.er1
10823   ac_status=$?
10824   grep -v '^ *+' conftest.er1 >conftest.err
10825   rm -f conftest.er1
10826   cat conftest.err >&5
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); } &&
10829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10830   { (case "(($ac_try" in
10831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832   *) ac_try_echo=$ac_try;;
10833 esac
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835   (eval "$ac_try") 2>&5
10836   ac_status=$?
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); }; } &&
10839          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10849   ac_header_compiler=yes
10850 else
10851   echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854         ac_header_compiler=no
10855 fi
10856
10857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10859 echo "${ECHO_T}$ac_header_compiler" >&6; }
10860
10861 # Is the header present?
10862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h.  */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h.  */
10870 #include <$ac_header>
10871 _ACEOF
10872 if { (ac_try="$ac_cpp conftest.$ac_ext"
10873 case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10879   ac_status=$?
10880   grep -v '^ *+' conftest.er1 >conftest.err
10881   rm -f conftest.er1
10882   cat conftest.err >&5
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } >/dev/null; then
10885   if test -s conftest.err; then
10886     ac_cpp_err=$ac_c_preproc_warn_flag
10887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10888   else
10889     ac_cpp_err=
10890   fi
10891 else
10892   ac_cpp_err=yes
10893 fi
10894 if test -z "$ac_cpp_err"; then
10895   ac_header_preproc=yes
10896 else
10897   echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10899
10900   ac_header_preproc=no
10901 fi
10902
10903 rm -f conftest.err conftest.$ac_ext
10904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10905 echo "${ECHO_T}$ac_header_preproc" >&6; }
10906
10907 # So?  What about this header?
10908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10909   yes:no: )
10910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10914     ac_header_preproc=yes
10915     ;;
10916   no:yes:* )
10917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10929     ( cat <<\_ASBOX
10930 ## ----------------------------------- ##
10931 ## Report this to llvmbugs@cs.uiuc.edu ##
10932 ## ----------------------------------- ##
10933 _ASBOX
10934      ) | sed "s/^/$as_me: WARNING:     /" >&2
10935     ;;
10936 esac
10937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10940   echo $ECHO_N "(cached) $ECHO_C" >&6
10941 else
10942   eval "$as_ac_Header=\$ac_header_preproc"
10943 fi
10944 ac_res=`eval echo '${'$as_ac_Header'}'`
10945                { echo "$as_me:$LINENO: result: $ac_res" >&5
10946 echo "${ECHO_T}$ac_res" >&6; }
10947
10948 fi
10949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10950   cat >>confdefs.h <<_ACEOF
10951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10952 _ACEOF
10953
10954 fi
10955
10956 done
10957
10958
10959 { echo "$as_me:$LINENO: checking for error_t" >&5
10960 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10961 if test "${ac_cv_type_error_t+set}" = set; then
10962   echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964   cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 #if HAVE_ARGZ_H
10971 #  include <argz.h>
10972 #endif
10973
10974 typedef error_t ac__type_new_;
10975 int
10976 main ()
10977 {
10978 if ((ac__type_new_ *) 0)
10979   return 0;
10980 if (sizeof (ac__type_new_))
10981   return 0;
10982   ;
10983   return 0;
10984 }
10985 _ACEOF
10986 rm -f conftest.$ac_objext
10987 if { (ac_try="$ac_compile"
10988 case "(($ac_try" in
10989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990   *) ac_try_echo=$ac_try;;
10991 esac
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993   (eval "$ac_compile") 2>conftest.er1
10994   ac_status=$?
10995   grep -v '^ *+' conftest.er1 >conftest.err
10996   rm -f conftest.er1
10997   cat conftest.err >&5
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } &&
11000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11001   { (case "(($ac_try" in
11002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003   *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006   (eval "$ac_try") 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; } &&
11010          { ac_try='test -s conftest.$ac_objext'
11011   { (case "(($ac_try" in
11012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013   *) ac_try_echo=$ac_try;;
11014 esac
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016   (eval "$ac_try") 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; }; then
11020   ac_cv_type_error_t=yes
11021 else
11022   echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025         ac_cv_type_error_t=no
11026 fi
11027
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 fi
11030 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11031 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11032 if test $ac_cv_type_error_t = yes; then
11033
11034 cat >>confdefs.h <<_ACEOF
11035 #define HAVE_ERROR_T 1
11036 _ACEOF
11037
11038
11039 else
11040
11041 cat >>confdefs.h <<\_ACEOF
11042 #define error_t int
11043 _ACEOF
11044
11045 fi
11046
11047
11048
11049
11050
11051
11052
11053 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11054 do
11055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061   cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11069 #define $ac_func innocuous_$ac_func
11070
11071 /* System header to define __stub macros and hopefully few prototypes,
11072     which can conflict with char $ac_func (); below.
11073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11074     <limits.h> exists even on freestanding compilers.  */
11075
11076 #ifdef __STDC__
11077 # include <limits.h>
11078 #else
11079 # include <assert.h>
11080 #endif
11081
11082 #undef $ac_func
11083
11084 /* Override any GCC internal prototype to avoid an error.
11085    Use char because int might match the return type of a GCC
11086    builtin and then its argument prototype would still apply.  */
11087 #ifdef __cplusplus
11088 extern "C"
11089 #endif
11090 char $ac_func ();
11091 /* The GNU C library defines this for functions which it implements
11092     to always fail with ENOSYS.  Some functions are actually named
11093     something starting with __ and the normal name is an alias.  */
11094 #if defined __stub_$ac_func || defined __stub___$ac_func
11095 choke me
11096 #endif
11097
11098 int
11099 main ()
11100 {
11101 return $ac_func ();
11102   ;
11103   return 0;
11104 }
11105 _ACEOF
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (ac_try="$ac_link"
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_link") 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_exeext'
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   eval "$as_ac_var=yes"
11141 else
11142   echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11144
11145         eval "$as_ac_var=no"
11146 fi
11147
11148 rm -f core conftest.err conftest.$ac_objext \
11149       conftest$ac_exeext conftest.$ac_ext
11150 fi
11151 ac_res=`eval echo '${'$as_ac_var'}'`
11152                { echo "$as_me:$LINENO: result: $ac_res" >&5
11153 echo "${ECHO_T}$ac_res" >&6; }
11154 if test `eval echo '${'$as_ac_var'}'` = yes; then
11155   cat >>confdefs.h <<_ACEOF
11156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11157 _ACEOF
11158
11159 fi
11160 done
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11190                   stdio.h unistd.h
11191 do
11192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11194   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197   echo $ECHO_N "(cached) $ECHO_C" >&6
11198 fi
11199 ac_res=`eval echo '${'$as_ac_Header'}'`
11200                { echo "$as_me:$LINENO: result: $ac_res" >&5
11201 echo "${ECHO_T}$ac_res" >&6; }
11202 else
11203   # Is the header compilable?
11204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 $ac_includes_default
11213 #include <$ac_header>
11214 _ACEOF
11215 rm -f conftest.$ac_objext
11216 if { (ac_try="$ac_compile"
11217 case "(($ac_try" in
11218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219   *) ac_try_echo=$ac_try;;
11220 esac
11221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222   (eval "$ac_compile") 2>conftest.er1
11223   ac_status=$?
11224   grep -v '^ *+' conftest.er1 >conftest.err
11225   rm -f conftest.er1
11226   cat conftest.err >&5
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } &&
11229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11230   { (case "(($ac_try" in
11231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232   *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235   (eval "$ac_try") 2>&5
11236   ac_status=$?
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); }; } &&
11239          { ac_try='test -s conftest.$ac_objext'
11240   { (case "(($ac_try" in
11241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242   *) ac_try_echo=$ac_try;;
11243 esac
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245   (eval "$ac_try") 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); }; }; then
11249   ac_header_compiler=yes
11250 else
11251   echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254         ac_header_compiler=no
11255 fi
11256
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11259 echo "${ECHO_T}$ac_header_compiler" >&6; }
11260
11261 # Is the header present?
11262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11264 cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270 #include <$ac_header>
11271 _ACEOF
11272 if { (ac_try="$ac_cpp conftest.$ac_ext"
11273 case "(($ac_try" in
11274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275   *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11279   ac_status=$?
11280   grep -v '^ *+' conftest.er1 >conftest.err
11281   rm -f conftest.er1
11282   cat conftest.err >&5
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } >/dev/null; then
11285   if test -s conftest.err; then
11286     ac_cpp_err=$ac_c_preproc_warn_flag
11287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11288   else
11289     ac_cpp_err=
11290   fi
11291 else
11292   ac_cpp_err=yes
11293 fi
11294 if test -z "$ac_cpp_err"; then
11295   ac_header_preproc=yes
11296 else
11297   echo "$as_me: failed program was:" >&5
11298 sed 's/^/| /' conftest.$ac_ext >&5
11299
11300   ac_header_preproc=no
11301 fi
11302
11303 rm -f conftest.err conftest.$ac_ext
11304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11305 echo "${ECHO_T}$ac_header_preproc" >&6; }
11306
11307 # So?  What about this header?
11308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11309   yes:no: )
11310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11314     ac_header_preproc=yes
11315     ;;
11316   no:yes:* )
11317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11329     ( cat <<\_ASBOX
11330 ## ----------------------------------- ##
11331 ## Report this to llvmbugs@cs.uiuc.edu ##
11332 ## ----------------------------------- ##
11333 _ASBOX
11334      ) | sed "s/^/$as_me: WARNING:     /" >&2
11335     ;;
11336 esac
11337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340   echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342   eval "$as_ac_Header=\$ac_header_preproc"
11343 fi
11344 ac_res=`eval echo '${'$as_ac_Header'}'`
11345                { echo "$as_me:$LINENO: result: $ac_res" >&5
11346 echo "${ECHO_T}$ac_res" >&6; }
11347
11348 fi
11349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11350   cat >>confdefs.h <<_ACEOF
11351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11352 _ACEOF
11353
11354 fi
11355
11356 done
11357
11358
11359
11360
11361
11362 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11363 do
11364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11369   echo $ECHO_N "(cached) $ECHO_C" >&6
11370 fi
11371 ac_res=`eval echo '${'$as_ac_Header'}'`
11372                { echo "$as_me:$LINENO: result: $ac_res" >&5
11373 echo "${ECHO_T}$ac_res" >&6; }
11374 else
11375   # Is the header compilable?
11376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11378 cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h.  */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h.  */
11384 $ac_includes_default
11385 #include <$ac_header>
11386 _ACEOF
11387 rm -f conftest.$ac_objext
11388 if { (ac_try="$ac_compile"
11389 case "(($ac_try" in
11390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391   *) ac_try_echo=$ac_try;;
11392 esac
11393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394   (eval "$ac_compile") 2>conftest.er1
11395   ac_status=$?
11396   grep -v '^ *+' conftest.er1 >conftest.err
11397   rm -f conftest.er1
11398   cat conftest.err >&5
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); } &&
11401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11402   { (case "(($ac_try" in
11403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404   *) ac_try_echo=$ac_try;;
11405 esac
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407   (eval "$ac_try") 2>&5
11408   ac_status=$?
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); }; } &&
11411          { ac_try='test -s conftest.$ac_objext'
11412   { (case "(($ac_try" in
11413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414   *) ac_try_echo=$ac_try;;
11415 esac
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417   (eval "$ac_try") 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; }; then
11421   ac_header_compiler=yes
11422 else
11423   echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426         ac_header_compiler=no
11427 fi
11428
11429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11431 echo "${ECHO_T}$ac_header_compiler" >&6; }
11432
11433 # Is the header present?
11434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11436 cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h.  */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h.  */
11442 #include <$ac_header>
11443 _ACEOF
11444 if { (ac_try="$ac_cpp conftest.$ac_ext"
11445 case "(($ac_try" in
11446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447   *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11451   ac_status=$?
11452   grep -v '^ *+' conftest.er1 >conftest.err
11453   rm -f conftest.er1
11454   cat conftest.err >&5
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); } >/dev/null; then
11457   if test -s conftest.err; then
11458     ac_cpp_err=$ac_c_preproc_warn_flag
11459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11460   else
11461     ac_cpp_err=
11462   fi
11463 else
11464   ac_cpp_err=yes
11465 fi
11466 if test -z "$ac_cpp_err"; then
11467   ac_header_preproc=yes
11468 else
11469   echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11471
11472   ac_header_preproc=no
11473 fi
11474
11475 rm -f conftest.err conftest.$ac_ext
11476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11477 echo "${ECHO_T}$ac_header_preproc" >&6; }
11478
11479 # So?  What about this header?
11480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11481   yes:no: )
11482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11486     ac_header_preproc=yes
11487     ;;
11488   no:yes:* )
11489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11501     ( cat <<\_ASBOX
11502 ## ----------------------------------- ##
11503 ## Report this to llvmbugs@cs.uiuc.edu ##
11504 ## ----------------------------------- ##
11505 _ASBOX
11506      ) | sed "s/^/$as_me: WARNING:     /" >&2
11507     ;;
11508 esac
11509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11512   echo $ECHO_N "(cached) $ECHO_C" >&6
11513 else
11514   eval "$as_ac_Header=\$ac_header_preproc"
11515 fi
11516 ac_res=`eval echo '${'$as_ac_Header'}'`
11517                { echo "$as_me:$LINENO: result: $ac_res" >&5
11518 echo "${ECHO_T}$ac_res" >&6; }
11519
11520 fi
11521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11522   cat >>confdefs.h <<_ACEOF
11523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11524 _ACEOF
11525
11526 fi
11527
11528 done
11529
11530
11531
11532 for ac_header in string.h strings.h
11533 do
11534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11536   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 fi
11541 ac_res=`eval echo '${'$as_ac_Header'}'`
11542                { echo "$as_me:$LINENO: result: $ac_res" >&5
11543 echo "${ECHO_T}$ac_res" >&6; }
11544 else
11545   # Is the header compilable?
11546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11548 cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h.  */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h.  */
11554 $ac_includes_default
11555 #include <$ac_header>
11556 _ACEOF
11557 rm -f conftest.$ac_objext
11558 if { (ac_try="$ac_compile"
11559 case "(($ac_try" in
11560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561   *) ac_try_echo=$ac_try;;
11562 esac
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564   (eval "$ac_compile") 2>conftest.er1
11565   ac_status=$?
11566   grep -v '^ *+' conftest.er1 >conftest.err
11567   rm -f conftest.er1
11568   cat conftest.err >&5
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); } &&
11571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11572   { (case "(($ac_try" in
11573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574   *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577   (eval "$ac_try") 2>&5
11578   ac_status=$?
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); }; } &&
11581          { ac_try='test -s conftest.$ac_objext'
11582   { (case "(($ac_try" in
11583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584   *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587   (eval "$ac_try") 2>&5
11588   ac_status=$?
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); }; }; then
11591   ac_header_compiler=yes
11592 else
11593   echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11595
11596         ac_header_compiler=no
11597 fi
11598
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11601 echo "${ECHO_T}$ac_header_compiler" >&6; }
11602
11603 # Is the header present?
11604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h.  */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h.  */
11612 #include <$ac_header>
11613 _ACEOF
11614 if { (ac_try="$ac_cpp conftest.$ac_ext"
11615 case "(($ac_try" in
11616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617   *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11621   ac_status=$?
11622   grep -v '^ *+' conftest.er1 >conftest.err
11623   rm -f conftest.er1
11624   cat conftest.err >&5
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } >/dev/null; then
11627   if test -s conftest.err; then
11628     ac_cpp_err=$ac_c_preproc_warn_flag
11629     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11630   else
11631     ac_cpp_err=
11632   fi
11633 else
11634   ac_cpp_err=yes
11635 fi
11636 if test -z "$ac_cpp_err"; then
11637   ac_header_preproc=yes
11638 else
11639   echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642   ac_header_preproc=no
11643 fi
11644
11645 rm -f conftest.err conftest.$ac_ext
11646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11647 echo "${ECHO_T}$ac_header_preproc" >&6; }
11648
11649 # So?  What about this header?
11650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11651   yes:no: )
11652     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11656     ac_header_preproc=yes
11657     ;;
11658   no:yes:* )
11659     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11661     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11662 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11663     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11665     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11666 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11669     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11671     ( cat <<\_ASBOX
11672 ## ----------------------------------- ##
11673 ## Report this to llvmbugs@cs.uiuc.edu ##
11674 ## ----------------------------------- ##
11675 _ASBOX
11676      ) | sed "s/^/$as_me: WARNING:     /" >&2
11677     ;;
11678 esac
11679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11682   echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684   eval "$as_ac_Header=\$ac_header_preproc"
11685 fi
11686 ac_res=`eval echo '${'$as_ac_Header'}'`
11687                { echo "$as_me:$LINENO: result: $ac_res" >&5
11688 echo "${ECHO_T}$ac_res" >&6; }
11689
11690 fi
11691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11692   cat >>confdefs.h <<_ACEOF
11693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11694 _ACEOF
11695  break
11696 fi
11697
11698 done
11699
11700
11701
11702
11703 for ac_func in strchr index
11704 do
11705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11709   echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711   cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11719 #define $ac_func innocuous_$ac_func
11720
11721 /* System header to define __stub macros and hopefully few prototypes,
11722     which can conflict with char $ac_func (); below.
11723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724     <limits.h> exists even on freestanding compilers.  */
11725
11726 #ifdef __STDC__
11727 # include <limits.h>
11728 #else
11729 # include <assert.h>
11730 #endif
11731
11732 #undef $ac_func
11733
11734 /* Override any GCC internal prototype to avoid an error.
11735    Use char because int might match the return type of a GCC
11736    builtin and then its argument prototype would still apply.  */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 char $ac_func ();
11741 /* The GNU C library defines this for functions which it implements
11742     to always fail with ENOSYS.  Some functions are actually named
11743     something starting with __ and the normal name is an alias.  */
11744 #if defined __stub_$ac_func || defined __stub___$ac_func
11745 choke me
11746 #endif
11747
11748 int
11749 main ()
11750 {
11751 return $ac_func ();
11752   ;
11753   return 0;
11754 }
11755 _ACEOF
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (ac_try="$ac_link"
11758 case "(($ac_try" in
11759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760   *) ac_try_echo=$ac_try;;
11761 esac
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763   (eval "$ac_link") 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } &&
11770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771   { (case "(($ac_try" in
11772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773   *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776   (eval "$ac_try") 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; } &&
11780          { ac_try='test -s conftest$ac_exeext'
11781   { (case "(($ac_try" in
11782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783   *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786   (eval "$ac_try") 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   eval "$as_ac_var=yes"
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795         eval "$as_ac_var=no"
11796 fi
11797
11798 rm -f core conftest.err conftest.$ac_objext \
11799       conftest$ac_exeext conftest.$ac_ext
11800 fi
11801 ac_res=`eval echo '${'$as_ac_var'}'`
11802                { echo "$as_me:$LINENO: result: $ac_res" >&5
11803 echo "${ECHO_T}$ac_res" >&6; }
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805   cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11807 _ACEOF
11808  break
11809 fi
11810 done
11811
11812
11813
11814 for ac_func in strrchr rindex
11815 do
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820   echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822   cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h.  */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h.  */
11828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11830 #define $ac_func innocuous_$ac_func
11831
11832 /* System header to define __stub macros and hopefully few prototypes,
11833     which can conflict with char $ac_func (); below.
11834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835     <limits.h> exists even on freestanding compilers.  */
11836
11837 #ifdef __STDC__
11838 # include <limits.h>
11839 #else
11840 # include <assert.h>
11841 #endif
11842
11843 #undef $ac_func
11844
11845 /* Override any GCC internal prototype to avoid an error.
11846    Use char because int might match the return type of a GCC
11847    builtin and then its argument prototype would still apply.  */
11848 #ifdef __cplusplus
11849 extern "C"
11850 #endif
11851 char $ac_func ();
11852 /* The GNU C library defines this for functions which it implements
11853     to always fail with ENOSYS.  Some functions are actually named
11854     something starting with __ and the normal name is an alias.  */
11855 #if defined __stub_$ac_func || defined __stub___$ac_func
11856 choke me
11857 #endif
11858
11859 int
11860 main ()
11861 {
11862 return $ac_func ();
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871   *) ac_try_echo=$ac_try;;
11872 esac
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874   (eval "$ac_link") 2>conftest.er1
11875   ac_status=$?
11876   grep -v '^ *+' conftest.er1 >conftest.err
11877   rm -f conftest.er1
11878   cat conftest.err >&5
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882   { (case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_try") 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; } &&
11891          { ac_try='test -s conftest$ac_exeext'
11892   { (case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_try") 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; }; then
11901   eval "$as_ac_var=yes"
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906         eval "$as_ac_var=no"
11907 fi
11908
11909 rm -f core conftest.err conftest.$ac_objext \
11910       conftest$ac_exeext conftest.$ac_ext
11911 fi
11912 ac_res=`eval echo '${'$as_ac_var'}'`
11913                { echo "$as_me:$LINENO: result: $ac_res" >&5
11914 echo "${ECHO_T}$ac_res" >&6; }
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916   cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 _ACEOF
11919  break
11920 fi
11921 done
11922
11923
11924
11925 for ac_func in memcpy bcopy
11926 do
11927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11931   echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933   cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h.  */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h.  */
11939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11941 #define $ac_func innocuous_$ac_func
11942
11943 /* System header to define __stub macros and hopefully few prototypes,
11944     which can conflict with char $ac_func (); below.
11945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11946     <limits.h> exists even on freestanding compilers.  */
11947
11948 #ifdef __STDC__
11949 # include <limits.h>
11950 #else
11951 # include <assert.h>
11952 #endif
11953
11954 #undef $ac_func
11955
11956 /* Override any GCC internal prototype to avoid an error.
11957    Use char because int might match the return type of a GCC
11958    builtin and then its argument prototype would still apply.  */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char $ac_func ();
11963 /* The GNU C library defines this for functions which it implements
11964     to always fail with ENOSYS.  Some functions are actually named
11965     something starting with __ and the normal name is an alias.  */
11966 #if defined __stub_$ac_func || defined __stub___$ac_func
11967 choke me
11968 #endif
11969
11970 int
11971 main ()
11972 {
11973 return $ac_func ();
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (ac_try="$ac_link"
11980 case "(($ac_try" in
11981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982   *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985   (eval "$ac_link") 2>conftest.er1
11986   ac_status=$?
11987   grep -v '^ *+' conftest.er1 >conftest.err
11988   rm -f conftest.er1
11989   cat conftest.err >&5
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); } &&
11992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11993   { (case "(($ac_try" in
11994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995   *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998   (eval "$ac_try") 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; } &&
12002          { ac_try='test -s conftest$ac_exeext'
12003   { (case "(($ac_try" in
12004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005   *) ac_try_echo=$ac_try;;
12006 esac
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008   (eval "$ac_try") 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; }; then
12012   eval "$as_ac_var=yes"
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017         eval "$as_ac_var=no"
12018 fi
12019
12020 rm -f core conftest.err conftest.$ac_objext \
12021       conftest$ac_exeext conftest.$ac_ext
12022 fi
12023 ac_res=`eval echo '${'$as_ac_var'}'`
12024                { echo "$as_me:$LINENO: result: $ac_res" >&5
12025 echo "${ECHO_T}$ac_res" >&6; }
12026 if test `eval echo '${'$as_ac_var'}'` = yes; then
12027   cat >>confdefs.h <<_ACEOF
12028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12029 _ACEOF
12030  break
12031 fi
12032 done
12033
12034
12035
12036 for ac_func in memmove strcmp
12037 do
12038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12042   echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044   cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h.  */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h.  */
12050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12052 #define $ac_func innocuous_$ac_func
12053
12054 /* System header to define __stub macros and hopefully few prototypes,
12055     which can conflict with char $ac_func (); below.
12056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12057     <limits.h> exists even on freestanding compilers.  */
12058
12059 #ifdef __STDC__
12060 # include <limits.h>
12061 #else
12062 # include <assert.h>
12063 #endif
12064
12065 #undef $ac_func
12066
12067 /* Override any GCC internal prototype to avoid an error.
12068    Use char because int might match the return type of a GCC
12069    builtin and then its argument prototype would still apply.  */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char $ac_func ();
12074 /* The GNU C library defines this for functions which it implements
12075     to always fail with ENOSYS.  Some functions are actually named
12076     something starting with __ and the normal name is an alias.  */
12077 #if defined __stub_$ac_func || defined __stub___$ac_func
12078 choke me
12079 #endif
12080
12081 int
12082 main ()
12083 {
12084 return $ac_func ();
12085   ;
12086   return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (ac_try="$ac_link"
12091 case "(($ac_try" in
12092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093   *) ac_try_echo=$ac_try;;
12094 esac
12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096   (eval "$ac_link") 2>conftest.er1
12097   ac_status=$?
12098   grep -v '^ *+' conftest.er1 >conftest.err
12099   rm -f conftest.er1
12100   cat conftest.err >&5
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); } &&
12103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12104   { (case "(($ac_try" in
12105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106   *) ac_try_echo=$ac_try;;
12107 esac
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109   (eval "$ac_try") 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); }; } &&
12113          { ac_try='test -s conftest$ac_exeext'
12114   { (case "(($ac_try" in
12115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116   *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119   (eval "$ac_try") 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); }; }; then
12123   eval "$as_ac_var=yes"
12124 else
12125   echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128         eval "$as_ac_var=no"
12129 fi
12130
12131 rm -f core conftest.err conftest.$ac_objext \
12132       conftest$ac_exeext conftest.$ac_ext
12133 fi
12134 ac_res=`eval echo '${'$as_ac_var'}'`
12135                { echo "$as_me:$LINENO: result: $ac_res" >&5
12136 echo "${ECHO_T}$ac_res" >&6; }
12137 if test `eval echo '${'$as_ac_var'}'` = yes; then
12138   cat >>confdefs.h <<_ACEOF
12139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12140 _ACEOF
12141
12142 fi
12143 done
12144
12145
12146
12147
12148 for ac_func in closedir opendir readdir
12149 do
12150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12164 #define $ac_func innocuous_$ac_func
12165
12166 /* System header to define __stub macros and hopefully few prototypes,
12167     which can conflict with char $ac_func (); below.
12168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12169     <limits.h> exists even on freestanding compilers.  */
12170
12171 #ifdef __STDC__
12172 # include <limits.h>
12173 #else
12174 # include <assert.h>
12175 #endif
12176
12177 #undef $ac_func
12178
12179 /* Override any GCC internal prototype to avoid an error.
12180    Use char because int might match the return type of a GCC
12181    builtin and then its argument prototype would still apply.  */
12182 #ifdef __cplusplus
12183 extern "C"
12184 #endif
12185 char $ac_func ();
12186 /* The GNU C library defines this for functions which it implements
12187     to always fail with ENOSYS.  Some functions are actually named
12188     something starting with __ and the normal name is an alias.  */
12189 #if defined __stub_$ac_func || defined __stub___$ac_func
12190 choke me
12191 #endif
12192
12193 int
12194 main ()
12195 {
12196 return $ac_func ();
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205   *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208   (eval "$ac_link") 2>conftest.er1
12209   ac_status=$?
12210   grep -v '^ *+' conftest.er1 >conftest.err
12211   rm -f conftest.er1
12212   cat conftest.err >&5
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); } &&
12215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216   { (case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221   (eval "$ac_try") 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); }; } &&
12225          { ac_try='test -s conftest$ac_exeext'
12226   { (case "(($ac_try" in
12227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228   *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231   (eval "$ac_try") 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; }; then
12235   eval "$as_ac_var=yes"
12236 else
12237   echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12239
12240         eval "$as_ac_var=no"
12241 fi
12242
12243 rm -f core conftest.err conftest.$ac_objext \
12244       conftest$ac_exeext conftest.$ac_ext
12245 fi
12246 ac_res=`eval echo '${'$as_ac_var'}'`
12247                { echo "$as_me:$LINENO: result: $ac_res" >&5
12248 echo "${ECHO_T}$ac_res" >&6; }
12249 if test `eval echo '${'$as_ac_var'}'` = yes; then
12250   cat >>confdefs.h <<_ACEOF
12251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12252 _ACEOF
12253
12254 fi
12255 done
12256
12257
12258
12259 if test "$WITH_LLVMGCCDIR" = "default" ; then
12260   LLVMGCC="llvm-gcc${EXEEXT}"
12261   LLVMGXX="llvm-g++${EXEEXT}"
12262   LLVMGCCCOMMAND="$LLVMGCC"
12263   LLVMGXXCOMMAND="$LLVMGXX"
12264   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12265
12266   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12267
12268   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12269 set dummy $LLVMGCC; ac_word=$2
12270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12272 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   case $LLVMGCC in
12276   [\\/]* | ?:[\\/]*)
12277   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12278   ;;
12279   *)
12280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12282 do
12283   IFS=$as_save_IFS
12284   test -z "$as_dir" && as_dir=.
12285   for ac_exec_ext in '' $ac_executable_extensions; do
12286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12287     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12289     break 2
12290   fi
12291 done
12292 done
12293 IFS=$as_save_IFS
12294
12295   ;;
12296 esac
12297 fi
12298 LLVMGCC=$ac_cv_path_LLVMGCC
12299 if test -n "$LLVMGCC"; then
12300   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12301 echo "${ECHO_T}$LLVMGCC" >&6; }
12302 else
12303   { echo "$as_me:$LINENO: result: no" >&5
12304 echo "${ECHO_T}no" >&6; }
12305 fi
12306
12307
12308   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12309 set dummy $LLVMGXX; ac_word=$2
12310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12312 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12313   echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315   case $LLVMGXX in
12316   [\\/]* | ?:[\\/]*)
12317   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12318   ;;
12319   *)
12320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12322 do
12323   IFS=$as_save_IFS
12324   test -z "$as_dir" && as_dir=.
12325   for ac_exec_ext in '' $ac_executable_extensions; do
12326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12327     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12329     break 2
12330   fi
12331 done
12332 done
12333 IFS=$as_save_IFS
12334
12335   ;;
12336 esac
12337 fi
12338 LLVMGXX=$ac_cv_path_LLVMGXX
12339 if test -n "$LLVMGXX"; then
12340   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12341 echo "${ECHO_T}$LLVMGXX" >&6; }
12342 else
12343   { echo "$as_me:$LINENO: result: no" >&5
12344 echo "${ECHO_T}no" >&6; }
12345 fi
12346
12347
12348 else
12349   if test -z "$LLVMGCC"; then
12350     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12351     LLVMGCCCOMMAND="$LLVMGCC"
12352   fi
12353   if test -z "$LLVMGXX"; then
12354     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12355     LLVMGXXCOMMAND="$LLVMGXX"
12356   fi
12357
12358   LLVMGCC=$LLVMGCC
12359
12360   LLVMGXX=$LLVMGXX
12361
12362   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12363
12364   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12365
12366 fi
12367
12368
12369 # Check whether --with-llvmcc was given.
12370 if test "${with_llvmcc+set}" = set; then
12371   withval=$with_llvmcc;
12372 else
12373   with_llvmcc=check
12374 fi
12375
12376 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12377 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12378 if test "$with_llvmcc" != "check"; then
12379    if (test "$with_llvmcc" != "llvm-gcc" &&
12380        test "$with_llvmcc" != "clang" &&
12381        test "$with_llvmcc" != "none"); then
12382       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12383 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12384    { (exit 1); exit 1; }; }
12385    fi
12386    WITH_LLVMCC="$with_llvmcc"
12387 elif test -n "$LLVMGCC"; then
12388    WITH_LLVMCC=llvm-gcc
12389 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12390    WITH_LLVMCC=clang
12391 else
12392    WITH_LLVMCC=none
12393 fi
12394 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12395 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12396 LLVMCC_OPTION=$WITH_LLVMCC
12397
12398
12399 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12400 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12401
12402 ICC=no
12403 IXX=no
12404 case $CC in
12405   icc*|icpc*)
12406     ICC=yes
12407     IXX=yes
12408     ;;
12409    *)
12410     ;;
12411 esac
12412
12413 if test "$GCC" != "yes" && test "$ICC" != "yes"
12414 then
12415   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12416 echo "$as_me: error: gcc|icc required but not found" >&2;}
12417    { (exit 1); exit 1; }; }
12418 fi
12419
12420 if test "$GXX" != "yes" && test "$IXX" != "yes"
12421 then
12422   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12423 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12424    { (exit 1); exit 1; }; }
12425 fi
12426
12427 if test "$GCC" = "yes"
12428 then
12429   cat >conftest.$ac_ext <<_ACEOF
12430 #if !defined(__GNUC__) || __GNUC__ < 3
12431 #error Unsupported GCC version
12432 #endif
12433
12434 _ACEOF
12435 rm -f conftest.$ac_objext
12436 if { (ac_try="$ac_compile"
12437 case "(($ac_try" in
12438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439   *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442   (eval "$ac_compile") 2>conftest.er1
12443   ac_status=$?
12444   grep -v '^ *+' conftest.er1 >conftest.err
12445   rm -f conftest.er1
12446   cat conftest.err >&5
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } &&
12449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450   { (case "(($ac_try" in
12451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452   *) ac_try_echo=$ac_try;;
12453 esac
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455   (eval "$ac_try") 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; } &&
12459          { ac_try='test -s conftest.$ac_objext'
12460   { (case "(($ac_try" in
12461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462   *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465   (eval "$ac_try") 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; }; then
12469   :
12470 else
12471   echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12475 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12476    { (exit 1); exit 1; }; }
12477 fi
12478
12479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 fi
12481
12482 if test -z "$llvm_cv_gnu_make_command"
12483 then
12484   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12485 echo "$as_me: error: GNU Make required but not found" >&2;}
12486    { (exit 1); exit 1; }; }
12487 fi
12488
12489 { echo "$as_me:$LINENO: result: ok" >&5
12490 echo "${ECHO_T}ok" >&6; }
12491
12492 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12493 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12494 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12495
12496 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12497
12498 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12499 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12500
12501
12502
12503 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12504 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12505 if test "${ac_cv_lib_m_sin+set}" = set; then
12506   echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508   ac_check_lib_save_LIBS=$LIBS
12509 LIBS="-lm  $LIBS"
12510 cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h.  */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h.  */
12516
12517 /* Override any GCC internal prototype to avoid an error.
12518    Use char because int might match the return type of a GCC
12519    builtin and then its argument prototype would still apply.  */
12520 #ifdef __cplusplus
12521 extern "C"
12522 #endif
12523 char sin ();
12524 int
12525 main ()
12526 {
12527 return sin ();
12528   ;
12529   return 0;
12530 }
12531 _ACEOF
12532 rm -f conftest.$ac_objext conftest$ac_exeext
12533 if { (ac_try="$ac_link"
12534 case "(($ac_try" in
12535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536   *) ac_try_echo=$ac_try;;
12537 esac
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539   (eval "$ac_link") 2>conftest.er1
12540   ac_status=$?
12541   grep -v '^ *+' conftest.er1 >conftest.err
12542   rm -f conftest.er1
12543   cat conftest.err >&5
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } &&
12546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547   { (case "(($ac_try" in
12548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549   *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552   (eval "$ac_try") 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; } &&
12556          { ac_try='test -s conftest$ac_exeext'
12557   { (case "(($ac_try" in
12558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559   *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562   (eval "$ac_try") 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); }; }; then
12566   ac_cv_lib_m_sin=yes
12567 else
12568   echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571         ac_cv_lib_m_sin=no
12572 fi
12573
12574 rm -f core conftest.err conftest.$ac_objext \
12575       conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12577 fi
12578 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12579 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12580 if test $ac_cv_lib_m_sin = yes; then
12581   cat >>confdefs.h <<_ACEOF
12582 #define HAVE_LIBM 1
12583 _ACEOF
12584
12585   LIBS="-lm $LIBS"
12586
12587 fi
12588
12589 if test "$llvm_cv_os_type" = "MingW" ; then
12590
12591 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12592 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12593 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12594   echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596   ac_check_lib_save_LIBS=$LIBS
12597 LIBS="-limagehlp  $LIBS"
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h.  */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h.  */
12604
12605
12606 int
12607 main ()
12608 {
12609 return main ();
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618   *) ac_try_echo=$ac_try;;
12619 esac
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621   (eval "$ac_link") 2>conftest.er1
12622   ac_status=$?
12623   grep -v '^ *+' conftest.er1 >conftest.err
12624   rm -f conftest.er1
12625   cat conftest.err >&5
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); } &&
12628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12629   { (case "(($ac_try" in
12630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631   *) ac_try_echo=$ac_try;;
12632 esac
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634   (eval "$ac_try") 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; } &&
12638          { ac_try='test -s conftest$ac_exeext'
12639   { (case "(($ac_try" in
12640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641   *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644   (eval "$ac_try") 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; }; then
12648   ac_cv_lib_imagehlp_main=yes
12649 else
12650   echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653         ac_cv_lib_imagehlp_main=no
12654 fi
12655
12656 rm -f core conftest.err conftest.$ac_objext \
12657       conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12659 fi
12660 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12661 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12662 if test $ac_cv_lib_imagehlp_main = yes; then
12663   cat >>confdefs.h <<_ACEOF
12664 #define HAVE_LIBIMAGEHLP 1
12665 _ACEOF
12666
12667   LIBS="-limagehlp $LIBS"
12668
12669 fi
12670
12671
12672 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12673 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12674 if test "${ac_cv_lib_psapi_main+set}" = set; then
12675   echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677   ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-lpsapi  $LIBS"
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h.  */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h.  */
12685
12686
12687 int
12688 main ()
12689 {
12690 return main ();
12691   ;
12692   return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (ac_try="$ac_link"
12697 case "(($ac_try" in
12698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699   *) ac_try_echo=$ac_try;;
12700 esac
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702   (eval "$ac_link") 2>conftest.er1
12703   ac_status=$?
12704   grep -v '^ *+' conftest.er1 >conftest.err
12705   rm -f conftest.er1
12706   cat conftest.err >&5
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } &&
12709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710   { (case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_try") 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; } &&
12719          { ac_try='test -s conftest$ac_exeext'
12720   { (case "(($ac_try" in
12721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722   *) ac_try_echo=$ac_try;;
12723 esac
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725   (eval "$ac_try") 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); }; }; then
12729   ac_cv_lib_psapi_main=yes
12730 else
12731   echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734         ac_cv_lib_psapi_main=no
12735 fi
12736
12737 rm -f core conftest.err conftest.$ac_objext \
12738       conftest$ac_exeext conftest.$ac_ext
12739 LIBS=$ac_check_lib_save_LIBS
12740 fi
12741 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12742 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12743 if test $ac_cv_lib_psapi_main = yes; then
12744   cat >>confdefs.h <<_ACEOF
12745 #define HAVE_LIBPSAPI 1
12746 _ACEOF
12747
12748   LIBS="-lpsapi $LIBS"
12749
12750 fi
12751
12752 fi
12753
12754 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12755 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12756 if test "${ac_cv_search_dlopen+set}" = set; then
12757   echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759   ac_func_search_save_LIBS=$LIBS
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h.  */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h.  */
12766
12767 /* Override any GCC internal prototype to avoid an error.
12768    Use char because int might match the return type of a GCC
12769    builtin and then its argument prototype would still apply.  */
12770 #ifdef __cplusplus
12771 extern "C"
12772 #endif
12773 char dlopen ();
12774 int
12775 main ()
12776 {
12777 return dlopen ();
12778   ;
12779   return 0;
12780 }
12781 _ACEOF
12782 for ac_lib in '' dl; do
12783   if test -z "$ac_lib"; then
12784     ac_res="none required"
12785   else
12786     ac_res=-l$ac_lib
12787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12788   fi
12789   rm -f conftest.$ac_objext conftest$ac_exeext
12790 if { (ac_try="$ac_link"
12791 case "(($ac_try" in
12792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793   *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796   (eval "$ac_link") 2>conftest.er1
12797   ac_status=$?
12798   grep -v '^ *+' conftest.er1 >conftest.err
12799   rm -f conftest.er1
12800   cat conftest.err >&5
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); } &&
12803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12813          { ac_try='test -s conftest$ac_exeext'
12814   { (case "(($ac_try" in
12815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816   *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819   (eval "$ac_try") 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; }; then
12823   ac_cv_search_dlopen=$ac_res
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828
12829 fi
12830
12831 rm -f core conftest.err conftest.$ac_objext \
12832       conftest$ac_exeext
12833   if test "${ac_cv_search_dlopen+set}" = set; then
12834   break
12835 fi
12836 done
12837 if test "${ac_cv_search_dlopen+set}" = set; then
12838   :
12839 else
12840   ac_cv_search_dlopen=no
12841 fi
12842 rm conftest.$ac_ext
12843 LIBS=$ac_func_search_save_LIBS
12844 fi
12845 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12846 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12847 ac_res=$ac_cv_search_dlopen
12848 if test "$ac_res" != no; then
12849   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12850
12851 cat >>confdefs.h <<\_ACEOF
12852 #define HAVE_DLOPEN 1
12853 _ACEOF
12854
12855 else
12856   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12857 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12858 fi
12859
12860
12861 if test "$llvm_cv_enable_libffi" = "yes" ; then
12862   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12863 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12864 if test "${ac_cv_search_ffi_call+set}" = set; then
12865   echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867   ac_func_search_save_LIBS=$LIBS
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h.  */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h.  */
12874
12875 /* Override any GCC internal prototype to avoid an error.
12876    Use char because int might match the return type of a GCC
12877    builtin and then its argument prototype would still apply.  */
12878 #ifdef __cplusplus
12879 extern "C"
12880 #endif
12881 char ffi_call ();
12882 int
12883 main ()
12884 {
12885 return ffi_call ();
12886   ;
12887   return 0;
12888 }
12889 _ACEOF
12890 for ac_lib in '' ffi; do
12891   if test -z "$ac_lib"; then
12892     ac_res="none required"
12893   else
12894     ac_res=-l$ac_lib
12895     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12896   fi
12897   rm -f conftest.$ac_objext conftest$ac_exeext
12898 if { (ac_try="$ac_link"
12899 case "(($ac_try" in
12900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901   *) ac_try_echo=$ac_try;;
12902 esac
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904   (eval "$ac_link") 2>conftest.er1
12905   ac_status=$?
12906   grep -v '^ *+' conftest.er1 >conftest.err
12907   rm -f conftest.er1
12908   cat conftest.err >&5
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); } &&
12911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12912   { (case "(($ac_try" in
12913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914   *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917   (eval "$ac_try") 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; } &&
12921          { ac_try='test -s conftest$ac_exeext'
12922   { (case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927   (eval "$ac_try") 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; }; then
12931   ac_cv_search_ffi_call=$ac_res
12932 else
12933   echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12935
12936
12937 fi
12938
12939 rm -f core conftest.err conftest.$ac_objext \
12940       conftest$ac_exeext
12941   if test "${ac_cv_search_ffi_call+set}" = set; then
12942   break
12943 fi
12944 done
12945 if test "${ac_cv_search_ffi_call+set}" = set; then
12946   :
12947 else
12948   ac_cv_search_ffi_call=no
12949 fi
12950 rm conftest.$ac_ext
12951 LIBS=$ac_func_search_save_LIBS
12952 fi
12953 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12954 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12955 ac_res=$ac_cv_search_ffi_call
12956 if test "$ac_res" != no; then
12957   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12958
12959 cat >>confdefs.h <<\_ACEOF
12960 #define HAVE_FFI_CALL 1
12961 _ACEOF
12962
12963 else
12964   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12965 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12966    { (exit 1); exit 1; }; }
12967 fi
12968
12969 fi
12970
12971 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12972 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12973 if test "${ac_cv_search_mallinfo+set}" = set; then
12974   echo $ECHO_N "(cached) $ECHO_C" >&6
12975 else
12976   ac_func_search_save_LIBS=$LIBS
12977 cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h.  */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h.  */
12983
12984 /* Override any GCC internal prototype to avoid an error.
12985    Use char because int might match the return type of a GCC
12986    builtin and then its argument prototype would still apply.  */
12987 #ifdef __cplusplus
12988 extern "C"
12989 #endif
12990 char mallinfo ();
12991 int
12992 main ()
12993 {
12994 return mallinfo ();
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 for ac_lib in '' malloc; do
13000   if test -z "$ac_lib"; then
13001     ac_res="none required"
13002   else
13003     ac_res=-l$ac_lib
13004     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13005   fi
13006   rm -f conftest.$ac_objext conftest$ac_exeext
13007 if { (ac_try="$ac_link"
13008 case "(($ac_try" in
13009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010   *) ac_try_echo=$ac_try;;
13011 esac
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013   (eval "$ac_link") 2>conftest.er1
13014   ac_status=$?
13015   grep -v '^ *+' conftest.er1 >conftest.err
13016   rm -f conftest.er1
13017   cat conftest.err >&5
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); } &&
13020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13021   { (case "(($ac_try" in
13022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023   *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026   (eval "$ac_try") 2>&5
13027   ac_status=$?
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); }; } &&
13030          { ac_try='test -s conftest$ac_exeext'
13031   { (case "(($ac_try" in
13032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033   *) ac_try_echo=$ac_try;;
13034 esac
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036   (eval "$ac_try") 2>&5
13037   ac_status=$?
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); }; }; then
13040   ac_cv_search_mallinfo=$ac_res
13041 else
13042   echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13044
13045
13046 fi
13047
13048 rm -f core conftest.err conftest.$ac_objext \
13049       conftest$ac_exeext
13050   if test "${ac_cv_search_mallinfo+set}" = set; then
13051   break
13052 fi
13053 done
13054 if test "${ac_cv_search_mallinfo+set}" = set; then
13055   :
13056 else
13057   ac_cv_search_mallinfo=no
13058 fi
13059 rm conftest.$ac_ext
13060 LIBS=$ac_func_search_save_LIBS
13061 fi
13062 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13063 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13064 ac_res=$ac_cv_search_mallinfo
13065 if test "$ac_res" != no; then
13066   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13067
13068 cat >>confdefs.h <<\_ACEOF
13069 #define HAVE_MALLINFO 1
13070 _ACEOF
13071
13072 fi
13073
13074
13075 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13076
13077 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13078 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13079 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13080   echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082   ac_check_lib_save_LIBS=$LIBS
13083 LIBS="-lpthread  $LIBS"
13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h.  */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h.  */
13090
13091 /* Override any GCC internal prototype to avoid an error.
13092    Use char because int might match the return type of a GCC
13093    builtin and then its argument prototype would still apply.  */
13094 #ifdef __cplusplus
13095 extern "C"
13096 #endif
13097 char pthread_mutex_init ();
13098 int
13099 main ()
13100 {
13101 return pthread_mutex_init ();
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext conftest$ac_exeext
13107 if { (ac_try="$ac_link"
13108 case "(($ac_try" in
13109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110   *) ac_try_echo=$ac_try;;
13111 esac
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113   (eval "$ac_link") 2>conftest.er1
13114   ac_status=$?
13115   grep -v '^ *+' conftest.er1 >conftest.err
13116   rm -f conftest.er1
13117   cat conftest.err >&5
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); } &&
13120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13121   { (case "(($ac_try" in
13122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123   *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126   (eval "$ac_try") 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; } &&
13130          { ac_try='test -s conftest$ac_exeext'
13131   { (case "(($ac_try" in
13132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133   *) ac_try_echo=$ac_try;;
13134 esac
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136   (eval "$ac_try") 2>&5
13137   ac_status=$?
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); }; }; then
13140   ac_cv_lib_pthread_pthread_mutex_init=yes
13141 else
13142   echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145         ac_cv_lib_pthread_pthread_mutex_init=no
13146 fi
13147
13148 rm -f core conftest.err conftest.$ac_objext \
13149       conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13151 fi
13152 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13153 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13154 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13155   cat >>confdefs.h <<_ACEOF
13156 #define HAVE_LIBPTHREAD 1
13157 _ACEOF
13158
13159   LIBS="-lpthread $LIBS"
13160
13161 fi
13162
13163   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13164 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13165 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13166   echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168   ac_func_search_save_LIBS=$LIBS
13169 cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h.  */
13171 _ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h.  */
13175
13176 /* Override any GCC internal prototype to avoid an error.
13177    Use char because int might match the return type of a GCC
13178    builtin and then its argument prototype would still apply.  */
13179 #ifdef __cplusplus
13180 extern "C"
13181 #endif
13182 char pthread_mutex_lock ();
13183 int
13184 main ()
13185 {
13186 return pthread_mutex_lock ();
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 for ac_lib in '' pthread; do
13192   if test -z "$ac_lib"; then
13193     ac_res="none required"
13194   else
13195     ac_res=-l$ac_lib
13196     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13197   fi
13198   rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (ac_try="$ac_link"
13200 case "(($ac_try" in
13201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202   *) ac_try_echo=$ac_try;;
13203 esac
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205   (eval "$ac_link") 2>conftest.er1
13206   ac_status=$?
13207   grep -v '^ *+' conftest.er1 >conftest.err
13208   rm -f conftest.er1
13209   cat conftest.err >&5
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); } &&
13212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13213   { (case "(($ac_try" in
13214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215   *) ac_try_echo=$ac_try;;
13216 esac
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218   (eval "$ac_try") 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); }; } &&
13222          { ac_try='test -s conftest$ac_exeext'
13223   { (case "(($ac_try" in
13224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225   *) ac_try_echo=$ac_try;;
13226 esac
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228   (eval "$ac_try") 2>&5
13229   ac_status=$?
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); }; }; then
13232   ac_cv_search_pthread_mutex_lock=$ac_res
13233 else
13234   echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13236
13237
13238 fi
13239
13240 rm -f core conftest.err conftest.$ac_objext \
13241       conftest$ac_exeext
13242   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13243   break
13244 fi
13245 done
13246 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13247   :
13248 else
13249   ac_cv_search_pthread_mutex_lock=no
13250 fi
13251 rm conftest.$ac_ext
13252 LIBS=$ac_func_search_save_LIBS
13253 fi
13254 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13255 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13256 ac_res=$ac_cv_search_pthread_mutex_lock
13257 if test "$ac_res" != no; then
13258   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13259
13260 cat >>confdefs.h <<\_ACEOF
13261 #define HAVE_PTHREAD_MUTEX_LOCK 1
13262 _ACEOF
13263
13264 fi
13265
13266   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13267 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13268 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   ac_func_search_save_LIBS=$LIBS
13272 cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h.  */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h.  */
13278
13279 /* Override any GCC internal prototype to avoid an error.
13280    Use char because int might match the return type of a GCC
13281    builtin and then its argument prototype would still apply.  */
13282 #ifdef __cplusplus
13283 extern "C"
13284 #endif
13285 char pthread_rwlock_init ();
13286 int
13287 main ()
13288 {
13289 return pthread_rwlock_init ();
13290   ;
13291   return 0;
13292 }
13293 _ACEOF
13294 for ac_lib in '' pthread; do
13295   if test -z "$ac_lib"; then
13296     ac_res="none required"
13297   else
13298     ac_res=-l$ac_lib
13299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13300   fi
13301   rm -f conftest.$ac_objext conftest$ac_exeext
13302 if { (ac_try="$ac_link"
13303 case "(($ac_try" in
13304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305   *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308   (eval "$ac_link") 2>conftest.er1
13309   ac_status=$?
13310   grep -v '^ *+' conftest.er1 >conftest.err
13311   rm -f conftest.er1
13312   cat conftest.err >&5
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); } &&
13315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316   { (case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_try") 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; } &&
13325          { ac_try='test -s conftest$ac_exeext'
13326   { (case "(($ac_try" in
13327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328   *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331   (eval "$ac_try") 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; }; then
13335   ac_cv_search_pthread_rwlock_init=$ac_res
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340
13341 fi
13342
13343 rm -f core conftest.err conftest.$ac_objext \
13344       conftest$ac_exeext
13345   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13346   break
13347 fi
13348 done
13349 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13350   :
13351 else
13352   ac_cv_search_pthread_rwlock_init=no
13353 fi
13354 rm conftest.$ac_ext
13355 LIBS=$ac_func_search_save_LIBS
13356 fi
13357 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13358 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13359 ac_res=$ac_cv_search_pthread_rwlock_init
13360 if test "$ac_res" != no; then
13361   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13362
13363 cat >>confdefs.h <<\_ACEOF
13364 #define HAVE_PTHREAD_RWLOCK_INIT 1
13365 _ACEOF
13366
13367 fi
13368
13369   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13370 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13371 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13372   echo $ECHO_N "(cached) $ECHO_C" >&6
13373 else
13374   ac_func_search_save_LIBS=$LIBS
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h.  */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h.  */
13381
13382 /* Override any GCC internal prototype to avoid an error.
13383    Use char because int might match the return type of a GCC
13384    builtin and then its argument prototype would still apply.  */
13385 #ifdef __cplusplus
13386 extern "C"
13387 #endif
13388 char pthread_getspecific ();
13389 int
13390 main ()
13391 {
13392 return pthread_getspecific ();
13393   ;
13394   return 0;
13395 }
13396 _ACEOF
13397 for ac_lib in '' pthread; do
13398   if test -z "$ac_lib"; then
13399     ac_res="none required"
13400   else
13401     ac_res=-l$ac_lib
13402     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13403   fi
13404   rm -f conftest.$ac_objext conftest$ac_exeext
13405 if { (ac_try="$ac_link"
13406 case "(($ac_try" in
13407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408   *) ac_try_echo=$ac_try;;
13409 esac
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411   (eval "$ac_link") 2>conftest.er1
13412   ac_status=$?
13413   grep -v '^ *+' conftest.er1 >conftest.err
13414   rm -f conftest.er1
13415   cat conftest.err >&5
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); } &&
13418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419   { (case "(($ac_try" in
13420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421   *) ac_try_echo=$ac_try;;
13422 esac
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424   (eval "$ac_try") 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; } &&
13428          { ac_try='test -s conftest$ac_exeext'
13429   { (case "(($ac_try" in
13430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431   *) ac_try_echo=$ac_try;;
13432 esac
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434   (eval "$ac_try") 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; }; then
13438   ac_cv_search_pthread_getspecific=$ac_res
13439 else
13440   echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443
13444 fi
13445
13446 rm -f core conftest.err conftest.$ac_objext \
13447       conftest$ac_exeext
13448   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13449   break
13450 fi
13451 done
13452 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13453   :
13454 else
13455   ac_cv_search_pthread_getspecific=no
13456 fi
13457 rm conftest.$ac_ext
13458 LIBS=$ac_func_search_save_LIBS
13459 fi
13460 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13461 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13462 ac_res=$ac_cv_search_pthread_getspecific
13463 if test "$ac_res" != no; then
13464   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13465
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_PTHREAD_GETSPECIFIC 1
13468 _ACEOF
13469
13470 fi
13471
13472 fi
13473
13474
13475 # Check whether --with-udis86 was given.
13476 if test "${with_udis86+set}" = set; then
13477   withval=$with_udis86;
13478       USE_UDIS86=1
13479
13480       case "$withval" in
13481         /usr/lib|yes) ;;
13482         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13483       esac
13484
13485 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13486 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13487 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13488   echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490   ac_check_lib_save_LIBS=$LIBS
13491 LIBS="-ludis86  $LIBS"
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498
13499 /* Override any GCC internal prototype to avoid an error.
13500    Use char because int might match the return type of a GCC
13501    builtin and then its argument prototype would still apply.  */
13502 #ifdef __cplusplus
13503 extern "C"
13504 #endif
13505 char ud_init ();
13506 int
13507 main ()
13508 {
13509 return ud_init ();
13510   ;
13511   return 0;
13512 }
13513 _ACEOF
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (ac_try="$ac_link"
13516 case "(($ac_try" in
13517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518   *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521   (eval "$ac_link") 2>conftest.er1
13522   ac_status=$?
13523   grep -v '^ *+' conftest.er1 >conftest.err
13524   rm -f conftest.er1
13525   cat conftest.err >&5
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); } &&
13528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13529   { (case "(($ac_try" in
13530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531   *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534   (eval "$ac_try") 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; } &&
13538          { ac_try='test -s conftest$ac_exeext'
13539   { (case "(($ac_try" in
13540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541   *) ac_try_echo=$ac_try;;
13542 esac
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544   (eval "$ac_try") 2>&5
13545   ac_status=$?
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); }; }; then
13548   ac_cv_lib_udis86_ud_init=yes
13549 else
13550   echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13552
13553         ac_cv_lib_udis86_ud_init=no
13554 fi
13555
13556 rm -f core conftest.err conftest.$ac_objext \
13557       conftest$ac_exeext conftest.$ac_ext
13558 LIBS=$ac_check_lib_save_LIBS
13559 fi
13560 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13561 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13562 if test $ac_cv_lib_udis86_ud_init = yes; then
13563   cat >>confdefs.h <<_ACEOF
13564 #define HAVE_LIBUDIS86 1
13565 _ACEOF
13566
13567   LIBS="-ludis86 $LIBS"
13568
13569 else
13570
13571         echo "Error! You need to have libudis86 around."
13572         exit -1
13573
13574 fi
13575
13576
13577 else
13578   USE_UDIS86=0
13579
13580 fi
13581
13582
13583 cat >>confdefs.h <<_ACEOF
13584 #define USE_UDIS86 $USE_UDIS86
13585 _ACEOF
13586
13587
13588
13589 # Check whether --with-oprofile was given.
13590 if test "${with_oprofile+set}" = set; then
13591   withval=$with_oprofile;
13592       USE_OPROFILE=1
13593
13594       case "$withval" in
13595         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13596         no) llvm_cv_oppath=
13597             USE_OPROFILE=0
13598  ;;
13599         *) llvm_cv_oppath="${withval}/lib/oprofile"
13600            CPPFLAGS="-I${withval}/include";;
13601       esac
13602       if test -n "$llvm_cv_oppath" ; then
13603         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13604                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13605 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13606 if test "${ac_cv_search_bfd_init+set}" = set; then
13607   echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609   ac_func_search_save_LIBS=$LIBS
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h.  */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h.  */
13616
13617 /* Override any GCC internal prototype to avoid an error.
13618    Use char because int might match the return type of a GCC
13619    builtin and then its argument prototype would still apply.  */
13620 #ifdef __cplusplus
13621 extern "C"
13622 #endif
13623 char bfd_init ();
13624 int
13625 main ()
13626 {
13627 return bfd_init ();
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 for ac_lib in '' bfd; do
13633   if test -z "$ac_lib"; then
13634     ac_res="none required"
13635   else
13636     ac_res=-l$ac_lib
13637     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13638   fi
13639   rm -f conftest.$ac_objext conftest$ac_exeext
13640 if { (ac_try="$ac_link"
13641 case "(($ac_try" in
13642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643   *) ac_try_echo=$ac_try;;
13644 esac
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646   (eval "$ac_link") 2>conftest.er1
13647   ac_status=$?
13648   grep -v '^ *+' conftest.er1 >conftest.err
13649   rm -f conftest.er1
13650   cat conftest.err >&5
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } &&
13653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13654   { (case "(($ac_try" in
13655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656   *) ac_try_echo=$ac_try;;
13657 esac
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659   (eval "$ac_try") 2>&5
13660   ac_status=$?
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); }; } &&
13663          { ac_try='test -s conftest$ac_exeext'
13664   { (case "(($ac_try" in
13665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666   *) ac_try_echo=$ac_try;;
13667 esac
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669   (eval "$ac_try") 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); }; }; then
13673   ac_cv_search_bfd_init=$ac_res
13674 else
13675   echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13677
13678
13679 fi
13680
13681 rm -f core conftest.err conftest.$ac_objext \
13682       conftest$ac_exeext
13683   if test "${ac_cv_search_bfd_init+set}" = set; then
13684   break
13685 fi
13686 done
13687 if test "${ac_cv_search_bfd_init+set}" = set; then
13688   :
13689 else
13690   ac_cv_search_bfd_init=no
13691 fi
13692 rm conftest.$ac_ext
13693 LIBS=$ac_func_search_save_LIBS
13694 fi
13695 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13696 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13697 ac_res=$ac_cv_search_bfd_init
13698 if test "$ac_res" != no; then
13699   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13700
13701 fi
13702
13703         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13704 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13705 if test "${ac_cv_search_op_open_agent+set}" = set; then
13706   echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708   ac_func_search_save_LIBS=$LIBS
13709 cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h.  */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h.  */
13715
13716 /* Override any GCC internal prototype to avoid an error.
13717    Use char because int might match the return type of a GCC
13718    builtin and then its argument prototype would still apply.  */
13719 #ifdef __cplusplus
13720 extern "C"
13721 #endif
13722 char op_open_agent ();
13723 int
13724 main ()
13725 {
13726 return op_open_agent ();
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 for ac_lib in '' opagent; do
13732   if test -z "$ac_lib"; then
13733     ac_res="none required"
13734   else
13735     ac_res=-l$ac_lib
13736     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13737   fi
13738   rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (ac_try="$ac_link"
13740 case "(($ac_try" in
13741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742   *) ac_try_echo=$ac_try;;
13743 esac
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745   (eval "$ac_link") 2>conftest.er1
13746   ac_status=$?
13747   grep -v '^ *+' conftest.er1 >conftest.err
13748   rm -f conftest.er1
13749   cat conftest.err >&5
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } &&
13752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753   { (case "(($ac_try" in
13754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755   *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758   (eval "$ac_try") 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; } &&
13762          { ac_try='test -s conftest$ac_exeext'
13763   { (case "(($ac_try" in
13764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765   *) ac_try_echo=$ac_try;;
13766 esac
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768   (eval "$ac_try") 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); }; }; then
13772   ac_cv_search_op_open_agent=$ac_res
13773 else
13774   echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13776
13777
13778 fi
13779
13780 rm -f core conftest.err conftest.$ac_objext \
13781       conftest$ac_exeext
13782   if test "${ac_cv_search_op_open_agent+set}" = set; then
13783   break
13784 fi
13785 done
13786 if test "${ac_cv_search_op_open_agent+set}" = set; then
13787   :
13788 else
13789   ac_cv_search_op_open_agent=no
13790 fi
13791 rm conftest.$ac_ext
13792 LIBS=$ac_func_search_save_LIBS
13793 fi
13794 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13795 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13796 ac_res=$ac_cv_search_op_open_agent
13797 if test "$ac_res" != no; then
13798   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13799
13800 else
13801
13802           echo "Error! You need to have libopagent around."
13803           exit -1
13804
13805 fi
13806
13807         if test "${ac_cv_header_opagent_h+set}" = set; then
13808   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13809 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13810 if test "${ac_cv_header_opagent_h+set}" = set; then
13811   echo $ECHO_N "(cached) $ECHO_C" >&6
13812 fi
13813 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13814 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13815 else
13816   # Is the header compilable?
13817 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13818 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h.  */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h.  */
13825 $ac_includes_default
13826 #include <opagent.h>
13827 _ACEOF
13828 rm -f conftest.$ac_objext
13829 if { (ac_try="$ac_compile"
13830 case "(($ac_try" in
13831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832   *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835   (eval "$ac_compile") 2>conftest.er1
13836   ac_status=$?
13837   grep -v '^ *+' conftest.er1 >conftest.err
13838   rm -f conftest.er1
13839   cat conftest.err >&5
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); } &&
13842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843   { (case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848   (eval "$ac_try") 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; } &&
13852          { ac_try='test -s conftest.$ac_objext'
13853   { (case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_try") 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; }; then
13862   ac_header_compiler=yes
13863 else
13864   echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867         ac_header_compiler=no
13868 fi
13869
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13872 echo "${ECHO_T}$ac_header_compiler" >&6; }
13873
13874 # Is the header present?
13875 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13876 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13877 cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 #include <opagent.h>
13884 _ACEOF
13885 if { (ac_try="$ac_cpp conftest.$ac_ext"
13886 case "(($ac_try" in
13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888   *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13892   ac_status=$?
13893   grep -v '^ *+' conftest.er1 >conftest.err
13894   rm -f conftest.er1
13895   cat conftest.err >&5
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } >/dev/null; then
13898   if test -s conftest.err; then
13899     ac_cpp_err=$ac_c_preproc_warn_flag
13900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13901   else
13902     ac_cpp_err=
13903   fi
13904 else
13905   ac_cpp_err=yes
13906 fi
13907 if test -z "$ac_cpp_err"; then
13908   ac_header_preproc=yes
13909 else
13910   echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913   ac_header_preproc=no
13914 fi
13915
13916 rm -f conftest.err conftest.$ac_ext
13917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13918 echo "${ECHO_T}$ac_header_preproc" >&6; }
13919
13920 # So?  What about this header?
13921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13922   yes:no: )
13923     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13924 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13925     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13926 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13927     ac_header_preproc=yes
13928     ;;
13929   no:yes:* )
13930     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13931 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13932     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13933 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13934     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13935 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13936     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13937 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13938     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13939 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13940     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13941 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13942     ( cat <<\_ASBOX
13943 ## ----------------------------------- ##
13944 ## Report this to llvmbugs@cs.uiuc.edu ##
13945 ## ----------------------------------- ##
13946 _ASBOX
13947      ) | sed "s/^/$as_me: WARNING:     /" >&2
13948     ;;
13949 esac
13950 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13951 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13952 if test "${ac_cv_header_opagent_h+set}" = set; then
13953   echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955   ac_cv_header_opagent_h=$ac_header_preproc
13956 fi
13957 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13958 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13959
13960 fi
13961 if test $ac_cv_header_opagent_h = yes; then
13962   :
13963 else
13964
13965           echo "Error! You need to have opagent.h around."
13966           exit -1
13967
13968 fi
13969
13970
13971       fi
13972
13973 else
13974
13975       USE_OPROFILE=0
13976
13977
13978 fi
13979
13980
13981 cat >>confdefs.h <<_ACEOF
13982 #define USE_OPROFILE $USE_OPROFILE
13983 _ACEOF
13984
13985
13986
13987
13988
13989
13990
13991
13992 ac_header_dirent=no
13993 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13994   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13995 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13996 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13998   echo $ECHO_N "(cached) $ECHO_C" >&6
13999 else
14000   cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006 #include <sys/types.h>
14007 #include <$ac_hdr>
14008
14009 int
14010 main ()
14011 {
14012 if ((DIR *) 0)
14013 return 0;
14014   ;
14015   return 0;
14016 }
14017 _ACEOF
14018 rm -f conftest.$ac_objext
14019 if { (ac_try="$ac_compile"
14020 case "(($ac_try" in
14021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022   *) ac_try_echo=$ac_try;;
14023 esac
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025   (eval "$ac_compile") 2>conftest.er1
14026   ac_status=$?
14027   grep -v '^ *+' conftest.er1 >conftest.err
14028   rm -f conftest.er1
14029   cat conftest.err >&5
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); } &&
14032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14033   { (case "(($ac_try" in
14034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035   *) ac_try_echo=$ac_try;;
14036 esac
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038   (eval "$ac_try") 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); }; } &&
14042          { ac_try='test -s conftest.$ac_objext'
14043   { (case "(($ac_try" in
14044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045   *) ac_try_echo=$ac_try;;
14046 esac
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048   (eval "$ac_try") 2>&5
14049   ac_status=$?
14050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); }; }; then
14052   eval "$as_ac_Header=yes"
14053 else
14054   echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14056
14057         eval "$as_ac_Header=no"
14058 fi
14059
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 fi
14062 ac_res=`eval echo '${'$as_ac_Header'}'`
14063                { echo "$as_me:$LINENO: result: $ac_res" >&5
14064 echo "${ECHO_T}$ac_res" >&6; }
14065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14066   cat >>confdefs.h <<_ACEOF
14067 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14068 _ACEOF
14069
14070 ac_header_dirent=$ac_hdr; break
14071 fi
14072
14073 done
14074 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14075 if test $ac_header_dirent = dirent.h; then
14076   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14077 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14078 if test "${ac_cv_search_opendir+set}" = set; then
14079   echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081   ac_func_search_save_LIBS=$LIBS
14082 cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h.  */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h.  */
14088
14089 /* Override any GCC internal prototype to avoid an error.
14090    Use char because int might match the return type of a GCC
14091    builtin and then its argument prototype would still apply.  */
14092 #ifdef __cplusplus
14093 extern "C"
14094 #endif
14095 char opendir ();
14096 int
14097 main ()
14098 {
14099 return opendir ();
14100   ;
14101   return 0;
14102 }
14103 _ACEOF
14104 for ac_lib in '' dir; do
14105   if test -z "$ac_lib"; then
14106     ac_res="none required"
14107   else
14108     ac_res=-l$ac_lib
14109     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14110   fi
14111   rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (ac_try="$ac_link"
14113 case "(($ac_try" in
14114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115   *) ac_try_echo=$ac_try;;
14116 esac
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118   (eval "$ac_link") 2>conftest.er1
14119   ac_status=$?
14120   grep -v '^ *+' conftest.er1 >conftest.err
14121   rm -f conftest.er1
14122   cat conftest.err >&5
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } &&
14125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14126   { (case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131   (eval "$ac_try") 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; } &&
14135          { ac_try='test -s conftest$ac_exeext'
14136   { (case "(($ac_try" in
14137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138   *) ac_try_echo=$ac_try;;
14139 esac
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141   (eval "$ac_try") 2>&5
14142   ac_status=$?
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   (exit $ac_status); }; }; then
14145   ac_cv_search_opendir=$ac_res
14146 else
14147   echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150
14151 fi
14152
14153 rm -f core conftest.err conftest.$ac_objext \
14154       conftest$ac_exeext
14155   if test "${ac_cv_search_opendir+set}" = set; then
14156   break
14157 fi
14158 done
14159 if test "${ac_cv_search_opendir+set}" = set; then
14160   :
14161 else
14162   ac_cv_search_opendir=no
14163 fi
14164 rm conftest.$ac_ext
14165 LIBS=$ac_func_search_save_LIBS
14166 fi
14167 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14168 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14169 ac_res=$ac_cv_search_opendir
14170 if test "$ac_res" != no; then
14171   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14172
14173 fi
14174
14175 else
14176   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14177 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14178 if test "${ac_cv_search_opendir+set}" = set; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181   ac_func_search_save_LIBS=$LIBS
14182 cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h.  */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h.  */
14188
14189 /* Override any GCC internal prototype to avoid an error.
14190    Use char because int might match the return type of a GCC
14191    builtin and then its argument prototype would still apply.  */
14192 #ifdef __cplusplus
14193 extern "C"
14194 #endif
14195 char opendir ();
14196 int
14197 main ()
14198 {
14199 return opendir ();
14200   ;
14201   return 0;
14202 }
14203 _ACEOF
14204 for ac_lib in '' x; do
14205   if test -z "$ac_lib"; then
14206     ac_res="none required"
14207   else
14208     ac_res=-l$ac_lib
14209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14210   fi
14211   rm -f conftest.$ac_objext conftest$ac_exeext
14212 if { (ac_try="$ac_link"
14213 case "(($ac_try" in
14214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215   *) ac_try_echo=$ac_try;;
14216 esac
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218   (eval "$ac_link") 2>conftest.er1
14219   ac_status=$?
14220   grep -v '^ *+' conftest.er1 >conftest.err
14221   rm -f conftest.er1
14222   cat conftest.err >&5
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } &&
14225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226   { (case "(($ac_try" in
14227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228   *) ac_try_echo=$ac_try;;
14229 esac
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231   (eval "$ac_try") 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; } &&
14235          { ac_try='test -s conftest$ac_exeext'
14236   { (case "(($ac_try" in
14237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238   *) ac_try_echo=$ac_try;;
14239 esac
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241   (eval "$ac_try") 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); }; }; then
14245   ac_cv_search_opendir=$ac_res
14246 else
14247   echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14249
14250
14251 fi
14252
14253 rm -f core conftest.err conftest.$ac_objext \
14254       conftest$ac_exeext
14255   if test "${ac_cv_search_opendir+set}" = set; then
14256   break
14257 fi
14258 done
14259 if test "${ac_cv_search_opendir+set}" = set; then
14260   :
14261 else
14262   ac_cv_search_opendir=no
14263 fi
14264 rm conftest.$ac_ext
14265 LIBS=$ac_func_search_save_LIBS
14266 fi
14267 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14268 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14269 ac_res=$ac_cv_search_opendir
14270 if test "$ac_res" != no; then
14271   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14272
14273 fi
14274
14275 fi
14276
14277 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14278 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14279 if test "${ac_cv_header_mmap_anon+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282    ac_ext=c
14283 ac_cpp='$CPP $CPPFLAGS'
14284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287
14288   cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h.  */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h.  */
14294 #include <sys/mman.h>
14295 #include <unistd.h>
14296 #include <fcntl.h>
14297 int
14298 main ()
14299 {
14300 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (ac_try="$ac_compile"
14307 case "(($ac_try" in
14308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309   *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312   (eval "$ac_compile") 2>conftest.er1
14313   ac_status=$?
14314   grep -v '^ *+' conftest.er1 >conftest.err
14315   rm -f conftest.er1
14316   cat conftest.err >&5
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } &&
14319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320   { (case "(($ac_try" in
14321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322   *) ac_try_echo=$ac_try;;
14323 esac
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325   (eval "$ac_try") 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; } &&
14329          { ac_try='test -s conftest.$ac_objext'
14330   { (case "(($ac_try" in
14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332   *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335   (eval "$ac_try") 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); }; }; then
14339   ac_cv_header_mmap_anon=yes
14340 else
14341   echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344         ac_cv_header_mmap_anon=no
14345 fi
14346
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348   ac_ext=c
14349 ac_cpp='$CPP $CPPFLAGS'
14350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14353
14354
14355 fi
14356 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14357 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14358 if test "$ac_cv_header_mmap_anon" = yes; then
14359
14360 cat >>confdefs.h <<\_ACEOF
14361 #define HAVE_MMAP_ANONYMOUS 1
14362 _ACEOF
14363
14364 fi
14365
14366 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14367 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14368 if test "${ac_cv_header_stat_broken+set}" = set; then
14369   echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371   cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h.  */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h.  */
14377 #include <sys/types.h>
14378 #include <sys/stat.h>
14379
14380 #if defined S_ISBLK && defined S_IFDIR
14381 # if S_ISBLK (S_IFDIR)
14382 You lose.
14383 # endif
14384 #endif
14385
14386 #if defined S_ISBLK && defined S_IFCHR
14387 # if S_ISBLK (S_IFCHR)
14388 You lose.
14389 # endif
14390 #endif
14391
14392 #if defined S_ISLNK && defined S_IFREG
14393 # if S_ISLNK (S_IFREG)
14394 You lose.
14395 # endif
14396 #endif
14397
14398 #if defined S_ISSOCK && defined S_IFREG
14399 # if S_ISSOCK (S_IFREG)
14400 You lose.
14401 # endif
14402 #endif
14403
14404 _ACEOF
14405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14406   $EGREP "You lose" >/dev/null 2>&1; then
14407   ac_cv_header_stat_broken=yes
14408 else
14409   ac_cv_header_stat_broken=no
14410 fi
14411 rm -f conftest*
14412
14413 fi
14414 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14415 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14416 if test $ac_cv_header_stat_broken = yes; then
14417
14418 cat >>confdefs.h <<\_ACEOF
14419 #define STAT_MACROS_BROKEN 1
14420 _ACEOF
14421
14422 fi
14423
14424 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14425 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14426 if test "${ac_cv_header_stdc+set}" = set; then
14427   echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429   cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h.  */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h.  */
14435 #include <stdlib.h>
14436 #include <stdarg.h>
14437 #include <string.h>
14438 #include <float.h>
14439
14440 int
14441 main ()
14442 {
14443
14444   ;
14445   return 0;
14446 }
14447 _ACEOF
14448 rm -f conftest.$ac_objext
14449 if { (ac_try="$ac_compile"
14450 case "(($ac_try" in
14451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452   *) ac_try_echo=$ac_try;;
14453 esac
14454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455   (eval "$ac_compile") 2>conftest.er1
14456   ac_status=$?
14457   grep -v '^ *+' conftest.er1 >conftest.err
14458   rm -f conftest.er1
14459   cat conftest.err >&5
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } &&
14462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14463   { (case "(($ac_try" in
14464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465   *) ac_try_echo=$ac_try;;
14466 esac
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468   (eval "$ac_try") 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); }; } &&
14472          { ac_try='test -s conftest.$ac_objext'
14473   { (case "(($ac_try" in
14474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475   *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478   (eval "$ac_try") 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; }; then
14482   ac_cv_header_stdc=yes
14483 else
14484   echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487         ac_cv_header_stdc=no
14488 fi
14489
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491
14492 if test $ac_cv_header_stdc = yes; then
14493   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14494   cat >conftest.$ac_ext <<_ACEOF
14495 /* confdefs.h.  */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h.  */
14500 #include <string.h>
14501
14502 _ACEOF
14503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14504   $EGREP "memchr" >/dev/null 2>&1; then
14505   :
14506 else
14507   ac_cv_header_stdc=no
14508 fi
14509 rm -f conftest*
14510
14511 fi
14512
14513 if test $ac_cv_header_stdc = yes; then
14514   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14515   cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521 #include <stdlib.h>
14522
14523 _ACEOF
14524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14525   $EGREP "free" >/dev/null 2>&1; then
14526   :
14527 else
14528   ac_cv_header_stdc=no
14529 fi
14530 rm -f conftest*
14531
14532 fi
14533
14534 if test $ac_cv_header_stdc = yes; then
14535   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14536   if test "$cross_compiling" = yes; then
14537   :
14538 else
14539   cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 #include <ctype.h>
14546 #include <stdlib.h>
14547 #if ((' ' & 0x0FF) == 0x020)
14548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14550 #else
14551 # define ISLOWER(c) \
14552                    (('a' <= (c) && (c) <= 'i') \
14553                      || ('j' <= (c) && (c) <= 'r') \
14554                      || ('s' <= (c) && (c) <= 'z'))
14555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14556 #endif
14557
14558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14559 int
14560 main ()
14561 {
14562   int i;
14563   for (i = 0; i < 256; i++)
14564     if (XOR (islower (i), ISLOWER (i))
14565         || toupper (i) != TOUPPER (i))
14566       return 2;
14567   return 0;
14568 }
14569 _ACEOF
14570 rm -f conftest$ac_exeext
14571 if { (ac_try="$ac_link"
14572 case "(($ac_try" in
14573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574   *) ac_try_echo=$ac_try;;
14575 esac
14576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577   (eval "$ac_link") 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14581   { (case "(($ac_try" in
14582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583   *) ac_try_echo=$ac_try;;
14584 esac
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586   (eval "$ac_try") 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; }; then
14590   :
14591 else
14592   echo "$as_me: program exited with status $ac_status" >&5
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596 ( exit $ac_status )
14597 ac_cv_header_stdc=no
14598 fi
14599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14600 fi
14601
14602
14603 fi
14604 fi
14605 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14606 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14607 if test $ac_cv_header_stdc = yes; then
14608
14609 cat >>confdefs.h <<\_ACEOF
14610 #define STDC_HEADERS 1
14611 _ACEOF
14612
14613 fi
14614
14615 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14616 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14617 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14618   echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620   cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h.  */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h.  */
14626 #include <sys/types.h>
14627 #include <sys/wait.h>
14628 #ifndef WEXITSTATUS
14629 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14630 #endif
14631 #ifndef WIFEXITED
14632 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14633 #endif
14634
14635 int
14636 main ()
14637 {
14638   int s;
14639   wait (&s);
14640   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14641   ;
14642   return 0;
14643 }
14644 _ACEOF
14645 rm -f conftest.$ac_objext
14646 if { (ac_try="$ac_compile"
14647 case "(($ac_try" in
14648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649   *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652   (eval "$ac_compile") 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } &&
14659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14660   { (case "(($ac_try" in
14661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662   *) ac_try_echo=$ac_try;;
14663 esac
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665   (eval "$ac_try") 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); }; } &&
14669          { ac_try='test -s conftest.$ac_objext'
14670   { (case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_try") 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; }; then
14679   ac_cv_header_sys_wait_h=yes
14680 else
14681   echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684         ac_cv_header_sys_wait_h=no
14685 fi
14686
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688 fi
14689 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14690 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14691 if test $ac_cv_header_sys_wait_h = yes; then
14692
14693 cat >>confdefs.h <<\_ACEOF
14694 #define HAVE_SYS_WAIT_H 1
14695 _ACEOF
14696
14697 fi
14698
14699 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14700 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14701 if test "${ac_cv_header_time+set}" = set; then
14702   echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704   cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 #include <sys/types.h>
14711 #include <sys/time.h>
14712 #include <time.h>
14713
14714 int
14715 main ()
14716 {
14717 if ((struct tm *) 0)
14718 return 0;
14719   ;
14720   return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727   *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730   (eval "$ac_compile") 2>conftest.er1
14731   ac_status=$?
14732   grep -v '^ *+' conftest.er1 >conftest.err
14733   rm -f conftest.er1
14734   cat conftest.err >&5
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); } &&
14737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14738   { (case "(($ac_try" in
14739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740   *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743   (eval "$ac_try") 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; } &&
14747          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14757   ac_cv_header_time=yes
14758 else
14759   echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762         ac_cv_header_time=no
14763 fi
14764
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 fi
14767 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14768 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14769 if test $ac_cv_header_time = yes; then
14770
14771 cat >>confdefs.h <<\_ACEOF
14772 #define TIME_WITH_SYS_TIME 1
14773 _ACEOF
14774
14775 fi
14776
14777
14778
14779
14780
14781
14782
14783
14784 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14785 do
14786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14791   echo $ECHO_N "(cached) $ECHO_C" >&6
14792 fi
14793 ac_res=`eval echo '${'$as_ac_Header'}'`
14794                { echo "$as_me:$LINENO: result: $ac_res" >&5
14795 echo "${ECHO_T}$ac_res" >&6; }
14796 else
14797   # Is the header compilable?
14798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14800 cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h.  */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h.  */
14806 $ac_includes_default
14807 #include <$ac_header>
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813   *) ac_try_echo=$ac_try;;
14814 esac
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816   (eval "$ac_compile") 2>conftest.er1
14817   ac_status=$?
14818   grep -v '^ *+' conftest.er1 >conftest.err
14819   rm -f conftest.er1
14820   cat conftest.err >&5
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); } &&
14823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14824   { (case "(($ac_try" in
14825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826   *) ac_try_echo=$ac_try;;
14827 esac
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829   (eval "$ac_try") 2>&5
14830   ac_status=$?
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); }; } &&
14833          { ac_try='test -s conftest.$ac_objext'
14834   { (case "(($ac_try" in
14835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836   *) ac_try_echo=$ac_try;;
14837 esac
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839   (eval "$ac_try") 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; }; then
14843   ac_header_compiler=yes
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848         ac_header_compiler=no
14849 fi
14850
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14853 echo "${ECHO_T}$ac_header_compiler" >&6; }
14854
14855 # Is the header present?
14856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14858 cat >conftest.$ac_ext <<_ACEOF
14859 /* confdefs.h.  */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h.  */
14864 #include <$ac_header>
14865 _ACEOF
14866 if { (ac_try="$ac_cpp conftest.$ac_ext"
14867 case "(($ac_try" in
14868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869   *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14873   ac_status=$?
14874   grep -v '^ *+' conftest.er1 >conftest.err
14875   rm -f conftest.er1
14876   cat conftest.err >&5
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); } >/dev/null; then
14879   if test -s conftest.err; then
14880     ac_cpp_err=$ac_c_preproc_warn_flag
14881     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14882   else
14883     ac_cpp_err=
14884   fi
14885 else
14886   ac_cpp_err=yes
14887 fi
14888 if test -z "$ac_cpp_err"; then
14889   ac_header_preproc=yes
14890 else
14891   echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894   ac_header_preproc=no
14895 fi
14896
14897 rm -f conftest.err conftest.$ac_ext
14898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14899 echo "${ECHO_T}$ac_header_preproc" >&6; }
14900
14901 # So?  What about this header?
14902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14903   yes:no: )
14904     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14908     ac_header_preproc=yes
14909     ;;
14910   no:yes:* )
14911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14913     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14914 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14915     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14917     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14918 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14921     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14923     ( cat <<\_ASBOX
14924 ## ----------------------------------- ##
14925 ## Report this to llvmbugs@cs.uiuc.edu ##
14926 ## ----------------------------------- ##
14927 _ASBOX
14928      ) | sed "s/^/$as_me: WARNING:     /" >&2
14929     ;;
14930 esac
14931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14934   echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936   eval "$as_ac_Header=\$ac_header_preproc"
14937 fi
14938 ac_res=`eval echo '${'$as_ac_Header'}'`
14939                { echo "$as_me:$LINENO: result: $ac_res" >&5
14940 echo "${ECHO_T}$ac_res" >&6; }
14941
14942 fi
14943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14944   cat >>confdefs.h <<_ACEOF
14945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14946 _ACEOF
14947
14948 fi
14949
14950 done
14951
14952
14953
14954
14955
14956
14957
14958 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14959 do
14960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965   echo $ECHO_N "(cached) $ECHO_C" >&6
14966 fi
14967 ac_res=`eval echo '${'$as_ac_Header'}'`
14968                { echo "$as_me:$LINENO: result: $ac_res" >&5
14969 echo "${ECHO_T}$ac_res" >&6; }
14970 else
14971   # Is the header compilable?
14972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h.  */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h.  */
14980 $ac_includes_default
14981 #include <$ac_header>
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987   *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990   (eval "$ac_compile") 2>conftest.er1
14991   ac_status=$?
14992   grep -v '^ *+' conftest.er1 >conftest.err
14993   rm -f conftest.er1
14994   cat conftest.err >&5
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); } &&
14997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998   { (case "(($ac_try" in
14999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000   *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003   (eval "$ac_try") 2>&5
15004   ac_status=$?
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); }; } &&
15007          { ac_try='test -s conftest.$ac_objext'
15008   { (case "(($ac_try" in
15009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010   *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013   (eval "$ac_try") 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); }; }; then
15017   ac_header_compiler=yes
15018 else
15019   echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022         ac_header_compiler=no
15023 fi
15024
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15027 echo "${ECHO_T}$ac_header_compiler" >&6; }
15028
15029 # Is the header present?
15030 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15032 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038 #include <$ac_header>
15039 _ACEOF
15040 if { (ac_try="$ac_cpp conftest.$ac_ext"
15041 case "(($ac_try" in
15042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043   *) ac_try_echo=$ac_try;;
15044 esac
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15047   ac_status=$?
15048   grep -v '^ *+' conftest.er1 >conftest.err
15049   rm -f conftest.er1
15050   cat conftest.err >&5
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); } >/dev/null; then
15053   if test -s conftest.err; then
15054     ac_cpp_err=$ac_c_preproc_warn_flag
15055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15056   else
15057     ac_cpp_err=
15058   fi
15059 else
15060   ac_cpp_err=yes
15061 fi
15062 if test -z "$ac_cpp_err"; then
15063   ac_header_preproc=yes
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068   ac_header_preproc=no
15069 fi
15070
15071 rm -f conftest.err conftest.$ac_ext
15072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15073 echo "${ECHO_T}$ac_header_preproc" >&6; }
15074
15075 # So?  What about this header?
15076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15077   yes:no: )
15078     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15082     ac_header_preproc=yes
15083     ;;
15084   no:yes:* )
15085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15087     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15088 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15089     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15091     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15092 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15095     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15097     ( cat <<\_ASBOX
15098 ## ----------------------------------- ##
15099 ## Report this to llvmbugs@cs.uiuc.edu ##
15100 ## ----------------------------------- ##
15101 _ASBOX
15102      ) | sed "s/^/$as_me: WARNING:     /" >&2
15103     ;;
15104 esac
15105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15108   echo $ECHO_N "(cached) $ECHO_C" >&6
15109 else
15110   eval "$as_ac_Header=\$ac_header_preproc"
15111 fi
15112 ac_res=`eval echo '${'$as_ac_Header'}'`
15113                { echo "$as_me:$LINENO: result: $ac_res" >&5
15114 echo "${ECHO_T}$ac_res" >&6; }
15115
15116 fi
15117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15118   cat >>confdefs.h <<_ACEOF
15119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15120 _ACEOF
15121
15122 fi
15123
15124 done
15125
15126
15127
15128 for ac_header in utime.h windows.h
15129 do
15130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 fi
15137 ac_res=`eval echo '${'$as_ac_Header'}'`
15138                { echo "$as_me:$LINENO: result: $ac_res" >&5
15139 echo "${ECHO_T}$ac_res" >&6; }
15140 else
15141   # Is the header compilable?
15142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h.  */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h.  */
15150 $ac_includes_default
15151 #include <$ac_header>
15152 _ACEOF
15153 rm -f conftest.$ac_objext
15154 if { (ac_try="$ac_compile"
15155 case "(($ac_try" in
15156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157   *) ac_try_echo=$ac_try;;
15158 esac
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160   (eval "$ac_compile") 2>conftest.er1
15161   ac_status=$?
15162   grep -v '^ *+' conftest.er1 >conftest.err
15163   rm -f conftest.er1
15164   cat conftest.err >&5
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); } &&
15167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15168   { (case "(($ac_try" in
15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170   *) ac_try_echo=$ac_try;;
15171 esac
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173   (eval "$ac_try") 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; } &&
15177          { ac_try='test -s conftest.$ac_objext'
15178   { (case "(($ac_try" in
15179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180   *) ac_try_echo=$ac_try;;
15181 esac
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183   (eval "$ac_try") 2>&5
15184   ac_status=$?
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); }; }; then
15187   ac_header_compiler=yes
15188 else
15189   echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192         ac_header_compiler=no
15193 fi
15194
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197 echo "${ECHO_T}$ac_header_compiler" >&6; }
15198
15199 # Is the header present?
15200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208 #include <$ac_header>
15209 _ACEOF
15210 if { (ac_try="$ac_cpp conftest.$ac_ext"
15211 case "(($ac_try" in
15212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213   *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15217   ac_status=$?
15218   grep -v '^ *+' conftest.er1 >conftest.err
15219   rm -f conftest.er1
15220   cat conftest.err >&5
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); } >/dev/null; then
15223   if test -s conftest.err; then
15224     ac_cpp_err=$ac_c_preproc_warn_flag
15225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15226   else
15227     ac_cpp_err=
15228   fi
15229 else
15230   ac_cpp_err=yes
15231 fi
15232 if test -z "$ac_cpp_err"; then
15233   ac_header_preproc=yes
15234 else
15235   echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238   ac_header_preproc=no
15239 fi
15240
15241 rm -f conftest.err conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15243 echo "${ECHO_T}$ac_header_preproc" >&6; }
15244
15245 # So?  What about this header?
15246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15247   yes:no: )
15248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15252     ac_header_preproc=yes
15253     ;;
15254   no:yes:* )
15255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15267     ( cat <<\_ASBOX
15268 ## ----------------------------------- ##
15269 ## Report this to llvmbugs@cs.uiuc.edu ##
15270 ## ----------------------------------- ##
15271 _ASBOX
15272      ) | sed "s/^/$as_me: WARNING:     /" >&2
15273     ;;
15274 esac
15275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278   echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280   eval "$as_ac_Header=\$ac_header_preproc"
15281 fi
15282 ac_res=`eval echo '${'$as_ac_Header'}'`
15283                { echo "$as_me:$LINENO: result: $ac_res" >&5
15284 echo "${ECHO_T}$ac_res" >&6; }
15285
15286 fi
15287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15288   cat >>confdefs.h <<_ACEOF
15289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15290 _ACEOF
15291
15292 fi
15293
15294 done
15295
15296
15297
15298
15299
15300
15301 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15302 do
15303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15305   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15308   echo $ECHO_N "(cached) $ECHO_C" >&6
15309 fi
15310 ac_res=`eval echo '${'$as_ac_Header'}'`
15311                { echo "$as_me:$LINENO: result: $ac_res" >&5
15312 echo "${ECHO_T}$ac_res" >&6; }
15313 else
15314   # Is the header compilable?
15315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15317 cat >conftest.$ac_ext <<_ACEOF
15318 /* confdefs.h.  */
15319 _ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h.  */
15323 $ac_includes_default
15324 #include <$ac_header>
15325 _ACEOF
15326 rm -f conftest.$ac_objext
15327 if { (ac_try="$ac_compile"
15328 case "(($ac_try" in
15329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330   *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333   (eval "$ac_compile") 2>conftest.er1
15334   ac_status=$?
15335   grep -v '^ *+' conftest.er1 >conftest.err
15336   rm -f conftest.er1
15337   cat conftest.err >&5
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); } &&
15340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15341   { (case "(($ac_try" in
15342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343   *) ac_try_echo=$ac_try;;
15344 esac
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346   (eval "$ac_try") 2>&5
15347   ac_status=$?
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); }; } &&
15350          { ac_try='test -s conftest.$ac_objext'
15351   { (case "(($ac_try" in
15352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353   *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356   (eval "$ac_try") 2>&5
15357   ac_status=$?
15358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359   (exit $ac_status); }; }; then
15360   ac_header_compiler=yes
15361 else
15362   echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15364
15365         ac_header_compiler=no
15366 fi
15367
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15370 echo "${ECHO_T}$ac_header_compiler" >&6; }
15371
15372 # Is the header present?
15373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15375 cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381 #include <$ac_header>
15382 _ACEOF
15383 if { (ac_try="$ac_cpp conftest.$ac_ext"
15384 case "(($ac_try" in
15385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386   *) ac_try_echo=$ac_try;;
15387 esac
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15390   ac_status=$?
15391   grep -v '^ *+' conftest.er1 >conftest.err
15392   rm -f conftest.er1
15393   cat conftest.err >&5
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); } >/dev/null; then
15396   if test -s conftest.err; then
15397     ac_cpp_err=$ac_c_preproc_warn_flag
15398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15399   else
15400     ac_cpp_err=
15401   fi
15402 else
15403   ac_cpp_err=yes
15404 fi
15405 if test -z "$ac_cpp_err"; then
15406   ac_header_preproc=yes
15407 else
15408   echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15410
15411   ac_header_preproc=no
15412 fi
15413
15414 rm -f conftest.err conftest.$ac_ext
15415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15416 echo "${ECHO_T}$ac_header_preproc" >&6; }
15417
15418 # So?  What about this header?
15419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15420   yes:no: )
15421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15425     ac_header_preproc=yes
15426     ;;
15427   no:yes:* )
15428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15440     ( cat <<\_ASBOX
15441 ## ----------------------------------- ##
15442 ## Report this to llvmbugs@cs.uiuc.edu ##
15443 ## ----------------------------------- ##
15444 _ASBOX
15445      ) | sed "s/^/$as_me: WARNING:     /" >&2
15446     ;;
15447 esac
15448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453   eval "$as_ac_Header=\$ac_header_preproc"
15454 fi
15455 ac_res=`eval echo '${'$as_ac_Header'}'`
15456                { echo "$as_me:$LINENO: result: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15458
15459 fi
15460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15461   cat >>confdefs.h <<_ACEOF
15462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15463 _ACEOF
15464
15465 fi
15466
15467 done
15468
15469
15470
15471
15472
15473 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15474 do
15475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15477   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15480   echo $ECHO_N "(cached) $ECHO_C" >&6
15481 fi
15482 ac_res=`eval echo '${'$as_ac_Header'}'`
15483                { echo "$as_me:$LINENO: result: $ac_res" >&5
15484 echo "${ECHO_T}$ac_res" >&6; }
15485 else
15486   # Is the header compilable?
15487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15489 cat >conftest.$ac_ext <<_ACEOF
15490 /* confdefs.h.  */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h.  */
15495 $ac_includes_default
15496 #include <$ac_header>
15497 _ACEOF
15498 rm -f conftest.$ac_objext
15499 if { (ac_try="$ac_compile"
15500 case "(($ac_try" in
15501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502   *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505   (eval "$ac_compile") 2>conftest.er1
15506   ac_status=$?
15507   grep -v '^ *+' conftest.er1 >conftest.err
15508   rm -f conftest.er1
15509   cat conftest.err >&5
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); } &&
15512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15513   { (case "(($ac_try" in
15514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515   *) ac_try_echo=$ac_try;;
15516 esac
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518   (eval "$ac_try") 2>&5
15519   ac_status=$?
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); }; } &&
15522          { ac_try='test -s conftest.$ac_objext'
15523   { (case "(($ac_try" in
15524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525   *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528   (eval "$ac_try") 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); }; }; then
15532   ac_header_compiler=yes
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537         ac_header_compiler=no
15538 fi
15539
15540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15542 echo "${ECHO_T}$ac_header_compiler" >&6; }
15543
15544 # Is the header present?
15545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15547 cat >conftest.$ac_ext <<_ACEOF
15548 /* confdefs.h.  */
15549 _ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h.  */
15553 #include <$ac_header>
15554 _ACEOF
15555 if { (ac_try="$ac_cpp conftest.$ac_ext"
15556 case "(($ac_try" in
15557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558   *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15562   ac_status=$?
15563   grep -v '^ *+' conftest.er1 >conftest.err
15564   rm -f conftest.er1
15565   cat conftest.err >&5
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } >/dev/null; then
15568   if test -s conftest.err; then
15569     ac_cpp_err=$ac_c_preproc_warn_flag
15570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15571   else
15572     ac_cpp_err=
15573   fi
15574 else
15575   ac_cpp_err=yes
15576 fi
15577 if test -z "$ac_cpp_err"; then
15578   ac_header_preproc=yes
15579 else
15580   echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15582
15583   ac_header_preproc=no
15584 fi
15585
15586 rm -f conftest.err conftest.$ac_ext
15587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15588 echo "${ECHO_T}$ac_header_preproc" >&6; }
15589
15590 # So?  What about this header?
15591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15592   yes:no: )
15593     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15597     ac_header_preproc=yes
15598     ;;
15599   no:yes:* )
15600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15602     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15603 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15604     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15606     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15607 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15610     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15612     ( cat <<\_ASBOX
15613 ## ----------------------------------- ##
15614 ## Report this to llvmbugs@cs.uiuc.edu ##
15615 ## ----------------------------------- ##
15616 _ASBOX
15617      ) | sed "s/^/$as_me: WARNING:     /" >&2
15618     ;;
15619 esac
15620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623   echo $ECHO_N "(cached) $ECHO_C" >&6
15624 else
15625   eval "$as_ac_Header=\$ac_header_preproc"
15626 fi
15627 ac_res=`eval echo '${'$as_ac_Header'}'`
15628                { echo "$as_me:$LINENO: result: $ac_res" >&5
15629 echo "${ECHO_T}$ac_res" >&6; }
15630
15631 fi
15632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15633   cat >>confdefs.h <<_ACEOF
15634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15635 _ACEOF
15636
15637 fi
15638
15639 done
15640
15641
15642 for ac_header in valgrind/valgrind.h
15643 do
15644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649   echo $ECHO_N "(cached) $ECHO_C" >&6
15650 fi
15651 ac_res=`eval echo '${'$as_ac_Header'}'`
15652                { echo "$as_me:$LINENO: result: $ac_res" >&5
15653 echo "${ECHO_T}$ac_res" >&6; }
15654 else
15655   # Is the header compilable?
15656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h.  */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h.  */
15664 $ac_includes_default
15665 #include <$ac_header>
15666 _ACEOF
15667 rm -f conftest.$ac_objext
15668 if { (ac_try="$ac_compile"
15669 case "(($ac_try" in
15670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671   *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674   (eval "$ac_compile") 2>conftest.er1
15675   ac_status=$?
15676   grep -v '^ *+' conftest.er1 >conftest.err
15677   rm -f conftest.er1
15678   cat conftest.err >&5
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); } &&
15681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15682   { (case "(($ac_try" in
15683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684   *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687   (eval "$ac_try") 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; } &&
15691          { ac_try='test -s conftest.$ac_objext'
15692   { (case "(($ac_try" in
15693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694   *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697   (eval "$ac_try") 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; }; then
15701   ac_header_compiler=yes
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706         ac_header_compiler=no
15707 fi
15708
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15711 echo "${ECHO_T}$ac_header_compiler" >&6; }
15712
15713 # Is the header present?
15714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15716 cat >conftest.$ac_ext <<_ACEOF
15717 /* confdefs.h.  */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h.  */
15722 #include <$ac_header>
15723 _ACEOF
15724 if { (ac_try="$ac_cpp conftest.$ac_ext"
15725 case "(($ac_try" in
15726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727   *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15731   ac_status=$?
15732   grep -v '^ *+' conftest.er1 >conftest.err
15733   rm -f conftest.er1
15734   cat conftest.err >&5
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); } >/dev/null; then
15737   if test -s conftest.err; then
15738     ac_cpp_err=$ac_c_preproc_warn_flag
15739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15740   else
15741     ac_cpp_err=
15742   fi
15743 else
15744   ac_cpp_err=yes
15745 fi
15746 if test -z "$ac_cpp_err"; then
15747   ac_header_preproc=yes
15748 else
15749   echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15751
15752   ac_header_preproc=no
15753 fi
15754
15755 rm -f conftest.err conftest.$ac_ext
15756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15757 echo "${ECHO_T}$ac_header_preproc" >&6; }
15758
15759 # So?  What about this header?
15760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15761   yes:no: )
15762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15766     ac_header_preproc=yes
15767     ;;
15768   no:yes:* )
15769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15781     ( cat <<\_ASBOX
15782 ## ----------------------------------- ##
15783 ## Report this to llvmbugs@cs.uiuc.edu ##
15784 ## ----------------------------------- ##
15785 _ASBOX
15786      ) | sed "s/^/$as_me: WARNING:     /" >&2
15787     ;;
15788 esac
15789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794   eval "$as_ac_Header=\$ac_header_preproc"
15795 fi
15796 ac_res=`eval echo '${'$as_ac_Header'}'`
15797                { echo "$as_me:$LINENO: result: $ac_res" >&5
15798 echo "${ECHO_T}$ac_res" >&6; }
15799
15800 fi
15801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15802   cat >>confdefs.h <<_ACEOF
15803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15804 _ACEOF
15805
15806 fi
15807
15808 done
15809
15810
15811 for ac_header in fenv.h
15812 do
15813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15815   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818   echo $ECHO_N "(cached) $ECHO_C" >&6
15819 fi
15820 ac_res=`eval echo '${'$as_ac_Header'}'`
15821                { echo "$as_me:$LINENO: result: $ac_res" >&5
15822 echo "${ECHO_T}$ac_res" >&6; }
15823 else
15824   # Is the header compilable?
15825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h.  */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h.  */
15833 $ac_includes_default
15834 #include <$ac_header>
15835 _ACEOF
15836 rm -f conftest.$ac_objext
15837 if { (ac_try="$ac_compile"
15838 case "(($ac_try" in
15839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840   *) ac_try_echo=$ac_try;;
15841 esac
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843   (eval "$ac_compile") 2>conftest.er1
15844   ac_status=$?
15845   grep -v '^ *+' conftest.er1 >conftest.err
15846   rm -f conftest.er1
15847   cat conftest.err >&5
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); } &&
15850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15851   { (case "(($ac_try" in
15852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853   *) ac_try_echo=$ac_try;;
15854 esac
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856   (eval "$ac_try") 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; } &&
15860          { ac_try='test -s conftest.$ac_objext'
15861   { (case "(($ac_try" in
15862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863   *) ac_try_echo=$ac_try;;
15864 esac
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866   (eval "$ac_try") 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); }; }; then
15870   ac_header_compiler=yes
15871 else
15872   echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15874
15875         ac_header_compiler=no
15876 fi
15877
15878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15880 echo "${ECHO_T}$ac_header_compiler" >&6; }
15881
15882 # Is the header present?
15883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15885 cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h.  */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h.  */
15891 #include <$ac_header>
15892 _ACEOF
15893 if { (ac_try="$ac_cpp conftest.$ac_ext"
15894 case "(($ac_try" in
15895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896   *) ac_try_echo=$ac_try;;
15897 esac
15898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15900   ac_status=$?
15901   grep -v '^ *+' conftest.er1 >conftest.err
15902   rm -f conftest.er1
15903   cat conftest.err >&5
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); } >/dev/null; then
15906   if test -s conftest.err; then
15907     ac_cpp_err=$ac_c_preproc_warn_flag
15908     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15909   else
15910     ac_cpp_err=
15911   fi
15912 else
15913   ac_cpp_err=yes
15914 fi
15915 if test -z "$ac_cpp_err"; then
15916   ac_header_preproc=yes
15917 else
15918   echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921   ac_header_preproc=no
15922 fi
15923
15924 rm -f conftest.err conftest.$ac_ext
15925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15926 echo "${ECHO_T}$ac_header_preproc" >&6; }
15927
15928 # So?  What about this header?
15929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15930   yes:no: )
15931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15935     ac_header_preproc=yes
15936     ;;
15937   no:yes:* )
15938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15950     ( cat <<\_ASBOX
15951 ## ----------------------------------- ##
15952 ## Report this to llvmbugs@cs.uiuc.edu ##
15953 ## ----------------------------------- ##
15954 _ASBOX
15955      ) | sed "s/^/$as_me: WARNING:     /" >&2
15956     ;;
15957 esac
15958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15961   echo $ECHO_N "(cached) $ECHO_C" >&6
15962 else
15963   eval "$as_ac_Header=\$ac_header_preproc"
15964 fi
15965 ac_res=`eval echo '${'$as_ac_Header'}'`
15966                { echo "$as_me:$LINENO: result: $ac_res" >&5
15967 echo "${ECHO_T}$ac_res" >&6; }
15968
15969 fi
15970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15971   cat >>confdefs.h <<_ACEOF
15972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15973 _ACEOF
15974
15975 fi
15976
15977 done
15978
15979 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15980
15981 for ac_header in pthread.h
15982 do
15983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15988   echo $ECHO_N "(cached) $ECHO_C" >&6
15989 fi
15990 ac_res=`eval echo '${'$as_ac_Header'}'`
15991                { echo "$as_me:$LINENO: result: $ac_res" >&5
15992 echo "${ECHO_T}$ac_res" >&6; }
15993 else
15994   # Is the header compilable?
15995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15997 cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h.  */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h.  */
16003 $ac_includes_default
16004 #include <$ac_header>
16005 _ACEOF
16006 rm -f conftest.$ac_objext
16007 if { (ac_try="$ac_compile"
16008 case "(($ac_try" in
16009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010   *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013   (eval "$ac_compile") 2>conftest.er1
16014   ac_status=$?
16015   grep -v '^ *+' conftest.er1 >conftest.err
16016   rm -f conftest.er1
16017   cat conftest.err >&5
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); } &&
16020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16021   { (case "(($ac_try" in
16022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023   *) ac_try_echo=$ac_try;;
16024 esac
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026   (eval "$ac_try") 2>&5
16027   ac_status=$?
16028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   (exit $ac_status); }; } &&
16030          { ac_try='test -s conftest.$ac_objext'
16031   { (case "(($ac_try" in
16032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033   *) ac_try_echo=$ac_try;;
16034 esac
16035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036   (eval "$ac_try") 2>&5
16037   ac_status=$?
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); }; }; then
16040   ac_header_compiler=yes
16041 else
16042   echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16044
16045         ac_header_compiler=no
16046 fi
16047
16048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16050 echo "${ECHO_T}$ac_header_compiler" >&6; }
16051
16052 # Is the header present?
16053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16055 cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h.  */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h.  */
16061 #include <$ac_header>
16062 _ACEOF
16063 if { (ac_try="$ac_cpp conftest.$ac_ext"
16064 case "(($ac_try" in
16065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066   *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16070   ac_status=$?
16071   grep -v '^ *+' conftest.er1 >conftest.err
16072   rm -f conftest.er1
16073   cat conftest.err >&5
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); } >/dev/null; then
16076   if test -s conftest.err; then
16077     ac_cpp_err=$ac_c_preproc_warn_flag
16078     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16079   else
16080     ac_cpp_err=
16081   fi
16082 else
16083   ac_cpp_err=yes
16084 fi
16085 if test -z "$ac_cpp_err"; then
16086   ac_header_preproc=yes
16087 else
16088   echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091   ac_header_preproc=no
16092 fi
16093
16094 rm -f conftest.err conftest.$ac_ext
16095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16096 echo "${ECHO_T}$ac_header_preproc" >&6; }
16097
16098 # So?  What about this header?
16099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100   yes:no: )
16101     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16105     ac_header_preproc=yes
16106     ;;
16107   no:yes:* )
16108     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16110     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16111 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16112     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16114     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16115 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16118     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16120     ( cat <<\_ASBOX
16121 ## ----------------------------------- ##
16122 ## Report this to llvmbugs@cs.uiuc.edu ##
16123 ## ----------------------------------- ##
16124 _ASBOX
16125      ) | sed "s/^/$as_me: WARNING:     /" >&2
16126     ;;
16127 esac
16128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16131   echo $ECHO_N "(cached) $ECHO_C" >&6
16132 else
16133   eval "$as_ac_Header=\$ac_header_preproc"
16134 fi
16135 ac_res=`eval echo '${'$as_ac_Header'}'`
16136                { echo "$as_me:$LINENO: result: $ac_res" >&5
16137 echo "${ECHO_T}$ac_res" >&6; }
16138
16139 fi
16140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16141   cat >>confdefs.h <<_ACEOF
16142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16143 _ACEOF
16144  HAVE_PTHREAD=1
16145
16146 else
16147   HAVE_PTHREAD=0
16148
16149 fi
16150
16151 done
16152
16153 else
16154   HAVE_PTHREAD=0
16155
16156 fi
16157
16158 if test "$llvm_cv_enable_libffi" = "yes" ; then
16159
16160
16161 for ac_header in ffi.h ffi/ffi.h
16162 do
16163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16165   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16168   echo $ECHO_N "(cached) $ECHO_C" >&6
16169 fi
16170 ac_res=`eval echo '${'$as_ac_Header'}'`
16171                { echo "$as_me:$LINENO: result: $ac_res" >&5
16172 echo "${ECHO_T}$ac_res" >&6; }
16173 else
16174   # Is the header compilable?
16175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16177 cat >conftest.$ac_ext <<_ACEOF
16178 /* confdefs.h.  */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h.  */
16183 $ac_includes_default
16184 #include <$ac_header>
16185 _ACEOF
16186 rm -f conftest.$ac_objext
16187 if { (ac_try="$ac_compile"
16188 case "(($ac_try" in
16189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190   *) ac_try_echo=$ac_try;;
16191 esac
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193   (eval "$ac_compile") 2>conftest.er1
16194   ac_status=$?
16195   grep -v '^ *+' conftest.er1 >conftest.err
16196   rm -f conftest.er1
16197   cat conftest.err >&5
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); } &&
16200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16201   { (case "(($ac_try" in
16202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203   *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206   (eval "$ac_try") 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; } &&
16210          { ac_try='test -s conftest.$ac_objext'
16211   { (case "(($ac_try" in
16212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213   *) ac_try_echo=$ac_try;;
16214 esac
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216   (eval "$ac_try") 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); }; }; then
16220   ac_header_compiler=yes
16221 else
16222   echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225         ac_header_compiler=no
16226 fi
16227
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16230 echo "${ECHO_T}$ac_header_compiler" >&6; }
16231
16232 # Is the header present?
16233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16235 cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h.  */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h.  */
16241 #include <$ac_header>
16242 _ACEOF
16243 if { (ac_try="$ac_cpp conftest.$ac_ext"
16244 case "(($ac_try" in
16245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246   *) ac_try_echo=$ac_try;;
16247 esac
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16250   ac_status=$?
16251   grep -v '^ *+' conftest.er1 >conftest.err
16252   rm -f conftest.er1
16253   cat conftest.err >&5
16254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); } >/dev/null; then
16256   if test -s conftest.err; then
16257     ac_cpp_err=$ac_c_preproc_warn_flag
16258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16259   else
16260     ac_cpp_err=
16261   fi
16262 else
16263   ac_cpp_err=yes
16264 fi
16265 if test -z "$ac_cpp_err"; then
16266   ac_header_preproc=yes
16267 else
16268   echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16270
16271   ac_header_preproc=no
16272 fi
16273
16274 rm -f conftest.err conftest.$ac_ext
16275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16276 echo "${ECHO_T}$ac_header_preproc" >&6; }
16277
16278 # So?  What about this header?
16279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16280   yes:no: )
16281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16285     ac_header_preproc=yes
16286     ;;
16287   no:yes:* )
16288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16300     ( cat <<\_ASBOX
16301 ## ----------------------------------- ##
16302 ## Report this to llvmbugs@cs.uiuc.edu ##
16303 ## ----------------------------------- ##
16304 _ASBOX
16305      ) | sed "s/^/$as_me: WARNING:     /" >&2
16306     ;;
16307 esac
16308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16311   echo $ECHO_N "(cached) $ECHO_C" >&6
16312 else
16313   eval "$as_ac_Header=\$ac_header_preproc"
16314 fi
16315 ac_res=`eval echo '${'$as_ac_Header'}'`
16316                { echo "$as_me:$LINENO: result: $ac_res" >&5
16317 echo "${ECHO_T}$ac_res" >&6; }
16318
16319 fi
16320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16321   cat >>confdefs.h <<_ACEOF
16322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16323 _ACEOF
16324
16325 fi
16326
16327 done
16328
16329 fi
16330
16331
16332 for ac_header in CrashReporterClient.h
16333 do
16334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16339   echo $ECHO_N "(cached) $ECHO_C" >&6
16340 fi
16341 ac_res=`eval echo '${'$as_ac_Header'}'`
16342                { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16344 else
16345   # Is the header compilable?
16346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16348 cat >conftest.$ac_ext <<_ACEOF
16349 /* confdefs.h.  */
16350 _ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h.  */
16354 $ac_includes_default
16355 #include <$ac_header>
16356 _ACEOF
16357 rm -f conftest.$ac_objext
16358 if { (ac_try="$ac_compile"
16359 case "(($ac_try" in
16360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361   *) ac_try_echo=$ac_try;;
16362 esac
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364   (eval "$ac_compile") 2>conftest.er1
16365   ac_status=$?
16366   grep -v '^ *+' conftest.er1 >conftest.err
16367   rm -f conftest.er1
16368   cat conftest.err >&5
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); } &&
16371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16372   { (case "(($ac_try" in
16373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374   *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377   (eval "$ac_try") 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; } &&
16381          { ac_try='test -s conftest.$ac_objext'
16382   { (case "(($ac_try" in
16383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384   *) ac_try_echo=$ac_try;;
16385 esac
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387   (eval "$ac_try") 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391   ac_header_compiler=yes
16392 else
16393   echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396         ac_header_compiler=no
16397 fi
16398
16399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16401 echo "${ECHO_T}$ac_header_compiler" >&6; }
16402
16403 # Is the header present?
16404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16406 cat >conftest.$ac_ext <<_ACEOF
16407 /* confdefs.h.  */
16408 _ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h.  */
16412 #include <$ac_header>
16413 _ACEOF
16414 if { (ac_try="$ac_cpp conftest.$ac_ext"
16415 case "(($ac_try" in
16416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417   *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16421   ac_status=$?
16422   grep -v '^ *+' conftest.er1 >conftest.err
16423   rm -f conftest.er1
16424   cat conftest.err >&5
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); } >/dev/null; then
16427   if test -s conftest.err; then
16428     ac_cpp_err=$ac_c_preproc_warn_flag
16429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16430   else
16431     ac_cpp_err=
16432   fi
16433 else
16434   ac_cpp_err=yes
16435 fi
16436 if test -z "$ac_cpp_err"; then
16437   ac_header_preproc=yes
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442   ac_header_preproc=no
16443 fi
16444
16445 rm -f conftest.err conftest.$ac_ext
16446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16447 echo "${ECHO_T}$ac_header_preproc" >&6; }
16448
16449 # So?  What about this header?
16450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16451   yes:no: )
16452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16456     ac_header_preproc=yes
16457     ;;
16458   no:yes:* )
16459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471     ( cat <<\_ASBOX
16472 ## ----------------------------------- ##
16473 ## Report this to llvmbugs@cs.uiuc.edu ##
16474 ## ----------------------------------- ##
16475 _ASBOX
16476      ) | sed "s/^/$as_me: WARNING:     /" >&2
16477     ;;
16478 esac
16479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16482   echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484   eval "$as_ac_Header=\$ac_header_preproc"
16485 fi
16486 ac_res=`eval echo '${'$as_ac_Header'}'`
16487                { echo "$as_me:$LINENO: result: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16489
16490 fi
16491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16492   cat >>confdefs.h <<_ACEOF
16493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16494 _ACEOF
16495
16496 fi
16497
16498 done
16499
16500
16501 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16502 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16503 cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 extern const char *__crashreporter_info__;
16510       int main() {
16511         __crashreporter_info__ = "test";
16512         return 0;
16513       }
16514
16515 _ACEOF
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_link") 2>conftest.er1
16524   ac_status=$?
16525   grep -v '^ *+' conftest.er1 >conftest.err
16526   rm -f conftest.er1
16527   cat conftest.err >&5
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); } &&
16530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16531   { (case "(($ac_try" in
16532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533   *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536   (eval "$ac_try") 2>&5
16537   ac_status=$?
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); }; } &&
16540          { ac_try='test -s conftest$ac_exeext'
16541   { (case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_try") 2>&5
16547   ac_status=$?
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); }; }; then
16550   { echo "$as_me:$LINENO: result: yes" >&5
16551 echo "${ECHO_T}yes" >&6; }
16552
16553 cat >>confdefs.h <<\_ACEOF
16554 #define HAVE_CRASHREPORTER_INFO 1
16555 _ACEOF
16556
16557 else
16558   echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16560
16561         { echo "$as_me:$LINENO: result: no" >&5
16562 echo "${ECHO_T}no" >&6; }
16563
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_CRASHREPORTER_INFO 0
16566 _ACEOF
16567
16568 fi
16569
16570 rm -f core conftest.err conftest.$ac_objext \
16571       conftest$ac_exeext conftest.$ac_ext
16572
16573
16574
16575
16576   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16577 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16578 if test "${ac_cv_huge_val_sanity+set}" = set; then
16579   echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581
16582     ac_ext=cpp
16583 ac_cpp='$CXXCPP $CPPFLAGS'
16584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16587
16588     ac_save_CXXFLAGS=$CXXFLAGS
16589     CXXFLAGS=-pedantic
16590     if test "$cross_compiling" = yes; then
16591   ac_cv_huge_val_sanity=yes
16592 else
16593   cat >conftest.$ac_ext <<_ACEOF
16594 /* confdefs.h.  */
16595 _ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h.  */
16599 #include <math.h>
16600 int
16601 main ()
16602 {
16603 double x = HUGE_VAL; return x != x;
16604   ;
16605   return 0;
16606 }
16607 _ACEOF
16608 rm -f conftest$ac_exeext
16609 if { (ac_try="$ac_link"
16610 case "(($ac_try" in
16611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612   *) ac_try_echo=$ac_try;;
16613 esac
16614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615   (eval "$ac_link") 2>&5
16616   ac_status=$?
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16619   { (case "(($ac_try" in
16620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621   *) ac_try_echo=$ac_try;;
16622 esac
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624   (eval "$ac_try") 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; }; then
16628   ac_cv_huge_val_sanity=yes
16629 else
16630   echo "$as_me: program exited with status $ac_status" >&5
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634 ( exit $ac_status )
16635 ac_cv_huge_val_sanity=no
16636 fi
16637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16638 fi
16639
16640
16641     CXXFLAGS=$ac_save_CXXFLAGS
16642     ac_ext=c
16643 ac_cpp='$CPP $CPPFLAGS'
16644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16647
16648
16649 fi
16650 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16651 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16652   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16653
16654
16655 { echo "$as_me:$LINENO: checking for pid_t" >&5
16656 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16657 if test "${ac_cv_type_pid_t+set}" = set; then
16658   echo $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16660   cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h.  */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h.  */
16666 $ac_includes_default
16667 typedef pid_t ac__type_new_;
16668 int
16669 main ()
16670 {
16671 if ((ac__type_new_ *) 0)
16672   return 0;
16673 if (sizeof (ac__type_new_))
16674   return 0;
16675   ;
16676   return 0;
16677 }
16678 _ACEOF
16679 rm -f conftest.$ac_objext
16680 if { (ac_try="$ac_compile"
16681 case "(($ac_try" in
16682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683   *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686   (eval "$ac_compile") 2>conftest.er1
16687   ac_status=$?
16688   grep -v '^ *+' conftest.er1 >conftest.err
16689   rm -f conftest.er1
16690   cat conftest.err >&5
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } &&
16693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694   { (case "(($ac_try" in
16695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696   *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699   (eval "$ac_try") 2>&5
16700   ac_status=$?
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); }; } &&
16703          { ac_try='test -s conftest.$ac_objext'
16704   { (case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_try") 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; }; then
16713   ac_cv_type_pid_t=yes
16714 else
16715   echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718         ac_cv_type_pid_t=no
16719 fi
16720
16721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722 fi
16723 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16724 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16725 if test $ac_cv_type_pid_t = yes; then
16726   :
16727 else
16728
16729 cat >>confdefs.h <<_ACEOF
16730 #define pid_t int
16731 _ACEOF
16732
16733 fi
16734
16735 { echo "$as_me:$LINENO: checking for size_t" >&5
16736 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16737 if test "${ac_cv_type_size_t+set}" = set; then
16738   echo $ECHO_N "(cached) $ECHO_C" >&6
16739 else
16740   cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h.  */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h.  */
16746 $ac_includes_default
16747 typedef size_t ac__type_new_;
16748 int
16749 main ()
16750 {
16751 if ((ac__type_new_ *) 0)
16752   return 0;
16753 if (sizeof (ac__type_new_))
16754   return 0;
16755   ;
16756   return 0;
16757 }
16758 _ACEOF
16759 rm -f conftest.$ac_objext
16760 if { (ac_try="$ac_compile"
16761 case "(($ac_try" in
16762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763   *) ac_try_echo=$ac_try;;
16764 esac
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766   (eval "$ac_compile") 2>conftest.er1
16767   ac_status=$?
16768   grep -v '^ *+' conftest.er1 >conftest.err
16769   rm -f conftest.er1
16770   cat conftest.err >&5
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); } &&
16773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16774   { (case "(($ac_try" in
16775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776   *) ac_try_echo=$ac_try;;
16777 esac
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779   (eval "$ac_try") 2>&5
16780   ac_status=$?
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); }; } &&
16783          { ac_try='test -s conftest.$ac_objext'
16784   { (case "(($ac_try" in
16785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786   *) ac_try_echo=$ac_try;;
16787 esac
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789   (eval "$ac_try") 2>&5
16790   ac_status=$?
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); }; }; then
16793   ac_cv_type_size_t=yes
16794 else
16795   echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16797
16798         ac_cv_type_size_t=no
16799 fi
16800
16801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16802 fi
16803 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16804 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16805 if test $ac_cv_type_size_t = yes; then
16806   :
16807 else
16808
16809 cat >>confdefs.h <<_ACEOF
16810 #define size_t unsigned int
16811 _ACEOF
16812
16813 fi
16814
16815
16816 cat >>confdefs.h <<_ACEOF
16817 #define RETSIGTYPE void
16818 _ACEOF
16819
16820 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16821 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16822 if test "${ac_cv_struct_tm+set}" = set; then
16823   echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825   cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h.  */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h.  */
16831 #include <sys/types.h>
16832 #include <time.h>
16833
16834 int
16835 main ()
16836 {
16837 struct tm *tp; tp->tm_sec;
16838   ;
16839   return 0;
16840 }
16841 _ACEOF
16842 rm -f conftest.$ac_objext
16843 if { (ac_try="$ac_compile"
16844 case "(($ac_try" in
16845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846   *) ac_try_echo=$ac_try;;
16847 esac
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849   (eval "$ac_compile") 2>conftest.er1
16850   ac_status=$?
16851   grep -v '^ *+' conftest.er1 >conftest.err
16852   rm -f conftest.er1
16853   cat conftest.err >&5
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } &&
16856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857   { (case "(($ac_try" in
16858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859   *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862   (eval "$ac_try") 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); }; } &&
16866          { ac_try='test -s conftest.$ac_objext'
16867   { (case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_try") 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; }; then
16876   ac_cv_struct_tm=time.h
16877 else
16878   echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881         ac_cv_struct_tm=sys/time.h
16882 fi
16883
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 fi
16886 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16887 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16888 if test $ac_cv_struct_tm = sys/time.h; then
16889
16890 cat >>confdefs.h <<\_ACEOF
16891 #define TM_IN_SYS_TIME 1
16892 _ACEOF
16893
16894 fi
16895
16896 { echo "$as_me:$LINENO: checking for int64_t" >&5
16897 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16898 if test "${ac_cv_type_int64_t+set}" = set; then
16899   echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901   cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h.  */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h.  */
16907 $ac_includes_default
16908 typedef int64_t ac__type_new_;
16909 int
16910 main ()
16911 {
16912 if ((ac__type_new_ *) 0)
16913   return 0;
16914 if (sizeof (ac__type_new_))
16915   return 0;
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 rm -f conftest.$ac_objext
16921 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16928   ac_status=$?
16929   grep -v '^ *+' conftest.er1 >conftest.err
16930   rm -f conftest.er1
16931   cat conftest.err >&5
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); } &&
16934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16935   { (case "(($ac_try" in
16936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937   *) ac_try_echo=$ac_try;;
16938 esac
16939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940   (eval "$ac_try") 2>&5
16941   ac_status=$?
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); }; } &&
16944          { ac_try='test -s conftest.$ac_objext'
16945   { (case "(($ac_try" in
16946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947   *) ac_try_echo=$ac_try;;
16948 esac
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950   (eval "$ac_try") 2>&5
16951   ac_status=$?
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); }; }; then
16954   ac_cv_type_int64_t=yes
16955 else
16956   echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16958
16959         ac_cv_type_int64_t=no
16960 fi
16961
16962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16963 fi
16964 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16965 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16966 if test $ac_cv_type_int64_t = yes; then
16967
16968 cat >>confdefs.h <<_ACEOF
16969 #define HAVE_INT64_T 1
16970 _ACEOF
16971
16972
16973 else
16974   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16975 echo "$as_me: error: Type int64_t required but not found" >&2;}
16976    { (exit 1); exit 1; }; }
16977 fi
16978
16979 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16980 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16981 if test "${ac_cv_type_uint64_t+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984   cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h.  */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h.  */
16990 $ac_includes_default
16991 typedef uint64_t ac__type_new_;
16992 int
16993 main ()
16994 {
16995 if ((ac__type_new_ *) 0)
16996   return 0;
16997 if (sizeof (ac__type_new_))
16998   return 0;
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 rm -f conftest.$ac_objext
17004 if { (ac_try="$ac_compile"
17005 case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010   (eval "$ac_compile") 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } &&
17017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17018   { (case "(($ac_try" in
17019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020   *) ac_try_echo=$ac_try;;
17021 esac
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023   (eval "$ac_try") 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; } &&
17027          { ac_try='test -s conftest.$ac_objext'
17028   { (case "(($ac_try" in
17029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030   *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033   (eval "$ac_try") 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; }; then
17037   ac_cv_type_uint64_t=yes
17038 else
17039   echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17041
17042         ac_cv_type_uint64_t=no
17043 fi
17044
17045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046 fi
17047 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17048 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17049 if test $ac_cv_type_uint64_t = yes; then
17050
17051 cat >>confdefs.h <<_ACEOF
17052 #define HAVE_UINT64_T 1
17053 _ACEOF
17054
17055
17056 else
17057   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17058 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17059 if test "${ac_cv_type_u_int64_t+set}" = set; then
17060   echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062   cat >conftest.$ac_ext <<_ACEOF
17063 /* confdefs.h.  */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h.  */
17068 $ac_includes_default
17069 typedef u_int64_t ac__type_new_;
17070 int
17071 main ()
17072 {
17073 if ((ac__type_new_ *) 0)
17074   return 0;
17075 if (sizeof (ac__type_new_))
17076   return 0;
17077   ;
17078   return 0;
17079 }
17080 _ACEOF
17081 rm -f conftest.$ac_objext
17082 if { (ac_try="$ac_compile"
17083 case "(($ac_try" in
17084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085   *) ac_try_echo=$ac_try;;
17086 esac
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088   (eval "$ac_compile") 2>conftest.er1
17089   ac_status=$?
17090   grep -v '^ *+' conftest.er1 >conftest.err
17091   rm -f conftest.er1
17092   cat conftest.err >&5
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); } &&
17095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096   { (case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_try") 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; } &&
17105          { ac_try='test -s conftest.$ac_objext'
17106   { (case "(($ac_try" in
17107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108   *) ac_try_echo=$ac_try;;
17109 esac
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111   (eval "$ac_try") 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); }; }; then
17115   ac_cv_type_u_int64_t=yes
17116 else
17117   echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17119
17120         ac_cv_type_u_int64_t=no
17121 fi
17122
17123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124 fi
17125 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17126 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17127 if test $ac_cv_type_u_int64_t = yes; then
17128
17129 cat >>confdefs.h <<_ACEOF
17130 #define HAVE_U_INT64_T 1
17131 _ACEOF
17132
17133
17134 else
17135   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17136 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17137    { (exit 1); exit 1; }; }
17138 fi
17139
17140 fi
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17152 do
17153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17157   echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159   cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h.  */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h.  */
17165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17167 #define $ac_func innocuous_$ac_func
17168
17169 /* System header to define __stub macros and hopefully few prototypes,
17170     which can conflict with char $ac_func (); below.
17171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17172     <limits.h> exists even on freestanding compilers.  */
17173
17174 #ifdef __STDC__
17175 # include <limits.h>
17176 #else
17177 # include <assert.h>
17178 #endif
17179
17180 #undef $ac_func
17181
17182 /* Override any GCC internal prototype to avoid an error.
17183    Use char because int might match the return type of a GCC
17184    builtin and then its argument prototype would still apply.  */
17185 #ifdef __cplusplus
17186 extern "C"
17187 #endif
17188 char $ac_func ();
17189 /* The GNU C library defines this for functions which it implements
17190     to always fail with ENOSYS.  Some functions are actually named
17191     something starting with __ and the normal name is an alias.  */
17192 #if defined __stub_$ac_func || defined __stub___$ac_func
17193 choke me
17194 #endif
17195
17196 int
17197 main ()
17198 {
17199 return $ac_func ();
17200   ;
17201   return 0;
17202 }
17203 _ACEOF
17204 rm -f conftest.$ac_objext conftest$ac_exeext
17205 if { (ac_try="$ac_link"
17206 case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_link") 2>conftest.er1
17212   ac_status=$?
17213   grep -v '^ *+' conftest.er1 >conftest.err
17214   rm -f conftest.er1
17215   cat conftest.err >&5
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); } &&
17218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17219   { (case "(($ac_try" in
17220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221   *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224   (eval "$ac_try") 2>&5
17225   ac_status=$?
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); }; } &&
17228          { ac_try='test -s conftest$ac_exeext'
17229   { (case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_try") 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); }; }; then
17238   eval "$as_ac_var=yes"
17239 else
17240   echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17242
17243         eval "$as_ac_var=no"
17244 fi
17245
17246 rm -f core conftest.err conftest.$ac_objext \
17247       conftest$ac_exeext conftest.$ac_ext
17248 fi
17249 ac_res=`eval echo '${'$as_ac_var'}'`
17250                { echo "$as_me:$LINENO: result: $ac_res" >&5
17251 echo "${ECHO_T}$ac_res" >&6; }
17252 if test `eval echo '${'$as_ac_var'}'` = yes; then
17253   cat >>confdefs.h <<_ACEOF
17254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17255 _ACEOF
17256
17257 fi
17258 done
17259
17260
17261
17262
17263
17264 for ac_func in powf fmodf strtof round
17265 do
17266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17270   echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272   cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h.  */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h.  */
17278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17280 #define $ac_func innocuous_$ac_func
17281
17282 /* System header to define __stub macros and hopefully few prototypes,
17283     which can conflict with char $ac_func (); below.
17284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17285     <limits.h> exists even on freestanding compilers.  */
17286
17287 #ifdef __STDC__
17288 # include <limits.h>
17289 #else
17290 # include <assert.h>
17291 #endif
17292
17293 #undef $ac_func
17294
17295 /* Override any GCC internal prototype to avoid an error.
17296    Use char because int might match the return type of a GCC
17297    builtin and then its argument prototype would still apply.  */
17298 #ifdef __cplusplus
17299 extern "C"
17300 #endif
17301 char $ac_func ();
17302 /* The GNU C library defines this for functions which it implements
17303     to always fail with ENOSYS.  Some functions are actually named
17304     something starting with __ and the normal name is an alias.  */
17305 #if defined __stub_$ac_func || defined __stub___$ac_func
17306 choke me
17307 #endif
17308
17309 int
17310 main ()
17311 {
17312 return $ac_func ();
17313   ;
17314   return 0;
17315 }
17316 _ACEOF
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (ac_try="$ac_link"
17319 case "(($ac_try" in
17320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321   *) ac_try_echo=$ac_try;;
17322 esac
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324   (eval "$ac_link") 2>conftest.er1
17325   ac_status=$?
17326   grep -v '^ *+' conftest.er1 >conftest.err
17327   rm -f conftest.er1
17328   cat conftest.err >&5
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); } &&
17331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17332   { (case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_try") 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); }; } &&
17341          { ac_try='test -s conftest$ac_exeext'
17342   { (case "(($ac_try" in
17343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344   *) ac_try_echo=$ac_try;;
17345 esac
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347   (eval "$ac_try") 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; }; then
17351   eval "$as_ac_var=yes"
17352 else
17353   echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17355
17356         eval "$as_ac_var=no"
17357 fi
17358
17359 rm -f core conftest.err conftest.$ac_objext \
17360       conftest$ac_exeext conftest.$ac_ext
17361 fi
17362 ac_res=`eval echo '${'$as_ac_var'}'`
17363                { echo "$as_me:$LINENO: result: $ac_res" >&5
17364 echo "${ECHO_T}$ac_res" >&6; }
17365 if test `eval echo '${'$as_ac_var'}'` = yes; then
17366   cat >>confdefs.h <<_ACEOF
17367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17368 _ACEOF
17369
17370 fi
17371 done
17372
17373
17374
17375
17376
17377
17378 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17379 do
17380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17384   echo $ECHO_N "(cached) $ECHO_C" >&6
17385 else
17386   cat >conftest.$ac_ext <<_ACEOF
17387 /* confdefs.h.  */
17388 _ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h.  */
17392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17394 #define $ac_func innocuous_$ac_func
17395
17396 /* System header to define __stub macros and hopefully few prototypes,
17397     which can conflict with char $ac_func (); below.
17398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17399     <limits.h> exists even on freestanding compilers.  */
17400
17401 #ifdef __STDC__
17402 # include <limits.h>
17403 #else
17404 # include <assert.h>
17405 #endif
17406
17407 #undef $ac_func
17408
17409 /* Override any GCC internal prototype to avoid an error.
17410    Use char because int might match the return type of a GCC
17411    builtin and then its argument prototype would still apply.  */
17412 #ifdef __cplusplus
17413 extern "C"
17414 #endif
17415 char $ac_func ();
17416 /* The GNU C library defines this for functions which it implements
17417     to always fail with ENOSYS.  Some functions are actually named
17418     something starting with __ and the normal name is an alias.  */
17419 #if defined __stub_$ac_func || defined __stub___$ac_func
17420 choke me
17421 #endif
17422
17423 int
17424 main ()
17425 {
17426 return $ac_func ();
17427   ;
17428   return 0;
17429 }
17430 _ACEOF
17431 rm -f conftest.$ac_objext conftest$ac_exeext
17432 if { (ac_try="$ac_link"
17433 case "(($ac_try" in
17434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435   *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438   (eval "$ac_link") 2>conftest.er1
17439   ac_status=$?
17440   grep -v '^ *+' conftest.er1 >conftest.err
17441   rm -f conftest.er1
17442   cat conftest.err >&5
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); } &&
17445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17446   { (case "(($ac_try" in
17447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448   *) ac_try_echo=$ac_try;;
17449 esac
17450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451   (eval "$ac_try") 2>&5
17452   ac_status=$?
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); }; } &&
17455          { ac_try='test -s conftest$ac_exeext'
17456   { (case "(($ac_try" in
17457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458   *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461   (eval "$ac_try") 2>&5
17462   ac_status=$?
17463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); }; }; then
17465   eval "$as_ac_var=yes"
17466 else
17467   echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17469
17470         eval "$as_ac_var=no"
17471 fi
17472
17473 rm -f core conftest.err conftest.$ac_objext \
17474       conftest$ac_exeext conftest.$ac_ext
17475 fi
17476 ac_res=`eval echo '${'$as_ac_var'}'`
17477                { echo "$as_me:$LINENO: result: $ac_res" >&5
17478 echo "${ECHO_T}$ac_res" >&6; }
17479 if test `eval echo '${'$as_ac_var'}'` = yes; then
17480   cat >>confdefs.h <<_ACEOF
17481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17482 _ACEOF
17483
17484 fi
17485 done
17486
17487
17488
17489
17490 for ac_func in isatty mkdtemp mkstemp
17491 do
17492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17496   echo $ECHO_N "(cached) $ECHO_C" >&6
17497 else
17498   cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h.  */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h.  */
17504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17506 #define $ac_func innocuous_$ac_func
17507
17508 /* System header to define __stub macros and hopefully few prototypes,
17509     which can conflict with char $ac_func (); below.
17510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17511     <limits.h> exists even on freestanding compilers.  */
17512
17513 #ifdef __STDC__
17514 # include <limits.h>
17515 #else
17516 # include <assert.h>
17517 #endif
17518
17519 #undef $ac_func
17520
17521 /* Override any GCC internal prototype to avoid an error.
17522    Use char because int might match the return type of a GCC
17523    builtin and then its argument prototype would still apply.  */
17524 #ifdef __cplusplus
17525 extern "C"
17526 #endif
17527 char $ac_func ();
17528 /* The GNU C library defines this for functions which it implements
17529     to always fail with ENOSYS.  Some functions are actually named
17530     something starting with __ and the normal name is an alias.  */
17531 #if defined __stub_$ac_func || defined __stub___$ac_func
17532 choke me
17533 #endif
17534
17535 int
17536 main ()
17537 {
17538 return $ac_func ();
17539   ;
17540   return 0;
17541 }
17542 _ACEOF
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (ac_try="$ac_link"
17545 case "(($ac_try" in
17546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547   *) ac_try_echo=$ac_try;;
17548 esac
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550   (eval "$ac_link") 2>conftest.er1
17551   ac_status=$?
17552   grep -v '^ *+' conftest.er1 >conftest.err
17553   rm -f conftest.er1
17554   cat conftest.err >&5
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); } &&
17557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17558   { (case "(($ac_try" in
17559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560   *) ac_try_echo=$ac_try;;
17561 esac
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563   (eval "$ac_try") 2>&5
17564   ac_status=$?
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; } &&
17567          { ac_try='test -s conftest$ac_exeext'
17568   { (case "(($ac_try" in
17569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570   *) ac_try_echo=$ac_try;;
17571 esac
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573   (eval "$ac_try") 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; }; then
17577   eval "$as_ac_var=yes"
17578 else
17579   echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17581
17582         eval "$as_ac_var=no"
17583 fi
17584
17585 rm -f core conftest.err conftest.$ac_objext \
17586       conftest$ac_exeext conftest.$ac_ext
17587 fi
17588 ac_res=`eval echo '${'$as_ac_var'}'`
17589                { echo "$as_me:$LINENO: result: $ac_res" >&5
17590 echo "${ECHO_T}$ac_res" >&6; }
17591 if test `eval echo '${'$as_ac_var'}'` = yes; then
17592   cat >>confdefs.h <<_ACEOF
17593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17594 _ACEOF
17595
17596 fi
17597 done
17598
17599
17600
17601
17602
17603
17604
17605 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17606 do
17607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17611   echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613   cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h.  */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h.  */
17619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17621 #define $ac_func innocuous_$ac_func
17622
17623 /* System header to define __stub macros and hopefully few prototypes,
17624     which can conflict with char $ac_func (); below.
17625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626     <limits.h> exists even on freestanding compilers.  */
17627
17628 #ifdef __STDC__
17629 # include <limits.h>
17630 #else
17631 # include <assert.h>
17632 #endif
17633
17634 #undef $ac_func
17635
17636 /* Override any GCC internal prototype to avoid an error.
17637    Use char because int might match the return type of a GCC
17638    builtin and then its argument prototype would still apply.  */
17639 #ifdef __cplusplus
17640 extern "C"
17641 #endif
17642 char $ac_func ();
17643 /* The GNU C library defines this for functions which it implements
17644     to always fail with ENOSYS.  Some functions are actually named
17645     something starting with __ and the normal name is an alias.  */
17646 #if defined __stub_$ac_func || defined __stub___$ac_func
17647 choke me
17648 #endif
17649
17650 int
17651 main ()
17652 {
17653 return $ac_func ();
17654   ;
17655   return 0;
17656 }
17657 _ACEOF
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662   *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665   (eval "$ac_link") 2>conftest.er1
17666   ac_status=$?
17667   grep -v '^ *+' conftest.er1 >conftest.err
17668   rm -f conftest.er1
17669   cat conftest.err >&5
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); } &&
17672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17673   { (case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_try") 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; } &&
17682          { ac_try='test -s conftest$ac_exeext'
17683   { (case "(($ac_try" in
17684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685   *) ac_try_echo=$ac_try;;
17686 esac
17687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17688   (eval "$ac_try") 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; }; then
17692   eval "$as_ac_var=yes"
17693 else
17694   echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697         eval "$as_ac_var=no"
17698 fi
17699
17700 rm -f core conftest.err conftest.$ac_objext \
17701       conftest$ac_exeext conftest.$ac_ext
17702 fi
17703 ac_res=`eval echo '${'$as_ac_var'}'`
17704                { echo "$as_me:$LINENO: result: $ac_res" >&5
17705 echo "${ECHO_T}$ac_res" >&6; }
17706 if test `eval echo '${'$as_ac_var'}'` = yes; then
17707   cat >>confdefs.h <<_ACEOF
17708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17709 _ACEOF
17710
17711 fi
17712 done
17713
17714
17715
17716
17717 for ac_func in strerror strerror_r setenv
17718 do
17719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17723   echo $ECHO_N "(cached) $ECHO_C" >&6
17724 else
17725   cat >conftest.$ac_ext <<_ACEOF
17726 /* confdefs.h.  */
17727 _ACEOF
17728 cat confdefs.h >>conftest.$ac_ext
17729 cat >>conftest.$ac_ext <<_ACEOF
17730 /* end confdefs.h.  */
17731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17733 #define $ac_func innocuous_$ac_func
17734
17735 /* System header to define __stub macros and hopefully few prototypes,
17736     which can conflict with char $ac_func (); below.
17737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17738     <limits.h> exists even on freestanding compilers.  */
17739
17740 #ifdef __STDC__
17741 # include <limits.h>
17742 #else
17743 # include <assert.h>
17744 #endif
17745
17746 #undef $ac_func
17747
17748 /* Override any GCC internal prototype to avoid an error.
17749    Use char because int might match the return type of a GCC
17750    builtin and then its argument prototype would still apply.  */
17751 #ifdef __cplusplus
17752 extern "C"
17753 #endif
17754 char $ac_func ();
17755 /* The GNU C library defines this for functions which it implements
17756     to always fail with ENOSYS.  Some functions are actually named
17757     something starting with __ and the normal name is an alias.  */
17758 #if defined __stub_$ac_func || defined __stub___$ac_func
17759 choke me
17760 #endif
17761
17762 int
17763 main ()
17764 {
17765 return $ac_func ();
17766   ;
17767   return 0;
17768 }
17769 _ACEOF
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (ac_try="$ac_link"
17772 case "(($ac_try" in
17773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17774   *) ac_try_echo=$ac_try;;
17775 esac
17776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17777   (eval "$ac_link") 2>conftest.er1
17778   ac_status=$?
17779   grep -v '^ *+' conftest.er1 >conftest.err
17780   rm -f conftest.er1
17781   cat conftest.err >&5
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); } &&
17784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17785   { (case "(($ac_try" in
17786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787   *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790   (eval "$ac_try") 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; } &&
17794          { ac_try='test -s conftest$ac_exeext'
17795   { (case "(($ac_try" in
17796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797   *) ac_try_echo=$ac_try;;
17798 esac
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800   (eval "$ac_try") 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; }; then
17804   eval "$as_ac_var=yes"
17805 else
17806   echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809         eval "$as_ac_var=no"
17810 fi
17811
17812 rm -f core conftest.err conftest.$ac_objext \
17813       conftest$ac_exeext conftest.$ac_ext
17814 fi
17815 ac_res=`eval echo '${'$as_ac_var'}'`
17816                { echo "$as_me:$LINENO: result: $ac_res" >&5
17817 echo "${ECHO_T}$ac_res" >&6; }
17818 if test `eval echo '${'$as_ac_var'}'` = yes; then
17819   cat >>confdefs.h <<_ACEOF
17820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17821 _ACEOF
17822
17823 fi
17824 done
17825
17826
17827
17828
17829
17830 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17831 do
17832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17836   echo $ECHO_N "(cached) $ECHO_C" >&6
17837 else
17838   cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h.  */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h.  */
17844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17846 #define $ac_func innocuous_$ac_func
17847
17848 /* System header to define __stub macros and hopefully few prototypes,
17849     which can conflict with char $ac_func (); below.
17850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17851     <limits.h> exists even on freestanding compilers.  */
17852
17853 #ifdef __STDC__
17854 # include <limits.h>
17855 #else
17856 # include <assert.h>
17857 #endif
17858
17859 #undef $ac_func
17860
17861 /* Override any GCC internal prototype to avoid an error.
17862    Use char because int might match the return type of a GCC
17863    builtin and then its argument prototype would still apply.  */
17864 #ifdef __cplusplus
17865 extern "C"
17866 #endif
17867 char $ac_func ();
17868 /* The GNU C library defines this for functions which it implements
17869     to always fail with ENOSYS.  Some functions are actually named
17870     something starting with __ and the normal name is an alias.  */
17871 #if defined __stub_$ac_func || defined __stub___$ac_func
17872 choke me
17873 #endif
17874
17875 int
17876 main ()
17877 {
17878 return $ac_func ();
17879   ;
17880   return 0;
17881 }
17882 _ACEOF
17883 rm -f conftest.$ac_objext conftest$ac_exeext
17884 if { (ac_try="$ac_link"
17885 case "(($ac_try" in
17886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887   *) ac_try_echo=$ac_try;;
17888 esac
17889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890   (eval "$ac_link") 2>conftest.er1
17891   ac_status=$?
17892   grep -v '^ *+' conftest.er1 >conftest.err
17893   rm -f conftest.er1
17894   cat conftest.err >&5
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); } &&
17897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17898   { (case "(($ac_try" in
17899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900   *) ac_try_echo=$ac_try;;
17901 esac
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903   (eval "$ac_try") 2>&5
17904   ac_status=$?
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); }; } &&
17907          { ac_try='test -s conftest$ac_exeext'
17908   { (case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_try") 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; }; then
17917   eval "$as_ac_var=yes"
17918 else
17919   echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17921
17922         eval "$as_ac_var=no"
17923 fi
17924
17925 rm -f core conftest.err conftest.$ac_objext \
17926       conftest$ac_exeext conftest.$ac_ext
17927 fi
17928 ac_res=`eval echo '${'$as_ac_var'}'`
17929                { echo "$as_me:$LINENO: result: $ac_res" >&5
17930 echo "${ECHO_T}$ac_res" >&6; }
17931 if test `eval echo '${'$as_ac_var'}'` = yes; then
17932   cat >>confdefs.h <<_ACEOF
17933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17934 _ACEOF
17935
17936 fi
17937 done
17938
17939
17940
17941
17942
17943
17944 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17945 do
17946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17950   echo $ECHO_N "(cached) $ECHO_C" >&6
17951 else
17952   cat >conftest.$ac_ext <<_ACEOF
17953 /* confdefs.h.  */
17954 _ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h.  */
17958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17960 #define $ac_func innocuous_$ac_func
17961
17962 /* System header to define __stub macros and hopefully few prototypes,
17963     which can conflict with char $ac_func (); below.
17964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17965     <limits.h> exists even on freestanding compilers.  */
17966
17967 #ifdef __STDC__
17968 # include <limits.h>
17969 #else
17970 # include <assert.h>
17971 #endif
17972
17973 #undef $ac_func
17974
17975 /* Override any GCC internal prototype to avoid an error.
17976    Use char because int might match the return type of a GCC
17977    builtin and then its argument prototype would still apply.  */
17978 #ifdef __cplusplus
17979 extern "C"
17980 #endif
17981 char $ac_func ();
17982 /* The GNU C library defines this for functions which it implements
17983     to always fail with ENOSYS.  Some functions are actually named
17984     something starting with __ and the normal name is an alias.  */
17985 #if defined __stub_$ac_func || defined __stub___$ac_func
17986 choke me
17987 #endif
17988
17989 int
17990 main ()
17991 {
17992 return $ac_func ();
17993   ;
17994   return 0;
17995 }
17996 _ACEOF
17997 rm -f conftest.$ac_objext conftest$ac_exeext
17998 if { (ac_try="$ac_link"
17999 case "(($ac_try" in
18000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001   *) ac_try_echo=$ac_try;;
18002 esac
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004   (eval "$ac_link") 2>conftest.er1
18005   ac_status=$?
18006   grep -v '^ *+' conftest.er1 >conftest.err
18007   rm -f conftest.er1
18008   cat conftest.err >&5
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } &&
18011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18012   { (case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_try") 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; } &&
18021          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; }; then
18031   eval "$as_ac_var=yes"
18032 else
18033   echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18035
18036         eval "$as_ac_var=no"
18037 fi
18038
18039 rm -f core conftest.err conftest.$ac_objext \
18040       conftest$ac_exeext conftest.$ac_ext
18041 fi
18042 ac_res=`eval echo '${'$as_ac_var'}'`
18043                { echo "$as_me:$LINENO: result: $ac_res" >&5
18044 echo "${ECHO_T}$ac_res" >&6; }
18045 if test `eval echo '${'$as_ac_var'}'` = yes; then
18046   cat >>confdefs.h <<_ACEOF
18047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18048 _ACEOF
18049
18050 fi
18051 done
18052
18053 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18054 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18055 if test "${llvm_cv_c_printf_a+set}" = set; then
18056   echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058   ac_ext=c
18059 ac_cpp='$CPP $CPPFLAGS'
18060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18063
18064  if test "$cross_compiling" = yes; then
18065   llvmac_cv_c_printf_a=no
18066 else
18067   cat >conftest.$ac_ext <<_ACEOF
18068
18069   /* confdefs.h.  */
18070 _ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h.  */
18074
18075 #include <stdio.h>
18076 #include <stdlib.h>
18077
18078 int
18079 main ()
18080 {
18081
18082 volatile double A, B;
18083 char Buffer[100];
18084 A = 1;
18085 A /= 10.0;
18086 sprintf(Buffer, "%a", A);
18087 B = atof(Buffer);
18088 if (A != B)
18089   return (1);
18090 if (A != 0x1.999999999999ap-4)
18091   return (1);
18092 return (0);
18093   ;
18094   return 0;
18095 }
18096 _ACEOF
18097 rm -f conftest$ac_exeext
18098 if { (ac_try="$ac_link"
18099 case "(($ac_try" in
18100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101   *) ac_try_echo=$ac_try;;
18102 esac
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104   (eval "$ac_link") 2>&5
18105   ac_status=$?
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18108   { (case "(($ac_try" in
18109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110   *) ac_try_echo=$ac_try;;
18111 esac
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113   (eval "$ac_try") 2>&5
18114   ac_status=$?
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); }; }; then
18117   llvm_cv_c_printf_a=yes
18118 else
18119   echo "$as_me: program exited with status $ac_status" >&5
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18122
18123 ( exit $ac_status )
18124 llvmac_cv_c_printf_a=no
18125 fi
18126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18127 fi
18128
18129
18130  ac_ext=c
18131 ac_cpp='$CPP $CPPFLAGS'
18132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18135
18136 fi
18137 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18138 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18139  if test "$llvm_cv_c_printf_a" = "yes"; then
18140
18141 cat >>confdefs.h <<\_ACEOF
18142 #define HAVE_PRINTF_A 1
18143 _ACEOF
18144
18145  fi
18146
18147
18148 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18149 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18150 if test "${ac_cv_func_rand48+set}" = set; then
18151   echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153   ac_ext=cpp
18154 ac_cpp='$CXXCPP $CPPFLAGS'
18155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18158
18159    cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h.  */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h.  */
18165 #include <stdlib.h>
18166 int
18167 main ()
18168 {
18169 srand48(0);lrand48();drand48();
18170   ;
18171   return 0;
18172 }
18173 _ACEOF
18174 rm -f conftest.$ac_objext
18175 if { (ac_try="$ac_compile"
18176 case "(($ac_try" in
18177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178   *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181   (eval "$ac_compile") 2>conftest.er1
18182   ac_status=$?
18183   grep -v '^ *+' conftest.er1 >conftest.err
18184   rm -f conftest.er1
18185   cat conftest.err >&5
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); } &&
18188          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18189   { (case "(($ac_try" in
18190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191   *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194   (eval "$ac_try") 2>&5
18195   ac_status=$?
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); }; } &&
18198          { ac_try='test -s conftest.$ac_objext'
18199   { (case "(($ac_try" in
18200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201   *) ac_try_echo=$ac_try;;
18202 esac
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204   (eval "$ac_try") 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); }; }; then
18208   ac_cv_func_rand48=yes
18209 else
18210   echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18212
18213         ac_cv_func_rand48=no
18214 fi
18215
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217   ac_ext=c
18218 ac_cpp='$CPP $CPPFLAGS'
18219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18222
18223 fi
18224 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18225 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18226
18227 if test "$ac_cv_func_rand48" = "yes" ; then
18228
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_RAND48 1
18231 _ACEOF
18232
18233 fi
18234
18235
18236 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18237 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18238 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18239   echo $ECHO_N "(cached) $ECHO_C" >&6
18240 else
18241   cat >conftest.$ac_ext <<_ACEOF
18242 /* confdefs.h.  */
18243 _ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h.  */
18247 $ac_includes_default
18248 int
18249 main ()
18250 {
18251 #ifndef strerror_s
18252   char *p = (char *) strerror_s;
18253   return !p;
18254 #endif
18255
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext
18261 if { (ac_try="$ac_compile"
18262 case "(($ac_try" in
18263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264   *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267   (eval "$ac_compile") 2>conftest.er1
18268   ac_status=$?
18269   grep -v '^ *+' conftest.er1 >conftest.err
18270   rm -f conftest.er1
18271   cat conftest.err >&5
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); } &&
18274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18275   { (case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_try") 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); }; } &&
18284          { ac_try='test -s conftest.$ac_objext'
18285   { (case "(($ac_try" in
18286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287   *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290   (eval "$ac_try") 2>&5
18291   ac_status=$?
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); }; }; then
18294   ac_cv_have_decl_strerror_s=yes
18295 else
18296   echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18298
18299         ac_cv_have_decl_strerror_s=no
18300 fi
18301
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303 fi
18304 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18305 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18306 if test $ac_cv_have_decl_strerror_s = yes; then
18307
18308 cat >>confdefs.h <<_ACEOF
18309 #define HAVE_DECL_STRERROR_S 1
18310 _ACEOF
18311
18312
18313 else
18314   cat >>confdefs.h <<_ACEOF
18315 #define HAVE_DECL_STRERROR_S 0
18316 _ACEOF
18317
18318
18319 fi
18320
18321
18322
18323 if test "$llvm_cv_os_type" = "MingW" ; then
18324   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18325 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18326 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18327   echo $ECHO_N "(cached) $ECHO_C" >&6
18328 else
18329   ac_check_lib_save_LIBS=$LIBS
18330 LIBS="-lgcc  $LIBS"
18331 cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h.  */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h.  */
18337
18338 /* Override any GCC internal prototype to avoid an error.
18339    Use char because int might match the return type of a GCC
18340    builtin and then its argument prototype would still apply.  */
18341 #ifdef __cplusplus
18342 extern "C"
18343 #endif
18344 char _alloca ();
18345 int
18346 main ()
18347 {
18348 return _alloca ();
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (ac_try="$ac_link"
18355 case "(($ac_try" in
18356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357   *) ac_try_echo=$ac_try;;
18358 esac
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360   (eval "$ac_link") 2>conftest.er1
18361   ac_status=$?
18362   grep -v '^ *+' conftest.er1 >conftest.err
18363   rm -f conftest.er1
18364   cat conftest.err >&5
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); } &&
18367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18368   { (case "(($ac_try" in
18369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370   *) ac_try_echo=$ac_try;;
18371 esac
18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373   (eval "$ac_try") 2>&5
18374   ac_status=$?
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); }; } &&
18377          { ac_try='test -s conftest$ac_exeext'
18378   { (case "(($ac_try" in
18379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380   *) ac_try_echo=$ac_try;;
18381 esac
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383   (eval "$ac_try") 2>&5
18384   ac_status=$?
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); }; }; then
18387   ac_cv_lib_gcc__alloca=yes
18388 else
18389   echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18391
18392         ac_cv_lib_gcc__alloca=no
18393 fi
18394
18395 rm -f core conftest.err conftest.$ac_objext \
18396       conftest$ac_exeext conftest.$ac_ext
18397 LIBS=$ac_check_lib_save_LIBS
18398 fi
18399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18400 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18401 if test $ac_cv_lib_gcc__alloca = yes; then
18402
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE__ALLOCA 1
18405 _ACEOF
18406
18407 fi
18408
18409   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18410 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18411 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18412   echo $ECHO_N "(cached) $ECHO_C" >&6
18413 else
18414   ac_check_lib_save_LIBS=$LIBS
18415 LIBS="-lgcc  $LIBS"
18416 cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h.  */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h.  */
18422
18423 /* Override any GCC internal prototype to avoid an error.
18424    Use char because int might match the return type of a GCC
18425    builtin and then its argument prototype would still apply.  */
18426 #ifdef __cplusplus
18427 extern "C"
18428 #endif
18429 char __alloca ();
18430 int
18431 main ()
18432 {
18433 return __alloca ();
18434   ;
18435   return 0;
18436 }
18437 _ACEOF
18438 rm -f conftest.$ac_objext conftest$ac_exeext
18439 if { (ac_try="$ac_link"
18440 case "(($ac_try" in
18441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442   *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445   (eval "$ac_link") 2>conftest.er1
18446   ac_status=$?
18447   grep -v '^ *+' conftest.er1 >conftest.err
18448   rm -f conftest.er1
18449   cat conftest.err >&5
18450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451   (exit $ac_status); } &&
18452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18453   { (case "(($ac_try" in
18454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455   *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458   (eval "$ac_try") 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); }; } &&
18462          { ac_try='test -s conftest$ac_exeext'
18463   { (case "(($ac_try" in
18464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465   *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468   (eval "$ac_try") 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; }; then
18472   ac_cv_lib_gcc___alloca=yes
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477         ac_cv_lib_gcc___alloca=no
18478 fi
18479
18480 rm -f core conftest.err conftest.$ac_objext \
18481       conftest$ac_exeext conftest.$ac_ext
18482 LIBS=$ac_check_lib_save_LIBS
18483 fi
18484 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18485 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18486 if test $ac_cv_lib_gcc___alloca = yes; then
18487
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE___ALLOCA 1
18490 _ACEOF
18491
18492 fi
18493
18494   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18495 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18496 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18497   echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499   ac_check_lib_save_LIBS=$LIBS
18500 LIBS="-lgcc  $LIBS"
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507
18508 /* Override any GCC internal prototype to avoid an error.
18509    Use char because int might match the return type of a GCC
18510    builtin and then its argument prototype would still apply.  */
18511 #ifdef __cplusplus
18512 extern "C"
18513 #endif
18514 char __chkstk ();
18515 int
18516 main ()
18517 {
18518 return __chkstk ();
18519   ;
18520   return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527   *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530   (eval "$ac_link") 2>conftest.er1
18531   ac_status=$?
18532   grep -v '^ *+' conftest.er1 >conftest.err
18533   rm -f conftest.er1
18534   cat conftest.err >&5
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } &&
18537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18538   { (case "(($ac_try" in
18539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540   *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543   (eval "$ac_try") 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; } &&
18547          { ac_try='test -s conftest$ac_exeext'
18548   { (case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_try") 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; }; then
18557   ac_cv_lib_gcc___chkstk=yes
18558 else
18559   echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18561
18562         ac_cv_lib_gcc___chkstk=no
18563 fi
18564
18565 rm -f core conftest.err conftest.$ac_objext \
18566       conftest$ac_exeext conftest.$ac_ext
18567 LIBS=$ac_check_lib_save_LIBS
18568 fi
18569 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18570 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18571 if test $ac_cv_lib_gcc___chkstk = yes; then
18572
18573 cat >>confdefs.h <<\_ACEOF
18574 #define HAVE___CHKSTK 1
18575 _ACEOF
18576
18577 fi
18578
18579   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18580 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18581 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584   ac_check_lib_save_LIBS=$LIBS
18585 LIBS="-lgcc  $LIBS"
18586 cat >conftest.$ac_ext <<_ACEOF
18587 /* confdefs.h.  */
18588 _ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h.  */
18592
18593 /* Override any GCC internal prototype to avoid an error.
18594    Use char because int might match the return type of a GCC
18595    builtin and then its argument prototype would still apply.  */
18596 #ifdef __cplusplus
18597 extern "C"
18598 #endif
18599 char ___chkstk ();
18600 int
18601 main ()
18602 {
18603 return ___chkstk ();
18604   ;
18605   return 0;
18606 }
18607 _ACEOF
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612   *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615   (eval "$ac_link") 2>conftest.er1
18616   ac_status=$?
18617   grep -v '^ *+' conftest.er1 >conftest.err
18618   rm -f conftest.er1
18619   cat conftest.err >&5
18620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); } &&
18622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18623   { (case "(($ac_try" in
18624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625   *) ac_try_echo=$ac_try;;
18626 esac
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628   (eval "$ac_try") 2>&5
18629   ac_status=$?
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); }; } &&
18632          { ac_try='test -s conftest$ac_exeext'
18633   { (case "(($ac_try" in
18634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635   *) ac_try_echo=$ac_try;;
18636 esac
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638   (eval "$ac_try") 2>&5
18639   ac_status=$?
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); }; }; then
18642   ac_cv_lib_gcc____chkstk=yes
18643 else
18644   echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18646
18647         ac_cv_lib_gcc____chkstk=no
18648 fi
18649
18650 rm -f core conftest.err conftest.$ac_objext \
18651       conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18653 fi
18654 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18655 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18656 if test $ac_cv_lib_gcc____chkstk = yes; then
18657
18658 cat >>confdefs.h <<\_ACEOF
18659 #define HAVE____CHKSTK 1
18660 _ACEOF
18661
18662 fi
18663
18664
18665   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18666 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18667 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18668   echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670   ac_check_lib_save_LIBS=$LIBS
18671 LIBS="-lgcc  $LIBS"
18672 cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h.  */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h.  */
18678
18679 /* Override any GCC internal prototype to avoid an error.
18680    Use char because int might match the return type of a GCC
18681    builtin and then its argument prototype would still apply.  */
18682 #ifdef __cplusplus
18683 extern "C"
18684 #endif
18685 char __ashldi3 ();
18686 int
18687 main ()
18688 {
18689 return __ashldi3 ();
18690   ;
18691   return 0;
18692 }
18693 _ACEOF
18694 rm -f conftest.$ac_objext conftest$ac_exeext
18695 if { (ac_try="$ac_link"
18696 case "(($ac_try" in
18697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698   *) ac_try_echo=$ac_try;;
18699 esac
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701   (eval "$ac_link") 2>conftest.er1
18702   ac_status=$?
18703   grep -v '^ *+' conftest.er1 >conftest.err
18704   rm -f conftest.er1
18705   cat conftest.err >&5
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); } &&
18708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18709   { (case "(($ac_try" in
18710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711   *) ac_try_echo=$ac_try;;
18712 esac
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714   (eval "$ac_try") 2>&5
18715   ac_status=$?
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); }; } &&
18718          { ac_try='test -s conftest$ac_exeext'
18719   { (case "(($ac_try" in
18720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721   *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724   (eval "$ac_try") 2>&5
18725   ac_status=$?
18726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727   (exit $ac_status); }; }; then
18728   ac_cv_lib_gcc___ashldi3=yes
18729 else
18730   echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18732
18733         ac_cv_lib_gcc___ashldi3=no
18734 fi
18735
18736 rm -f core conftest.err conftest.$ac_objext \
18737       conftest$ac_exeext conftest.$ac_ext
18738 LIBS=$ac_check_lib_save_LIBS
18739 fi
18740 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18741 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18742 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18743
18744 cat >>confdefs.h <<\_ACEOF
18745 #define HAVE___ASHLDI3 1
18746 _ACEOF
18747
18748 fi
18749
18750   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18751 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18752 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18753   echo $ECHO_N "(cached) $ECHO_C" >&6
18754 else
18755   ac_check_lib_save_LIBS=$LIBS
18756 LIBS="-lgcc  $LIBS"
18757 cat >conftest.$ac_ext <<_ACEOF
18758 /* confdefs.h.  */
18759 _ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h.  */
18763
18764 /* Override any GCC internal prototype to avoid an error.
18765    Use char because int might match the return type of a GCC
18766    builtin and then its argument prototype would still apply.  */
18767 #ifdef __cplusplus
18768 extern "C"
18769 #endif
18770 char __ashrdi3 ();
18771 int
18772 main ()
18773 {
18774 return __ashrdi3 ();
18775   ;
18776   return 0;
18777 }
18778 _ACEOF
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (ac_try="$ac_link"
18781 case "(($ac_try" in
18782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783   *) ac_try_echo=$ac_try;;
18784 esac
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786   (eval "$ac_link") 2>conftest.er1
18787   ac_status=$?
18788   grep -v '^ *+' conftest.er1 >conftest.err
18789   rm -f conftest.er1
18790   cat conftest.err >&5
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); } &&
18793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18794   { (case "(($ac_try" in
18795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796   *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799   (eval "$ac_try") 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; } &&
18803          { ac_try='test -s conftest$ac_exeext'
18804   { (case "(($ac_try" in
18805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806   *) ac_try_echo=$ac_try;;
18807 esac
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809   (eval "$ac_try") 2>&5
18810   ac_status=$?
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); }; }; then
18813   ac_cv_lib_gcc___ashrdi3=yes
18814 else
18815   echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18817
18818         ac_cv_lib_gcc___ashrdi3=no
18819 fi
18820
18821 rm -f core conftest.err conftest.$ac_objext \
18822       conftest$ac_exeext conftest.$ac_ext
18823 LIBS=$ac_check_lib_save_LIBS
18824 fi
18825 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18826 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18827 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18828
18829 cat >>confdefs.h <<\_ACEOF
18830 #define HAVE___ASHRDI3 1
18831 _ACEOF
18832
18833 fi
18834
18835   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18836 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18837 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18838   echo $ECHO_N "(cached) $ECHO_C" >&6
18839 else
18840   ac_check_lib_save_LIBS=$LIBS
18841 LIBS="-lgcc  $LIBS"
18842 cat >conftest.$ac_ext <<_ACEOF
18843 /* confdefs.h.  */
18844 _ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h.  */
18848
18849 /* Override any GCC internal prototype to avoid an error.
18850    Use char because int might match the return type of a GCC
18851    builtin and then its argument prototype would still apply.  */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 char __divdi3 ();
18856 int
18857 main ()
18858 {
18859 return __divdi3 ();
18860   ;
18861   return 0;
18862 }
18863 _ACEOF
18864 rm -f conftest.$ac_objext conftest$ac_exeext
18865 if { (ac_try="$ac_link"
18866 case "(($ac_try" in
18867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868   *) ac_try_echo=$ac_try;;
18869 esac
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871   (eval "$ac_link") 2>conftest.er1
18872   ac_status=$?
18873   grep -v '^ *+' conftest.er1 >conftest.err
18874   rm -f conftest.er1
18875   cat conftest.err >&5
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); } &&
18878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18879   { (case "(($ac_try" in
18880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881   *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884   (eval "$ac_try") 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; } &&
18888          { ac_try='test -s conftest$ac_exeext'
18889   { (case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894   (eval "$ac_try") 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; }; then
18898   ac_cv_lib_gcc___divdi3=yes
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903         ac_cv_lib_gcc___divdi3=no
18904 fi
18905
18906 rm -f core conftest.err conftest.$ac_objext \
18907       conftest$ac_exeext conftest.$ac_ext
18908 LIBS=$ac_check_lib_save_LIBS
18909 fi
18910 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18911 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18912 if test $ac_cv_lib_gcc___divdi3 = yes; then
18913
18914 cat >>confdefs.h <<\_ACEOF
18915 #define HAVE___DIVDI3 1
18916 _ACEOF
18917
18918 fi
18919
18920   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18921 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18922 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18923   echo $ECHO_N "(cached) $ECHO_C" >&6
18924 else
18925   ac_check_lib_save_LIBS=$LIBS
18926 LIBS="-lgcc  $LIBS"
18927 cat >conftest.$ac_ext <<_ACEOF
18928 /* confdefs.h.  */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h.  */
18933
18934 /* Override any GCC internal prototype to avoid an error.
18935    Use char because int might match the return type of a GCC
18936    builtin and then its argument prototype would still apply.  */
18937 #ifdef __cplusplus
18938 extern "C"
18939 #endif
18940 char __fixdfdi ();
18941 int
18942 main ()
18943 {
18944 return __fixdfdi ();
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956   (eval "$ac_link") 2>conftest.er1
18957   ac_status=$?
18958   grep -v '^ *+' conftest.er1 >conftest.err
18959   rm -f conftest.er1
18960   cat conftest.err >&5
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); } &&
18963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18964   { (case "(($ac_try" in
18965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966   *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969   (eval "$ac_try") 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; } &&
18973          { ac_try='test -s conftest$ac_exeext'
18974   { (case "(($ac_try" in
18975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976   *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979   (eval "$ac_try") 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); }; }; then
18983   ac_cv_lib_gcc___fixdfdi=yes
18984 else
18985   echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18987
18988         ac_cv_lib_gcc___fixdfdi=no
18989 fi
18990
18991 rm -f core conftest.err conftest.$ac_objext \
18992       conftest$ac_exeext conftest.$ac_ext
18993 LIBS=$ac_check_lib_save_LIBS
18994 fi
18995 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18996 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18997 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18998
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE___FIXDFDI 1
19001 _ACEOF
19002
19003 fi
19004
19005   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19006 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19007 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19008   echo $ECHO_N "(cached) $ECHO_C" >&6
19009 else
19010   ac_check_lib_save_LIBS=$LIBS
19011 LIBS="-lgcc  $LIBS"
19012 cat >conftest.$ac_ext <<_ACEOF
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018
19019 /* Override any GCC internal prototype to avoid an error.
19020    Use char because int might match the return type of a GCC
19021    builtin and then its argument prototype would still apply.  */
19022 #ifdef __cplusplus
19023 extern "C"
19024 #endif
19025 char __fixsfdi ();
19026 int
19027 main ()
19028 {
19029 return __fixsfdi ();
19030   ;
19031   return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (ac_try="$ac_link"
19036 case "(($ac_try" in
19037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038   *) ac_try_echo=$ac_try;;
19039 esac
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041   (eval "$ac_link") 2>conftest.er1
19042   ac_status=$?
19043   grep -v '^ *+' conftest.er1 >conftest.err
19044   rm -f conftest.er1
19045   cat conftest.err >&5
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); } &&
19048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19049   { (case "(($ac_try" in
19050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051   *) ac_try_echo=$ac_try;;
19052 esac
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054   (eval "$ac_try") 2>&5
19055   ac_status=$?
19056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); }; } &&
19058          { ac_try='test -s conftest$ac_exeext'
19059   { (case "(($ac_try" in
19060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061   *) ac_try_echo=$ac_try;;
19062 esac
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064   (eval "$ac_try") 2>&5
19065   ac_status=$?
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); }; }; then
19068   ac_cv_lib_gcc___fixsfdi=yes
19069 else
19070   echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19072
19073         ac_cv_lib_gcc___fixsfdi=no
19074 fi
19075
19076 rm -f core conftest.err conftest.$ac_objext \
19077       conftest$ac_exeext conftest.$ac_ext
19078 LIBS=$ac_check_lib_save_LIBS
19079 fi
19080 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19081 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19082 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19083
19084 cat >>confdefs.h <<\_ACEOF
19085 #define HAVE___FIXSFDI 1
19086 _ACEOF
19087
19088 fi
19089
19090   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19091 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19092 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19093   echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095   ac_check_lib_save_LIBS=$LIBS
19096 LIBS="-lgcc  $LIBS"
19097 cat >conftest.$ac_ext <<_ACEOF
19098 /* confdefs.h.  */
19099 _ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h.  */
19103
19104 /* Override any GCC internal prototype to avoid an error.
19105    Use char because int might match the return type of a GCC
19106    builtin and then its argument prototype would still apply.  */
19107 #ifdef __cplusplus
19108 extern "C"
19109 #endif
19110 char __floatdidf ();
19111 int
19112 main ()
19113 {
19114 return __floatdidf ();
19115   ;
19116   return 0;
19117 }
19118 _ACEOF
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123   *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126   (eval "$ac_link") 2>conftest.er1
19127   ac_status=$?
19128   grep -v '^ *+' conftest.er1 >conftest.err
19129   rm -f conftest.er1
19130   cat conftest.err >&5
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); } &&
19133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19134   { (case "(($ac_try" in
19135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136   *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139   (eval "$ac_try") 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); }; } &&
19143          { ac_try='test -s conftest$ac_exeext'
19144   { (case "(($ac_try" in
19145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146   *) ac_try_echo=$ac_try;;
19147 esac
19148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149   (eval "$ac_try") 2>&5
19150   ac_status=$?
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); }; }; then
19153   ac_cv_lib_gcc___floatdidf=yes
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158         ac_cv_lib_gcc___floatdidf=no
19159 fi
19160
19161 rm -f core conftest.err conftest.$ac_objext \
19162       conftest$ac_exeext conftest.$ac_ext
19163 LIBS=$ac_check_lib_save_LIBS
19164 fi
19165 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19166 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19167 if test $ac_cv_lib_gcc___floatdidf = yes; then
19168
19169 cat >>confdefs.h <<\_ACEOF
19170 #define HAVE___FLOATDIDF 1
19171 _ACEOF
19172
19173 fi
19174
19175   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19176 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19177 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19178   echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180   ac_check_lib_save_LIBS=$LIBS
19181 LIBS="-lgcc  $LIBS"
19182 cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h.  */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h.  */
19188
19189 /* Override any GCC internal prototype to avoid an error.
19190    Use char because int might match the return type of a GCC
19191    builtin and then its argument prototype would still apply.  */
19192 #ifdef __cplusplus
19193 extern "C"
19194 #endif
19195 char __lshrdi3 ();
19196 int
19197 main ()
19198 {
19199 return __lshrdi3 ();
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (ac_try="$ac_link"
19206 case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211   (eval "$ac_link") 2>conftest.er1
19212   ac_status=$?
19213   grep -v '^ *+' conftest.er1 >conftest.err
19214   rm -f conftest.er1
19215   cat conftest.err >&5
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); } &&
19218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19219   { (case "(($ac_try" in
19220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221   *) ac_try_echo=$ac_try;;
19222 esac
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224   (eval "$ac_try") 2>&5
19225   ac_status=$?
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); }; } &&
19228          { ac_try='test -s conftest$ac_exeext'
19229   { (case "(($ac_try" in
19230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231   *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234   (eval "$ac_try") 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); }; }; then
19238   ac_cv_lib_gcc___lshrdi3=yes
19239 else
19240   echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243         ac_cv_lib_gcc___lshrdi3=no
19244 fi
19245
19246 rm -f core conftest.err conftest.$ac_objext \
19247       conftest$ac_exeext conftest.$ac_ext
19248 LIBS=$ac_check_lib_save_LIBS
19249 fi
19250 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19251 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19252 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19253
19254 cat >>confdefs.h <<\_ACEOF
19255 #define HAVE___LSHRDI3 1
19256 _ACEOF
19257
19258 fi
19259
19260   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19261 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19262 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19263   echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265   ac_check_lib_save_LIBS=$LIBS
19266 LIBS="-lgcc  $LIBS"
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h.  */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h.  */
19273
19274 /* Override any GCC internal prototype to avoid an error.
19275    Use char because int might match the return type of a GCC
19276    builtin and then its argument prototype would still apply.  */
19277 #ifdef __cplusplus
19278 extern "C"
19279 #endif
19280 char __moddi3 ();
19281 int
19282 main ()
19283 {
19284 return __moddi3 ();
19285   ;
19286   return 0;
19287 }
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (ac_try="$ac_link"
19291 case "(($ac_try" in
19292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293   *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296   (eval "$ac_link") 2>conftest.er1
19297   ac_status=$?
19298   grep -v '^ *+' conftest.er1 >conftest.err
19299   rm -f conftest.er1
19300   cat conftest.err >&5
19301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302   (exit $ac_status); } &&
19303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19313          { ac_try='test -s conftest$ac_exeext'
19314   { (case "(($ac_try" in
19315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316   *) ac_try_echo=$ac_try;;
19317 esac
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319   (eval "$ac_try") 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; }; then
19323   ac_cv_lib_gcc___moddi3=yes
19324 else
19325   echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328         ac_cv_lib_gcc___moddi3=no
19329 fi
19330
19331 rm -f core conftest.err conftest.$ac_objext \
19332       conftest$ac_exeext conftest.$ac_ext
19333 LIBS=$ac_check_lib_save_LIBS
19334 fi
19335 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19336 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19337 if test $ac_cv_lib_gcc___moddi3 = yes; then
19338
19339 cat >>confdefs.h <<\_ACEOF
19340 #define HAVE___MODDI3 1
19341 _ACEOF
19342
19343 fi
19344
19345   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19346 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19347 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19348   echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350   ac_check_lib_save_LIBS=$LIBS
19351 LIBS="-lgcc  $LIBS"
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h.  */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h.  */
19358
19359 /* Override any GCC internal prototype to avoid an error.
19360    Use char because int might match the return type of a GCC
19361    builtin and then its argument prototype would still apply.  */
19362 #ifdef __cplusplus
19363 extern "C"
19364 #endif
19365 char __udivdi3 ();
19366 int
19367 main ()
19368 {
19369 return __udivdi3 ();
19370   ;
19371   return 0;
19372 }
19373 _ACEOF
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (ac_try="$ac_link"
19376 case "(($ac_try" in
19377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378   *) ac_try_echo=$ac_try;;
19379 esac
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381   (eval "$ac_link") 2>conftest.er1
19382   ac_status=$?
19383   grep -v '^ *+' conftest.er1 >conftest.err
19384   rm -f conftest.er1
19385   cat conftest.err >&5
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); } &&
19388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19398          { ac_try='test -s conftest$ac_exeext'
19399   { (case "(($ac_try" in
19400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401   *) ac_try_echo=$ac_try;;
19402 esac
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404   (eval "$ac_try") 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); }; }; then
19408   ac_cv_lib_gcc___udivdi3=yes
19409 else
19410   echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19412
19413         ac_cv_lib_gcc___udivdi3=no
19414 fi
19415
19416 rm -f core conftest.err conftest.$ac_objext \
19417       conftest$ac_exeext conftest.$ac_ext
19418 LIBS=$ac_check_lib_save_LIBS
19419 fi
19420 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19421 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19422 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19423
19424 cat >>confdefs.h <<\_ACEOF
19425 #define HAVE___UDIVDI3 1
19426 _ACEOF
19427
19428 fi
19429
19430   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19431 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19432 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19433   echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435   ac_check_lib_save_LIBS=$LIBS
19436 LIBS="-lgcc  $LIBS"
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
19444 /* Override any GCC internal prototype to avoid an error.
19445    Use char because int might match the return type of a GCC
19446    builtin and then its argument prototype would still apply.  */
19447 #ifdef __cplusplus
19448 extern "C"
19449 #endif
19450 char __umoddi3 ();
19451 int
19452 main ()
19453 {
19454 return __umoddi3 ();
19455   ;
19456   return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest.$ac_objext conftest$ac_exeext
19460 if { (ac_try="$ac_link"
19461 case "(($ac_try" in
19462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463   *) ac_try_echo=$ac_try;;
19464 esac
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466   (eval "$ac_link") 2>conftest.er1
19467   ac_status=$?
19468   grep -v '^ *+' conftest.er1 >conftest.err
19469   rm -f conftest.er1
19470   cat conftest.err >&5
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); } &&
19473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19474   { (case "(($ac_try" in
19475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476   *) ac_try_echo=$ac_try;;
19477 esac
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479   (eval "$ac_try") 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); }; } &&
19483          { ac_try='test -s conftest$ac_exeext'
19484   { (case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_try") 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; }; then
19493   ac_cv_lib_gcc___umoddi3=yes
19494 else
19495   echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498         ac_cv_lib_gcc___umoddi3=no
19499 fi
19500
19501 rm -f core conftest.err conftest.$ac_objext \
19502       conftest$ac_exeext conftest.$ac_ext
19503 LIBS=$ac_check_lib_save_LIBS
19504 fi
19505 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19506 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19507 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19508
19509 cat >>confdefs.h <<\_ACEOF
19510 #define HAVE___UMODDI3 1
19511 _ACEOF
19512
19513 fi
19514
19515
19516   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19517 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19518 if test "${ac_cv_lib_gcc___main+set}" = set; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521   ac_check_lib_save_LIBS=$LIBS
19522 LIBS="-lgcc  $LIBS"
19523 cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529
19530 /* Override any GCC internal prototype to avoid an error.
19531    Use char because int might match the return type of a GCC
19532    builtin and then its argument prototype would still apply.  */
19533 #ifdef __cplusplus
19534 extern "C"
19535 #endif
19536 char __main ();
19537 int
19538 main ()
19539 {
19540 return __main ();
19541   ;
19542   return 0;
19543 }
19544 _ACEOF
19545 rm -f conftest.$ac_objext conftest$ac_exeext
19546 if { (ac_try="$ac_link"
19547 case "(($ac_try" in
19548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549   *) ac_try_echo=$ac_try;;
19550 esac
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552   (eval "$ac_link") 2>conftest.er1
19553   ac_status=$?
19554   grep -v '^ *+' conftest.er1 >conftest.err
19555   rm -f conftest.er1
19556   cat conftest.err >&5
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); } &&
19559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19560   { (case "(($ac_try" in
19561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562   *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565   (eval "$ac_try") 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); }; } &&
19569          { ac_try='test -s conftest$ac_exeext'
19570   { (case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_try") 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; }; then
19579   ac_cv_lib_gcc___main=yes
19580 else
19581   echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584         ac_cv_lib_gcc___main=no
19585 fi
19586
19587 rm -f core conftest.err conftest.$ac_objext \
19588       conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19590 fi
19591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19592 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19593 if test $ac_cv_lib_gcc___main = yes; then
19594
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE___MAIN 1
19597 _ACEOF
19598
19599 fi
19600
19601   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19602 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19603 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   ac_check_lib_save_LIBS=$LIBS
19607 LIBS="-lgcc  $LIBS"
19608 cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614
19615 /* Override any GCC internal prototype to avoid an error.
19616    Use char because int might match the return type of a GCC
19617    builtin and then its argument prototype would still apply.  */
19618 #ifdef __cplusplus
19619 extern "C"
19620 #endif
19621 char __cmpdi2 ();
19622 int
19623 main ()
19624 {
19625 return __cmpdi2 ();
19626   ;
19627   return 0;
19628 }
19629 _ACEOF
19630 rm -f conftest.$ac_objext conftest$ac_exeext
19631 if { (ac_try="$ac_link"
19632 case "(($ac_try" in
19633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634   *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637   (eval "$ac_link") 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } &&
19644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19645   { (case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650   (eval "$ac_try") 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; } &&
19654          { ac_try='test -s conftest$ac_exeext'
19655   { (case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660   (eval "$ac_try") 2>&5
19661   ac_status=$?
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); }; }; then
19664   ac_cv_lib_gcc___cmpdi2=yes
19665 else
19666   echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669         ac_cv_lib_gcc___cmpdi2=no
19670 fi
19671
19672 rm -f core conftest.err conftest.$ac_objext \
19673       conftest$ac_exeext conftest.$ac_ext
19674 LIBS=$ac_check_lib_save_LIBS
19675 fi
19676 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19677 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19678 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19679
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE___CMPDI2 1
19682 _ACEOF
19683
19684 fi
19685
19686 fi
19687
19688 if test "$llvm_cv_os_type" = "MingW" ; then
19689   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19690 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19691   cat >conftest.$ac_ext <<_ACEOF
19692 #include <windows.h>
19693 #include <imagehlp.h>
19694 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19695 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19696 _ACEOF
19697 rm -f conftest.$ac_objext
19698 if { (ac_try="$ac_compile"
19699 case "(($ac_try" in
19700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701   *) ac_try_echo=$ac_try;;
19702 esac
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704   (eval "$ac_compile") 2>conftest.er1
19705   ac_status=$?
19706   grep -v '^ *+' conftest.er1 >conftest.err
19707   rm -f conftest.er1
19708   cat conftest.err >&5
19709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710   (exit $ac_status); } &&
19711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19712   { (case "(($ac_try" in
19713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714   *) ac_try_echo=$ac_try;;
19715 esac
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717   (eval "$ac_try") 2>&5
19718   ac_status=$?
19719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720   (exit $ac_status); }; } &&
19721          { ac_try='test -s conftest.$ac_objext'
19722   { (case "(($ac_try" in
19723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724   *) ac_try_echo=$ac_try;;
19725 esac
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727   (eval "$ac_try") 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); }; }; then
19731
19732   { echo "$as_me:$LINENO: result: yes" >&5
19733 echo "${ECHO_T}yes" >&6; }
19734   llvm_cv_win32_elmcb_pcstr="PCSTR"
19735
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740
19741   { echo "$as_me:$LINENO: result: no" >&5
19742 echo "${ECHO_T}no" >&6; }
19743   llvm_cv_win32_elmcb_pcstr="PSTR"
19744
19745 fi
19746
19747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19748
19749 cat >>confdefs.h <<_ACEOF
19750 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19751 _ACEOF
19752
19753 fi
19754
19755
19756 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19757 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19758 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761   ac_ext=cpp
19762 ac_cpp='$CXXCPP $CPPFLAGS'
19763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19766
19767    cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773 #include <math.h>
19774 int
19775 main ()
19776 {
19777 float f; isnan(f);
19778   ;
19779   return 0;
19780 }
19781 _ACEOF
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786   *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789   (eval "$ac_compile") 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797   { (case "(($ac_try" in
19798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799   *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802   (eval "$ac_try") 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); }; } &&
19806          { ac_try='test -s conftest.$ac_objext'
19807   { (case "(($ac_try" in
19808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809   *) ac_try_echo=$ac_try;;
19810 esac
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812   (eval "$ac_try") 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); }; }; then
19816   ac_cv_func_isnan_in_math_h=yes
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821         ac_cv_func_isnan_in_math_h=no
19822 fi
19823
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825   ac_ext=c
19826 ac_cpp='$CPP $CPPFLAGS'
19827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19830
19831 fi
19832 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19833 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19834
19835
19836 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19837
19838 cat >>confdefs.h <<\_ACEOF
19839 #define HAVE_ISNAN_IN_MATH_H 1
19840 _ACEOF
19841
19842 fi
19843
19844 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19845 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19846 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19847   echo $ECHO_N "(cached) $ECHO_C" >&6
19848 else
19849   ac_ext=cpp
19850 ac_cpp='$CXXCPP $CPPFLAGS'
19851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19854
19855    cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h.  */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h.  */
19861 #include <cmath>
19862 int
19863 main ()
19864 {
19865 float f; isnan(f);
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (ac_try="$ac_compile"
19872 case "(($ac_try" in
19873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874   *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877   (eval "$ac_compile") 2>conftest.er1
19878   ac_status=$?
19879   grep -v '^ *+' conftest.er1 >conftest.err
19880   rm -f conftest.er1
19881   cat conftest.err >&5
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); } &&
19884          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19885   { (case "(($ac_try" in
19886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887   *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890   (eval "$ac_try") 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); }; } &&
19894          { ac_try='test -s conftest.$ac_objext'
19895   { (case "(($ac_try" in
19896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897   *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900   (eval "$ac_try") 2>&5
19901   ac_status=$?
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); }; }; then
19904   ac_cv_func_isnan_in_cmath=yes
19905 else
19906   echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19908
19909         ac_cv_func_isnan_in_cmath=no
19910 fi
19911
19912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19913   ac_ext=c
19914 ac_cpp='$CPP $CPPFLAGS'
19915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19918
19919 fi
19920 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19921 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19922
19923 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19924
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE_ISNAN_IN_CMATH 1
19927 _ACEOF
19928
19929 fi
19930
19931 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19932 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19933 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19934   echo $ECHO_N "(cached) $ECHO_C" >&6
19935 else
19936   ac_ext=cpp
19937 ac_cpp='$CXXCPP $CPPFLAGS'
19938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19941
19942    cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h.  */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h.  */
19948 #include <cmath>
19949 int
19950 main ()
19951 {
19952 float f; std::isnan(f);
19953   ;
19954   return 0;
19955 }
19956 _ACEOF
19957 rm -f conftest.$ac_objext
19958 if { (ac_try="$ac_compile"
19959 case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964   (eval "$ac_compile") 2>conftest.er1
19965   ac_status=$?
19966   grep -v '^ *+' conftest.er1 >conftest.err
19967   rm -f conftest.er1
19968   cat conftest.err >&5
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); } &&
19971          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19972   { (case "(($ac_try" in
19973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974   *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977   (eval "$ac_try") 2>&5
19978   ac_status=$?
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); }; } &&
19981          { ac_try='test -s conftest.$ac_objext'
19982   { (case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_try") 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); }; }; then
19991   ac_cv_func_std_isnan_in_cmath=yes
19992 else
19993   echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19995
19996         ac_cv_func_std_isnan_in_cmath=no
19997 fi
19998
19999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20000   ac_ext=c
20001 ac_cpp='$CPP $CPPFLAGS'
20002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20005
20006 fi
20007 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20008 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20009
20010 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20011
20012 cat >>confdefs.h <<\_ACEOF
20013 #define HAVE_STD_ISNAN_IN_CMATH 1
20014 _ACEOF
20015
20016 fi
20017
20018
20019 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20020 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20021 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20022   echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024   ac_ext=cpp
20025 ac_cpp='$CXXCPP $CPPFLAGS'
20026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20029
20030    cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036 #include <math.h>
20037 int
20038 main ()
20039 {
20040 float f; isinf(f);
20041   ;
20042   return 0;
20043 }
20044 _ACEOF
20045 rm -f conftest.$ac_objext
20046 if { (ac_try="$ac_compile"
20047 case "(($ac_try" in
20048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049   *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052   (eval "$ac_compile") 2>conftest.er1
20053   ac_status=$?
20054   grep -v '^ *+' conftest.er1 >conftest.err
20055   rm -f conftest.er1
20056   cat conftest.err >&5
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); } &&
20059          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20060   { (case "(($ac_try" in
20061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062   *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065   (eval "$ac_try") 2>&5
20066   ac_status=$?
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); }; } &&
20069          { ac_try='test -s conftest.$ac_objext'
20070   { (case "(($ac_try" in
20071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072   *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075   (eval "$ac_try") 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); }; }; then
20079   ac_cv_func_isinf_in_math_h=yes
20080 else
20081   echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20083
20084         ac_cv_func_isinf_in_math_h=no
20085 fi
20086
20087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20088   ac_ext=c
20089 ac_cpp='$CPP $CPPFLAGS'
20090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20093
20094 fi
20095 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20096 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20097
20098 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20099
20100 cat >>confdefs.h <<\_ACEOF
20101 #define HAVE_ISINF_IN_MATH_H 1
20102 _ACEOF
20103
20104 fi
20105
20106 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20107 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20108 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20109   echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111   ac_ext=cpp
20112 ac_cpp='$CXXCPP $CPPFLAGS'
20113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20116
20117    cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h.  */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h.  */
20123 #include <cmath>
20124 int
20125 main ()
20126 {
20127 float f; isinf(f);
20128   ;
20129   return 0;
20130 }
20131 _ACEOF
20132 rm -f conftest.$ac_objext
20133 if { (ac_try="$ac_compile"
20134 case "(($ac_try" in
20135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136   *) ac_try_echo=$ac_try;;
20137 esac
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139   (eval "$ac_compile") 2>conftest.er1
20140   ac_status=$?
20141   grep -v '^ *+' conftest.er1 >conftest.err
20142   rm -f conftest.er1
20143   cat conftest.err >&5
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } &&
20146          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20147   { (case "(($ac_try" in
20148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149   *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152   (eval "$ac_try") 2>&5
20153   ac_status=$?
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); }; } &&
20156          { ac_try='test -s conftest.$ac_objext'
20157   { (case "(($ac_try" in
20158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159   *) ac_try_echo=$ac_try;;
20160 esac
20161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20162   (eval "$ac_try") 2>&5
20163   ac_status=$?
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); }; }; then
20166   ac_cv_func_isinf_in_cmath=yes
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171         ac_cv_func_isinf_in_cmath=no
20172 fi
20173
20174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175   ac_ext=c
20176 ac_cpp='$CPP $CPPFLAGS'
20177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20180
20181 fi
20182 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20183 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20184
20185 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20186
20187 cat >>confdefs.h <<\_ACEOF
20188 #define HAVE_ISINF_IN_CMATH 1
20189 _ACEOF
20190
20191 fi
20192
20193 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20194 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20195 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   ac_ext=cpp
20199 ac_cpp='$CXXCPP $CPPFLAGS'
20200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20203
20204    cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h.  */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h.  */
20210 #include <cmath>
20211 int
20212 main ()
20213 {
20214 float f; std::isinf(f)}
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 rm -f conftest.$ac_objext
20220 if { (ac_try="$ac_compile"
20221 case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_compile") 2>conftest.er1
20227   ac_status=$?
20228   grep -v '^ *+' conftest.er1 >conftest.err
20229   rm -f conftest.er1
20230   cat conftest.err >&5
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); } &&
20233          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20234   { (case "(($ac_try" in
20235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236   *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239   (eval "$ac_try") 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; } &&
20243          { ac_try='test -s conftest.$ac_objext'
20244   { (case "(($ac_try" in
20245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246   *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249   (eval "$ac_try") 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; }; then
20253   ac_cv_func_std_isinf_in_cmath=yes
20254 else
20255   echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20257
20258         ac_cv_func_std_isinf_in_cmath=no
20259 fi
20260
20261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20262   ac_ext=c
20263 ac_cpp='$CPP $CPPFLAGS'
20264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20267
20268 fi
20269 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20270 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20271
20272 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20273
20274 cat >>confdefs.h <<\_ACEOF
20275 #define HAVE_STD_ISINF_IN_CMATH 1
20276 _ACEOF
20277
20278 fi
20279
20280 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20281 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20282 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20283   echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20285   ac_ext=cpp
20286 ac_cpp='$CXXCPP $CPPFLAGS'
20287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20290
20291    cat >conftest.$ac_ext <<_ACEOF
20292 /* confdefs.h.  */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h.  */
20297 #include <ieeefp.h>
20298 int
20299 main ()
20300 {
20301 float f; finite(f);
20302   ;
20303   return 0;
20304 }
20305 _ACEOF
20306 rm -f conftest.$ac_objext
20307 if { (ac_try="$ac_compile"
20308 case "(($ac_try" in
20309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310   *) ac_try_echo=$ac_try;;
20311 esac
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313   (eval "$ac_compile") 2>conftest.er1
20314   ac_status=$?
20315   grep -v '^ *+' conftest.er1 >conftest.err
20316   rm -f conftest.er1
20317   cat conftest.err >&5
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); } &&
20320          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20321   { (case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_try") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; } &&
20330          { ac_try='test -s conftest.$ac_objext'
20331   { (case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_try") 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; }; then
20340   ac_cv_func_finite_in_ieeefp_h=yes
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345         ac_cv_func_finite_in_ieeefp_h=no
20346 fi
20347
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349   ac_ext=c
20350 ac_cpp='$CPP $CPPFLAGS'
20351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20354
20355 fi
20356 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20357 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20358
20359 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20360
20361 cat >>confdefs.h <<\_ACEOF
20362 #define HAVE_FINITE_IN_IEEEFP_H 1
20363 _ACEOF
20364
20365 fi
20366
20367
20368
20369 if test "$llvm_cv_platform_type" = "Unix" ; then
20370
20371
20372 for ac_header in stdlib.h unistd.h
20373 do
20374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20376   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20379   echo $ECHO_N "(cached) $ECHO_C" >&6
20380 fi
20381 ac_res=`eval echo '${'$as_ac_Header'}'`
20382                { echo "$as_me:$LINENO: result: $ac_res" >&5
20383 echo "${ECHO_T}$ac_res" >&6; }
20384 else
20385   # Is the header compilable?
20386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 $ac_includes_default
20395 #include <$ac_header>
20396 _ACEOF
20397 rm -f conftest.$ac_objext
20398 if { (ac_try="$ac_compile"
20399 case "(($ac_try" in
20400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401   *) ac_try_echo=$ac_try;;
20402 esac
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404   (eval "$ac_compile") 2>conftest.er1
20405   ac_status=$?
20406   grep -v '^ *+' conftest.er1 >conftest.err
20407   rm -f conftest.er1
20408   cat conftest.err >&5
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); } &&
20411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20412   { (case "(($ac_try" in
20413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414   *) ac_try_echo=$ac_try;;
20415 esac
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417   (eval "$ac_try") 2>&5
20418   ac_status=$?
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); }; } &&
20421          { ac_try='test -s conftest.$ac_objext'
20422   { (case "(($ac_try" in
20423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424   *) ac_try_echo=$ac_try;;
20425 esac
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427   (eval "$ac_try") 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); }; }; then
20431   ac_header_compiler=yes
20432 else
20433   echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436         ac_header_compiler=no
20437 fi
20438
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20441 echo "${ECHO_T}$ac_header_compiler" >&6; }
20442
20443 # Is the header present?
20444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20446 cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 #include <$ac_header>
20453 _ACEOF
20454 if { (ac_try="$ac_cpp conftest.$ac_ext"
20455 case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } >/dev/null; then
20467   if test -s conftest.err; then
20468     ac_cpp_err=$ac_c_preproc_warn_flag
20469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20470   else
20471     ac_cpp_err=
20472   fi
20473 else
20474   ac_cpp_err=yes
20475 fi
20476 if test -z "$ac_cpp_err"; then
20477   ac_header_preproc=yes
20478 else
20479   echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482   ac_header_preproc=no
20483 fi
20484
20485 rm -f conftest.err conftest.$ac_ext
20486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20487 echo "${ECHO_T}$ac_header_preproc" >&6; }
20488
20489 # So?  What about this header?
20490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20491   yes:no: )
20492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20496     ac_header_preproc=yes
20497     ;;
20498   no:yes:* )
20499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20511     ( cat <<\_ASBOX
20512 ## ----------------------------------- ##
20513 ## Report this to llvmbugs@cs.uiuc.edu ##
20514 ## ----------------------------------- ##
20515 _ASBOX
20516      ) | sed "s/^/$as_me: WARNING:     /" >&2
20517     ;;
20518 esac
20519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524   eval "$as_ac_Header=\$ac_header_preproc"
20525 fi
20526 ac_res=`eval echo '${'$as_ac_Header'}'`
20527                { echo "$as_me:$LINENO: result: $ac_res" >&5
20528 echo "${ECHO_T}$ac_res" >&6; }
20529
20530 fi
20531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20532   cat >>confdefs.h <<_ACEOF
20533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20534 _ACEOF
20535
20536 fi
20537
20538 done
20539
20540
20541 for ac_func in getpagesize
20542 do
20543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20547   echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549   cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20557 #define $ac_func innocuous_$ac_func
20558
20559 /* System header to define __stub macros and hopefully few prototypes,
20560     which can conflict with char $ac_func (); below.
20561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20562     <limits.h> exists even on freestanding compilers.  */
20563
20564 #ifdef __STDC__
20565 # include <limits.h>
20566 #else
20567 # include <assert.h>
20568 #endif
20569
20570 #undef $ac_func
20571
20572 /* Override any GCC internal prototype to avoid an error.
20573    Use char because int might match the return type of a GCC
20574    builtin and then its argument prototype would still apply.  */
20575 #ifdef __cplusplus
20576 extern "C"
20577 #endif
20578 char $ac_func ();
20579 /* The GNU C library defines this for functions which it implements
20580     to always fail with ENOSYS.  Some functions are actually named
20581     something starting with __ and the normal name is an alias.  */
20582 #if defined __stub_$ac_func || defined __stub___$ac_func
20583 choke me
20584 #endif
20585
20586 int
20587 main ()
20588 {
20589 return $ac_func ();
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 rm -f conftest.$ac_objext conftest$ac_exeext
20595 if { (ac_try="$ac_link"
20596 case "(($ac_try" in
20597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598   *) ac_try_echo=$ac_try;;
20599 esac
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601   (eval "$ac_link") 2>conftest.er1
20602   ac_status=$?
20603   grep -v '^ *+' conftest.er1 >conftest.err
20604   rm -f conftest.er1
20605   cat conftest.err >&5
20606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607   (exit $ac_status); } &&
20608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20609   { (case "(($ac_try" in
20610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611   *) ac_try_echo=$ac_try;;
20612 esac
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614   (eval "$ac_try") 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; } &&
20618          { ac_try='test -s conftest$ac_exeext'
20619   { (case "(($ac_try" in
20620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621   *) ac_try_echo=$ac_try;;
20622 esac
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624   (eval "$ac_try") 2>&5
20625   ac_status=$?
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); }; }; then
20628   eval "$as_ac_var=yes"
20629 else
20630   echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20632
20633         eval "$as_ac_var=no"
20634 fi
20635
20636 rm -f core conftest.err conftest.$ac_objext \
20637       conftest$ac_exeext conftest.$ac_ext
20638 fi
20639 ac_res=`eval echo '${'$as_ac_var'}'`
20640                { echo "$as_me:$LINENO: result: $ac_res" >&5
20641 echo "${ECHO_T}$ac_res" >&6; }
20642 if test `eval echo '${'$as_ac_var'}'` = yes; then
20643   cat >>confdefs.h <<_ACEOF
20644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20645 _ACEOF
20646
20647 fi
20648 done
20649
20650 { echo "$as_me:$LINENO: checking for working mmap" >&5
20651 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20652 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655   if test "$cross_compiling" = yes; then
20656   ac_cv_func_mmap_fixed_mapped=no
20657 else
20658   cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h.  */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h.  */
20664 $ac_includes_default
20665 /* malloc might have been renamed as rpl_malloc. */
20666 #undef malloc
20667
20668 /* Thanks to Mike Haertel and Jim Avera for this test.
20669    Here is a matrix of mmap possibilities:
20670         mmap private not fixed
20671         mmap private fixed at somewhere currently unmapped
20672         mmap private fixed at somewhere already mapped
20673         mmap shared not fixed
20674         mmap shared fixed at somewhere currently unmapped
20675         mmap shared fixed at somewhere already mapped
20676    For private mappings, we should verify that changes cannot be read()
20677    back from the file, nor mmap's back from the file at a different
20678    address.  (There have been systems where private was not correctly
20679    implemented like the infamous i386 svr4.0, and systems where the
20680    VM page cache was not coherent with the file system buffer cache
20681    like early versions of FreeBSD and possibly contemporary NetBSD.)
20682    For shared mappings, we should conversely verify that changes get
20683    propagated back to all the places they're supposed to be.
20684
20685    Grep wants private fixed already mapped.
20686    The main things grep needs to know about mmap are:
20687    * does it exist and is it safe to write into the mmap'd area
20688    * how to use it (BSD variants)  */
20689
20690 #include <fcntl.h>
20691 #include <sys/mman.h>
20692
20693 #if !STDC_HEADERS && !HAVE_STDLIB_H
20694 char *malloc ();
20695 #endif
20696
20697 /* This mess was copied from the GNU getpagesize.h.  */
20698 #if !HAVE_GETPAGESIZE
20699 /* Assume that all systems that can run configure have sys/param.h.  */
20700 # if !HAVE_SYS_PARAM_H
20701 #  define HAVE_SYS_PARAM_H 1
20702 # endif
20703
20704 # ifdef _SC_PAGESIZE
20705 #  define getpagesize() sysconf(_SC_PAGESIZE)
20706 # else /* no _SC_PAGESIZE */
20707 #  if HAVE_SYS_PARAM_H
20708 #   include <sys/param.h>
20709 #   ifdef EXEC_PAGESIZE
20710 #    define getpagesize() EXEC_PAGESIZE
20711 #   else /* no EXEC_PAGESIZE */
20712 #    ifdef NBPG
20713 #     define getpagesize() NBPG * CLSIZE
20714 #     ifndef CLSIZE
20715 #      define CLSIZE 1
20716 #     endif /* no CLSIZE */
20717 #    else /* no NBPG */
20718 #     ifdef NBPC
20719 #      define getpagesize() NBPC
20720 #     else /* no NBPC */
20721 #      ifdef PAGESIZE
20722 #       define getpagesize() PAGESIZE
20723 #      endif /* PAGESIZE */
20724 #     endif /* no NBPC */
20725 #    endif /* no NBPG */
20726 #   endif /* no EXEC_PAGESIZE */
20727 #  else /* no HAVE_SYS_PARAM_H */
20728 #   define getpagesize() 8192   /* punt totally */
20729 #  endif /* no HAVE_SYS_PARAM_H */
20730 # endif /* no _SC_PAGESIZE */
20731
20732 #endif /* no HAVE_GETPAGESIZE */
20733
20734 int
20735 main ()
20736 {
20737   char *data, *data2, *data3;
20738   int i, pagesize;
20739   int fd;
20740
20741   pagesize = getpagesize ();
20742
20743   /* First, make a file with some known garbage in it. */
20744   data = (char *) malloc (pagesize);
20745   if (!data)
20746     return 1;
20747   for (i = 0; i < pagesize; ++i)
20748     *(data + i) = rand ();
20749   umask (0);
20750   fd = creat ("conftest.mmap", 0600);
20751   if (fd < 0)
20752     return 1;
20753   if (write (fd, data, pagesize) != pagesize)
20754     return 1;
20755   close (fd);
20756
20757   /* Next, try to mmap the file at a fixed address which already has
20758      something else allocated at it.  If we can, also make sure that
20759      we see the same garbage.  */
20760   fd = open ("conftest.mmap", O_RDWR);
20761   if (fd < 0)
20762     return 1;
20763   data2 = (char *) malloc (2 * pagesize);
20764   if (!data2)
20765     return 1;
20766   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20767   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20768                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20769     return 1;
20770   for (i = 0; i < pagesize; ++i)
20771     if (*(data + i) != *(data2 + i))
20772       return 1;
20773
20774   /* Finally, make sure that changes to the mapped area do not
20775      percolate back to the file as seen by read().  (This is a bug on
20776      some variants of i386 svr4.0.)  */
20777   for (i = 0; i < pagesize; ++i)
20778     *(data2 + i) = *(data2 + i) + 1;
20779   data3 = (char *) malloc (pagesize);
20780   if (!data3)
20781     return 1;
20782   if (read (fd, data3, pagesize) != pagesize)
20783     return 1;
20784   for (i = 0; i < pagesize; ++i)
20785     if (*(data + i) != *(data3 + i))
20786       return 1;
20787   close (fd);
20788   return 0;
20789 }
20790 _ACEOF
20791 rm -f conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795   *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798   (eval "$ac_link") 2>&5
20799   ac_status=$?
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20802   { (case "(($ac_try" in
20803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804   *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807   (eval "$ac_try") 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; }; then
20811   ac_cv_func_mmap_fixed_mapped=yes
20812 else
20813   echo "$as_me: program exited with status $ac_status" >&5
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20816
20817 ( exit $ac_status )
20818 ac_cv_func_mmap_fixed_mapped=no
20819 fi
20820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20821 fi
20822
20823
20824 fi
20825 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20826 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20828
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_MMAP 1
20831 _ACEOF
20832
20833 fi
20834 rm -f conftest.mmap
20835
20836   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20837 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20838 if test "${ac_cv_func_mmap_file+set}" = set; then
20839   echo $ECHO_N "(cached) $ECHO_C" >&6
20840 else
20841    ac_ext=c
20842 ac_cpp='$CPP $CPPFLAGS'
20843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20846
20847   if test "$cross_compiling" = yes; then
20848   ac_cv_func_mmap_file=no
20849 else
20850   cat >conftest.$ac_ext <<_ACEOF
20851
20852     /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857
20858 #include <sys/types.h>
20859 #include <sys/mman.h>
20860 #include <fcntl.h>
20861
20862 int
20863 main ()
20864 {
20865
20866   int fd;
20867   fd = creat ("foo",0777);
20868   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20869   unlink ("foo");
20870   return (fd != (int) MAP_FAILED);
20871   ;
20872   return 0;
20873 }
20874 _ACEOF
20875 rm -f conftest$ac_exeext
20876 if { (ac_try="$ac_link"
20877 case "(($ac_try" in
20878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879   *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882   (eval "$ac_link") 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20886   { (case "(($ac_try" in
20887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888   *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891   (eval "$ac_try") 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); }; }; then
20895   ac_cv_func_mmap_file=yes
20896 else
20897   echo "$as_me: program exited with status $ac_status" >&5
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 ( exit $ac_status )
20902 ac_cv_func_mmap_file=no
20903 fi
20904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20905 fi
20906
20907
20908   ac_ext=c
20909 ac_cpp='$CPP $CPPFLAGS'
20910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20913
20914
20915 fi
20916 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20917 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20918 if test "$ac_cv_func_mmap_file" = yes; then
20919
20920 cat >>confdefs.h <<\_ACEOF
20921 #define HAVE_MMAP_FILE
20922 _ACEOF
20923
20924    MMAP_FILE=yes
20925
20926 fi
20927
20928   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20929 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20930 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933   if test "$llvm_cv_os_type" = "Interix" ; then
20934    ac_cv_need_dev_zero_for_mmap=yes
20935  else
20936    ac_cv_need_dev_zero_for_mmap=no
20937  fi
20938
20939 fi
20940 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20941 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20942 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20943
20944 cat >>confdefs.h <<\_ACEOF
20945 #define NEED_DEV_ZERO_FOR_MMAP 1
20946 _ACEOF
20947
20948 fi
20949
20950   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20951   then
20952     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20953 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20954   fi
20955   if test "$ac_cv_func_mmap_file" = "no"
20956   then
20957     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20958 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20959   fi
20960 fi
20961
20962 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20963 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20964 ac_ext=cpp
20965 ac_cpp='$CXXCPP $CPPFLAGS'
20966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20969
20970 cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h.  */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h.  */
20976 int main() {
20977         volatile unsigned long val = 1;
20978         __sync_synchronize();
20979         __sync_val_compare_and_swap(&val, 1, 0);
20980         __sync_add_and_fetch(&val, 1);
20981         __sync_sub_and_fetch(&val, 1);
20982         return 0;
20983       }
20984
20985 _ACEOF
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990   *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993   (eval "$ac_link") 2>conftest.er1
20994   ac_status=$?
20995   grep -v '^ *+' conftest.er1 >conftest.err
20996   rm -f conftest.er1
20997   cat conftest.err >&5
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } &&
21000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21001   { (case "(($ac_try" in
21002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003   *) ac_try_echo=$ac_try;;
21004 esac
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006   (eval "$ac_try") 2>&5
21007   ac_status=$?
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); }; } &&
21010          { ac_try='test -s conftest$ac_exeext'
21011   { (case "(($ac_try" in
21012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013   *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016   (eval "$ac_try") 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; }; then
21020   ac_ext=c
21021 ac_cpp='$CPP $CPPFLAGS'
21022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21025
21026   { echo "$as_me:$LINENO: result: yes" >&5
21027 echo "${ECHO_T}yes" >&6; }
21028
21029 cat >>confdefs.h <<\_ACEOF
21030 #define LLVM_MULTITHREADED 1
21031 _ACEOF
21032
21033 else
21034   echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037         { echo "$as_me:$LINENO: result: no" >&5
21038 echo "${ECHO_T}no" >&6; }
21039
21040 cat >>confdefs.h <<\_ACEOF
21041 #define LLVM_MULTITHREADED 0
21042 _ACEOF
21043
21044   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21045 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21046 fi
21047
21048 rm -f core conftest.err conftest.$ac_objext \
21049       conftest$ac_exeext conftest.$ac_ext
21050
21051
21052 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21053   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21054 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21055 if test "${llvm_cv_linux_mixed+set}" = set; then
21056   echo $ECHO_N "(cached) $ECHO_C" >&6
21057 else
21058    ac_ext=c
21059 ac_cpp='$CPP $CPPFLAGS'
21060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21063
21064   cat >conftest.$ac_ext <<_ACEOF
21065 /* confdefs.h.  */
21066 _ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h.  */
21070 #ifndef __x86_64__
21071        error: Not x86-64 even if uname says so!
21072       #endif
21073
21074 int
21075 main ()
21076 {
21077
21078   ;
21079   return 0;
21080 }
21081 _ACEOF
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086   *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089   (eval "$ac_compile") 2>conftest.er1
21090   ac_status=$?
21091   grep -v '^ *+' conftest.er1 >conftest.err
21092   rm -f conftest.er1
21093   cat conftest.err >&5
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } &&
21096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21097   { (case "(($ac_try" in
21098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099   *) ac_try_echo=$ac_try;;
21100 esac
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102   (eval "$ac_try") 2>&5
21103   ac_status=$?
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); }; } &&
21106          { ac_try='test -s conftest.$ac_objext'
21107   { (case "(($ac_try" in
21108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109   *) ac_try_echo=$ac_try;;
21110 esac
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112   (eval "$ac_try") 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; }; then
21116   llvm_cv_linux_mixed=no
21117 else
21118   echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121         llvm_cv_linux_mixed=yes
21122 fi
21123
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125   ac_ext=c
21126 ac_cpp='$CPP $CPPFLAGS'
21127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21130
21131
21132 fi
21133 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21134 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21135
21136   if test "$llvm_cv_linux_mixed" = "yes"; then
21137     llvm_cv_target_arch="x86"
21138     ARCH="x86"
21139   fi
21140 fi
21141
21142
21143 for ac_func in __dso_handle
21144 do
21145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151   cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h.  */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h.  */
21157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21159 #define $ac_func innocuous_$ac_func
21160
21161 /* System header to define __stub macros and hopefully few prototypes,
21162     which can conflict with char $ac_func (); below.
21163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21164     <limits.h> exists even on freestanding compilers.  */
21165
21166 #ifdef __STDC__
21167 # include <limits.h>
21168 #else
21169 # include <assert.h>
21170 #endif
21171
21172 #undef $ac_func
21173
21174 /* Override any GCC internal prototype to avoid an error.
21175    Use char because int might match the return type of a GCC
21176    builtin and then its argument prototype would still apply.  */
21177 #ifdef __cplusplus
21178 extern "C"
21179 #endif
21180 char $ac_func ();
21181 /* The GNU C library defines this for functions which it implements
21182     to always fail with ENOSYS.  Some functions are actually named
21183     something starting with __ and the normal name is an alias.  */
21184 #if defined __stub_$ac_func || defined __stub___$ac_func
21185 choke me
21186 #endif
21187
21188 int
21189 main ()
21190 {
21191 return $ac_func ();
21192   ;
21193   return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest.$ac_objext conftest$ac_exeext
21197 if { (ac_try="$ac_link"
21198 case "(($ac_try" in
21199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200   *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203   (eval "$ac_link") 2>conftest.er1
21204   ac_status=$?
21205   grep -v '^ *+' conftest.er1 >conftest.err
21206   rm -f conftest.er1
21207   cat conftest.err >&5
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); } &&
21210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21211   { (case "(($ac_try" in
21212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213   *) ac_try_echo=$ac_try;;
21214 esac
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216   (eval "$ac_try") 2>&5
21217   ac_status=$?
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); }; } &&
21220          { ac_try='test -s conftest$ac_exeext'
21221   { (case "(($ac_try" in
21222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223   *) ac_try_echo=$ac_try;;
21224 esac
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226   (eval "$ac_try") 2>&5
21227   ac_status=$?
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); }; }; then
21230   eval "$as_ac_var=yes"
21231 else
21232   echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235         eval "$as_ac_var=no"
21236 fi
21237
21238 rm -f core conftest.err conftest.$ac_objext \
21239       conftest$ac_exeext conftest.$ac_ext
21240 fi
21241 ac_res=`eval echo '${'$as_ac_var'}'`
21242                { echo "$as_me:$LINENO: result: $ac_res" >&5
21243 echo "${ECHO_T}$ac_res" >&6; }
21244 if test `eval echo '${'$as_ac_var'}'` = yes; then
21245   cat >>confdefs.h <<_ACEOF
21246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21247 _ACEOF
21248
21249 fi
21250 done
21251
21252
21253 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
21254 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
21255 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
21256   echo $ECHO_N "(cached) $ECHO_C" >&6
21257 else
21258   llvm_cv_llvmgcc_dragonegg="no"
21259 if test -n "$LLVMGCC" ; then
21260   cp /dev/null conftest.c
21261   $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
21262   if test $? -eq 0 ; then
21263     llvm_cv_llvmgcc_dragonegg="yes"
21264   fi
21265   rm conftest.c
21266 fi
21267 fi
21268 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
21269 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
21270
21271 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
21272   LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
21273   LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
21274 else
21275   LLVMCC_EMITIR_FLAG="-emit-llvm"
21276   LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
21277 fi
21278
21279
21280
21281 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21282 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
21283 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
21284   echo $ECHO_N "(cached) $ECHO_C" >&6
21285 else
21286   llvm_cv_llvmgcc_sanity="no"
21287 if test -n "$LLVMGCC" ; then
21288   cp /dev/null conftest.c
21289   $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
21290       grep 'target datalayout =' > /dev/null 2>&1
21291   if test $? -eq 0 ; then
21292     llvm_cv_llvmgcc_sanity="yes"
21293   fi
21294   rm conftest.c
21295 fi
21296 fi
21297 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
21298 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
21299
21300 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
21301   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
21302 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
21303   llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
21304   LLVMCC1=$llvmcc1path
21305
21306   llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
21307   LLVMCC1PLUS=$llvmcc1pluspath
21308
21309   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
21310   LLVMGCCDIR=$llvmgccdir
21311
21312   llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
21313   LLVMGCC_LANGS=$llvmgcclangs
21314
21315   LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
21316
21317
21318   { echo "$as_me:$LINENO: result: ok" >&5
21319 echo "${ECHO_T}ok" >&6; }
21320 fi
21321
21322 SHLIBEXT=$libltdl_cv_shlibext
21323
21324
21325 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21326
21327
21328 # Translate the various configuration directories and other basic
21329 # information into substitutions that will end up in Makefile.config.in
21330 # that these configured values can be used by the makefiles
21331 if test "${prefix}" = "NONE" ; then
21332   prefix="/usr/local"
21333 fi
21334 eval LLVM_PREFIX="${prefix}";
21335 eval LLVM_BINDIR="${prefix}/bin";
21336 eval LLVM_LIBDIR="${prefix}/lib";
21337 eval LLVM_DATADIR="${prefix}/share/llvm";
21338 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21339 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21340 eval LLVM_INCLUDEDIR="${prefix}/include";
21341 eval LLVM_INFODIR="${prefix}/info";
21342 eval LLVM_MANDIR="${prefix}/man";
21343 LLVM_CONFIGTIME=`date`
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355 # Place the various directores into the config.h file as #defines so that we
21356 # can know about the installation paths within LLVM.
21357
21358 cat >>confdefs.h <<_ACEOF
21359 #define LLVM_PREFIX "$LLVM_PREFIX"
21360 _ACEOF
21361
21362
21363 cat >>confdefs.h <<_ACEOF
21364 #define LLVM_BINDIR "$LLVM_BINDIR"
21365 _ACEOF
21366
21367
21368 cat >>confdefs.h <<_ACEOF
21369 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21370 _ACEOF
21371
21372
21373 cat >>confdefs.h <<_ACEOF
21374 #define LLVM_DATADIR "$LLVM_DATADIR"
21375 _ACEOF
21376
21377
21378 cat >>confdefs.h <<_ACEOF
21379 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21380 _ACEOF
21381
21382
21383 cat >>confdefs.h <<_ACEOF
21384 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21385 _ACEOF
21386
21387
21388 cat >>confdefs.h <<_ACEOF
21389 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21390 _ACEOF
21391
21392
21393 cat >>confdefs.h <<_ACEOF
21394 #define LLVM_INFODIR "$LLVM_INFODIR"
21395 _ACEOF
21396
21397
21398 cat >>confdefs.h <<_ACEOF
21399 #define LLVM_MANDIR "$LLVM_MANDIR"
21400 _ACEOF
21401
21402
21403 cat >>confdefs.h <<_ACEOF
21404 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21405 _ACEOF
21406
21407
21408 cat >>confdefs.h <<_ACEOF
21409 #define LLVM_HOSTTRIPLE "$host"
21410 _ACEOF
21411
21412
21413 # Determine which bindings to build.
21414 if test "$BINDINGS_TO_BUILD" = auto ; then
21415   BINDINGS_TO_BUILD=""
21416   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21417     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21418   fi
21419 fi
21420 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21421
21422
21423 # This isn't really configurey, but it avoids having to repeat the list in
21424 # other files.
21425 ALL_BINDINGS=ocaml
21426
21427
21428 # Do any work necessary to ensure that bindings have what they need.
21429 binding_prereqs_failed=0
21430 for a_binding in $BINDINGS_TO_BUILD ; do
21431   case "$a_binding" in
21432   ocaml)
21433     if test "x$OCAMLC" = x ; then
21434       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21435 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21436       binding_prereqs_failed=1
21437     fi
21438     if test "x$OCAMLDEP" = x ; then
21439       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21440 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21441       binding_prereqs_failed=1
21442     fi
21443     if test "x$OCAMLOPT" = x ; then
21444       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21445 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21446           fi
21447     if test "x$with_ocaml_libdir" != xauto ; then
21448       OCAML_LIBDIR=$with_ocaml_libdir
21449
21450     else
21451       ocaml_stdlib="`"$OCAMLC" -where`"
21452       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21453       then
21454         # ocaml stdlib is beneath our prefix; use stdlib
21455         OCAML_LIBDIR=$ocaml_stdlib
21456
21457       else
21458         # ocaml stdlib is outside our prefix; use libdir/ocaml
21459         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21460
21461       fi
21462     fi
21463     ;;
21464   esac
21465 done
21466 if test "$binding_prereqs_failed" = 1 ; then
21467   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21468 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21469    { (exit 1); exit 1; }; }
21470 fi
21471
21472 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21473 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21474 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21475   echo $ECHO_N "(cached) $ECHO_C" >&6
21476 else
21477    ac_ext=cpp
21478 ac_cpp='$CXXCPP $CPPFLAGS'
21479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21482
21483   oldcxxflags="$CXXFLAGS"
21484   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
21485   cat >conftest.$ac_ext <<_ACEOF
21486 /* confdefs.h.  */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h.  */
21491
21492 int
21493 main ()
21494 {
21495
21496   ;
21497   return 0;
21498 }
21499 _ACEOF
21500 rm -f conftest.$ac_objext
21501 if { (ac_try="$ac_compile"
21502 case "(($ac_try" in
21503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504   *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507   (eval "$ac_compile") 2>conftest.er1
21508   ac_status=$?
21509   grep -v '^ *+' conftest.er1 >conftest.err
21510   rm -f conftest.er1
21511   cat conftest.err >&5
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); } &&
21514          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21515   { (case "(($ac_try" in
21516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517   *) ac_try_echo=$ac_try;;
21518 esac
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520   (eval "$ac_try") 2>&5
21521   ac_status=$?
21522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); }; } &&
21524          { ac_try='test -s conftest.$ac_objext'
21525   { (case "(($ac_try" in
21526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527   *) ac_try_echo=$ac_try;;
21528 esac
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530   (eval "$ac_try") 2>&5
21531   ac_status=$?
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); }; }; then
21534   llvm_cv_cxx_visibility_inlines_hidden=yes
21535 else
21536   echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21538
21539         llvm_cv_cxx_visibility_inlines_hidden=no
21540 fi
21541
21542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543   CXXFLAGS="$oldcxxflags"
21544   ac_ext=c
21545 ac_cpp='$CPP $CPPFLAGS'
21546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21549
21550
21551 fi
21552 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21553 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21554 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21555   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21556
21557 else
21558   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21559
21560 fi
21561
21562
21563 if test "$llvm_cv_link_use_r" = "yes" ; then
21564   RPATH="-Wl,-R"
21565 else
21566   RPATH="-Wl,-rpath"
21567 fi
21568
21569
21570 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21571   RDYNAMIC="-Wl,-export-dynamic"
21572 else
21573   RDYNAMIC=""
21574 fi
21575
21576
21577
21578 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21579
21580
21581
21582
21583
21584
21585 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21586
21587 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21588
21589 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21590
21591 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21592
21593 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21594
21595
21596 ac_config_files="$ac_config_files Makefile.config"
21597
21598
21599 ac_config_files="$ac_config_files llvm.spec"
21600
21601
21602 ac_config_files="$ac_config_files docs/doxygen.cfg"
21603
21604 if test -f ${srcdir}/tools/clang/README.txt; then
21605   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21606
21607 fi
21608
21609 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
21610
21611
21612 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21613
21614
21615 ac_config_commands="$ac_config_commands setup"
21616
21617 ac_config_commands="$ac_config_commands Makefile"
21618
21619
21620 ac_config_commands="$ac_config_commands Makefile.common"
21621
21622
21623 ac_config_commands="$ac_config_commands examples/Makefile"
21624
21625
21626 ac_config_commands="$ac_config_commands lib/Makefile"
21627
21628
21629 ac_config_commands="$ac_config_commands runtime/Makefile"
21630
21631
21632 ac_config_commands="$ac_config_commands test/Makefile"
21633
21634
21635 ac_config_commands="$ac_config_commands test/Makefile.tests"
21636
21637
21638 ac_config_commands="$ac_config_commands unittests/Makefile"
21639
21640
21641 ac_config_commands="$ac_config_commands tools/Makefile"
21642
21643
21644 ac_config_commands="$ac_config_commands utils/Makefile"
21645
21646
21647 ac_config_commands="$ac_config_commands projects/Makefile"
21648
21649
21650 ac_config_commands="$ac_config_commands bindings/Makefile"
21651
21652
21653 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21654
21655
21656
21657 cat >confcache <<\_ACEOF
21658 # This file is a shell script that caches the results of configure
21659 # tests run on this system so they can be shared between configure
21660 # scripts and configure runs, see configure's option --config-cache.
21661 # It is not useful on other systems.  If it contains results you don't
21662 # want to keep, you may remove or edit it.
21663 #
21664 # config.status only pays attention to the cache file if you give it
21665 # the --recheck option to rerun configure.
21666 #
21667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21669 # following values.
21670
21671 _ACEOF
21672
21673 # The following way of writing the cache mishandles newlines in values,
21674 # but we know of no workaround that is simple, portable, and efficient.
21675 # So, we kill variables containing newlines.
21676 # Ultrix sh set writes to stderr and can't be redirected directly,
21677 # and sets the high bit in the cache file unless we assign to the vars.
21678 (
21679   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21680     eval ac_val=\$$ac_var
21681     case $ac_val in #(
21682     *${as_nl}*)
21683       case $ac_var in #(
21684       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21686       esac
21687       case $ac_var in #(
21688       _ | IFS | as_nl) ;; #(
21689       *) $as_unset $ac_var ;;
21690       esac ;;
21691     esac
21692   done
21693
21694   (set) 2>&1 |
21695     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21696     *${as_nl}ac_space=\ *)
21697       # `set' does not quote correctly, so add quotes (double-quote
21698       # substitution turns \\\\ into \\, and sed turns \\ into \).
21699       sed -n \
21700         "s/'/'\\\\''/g;
21701           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21702       ;; #(
21703     *)
21704       # `set' quotes correctly as required by POSIX, so do not add quotes.
21705       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21706       ;;
21707     esac |
21708     sort
21709 ) |
21710   sed '
21711      /^ac_cv_env_/b end
21712      t clear
21713      :clear
21714      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21715      t end
21716      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21717      :end' >>confcache
21718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21719   if test -w "$cache_file"; then
21720     test "x$cache_file" != "x/dev/null" &&
21721       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21722 echo "$as_me: updating cache $cache_file" >&6;}
21723     cat confcache >$cache_file
21724   else
21725     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21726 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21727   fi
21728 fi
21729 rm -f confcache
21730
21731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21732 # Let make expand exec_prefix.
21733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21734
21735 DEFS=-DHAVE_CONFIG_H
21736
21737 ac_libobjs=
21738 ac_ltlibobjs=
21739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21740   # 1. Remove the extension, and $U if already installed.
21741   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21742   ac_i=`echo "$ac_i" | sed "$ac_script"`
21743   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21744   #    will be set to the directory where LIBOBJS objects are built.
21745   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21746   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21747 done
21748 LIBOBJS=$ac_libobjs
21749
21750 LTLIBOBJS=$ac_ltlibobjs
21751
21752
21753 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21754   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21755 Usually this means the macro was only invoked conditionally." >&5
21756 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21757 Usually this means the macro was only invoked conditionally." >&2;}
21758    { (exit 1); exit 1; }; }
21759 fi
21760 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21761   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21762 Usually this means the macro was only invoked conditionally." >&5
21763 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21764 Usually this means the macro was only invoked conditionally." >&2;}
21765    { (exit 1); exit 1; }; }
21766 fi
21767
21768 : ${CONFIG_STATUS=./config.status}
21769 ac_clean_files_save=$ac_clean_files
21770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21771 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21772 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21773 cat >$CONFIG_STATUS <<_ACEOF
21774 #! $SHELL
21775 # Generated by $as_me.
21776 # Run this file to recreate the current configuration.
21777 # Compiler output produced by configure, useful for debugging
21778 # configure, is in config.log if it exists.
21779
21780 debug=false
21781 ac_cs_recheck=false
21782 ac_cs_silent=false
21783 SHELL=\${CONFIG_SHELL-$SHELL}
21784 _ACEOF
21785
21786 cat >>$CONFIG_STATUS <<\_ACEOF
21787 ## --------------------- ##
21788 ## M4sh Initialization.  ##
21789 ## --------------------- ##
21790
21791 # Be Bourne compatible
21792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21793   emulate sh
21794   NULLCMD=:
21795   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21796   # is contrary to our usage.  Disable this feature.
21797   alias -g '${1+"$@"}'='"$@"'
21798   setopt NO_GLOB_SUBST
21799 else
21800   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21801 fi
21802 BIN_SH=xpg4; export BIN_SH # for Tru64
21803 DUALCASE=1; export DUALCASE # for MKS sh
21804
21805
21806 # PATH needs CR
21807 # Avoid depending upon Character Ranges.
21808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21811 as_cr_digits='0123456789'
21812 as_cr_alnum=$as_cr_Letters$as_cr_digits
21813
21814 # The user is always right.
21815 if test "${PATH_SEPARATOR+set}" != set; then
21816   echo "#! /bin/sh" >conf$$.sh
21817   echo  "exit 0"   >>conf$$.sh
21818   chmod +x conf$$.sh
21819   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21820     PATH_SEPARATOR=';'
21821   else
21822     PATH_SEPARATOR=:
21823   fi
21824   rm -f conf$$.sh
21825 fi
21826
21827 # Support unset when possible.
21828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21829   as_unset=unset
21830 else
21831   as_unset=false
21832 fi
21833
21834
21835 # IFS
21836 # We need space, tab and new line, in precisely that order.  Quoting is
21837 # there to prevent editors from complaining about space-tab.
21838 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21839 # splitting by setting IFS to empty value.)
21840 as_nl='
21841 '
21842 IFS=" ""        $as_nl"
21843
21844 # Find who we are.  Look in the path if we contain no directory separator.
21845 case $0 in
21846   *[\\/]* ) as_myself=$0 ;;
21847   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21848 for as_dir in $PATH
21849 do
21850   IFS=$as_save_IFS
21851   test -z "$as_dir" && as_dir=.
21852   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21853 done
21854 IFS=$as_save_IFS
21855
21856      ;;
21857 esac
21858 # We did not find ourselves, most probably we were run as `sh COMMAND'
21859 # in which case we are not to be found in the path.
21860 if test "x$as_myself" = x; then
21861   as_myself=$0
21862 fi
21863 if test ! -f "$as_myself"; then
21864   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21865   { (exit 1); exit 1; }
21866 fi
21867
21868 # Work around bugs in pre-3.0 UWIN ksh.
21869 for as_var in ENV MAIL MAILPATH
21870 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21871 done
21872 PS1='$ '
21873 PS2='> '
21874 PS4='+ '
21875
21876 # NLS nuisances.
21877 for as_var in \
21878   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21879   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21880   LC_TELEPHONE LC_TIME
21881 do
21882   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21883     eval $as_var=C; export $as_var
21884   else
21885     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21886   fi
21887 done
21888
21889 # Required to use basename.
21890 if expr a : '\(a\)' >/dev/null 2>&1 &&
21891    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21892   as_expr=expr
21893 else
21894   as_expr=false
21895 fi
21896
21897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21898   as_basename=basename
21899 else
21900   as_basename=false
21901 fi
21902
21903
21904 # Name of the executable.
21905 as_me=`$as_basename -- "$0" ||
21906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21907          X"$0" : 'X\(//\)$' \| \
21908          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21909 echo X/"$0" |
21910     sed '/^.*\/\([^/][^/]*\)\/*$/{
21911             s//\1/
21912             q
21913           }
21914           /^X\/\(\/\/\)$/{
21915             s//\1/
21916             q
21917           }
21918           /^X\/\(\/\).*/{
21919             s//\1/
21920             q
21921           }
21922           s/.*/./; q'`
21923
21924 # CDPATH.
21925 $as_unset CDPATH
21926
21927
21928
21929   as_lineno_1=$LINENO
21930   as_lineno_2=$LINENO
21931   test "x$as_lineno_1" != "x$as_lineno_2" &&
21932   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21933
21934   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21935   # uniformly replaced by the line number.  The first 'sed' inserts a
21936   # line-number line after each line using $LINENO; the second 'sed'
21937   # does the real work.  The second script uses 'N' to pair each
21938   # line-number line with the line containing $LINENO, and appends
21939   # trailing '-' during substitution so that $LINENO is not a special
21940   # case at line end.
21941   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21942   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21943   # E. McMahon (1931-1989) for sed's syntax.  :-)
21944   sed -n '
21945     p
21946     /[$]LINENO/=
21947   ' <$as_myself |
21948     sed '
21949       s/[$]LINENO.*/&-/
21950       t lineno
21951       b
21952       :lineno
21953       N
21954       :loop
21955       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21956       t loop
21957       s/-\n.*//
21958     ' >$as_me.lineno &&
21959   chmod +x "$as_me.lineno" ||
21960     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21961    { (exit 1); exit 1; }; }
21962
21963   # Don't try to exec as it changes $[0], causing all sort of problems
21964   # (the dirname of $[0] is not the place where we might find the
21965   # original and so on.  Autoconf is especially sensitive to this).
21966   . "./$as_me.lineno"
21967   # Exit status is that of the last command.
21968   exit
21969 }
21970
21971
21972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21973   as_dirname=dirname
21974 else
21975   as_dirname=false
21976 fi
21977
21978 ECHO_C= ECHO_N= ECHO_T=
21979 case `echo -n x` in
21980 -n*)
21981   case `echo 'x\c'` in
21982   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21983   *)   ECHO_C='\c';;
21984   esac;;
21985 *)
21986   ECHO_N='-n';;
21987 esac
21988
21989 if expr a : '\(a\)' >/dev/null 2>&1 &&
21990    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21991   as_expr=expr
21992 else
21993   as_expr=false
21994 fi
21995
21996 rm -f conf$$ conf$$.exe conf$$.file
21997 if test -d conf$$.dir; then
21998   rm -f conf$$.dir/conf$$.file
21999 else
22000   rm -f conf$$.dir
22001   mkdir conf$$.dir
22002 fi
22003 echo >conf$$.file
22004 if ln -s conf$$.file conf$$ 2>/dev/null; then
22005   as_ln_s='ln -s'
22006   # ... but there are two gotchas:
22007   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22008   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22009   # In both cases, we have to default to `cp -p'.
22010   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22011     as_ln_s='cp -p'
22012 elif ln conf$$.file conf$$ 2>/dev/null; then
22013   as_ln_s=ln
22014 else
22015   as_ln_s='cp -p'
22016 fi
22017 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22018 rmdir conf$$.dir 2>/dev/null
22019
22020 if mkdir -p . 2>/dev/null; then
22021   as_mkdir_p=:
22022 else
22023   test -d ./-p && rmdir ./-p
22024   as_mkdir_p=false
22025 fi
22026
22027 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22028 # systems may use methods other than mode bits to determine executability.
22029 cat >conf$$.file <<_ASEOF
22030 #! /bin/sh
22031 exit 0
22032 _ASEOF
22033 chmod +x conf$$.file
22034 if test -x conf$$.file >/dev/null 2>&1; then
22035   as_executable_p="test -x"
22036 else
22037   as_executable_p=:
22038 fi
22039 rm -f conf$$.file
22040
22041 # Sed expression to map a string onto a valid CPP name.
22042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22043
22044 # Sed expression to map a string onto a valid variable name.
22045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22046
22047
22048 exec 6>&1
22049
22050 # Save the log message, to keep $[0] and so on meaningful, and to
22051 # report actual input values of CONFIG_FILES etc. instead of their
22052 # values after options handling.
22053 ac_log="
22054 This file was extended by llvm $as_me 3.0svn, which was
22055 generated by GNU Autoconf 2.60.  Invocation command line was
22056
22057   CONFIG_FILES    = $CONFIG_FILES
22058   CONFIG_HEADERS  = $CONFIG_HEADERS
22059   CONFIG_LINKS    = $CONFIG_LINKS
22060   CONFIG_COMMANDS = $CONFIG_COMMANDS
22061   $ $0 $@
22062
22063 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22064 "
22065
22066 _ACEOF
22067
22068 cat >>$CONFIG_STATUS <<_ACEOF
22069 # Files that config.status was made for.
22070 config_files="$ac_config_files"
22071 config_headers="$ac_config_headers"
22072 config_commands="$ac_config_commands"
22073
22074 _ACEOF
22075
22076 cat >>$CONFIG_STATUS <<\_ACEOF
22077 ac_cs_usage="\
22078 \`$as_me' instantiates files from templates according to the
22079 current configuration.
22080
22081 Usage: $0 [OPTIONS] [FILE]...
22082
22083   -h, --help       print this help, then exit
22084   -V, --version    print version number, then exit
22085   -q, --quiet      do not print progress messages
22086   -d, --debug      don't remove temporary files
22087       --recheck    update $as_me by reconfiguring in the same conditions
22088   --file=FILE[:TEMPLATE]
22089                    instantiate the configuration file FILE
22090   --header=FILE[:TEMPLATE]
22091                    instantiate the configuration header FILE
22092
22093 Configuration files:
22094 $config_files
22095
22096 Configuration headers:
22097 $config_headers
22098
22099 Configuration commands:
22100 $config_commands
22101
22102 Report bugs to <bug-autoconf@gnu.org>."
22103
22104 _ACEOF
22105 cat >>$CONFIG_STATUS <<_ACEOF
22106 ac_cs_version="\\
22107 llvm config.status 3.0svn
22108 configured by $0, generated by GNU Autoconf 2.60,
22109   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22110
22111 Copyright (C) 2006 Free Software Foundation, Inc.
22112 This config.status script is free software; the Free Software Foundation
22113 gives unlimited permission to copy, distribute and modify it."
22114
22115 ac_pwd='$ac_pwd'
22116 srcdir='$srcdir'
22117 INSTALL='$INSTALL'
22118 _ACEOF
22119
22120 cat >>$CONFIG_STATUS <<\_ACEOF
22121 # If no file are specified by the user, then we need to provide default
22122 # value.  By we need to know if files were specified by the user.
22123 ac_need_defaults=:
22124 while test $# != 0
22125 do
22126   case $1 in
22127   --*=*)
22128     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22129     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22130     ac_shift=:
22131     ;;
22132   *)
22133     ac_option=$1
22134     ac_optarg=$2
22135     ac_shift=shift
22136     ;;
22137   esac
22138
22139   case $ac_option in
22140   # Handling of the options.
22141   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22142     ac_cs_recheck=: ;;
22143   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22144     echo "$ac_cs_version"; exit ;;
22145   --debug | --debu | --deb | --de | --d | -d )
22146     debug=: ;;
22147   --file | --fil | --fi | --f )
22148     $ac_shift
22149     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22150     ac_need_defaults=false;;
22151   --header | --heade | --head | --hea )
22152     $ac_shift
22153     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22154     ac_need_defaults=false;;
22155   --he | --h)
22156     # Conflict between --help and --header
22157     { echo "$as_me: error: ambiguous option: $1
22158 Try \`$0 --help' for more information." >&2
22159    { (exit 1); exit 1; }; };;
22160   --help | --hel | -h )
22161     echo "$ac_cs_usage"; exit ;;
22162   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22163   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22164     ac_cs_silent=: ;;
22165
22166   # This is an error.
22167   -*) { echo "$as_me: error: unrecognized option: $1
22168 Try \`$0 --help' for more information." >&2
22169    { (exit 1); exit 1; }; } ;;
22170
22171   *) ac_config_targets="$ac_config_targets $1"
22172      ac_need_defaults=false ;;
22173
22174   esac
22175   shift
22176 done
22177
22178 ac_configure_extra_args=
22179
22180 if $ac_cs_silent; then
22181   exec 6>/dev/null
22182   ac_configure_extra_args="$ac_configure_extra_args --silent"
22183 fi
22184
22185 _ACEOF
22186 cat >>$CONFIG_STATUS <<_ACEOF
22187 if \$ac_cs_recheck; then
22188   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22189   CONFIG_SHELL=$SHELL
22190   export CONFIG_SHELL
22191   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22192 fi
22193
22194 _ACEOF
22195 cat >>$CONFIG_STATUS <<\_ACEOF
22196 exec 5>>config.log
22197 {
22198   echo
22199   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22200 ## Running $as_me. ##
22201 _ASBOX
22202   echo "$ac_log"
22203 } >&5
22204
22205 _ACEOF
22206 cat >>$CONFIG_STATUS <<_ACEOF
22207 #
22208 # INIT-COMMANDS
22209 #
22210 llvm_src="${srcdir}"
22211
22212 _ACEOF
22213
22214 cat >>$CONFIG_STATUS <<\_ACEOF
22215
22216 # Handling of arguments.
22217 for ac_config_target in $ac_config_targets
22218 do
22219   case $ac_config_target in
22220     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22221     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22222     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22223     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22224     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22225     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22226     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22227     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22228     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22229     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22230     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
22231     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
22232     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
22233     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22234     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22235     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22236     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22237     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22238     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22239     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22240     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22241     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22242     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22243     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22244     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22245     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22246     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22247
22248   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22249 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22250    { (exit 1); exit 1; }; };;
22251   esac
22252 done
22253
22254
22255 # If the user did not use the arguments to specify the items to instantiate,
22256 # then the envvar interface is used.  Set only those that are not.
22257 # We use the long form for the default assignment because of an extremely
22258 # bizarre bug on SunOS 4.1.3.
22259 if $ac_need_defaults; then
22260   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22261   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22262   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22263 fi
22264
22265 # Have a temporary directory for convenience.  Make it in the build tree
22266 # simply because there is no reason against having it here, and in addition,
22267 # creating and moving files from /tmp can sometimes cause problems.
22268 # Hook for its removal unless debugging.
22269 # Note that there is a small window in which the directory will not be cleaned:
22270 # after its creation but before its name has been assigned to `$tmp'.
22271 $debug ||
22272 {
22273   tmp=
22274   trap 'exit_status=$?
22275   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22276 ' 0
22277   trap '{ (exit 1); exit 1; }' 1 2 13 15
22278 }
22279 # Create a (secure) tmp directory for tmp files.
22280
22281 {
22282   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22283   test -n "$tmp" && test -d "$tmp"
22284 }  ||
22285 {
22286   tmp=./conf$$-$RANDOM
22287   (umask 077 && mkdir "$tmp")
22288 } ||
22289 {
22290    echo "$me: cannot create a temporary directory in ." >&2
22291    { (exit 1); exit 1; }
22292 }
22293
22294 #
22295 # Set up the sed scripts for CONFIG_FILES section.
22296 #
22297
22298 # No need to generate the scripts if there are no CONFIG_FILES.
22299 # This happens for instance when ./config.status config.h
22300 if test -n "$CONFIG_FILES"; then
22301
22302 _ACEOF
22303
22304
22305
22306 ac_delim='%!_!# '
22307 for ac_last_try in false false false false false :; do
22308   cat >conf$$subs.sed <<_ACEOF
22309 SHELL!$SHELL$ac_delim
22310 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22311 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22312 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22313 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22314 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22315 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22316 exec_prefix!$exec_prefix$ac_delim
22317 prefix!$prefix$ac_delim
22318 program_transform_name!$program_transform_name$ac_delim
22319 bindir!$bindir$ac_delim
22320 sbindir!$sbindir$ac_delim
22321 libexecdir!$libexecdir$ac_delim
22322 datarootdir!$datarootdir$ac_delim
22323 datadir!$datadir$ac_delim
22324 sysconfdir!$sysconfdir$ac_delim
22325 sharedstatedir!$sharedstatedir$ac_delim
22326 localstatedir!$localstatedir$ac_delim
22327 includedir!$includedir$ac_delim
22328 oldincludedir!$oldincludedir$ac_delim
22329 docdir!$docdir$ac_delim
22330 infodir!$infodir$ac_delim
22331 htmldir!$htmldir$ac_delim
22332 dvidir!$dvidir$ac_delim
22333 pdfdir!$pdfdir$ac_delim
22334 psdir!$psdir$ac_delim
22335 libdir!$libdir$ac_delim
22336 localedir!$localedir$ac_delim
22337 mandir!$mandir$ac_delim
22338 DEFS!$DEFS$ac_delim
22339 ECHO_C!$ECHO_C$ac_delim
22340 ECHO_N!$ECHO_N$ac_delim
22341 ECHO_T!$ECHO_T$ac_delim
22342 LIBS!$LIBS$ac_delim
22343 build_alias!$build_alias$ac_delim
22344 host_alias!$host_alias$ac_delim
22345 target_alias!$target_alias$ac_delim
22346 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22347 CC!$CC$ac_delim
22348 CFLAGS!$CFLAGS$ac_delim
22349 LDFLAGS!$LDFLAGS$ac_delim
22350 CPPFLAGS!$CPPFLAGS$ac_delim
22351 ac_ct_CC!$ac_ct_CC$ac_delim
22352 EXEEXT!$EXEEXT$ac_delim
22353 OBJEXT!$OBJEXT$ac_delim
22354 CXX!$CXX$ac_delim
22355 CXXFLAGS!$CXXFLAGS$ac_delim
22356 ac_ct_CXX!$ac_ct_CXX$ac_delim
22357 CPP!$CPP$ac_delim
22358 subdirs!$subdirs$ac_delim
22359 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22360 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22361 build!$build$ac_delim
22362 build_cpu!$build_cpu$ac_delim
22363 build_vendor!$build_vendor$ac_delim
22364 build_os!$build_os$ac_delim
22365 host!$host$ac_delim
22366 host_cpu!$host_cpu$ac_delim
22367 host_vendor!$host_vendor$ac_delim
22368 host_os!$host_os$ac_delim
22369 target!$target$ac_delim
22370 target_cpu!$target_cpu$ac_delim
22371 target_vendor!$target_vendor$ac_delim
22372 target_os!$target_os$ac_delim
22373 OS!$OS$ac_delim
22374 HOST_OS!$HOST_OS$ac_delim
22375 TARGET_OS!$TARGET_OS$ac_delim
22376 LINKALL!$LINKALL$ac_delim
22377 NOLINKALL!$NOLINKALL$ac_delim
22378 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22379 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22380 ARCH!$ARCH$ac_delim
22381 ENDIAN!$ENDIAN$ac_delim
22382 GREP!$GREP$ac_delim
22383 EGREP!$EGREP$ac_delim
22384 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22385 BUILD_CC!$BUILD_CC$ac_delim
22386 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22387 BUILD_CXX!$BUILD_CXX$ac_delim
22388 CVSBUILD!$CVSBUILD$ac_delim
22389 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22390 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22391 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22392 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22393 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22394 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22395 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22396 JIT!$JIT$ac_delim
22397 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22398 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22399 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22400 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22401 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22402 ENABLE_PIC!$ENABLE_PIC$ac_delim
22403 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22404 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22405 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22406 _ACEOF
22407
22408   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22409     break
22410   elif $ac_last_try; then
22411     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22412 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22413    { (exit 1); exit 1; }; }
22414   else
22415     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22416   fi
22417 done
22418
22419 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22420 if test -n "$ac_eof"; then
22421   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22422   ac_eof=`expr $ac_eof + 1`
22423 fi
22424
22425 cat >>$CONFIG_STATUS <<_ACEOF
22426 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22428 _ACEOF
22429 sed '
22430 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22431 s/^/s,@/; s/!/@,|#_!!_#|/
22432 :n
22433 t n
22434 s/'"$ac_delim"'$/,g/; t
22435 s/$/\\/; p
22436 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22437 ' >>$CONFIG_STATUS <conf$$subs.sed
22438 rm -f conf$$subs.sed
22439 cat >>$CONFIG_STATUS <<_ACEOF
22440 CEOF$ac_eof
22441 _ACEOF
22442
22443
22444 ac_delim='%!_!# '
22445 for ac_last_try in false false false false false :; do
22446   cat >conf$$subs.sed <<_ACEOF
22447 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22448 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22449 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22450 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22451 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22452 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22453 CLANGPATH!$CLANGPATH$ac_delim
22454 CLANGXXPATH!$CLANGXXPATH$ac_delim
22455 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
22456 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22457 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22458 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22459 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22460 NM!$NM$ac_delim
22461 ifGNUmake!$ifGNUmake$ac_delim
22462 LN_S!$LN_S$ac_delim
22463 CMP!$CMP$ac_delim
22464 CP!$CP$ac_delim
22465 DATE!$DATE$ac_delim
22466 FIND!$FIND$ac_delim
22467 MKDIR!$MKDIR$ac_delim
22468 MV!$MV$ac_delim
22469 RANLIB!$RANLIB$ac_delim
22470 AR!$AR$ac_delim
22471 RM!$RM$ac_delim
22472 SED!$SED$ac_delim
22473 TAR!$TAR$ac_delim
22474 BINPWD!$BINPWD$ac_delim
22475 GRAPHVIZ!$GRAPHVIZ$ac_delim
22476 DOT!$DOT$ac_delim
22477 FDP!$FDP$ac_delim
22478 NEATO!$NEATO$ac_delim
22479 TWOPI!$TWOPI$ac_delim
22480 CIRCO!$CIRCO$ac_delim
22481 GV!$GV$ac_delim
22482 DOTTY!$DOTTY$ac_delim
22483 XDOT_PY!$XDOT_PY$ac_delim
22484 PERL!$PERL$ac_delim
22485 HAVE_PERL!$HAVE_PERL$ac_delim
22486 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22487 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22488 INSTALL_DATA!$INSTALL_DATA$ac_delim
22489 BZIP2!$BZIP2$ac_delim
22490 CAT!$CAT$ac_delim
22491 DOXYGEN!$DOXYGEN$ac_delim
22492 GROFF!$GROFF$ac_delim
22493 GZIPBIN!$GZIPBIN$ac_delim
22494 POD2HTML!$POD2HTML$ac_delim
22495 POD2MAN!$POD2MAN$ac_delim
22496 PDFROFF!$PDFROFF$ac_delim
22497 RUNTEST!$RUNTEST$ac_delim
22498 TCLSH!$TCLSH$ac_delim
22499 ZIP!$ZIP$ac_delim
22500 OCAMLC!$OCAMLC$ac_delim
22501 OCAMLOPT!$OCAMLOPT$ac_delim
22502 OCAMLDEP!$OCAMLDEP$ac_delim
22503 OCAMLDOC!$OCAMLDOC$ac_delim
22504 GAS!$GAS$ac_delim
22505 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22506 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22507 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22508 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22509 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22510 LIBADD_DL!$LIBADD_DL$ac_delim
22511 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
22512 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
22513 LLVMGCC!$LLVMGCC$ac_delim
22514 LLVMGXX!$LLVMGXX$ac_delim
22515 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
22516 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22517 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22518 USE_UDIS86!$USE_UDIS86$ac_delim
22519 USE_OPROFILE!$USE_OPROFILE$ac_delim
22520 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22521 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22522 MMAP_FILE!$MMAP_FILE$ac_delim
22523 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
22524 LLVMCC1!$LLVMCC1$ac_delim
22525 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
22526 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
22527 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
22528 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
22529 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
22530 SHLIBEXT!$SHLIBEXT$ac_delim
22531 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22532 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22533 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22534 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22535 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22536 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22537 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22538 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22539 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22540 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22541 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22542 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22543 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22544 _ACEOF
22545
22546   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22547     break
22548   elif $ac_last_try; then
22549     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22550 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22551    { (exit 1); exit 1; }; }
22552   else
22553     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22554   fi
22555 done
22556
22557 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22558 if test -n "$ac_eof"; then
22559   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22560   ac_eof=`expr $ac_eof + 1`
22561 fi
22562
22563 cat >>$CONFIG_STATUS <<_ACEOF
22564 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22566 _ACEOF
22567 sed '
22568 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22569 s/^/s,@/; s/!/@,|#_!!_#|/
22570 :n
22571 t n
22572 s/'"$ac_delim"'$/,g/; t
22573 s/$/\\/; p
22574 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22575 ' >>$CONFIG_STATUS <conf$$subs.sed
22576 rm -f conf$$subs.sed
22577 cat >>$CONFIG_STATUS <<_ACEOF
22578 CEOF$ac_eof
22579 _ACEOF
22580
22581
22582 ac_delim='%!_!# '
22583 for ac_last_try in false false false false false :; do
22584   cat >conf$$subs.sed <<_ACEOF
22585 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22586 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22587 RPATH!$RPATH$ac_delim
22588 RDYNAMIC!$RDYNAMIC$ac_delim
22589 LIBOBJS!$LIBOBJS$ac_delim
22590 LTLIBOBJS!$LTLIBOBJS$ac_delim
22591 _ACEOF
22592
22593   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
22594     break
22595   elif $ac_last_try; then
22596     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22597 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22598    { (exit 1); exit 1; }; }
22599   else
22600     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22601   fi
22602 done
22603
22604 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22605 if test -n "$ac_eof"; then
22606   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22607   ac_eof=`expr $ac_eof + 1`
22608 fi
22609
22610 cat >>$CONFIG_STATUS <<_ACEOF
22611 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22613 _ACEOF
22614 sed '
22615 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22616 s/^/s,@/; s/!/@,|#_!!_#|/
22617 :n
22618 t n
22619 s/'"$ac_delim"'$/,g/; t
22620 s/$/\\/; p
22621 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22622 ' >>$CONFIG_STATUS <conf$$subs.sed
22623 rm -f conf$$subs.sed
22624 cat >>$CONFIG_STATUS <<_ACEOF
22625 :end
22626 s/|#_!!_#|//g
22627 CEOF$ac_eof
22628 _ACEOF
22629
22630
22631 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22633 # trailing colons and then remove the whole line if VPATH becomes empty
22634 # (actually we leave an empty line to preserve line numbers).
22635 if test "x$srcdir" = x.; then
22636   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22637 s/:*\$(srcdir):*/:/
22638 s/:*\${srcdir}:*/:/
22639 s/:*@srcdir@:*/:/
22640 s/^\([^=]*=[     ]*\):*/\1/
22641 s/:*$//
22642 s/^[^=]*=[       ]*$//
22643 }'
22644 fi
22645
22646 cat >>$CONFIG_STATUS <<\_ACEOF
22647 fi # test -n "$CONFIG_FILES"
22648
22649
22650 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22651 do
22652   case $ac_tag in
22653   :[FHLC]) ac_mode=$ac_tag; continue;;
22654   esac
22655   case $ac_mode$ac_tag in
22656   :[FHL]*:*);;
22657   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22658 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22659    { (exit 1); exit 1; }; };;
22660   :[FH]-) ac_tag=-:-;;
22661   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22662   esac
22663   ac_save_IFS=$IFS
22664   IFS=:
22665   set x $ac_tag
22666   IFS=$ac_save_IFS
22667   shift
22668   ac_file=$1
22669   shift
22670
22671   case $ac_mode in
22672   :L) ac_source=$1;;
22673   :[FH])
22674     ac_file_inputs=
22675     for ac_f
22676     do
22677       case $ac_f in
22678       -) ac_f="$tmp/stdin";;
22679       *) # Look for the file first in the build tree, then in the source tree
22680          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22681          # because $ac_f cannot contain `:'.
22682          test -f "$ac_f" ||
22683            case $ac_f in
22684            [\\/$]*) false;;
22685            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22686            esac ||
22687            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22688 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22689    { (exit 1); exit 1; }; };;
22690       esac
22691       ac_file_inputs="$ac_file_inputs $ac_f"
22692     done
22693
22694     # Let's still pretend it is `configure' which instantiates (i.e., don't
22695     # use $as_me), people would be surprised to read:
22696     #    /* config.h.  Generated by config.status.  */
22697     configure_input="Generated from "`IFS=:
22698           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22699     if test x"$ac_file" != x-; then
22700       configure_input="$ac_file.  $configure_input"
22701       { echo "$as_me:$LINENO: creating $ac_file" >&5
22702 echo "$as_me: creating $ac_file" >&6;}
22703     fi
22704
22705     case $ac_tag in
22706     *:-:* | *:-) cat >"$tmp/stdin";;
22707     esac
22708     ;;
22709   esac
22710
22711   ac_dir=`$as_dirname -- "$ac_file" ||
22712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22713          X"$ac_file" : 'X\(//\)[^/]' \| \
22714          X"$ac_file" : 'X\(//\)$' \| \
22715          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22716 echo X"$ac_file" |
22717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22718             s//\1/
22719             q
22720           }
22721           /^X\(\/\/\)[^/].*/{
22722             s//\1/
22723             q
22724           }
22725           /^X\(\/\/\)$/{
22726             s//\1/
22727             q
22728           }
22729           /^X\(\/\).*/{
22730             s//\1/
22731             q
22732           }
22733           s/.*/./; q'`
22734   { as_dir="$ac_dir"
22735   case $as_dir in #(
22736   -*) as_dir=./$as_dir;;
22737   esac
22738   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22739     as_dirs=
22740     while :; do
22741       case $as_dir in #(
22742       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22743       *) as_qdir=$as_dir;;
22744       esac
22745       as_dirs="'$as_qdir' $as_dirs"
22746       as_dir=`$as_dirname -- "$as_dir" ||
22747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22748          X"$as_dir" : 'X\(//\)[^/]' \| \
22749          X"$as_dir" : 'X\(//\)$' \| \
22750          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22751 echo X"$as_dir" |
22752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22753             s//\1/
22754             q
22755           }
22756           /^X\(\/\/\)[^/].*/{
22757             s//\1/
22758             q
22759           }
22760           /^X\(\/\/\)$/{
22761             s//\1/
22762             q
22763           }
22764           /^X\(\/\).*/{
22765             s//\1/
22766             q
22767           }
22768           s/.*/./; q'`
22769       test -d "$as_dir" && break
22770     done
22771     test -z "$as_dirs" || eval "mkdir $as_dirs"
22772   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22773 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22774    { (exit 1); exit 1; }; }; }
22775   ac_builddir=.
22776
22777 case "$ac_dir" in
22778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22779 *)
22780   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22781   # A ".." for each directory in $ac_dir_suffix.
22782   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22783   case $ac_top_builddir_sub in
22784   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22785   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22786   esac ;;
22787 esac
22788 ac_abs_top_builddir=$ac_pwd
22789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22790 # for backward compatibility:
22791 ac_top_builddir=$ac_top_build_prefix
22792
22793 case $srcdir in
22794   .)  # We are building in place.
22795     ac_srcdir=.
22796     ac_top_srcdir=$ac_top_builddir_sub
22797     ac_abs_top_srcdir=$ac_pwd ;;
22798   [\\/]* | ?:[\\/]* )  # Absolute name.
22799     ac_srcdir=$srcdir$ac_dir_suffix;
22800     ac_top_srcdir=$srcdir
22801     ac_abs_top_srcdir=$srcdir ;;
22802   *) # Relative name.
22803     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22804     ac_top_srcdir=$ac_top_build_prefix$srcdir
22805     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22806 esac
22807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22808
22809
22810   case $ac_mode in
22811   :F)
22812   #
22813   # CONFIG_FILE
22814   #
22815
22816   case $INSTALL in
22817   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22818   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22819   esac
22820 _ACEOF
22821
22822 cat >>$CONFIG_STATUS <<\_ACEOF
22823 # If the template does not know about datarootdir, expand it.
22824 # FIXME: This hack should be removed a few years after 2.60.
22825 ac_datarootdir_hack=; ac_datarootdir_seen=
22826
22827 case `sed -n '/datarootdir/ {
22828   p
22829   q
22830 }
22831 /@datadir@/p
22832 /@docdir@/p
22833 /@infodir@/p
22834 /@localedir@/p
22835 /@mandir@/p
22836 ' $ac_file_inputs` in
22837 *datarootdir*) ac_datarootdir_seen=yes;;
22838 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22839   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22840 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22841 _ACEOF
22842 cat >>$CONFIG_STATUS <<_ACEOF
22843   ac_datarootdir_hack='
22844   s&@datadir@&$datadir&g
22845   s&@docdir@&$docdir&g
22846   s&@infodir@&$infodir&g
22847   s&@localedir@&$localedir&g
22848   s&@mandir@&$mandir&g
22849     s&\\\${datarootdir}&$datarootdir&g' ;;
22850 esac
22851 _ACEOF
22852
22853 # Neutralize VPATH when `$srcdir' = `.'.
22854 # Shell code in configure.ac might set extrasub.
22855 # FIXME: do we really want to maintain this feature?
22856 cat >>$CONFIG_STATUS <<_ACEOF
22857   sed "$ac_vpsub
22858 $extrasub
22859 _ACEOF
22860 cat >>$CONFIG_STATUS <<\_ACEOF
22861 :t
22862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22863 s&@configure_input@&$configure_input&;t t
22864 s&@top_builddir@&$ac_top_builddir_sub&;t t
22865 s&@srcdir@&$ac_srcdir&;t t
22866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22867 s&@top_srcdir@&$ac_top_srcdir&;t t
22868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22869 s&@builddir@&$ac_builddir&;t t
22870 s&@abs_builddir@&$ac_abs_builddir&;t t
22871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22872 s&@INSTALL@&$ac_INSTALL&;t t
22873 $ac_datarootdir_hack
22874 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22875
22876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22877   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22878   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22879   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22880 which seems to be undefined.  Please make sure it is defined." >&5
22881 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22882 which seems to be undefined.  Please make sure it is defined." >&2;}
22883
22884   rm -f "$tmp/stdin"
22885   case $ac_file in
22886   -) cat "$tmp/out"; rm -f "$tmp/out";;
22887   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22888   esac
22889  ;;
22890   :H)
22891   #
22892   # CONFIG_HEADER
22893   #
22894 _ACEOF
22895
22896 # Transform confdefs.h into a sed script `conftest.defines', that
22897 # substitutes the proper values into config.h.in to produce config.h.
22898 rm -f conftest.defines conftest.tail
22899 # First, append a space to every undef/define line, to ease matching.
22900 echo 's/$/ /' >conftest.defines
22901 # Then, protect against being on the right side of a sed subst, or in
22902 # an unquoted here document, in config.status.  If some macros were
22903 # called several times there might be several #defines for the same
22904 # symbol, which is useless.  But do not sort them, since the last
22905 # AC_DEFINE must be honored.
22906 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22907 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22908 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22909 # PARAMS is the parameter list in the macro definition--in most cases, it's
22910 # just an empty string.
22911 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22912 ac_dB='\\)[      (].*,\\1define\\2'
22913 ac_dC=' '
22914 ac_dD=' ,'
22915
22916 uniq confdefs.h |
22917   sed -n '
22918         t rset
22919         :rset
22920         s/^[     ]*#[    ]*define[       ][      ]*//
22921         t ok
22922         d
22923         :ok
22924         s/[\\&,]/\\&/g
22925         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22926         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22927   ' >>conftest.defines
22928
22929 # Remove the space that was appended to ease matching.
22930 # Then replace #undef with comments.  This is necessary, for
22931 # example, in the case of _POSIX_SOURCE, which is predefined and required
22932 # on some systems where configure will not decide to define it.
22933 # (The regexp can be short, since the line contains either #define or #undef.)
22934 echo 's/ $//
22935 s,^[     #]*u.*,/* & */,' >>conftest.defines
22936
22937 # Break up conftest.defines:
22938 ac_max_sed_lines=50
22939
22940 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22941 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22942 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22943 # et cetera.
22944 ac_in='$ac_file_inputs'
22945 ac_out='"$tmp/out1"'
22946 ac_nxt='"$tmp/out2"'
22947
22948 while :
22949 do
22950   # Write a here document:
22951     cat >>$CONFIG_STATUS <<_ACEOF
22952     # First, check the format of the line:
22953     cat >"\$tmp/defines.sed" <<\\CEOF
22954 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22955 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22956 b
22957 :def
22958 _ACEOF
22959   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22960   echo 'CEOF
22961     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22962   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22963   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22964   grep . conftest.tail >/dev/null || break
22965   rm -f conftest.defines
22966   mv conftest.tail conftest.defines
22967 done
22968 rm -f conftest.defines conftest.tail
22969
22970 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22971 cat >>$CONFIG_STATUS <<\_ACEOF
22972   if test x"$ac_file" != x-; then
22973     echo "/* $configure_input  */" >"$tmp/config.h"
22974     cat "$ac_result" >>"$tmp/config.h"
22975     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22976       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22977 echo "$as_me: $ac_file is unchanged" >&6;}
22978     else
22979       rm -f $ac_file
22980       mv "$tmp/config.h" $ac_file
22981     fi
22982   else
22983     echo "/* $configure_input  */"
22984     cat "$ac_result"
22985   fi
22986   rm -f "$tmp/out12"
22987  ;;
22988
22989   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22990 echo "$as_me: executing $ac_file commands" >&6;}
22991  ;;
22992   esac
22993
22994
22995   case $ac_file$ac_mode in
22996     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22997    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22998     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22999    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23000     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23001    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23002     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23003    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23004     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23005    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23006     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23007    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23008     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23009    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23010     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23011    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23012     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23013    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23014     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23015    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23016     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23017    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23018     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23019    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23020     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23021    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23022
23023   esac
23024 done # for ac_tag
23025
23026
23027 { (exit 0); exit 0; }
23028 _ACEOF
23029 chmod +x $CONFIG_STATUS
23030 ac_clean_files=$ac_clean_files_save
23031
23032
23033 # configure is writing to config.log, and then calls config.status.
23034 # config.status does its own redirection, appending to config.log.
23035 # Unfortunately, on DOS this fails, as config.log is still kept open
23036 # by configure, so config.status won't be able to write to it; its
23037 # output is simply discarded.  So we exec the FD to /dev/null,
23038 # effectively closing config.log, so it can be properly (re)opened and
23039 # appended to by config.status.  When coming back to configure, we
23040 # need to make the FD available again.
23041 if test "$no_create" != yes; then
23042   ac_cs_success=:
23043   ac_config_status_args=
23044   test "$silent" = yes &&
23045     ac_config_status_args="$ac_config_status_args --quiet"
23046   exec 5>/dev/null
23047   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23048   exec 5>>config.log
23049   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23050   # would make configure fail if this is the last instruction.
23051   $ac_cs_success || { (exit 1); exit 1; }
23052 fi
23053
23054 #
23055 # CONFIG_SUBDIRS section.
23056 #
23057 if test "$no_recursion" != yes; then
23058
23059   # Remove --cache-file and --srcdir arguments so they do not pile up.
23060   ac_sub_configure_args=
23061   ac_prev=
23062   eval "set x $ac_configure_args"
23063   shift
23064   for ac_arg
23065   do
23066     if test -n "$ac_prev"; then
23067       ac_prev=
23068       continue
23069     fi
23070     case $ac_arg in
23071     -cache-file | --cache-file | --cache-fil | --cache-fi \
23072     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23073       ac_prev=cache_file ;;
23074     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23075     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23076     | --c=*)
23077       ;;
23078     --config-cache | -C)
23079       ;;
23080     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23081       ac_prev=srcdir ;;
23082     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23083       ;;
23084     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23085       ac_prev=prefix ;;
23086     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23087       ;;
23088     *)
23089       case $ac_arg in
23090       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23091       esac
23092       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23093     esac
23094   done
23095
23096   # Always prepend --prefix to ensure using the same prefix
23097   # in subdir configurations.
23098   ac_arg="--prefix=$prefix"
23099   case $ac_arg in
23100   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23101   esac
23102   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23103
23104   ac_popdir=`pwd`
23105   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23106
23107     # Do not complain, so a configure script can configure whichever
23108     # parts of a large source tree are present.
23109     test -d "$srcdir/$ac_dir" || continue
23110
23111     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23112     echo "$as_me:$LINENO: $ac_msg" >&5
23113     echo "$ac_msg" >&6
23114     { as_dir="$ac_dir"
23115   case $as_dir in #(
23116   -*) as_dir=./$as_dir;;
23117   esac
23118   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23119     as_dirs=
23120     while :; do
23121       case $as_dir in #(
23122       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23123       *) as_qdir=$as_dir;;
23124       esac
23125       as_dirs="'$as_qdir' $as_dirs"
23126       as_dir=`$as_dirname -- "$as_dir" ||
23127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23128          X"$as_dir" : 'X\(//\)[^/]' \| \
23129          X"$as_dir" : 'X\(//\)$' \| \
23130          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23131 echo X"$as_dir" |
23132     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23133             s//\1/
23134             q
23135           }
23136           /^X\(\/\/\)[^/].*/{
23137             s//\1/
23138             q
23139           }
23140           /^X\(\/\/\)$/{
23141             s//\1/
23142             q
23143           }
23144           /^X\(\/\).*/{
23145             s//\1/
23146             q
23147           }
23148           s/.*/./; q'`
23149       test -d "$as_dir" && break
23150     done
23151     test -z "$as_dirs" || eval "mkdir $as_dirs"
23152   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23153 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23154    { (exit 1); exit 1; }; }; }
23155     ac_builddir=.
23156
23157 case "$ac_dir" in
23158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23159 *)
23160   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23161   # A ".." for each directory in $ac_dir_suffix.
23162   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23163   case $ac_top_builddir_sub in
23164   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23165   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23166   esac ;;
23167 esac
23168 ac_abs_top_builddir=$ac_pwd
23169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23170 # for backward compatibility:
23171 ac_top_builddir=$ac_top_build_prefix
23172
23173 case $srcdir in
23174   .)  # We are building in place.
23175     ac_srcdir=.
23176     ac_top_srcdir=$ac_top_builddir_sub
23177     ac_abs_top_srcdir=$ac_pwd ;;
23178   [\\/]* | ?:[\\/]* )  # Absolute name.
23179     ac_srcdir=$srcdir$ac_dir_suffix;
23180     ac_top_srcdir=$srcdir
23181     ac_abs_top_srcdir=$srcdir ;;
23182   *) # Relative name.
23183     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23184     ac_top_srcdir=$ac_top_build_prefix$srcdir
23185     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23186 esac
23187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23188
23189
23190     cd "$ac_dir"
23191
23192     # Check for guested configure; otherwise get Cygnus style configure.
23193     if test -f "$ac_srcdir/configure.gnu"; then
23194       ac_sub_configure=$ac_srcdir/configure.gnu
23195     elif test -f "$ac_srcdir/configure"; then
23196       ac_sub_configure=$ac_srcdir/configure
23197     elif test -f "$ac_srcdir/configure.in"; then
23198       # This should be Cygnus configure.
23199       ac_sub_configure=$ac_aux_dir/configure
23200     else
23201       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23202 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23203       ac_sub_configure=
23204     fi
23205
23206     # The recursion is here.
23207     if test -n "$ac_sub_configure"; then
23208       # Make the cache file name correct relative to the subdirectory.
23209       case $cache_file in
23210       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23211       *) # Relative name.
23212         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23213       esac
23214
23215       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23216 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23217       # The eval makes quoting arguments work.
23218       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23219            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23220         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23221 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23222    { (exit 1); exit 1; }; }
23223     fi
23224
23225     cd "$ac_popdir"
23226   done
23227 fi
23228