ae7fcd77a95ce91d68ea2cfd5ca91ffdc72f636c
[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 subdirs
644 ENABLE_POLLY
645 LLVM_HAS_POLLY
646 build
647 build_cpu
648 build_vendor
649 build_os
650 host
651 host_cpu
652 host_vendor
653 host_os
654 target
655 target_cpu
656 target_vendor
657 target_os
658 OS
659 HOST_OS
660 TARGET_OS
661 LINKALL
662 NOLINKALL
663 LLVM_ON_UNIX
664 LLVM_ON_WIN32
665 ARCH
666 ENDIAN
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LLVM_CROSS_COMPILING
678 BUILD_CC
679 BUILD_EXEEXT
680 BUILD_CXX
681 CVSBUILD
682 ENABLE_OPTIMIZED
683 ENABLE_PROFILING
684 DISABLE_ASSERTIONS
685 ENABLE_EXPENSIVE_CHECKS
686 EXPENSIVE_CHECKS
687 DEBUG_RUNTIME
688 DEBUG_SYMBOLS
689 JIT
690 TARGET_HAS_JIT
691 ENABLE_DOCS
692 ENABLE_DOXYGEN
693 ENABLE_THREADS
694 ENABLE_PTHREADS
695 ENABLE_PIC
696 ENABLE_SHARED
697 ENABLE_EMBED_STDCXX
698 ENABLE_TIMESTAMPS
699 TARGETS_TO_BUILD
700 LLVM_ENUM_TARGETS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
704 ENABLE_CBE_PRINTF_A
705 CLANGPATH
706 CLANGXXPATH
707 ENABLE_BUILT_CLANG
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
712 CXX
713 CXXFLAGS
714 ac_ct_CXX
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 CPP
814 CXX
815 CXXFLAGS
816 CCC'
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-tclinclude       directory where tcl headers are
1475   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1476                           clang, or none; default=check)
1477   --with-udis86=<path>    Use udis86 external x86 disassembler library
1478   --with-oprofile=<prefix>
1479                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1480
1481 Some influential environment variables:
1482   CC          C compiler command
1483   CFLAGS      C compiler flags
1484   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1485               nonstandard directory <lib dir>
1486   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487               you have headers in a nonstandard directory <include dir>
1488   CPP         C preprocessor
1489   CXX         C++ compiler command
1490   CXXFLAGS    C++ compiler flags
1491
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1494
1495 Report bugs to <llvmbugs@cs.uiuc.edu>.
1496 _ACEOF
1497 ac_status=$?
1498 fi
1499
1500 if test "$ac_init_help" = "recursive"; then
1501   # If there are subdirs, report their specific --help.
1502   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503     test -d "$ac_dir" || continue
1504     ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510   # A ".." for each directory in $ac_dir_suffix.
1511   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512   case $ac_top_builddir_sub in
1513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515   esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523   .)  # We are building in place.
1524     ac_srcdir=.
1525     ac_top_srcdir=$ac_top_builddir_sub
1526     ac_abs_top_srcdir=$ac_pwd ;;
1527   [\\/]* | ?:[\\/]* )  # Absolute name.
1528     ac_srcdir=$srcdir$ac_dir_suffix;
1529     ac_top_srcdir=$srcdir
1530     ac_abs_top_srcdir=$srcdir ;;
1531   *) # Relative name.
1532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533     ac_top_srcdir=$ac_top_build_prefix$srcdir
1534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538     cd "$ac_dir" || { ac_status=$?; continue; }
1539     # Check for guested configure.
1540     if test -f "$ac_srcdir/configure.gnu"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543     elif test -f "$ac_srcdir/configure"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure" --help=recursive
1546     else
1547       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548     fi || ac_status=$?
1549     cd "$ac_pwd" || { ac_status=$?; break; }
1550   done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555   cat <<\_ACEOF
1556 llvm configure 3.0svn
1557 generated by GNU Autoconf 2.60
1558
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1563
1564 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1565 _ACEOF
1566   exit
1567 fi
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1571
1572 It was created by llvm $as_me 3.0svn, which was
1573 generated by GNU Autoconf 2.60.  Invocation command line was
1574
1575   $ $0 $@
1576
1577 _ACEOF
1578 exec 5>>config.log
1579 {
1580 cat <<_ASUNAME
1581 ## --------- ##
1582 ## Platform. ##
1583 ## --------- ##
1584
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1593
1594 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1595 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1598 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1599 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1600 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1601
1602 _ASUNAME
1603
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1606 do
1607   IFS=$as_save_IFS
1608   test -z "$as_dir" && as_dir=.
1609   echo "PATH: $as_dir"
1610 done
1611 IFS=$as_save_IFS
1612
1613 } >&5
1614
1615 cat >&5 <<_ACEOF
1616
1617
1618 ## ----------- ##
1619 ## Core tests. ##
1620 ## ----------- ##
1621
1622 _ACEOF
1623
1624
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_configure_args=
1631 ac_configure_args0=
1632 ac_configure_args1=
1633 ac_must_keep_next=false
1634 for ac_pass in 1 2
1635 do
1636   for ac_arg
1637   do
1638     case $ac_arg in
1639     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641     | -silent | --silent | --silen | --sile | --sil)
1642       continue ;;
1643     *\'*)
1644       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645     esac
1646     case $ac_pass in
1647     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1648     2)
1649       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650       if test $ac_must_keep_next = true; then
1651         ac_must_keep_next=false # Got value, back to normal.
1652       else
1653         case $ac_arg in
1654           *=* | --config-cache | -C | -disable-* | --disable-* \
1655           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657           | -with-* | --with-* | -without-* | --without-* | --x)
1658             case "$ac_configure_args0 " in
1659               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660             esac
1661             ;;
1662           -* ) ac_must_keep_next=true ;;
1663         esac
1664       fi
1665       ac_configure_args="$ac_configure_args '$ac_arg'"
1666       ;;
1667     esac
1668   done
1669 done
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1672
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log.  We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679   # Save into config.log some information that might help in debugging.
1680   {
1681     echo
1682
1683     cat <<\_ASBOX
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1687 _ASBOX
1688     echo
1689     # The following way of writing the cache mishandles newlines in values,
1690 (
1691   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692     eval ac_val=\$$ac_var
1693     case $ac_val in #(
1694     *${as_nl}*)
1695       case $ac_var in #(
1696       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698       esac
1699       case $ac_var in #(
1700       _ | IFS | as_nl) ;; #(
1701       *) $as_unset $ac_var ;;
1702       esac ;;
1703     esac
1704   done
1705   (set) 2>&1 |
1706     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707     *${as_nl}ac_space=\ *)
1708       sed -n \
1709         "s/'\''/'\''\\\\'\'''\''/g;
1710           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711       ;; #(
1712     *)
1713       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714       ;;
1715     esac |
1716     sort
1717 )
1718     echo
1719
1720     cat <<\_ASBOX
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1724 _ASBOX
1725     echo
1726     for ac_var in $ac_subst_vars
1727     do
1728       eval ac_val=\$$ac_var
1729       case $ac_val in
1730       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731       esac
1732       echo "$ac_var='\''$ac_val'\''"
1733     done | sort
1734     echo
1735
1736     if test -n "$ac_subst_files"; then
1737       cat <<\_ASBOX
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1741 _ASBOX
1742       echo
1743       for ac_var in $ac_subst_files
1744       do
1745         eval ac_val=\$$ac_var
1746         case $ac_val in
1747         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748         esac
1749         echo "$ac_var='\''$ac_val'\''"
1750       done | sort
1751       echo
1752     fi
1753
1754     if test -s confdefs.h; then
1755       cat <<\_ASBOX
1756 ## ----------- ##
1757 ## confdefs.h. ##
1758 ## ----------- ##
1759 _ASBOX
1760       echo
1761       cat confdefs.h
1762       echo
1763     fi
1764     test "$ac_signal" != 0 &&
1765       echo "$as_me: caught signal $ac_signal"
1766     echo "$as_me: exit $exit_status"
1767   } >&5
1768   rm -f core *.core core.conftest.* &&
1769     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770     exit $exit_status
1771 ' 0
1772 for ac_signal in 1 2 13 15; do
1773   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 done
1775 ac_signal=0
1776
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1779
1780 # Predefined preprocessor variables.
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 _ACEOF
1805
1806
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810   set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 else
1814   set x "$ac_default_prefix/share/config.site" \
1815         "$ac_default_prefix/etc/config.site"
1816 fi
1817 shift
1818 for ac_site_file
1819 do
1820   if test -r "$ac_site_file"; then
1821     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823     sed 's/^/| /' "$ac_site_file" >&5
1824     . "$ac_site_file"
1825   fi
1826 done
1827
1828 if test -r "$cache_file"; then
1829   # Some versions of bash will fail to source /dev/null (special
1830   # files actually), so we avoid doing that.
1831   if test -f "$cache_file"; then
1832     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1834     case $cache_file in
1835       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836       *)                      . "./$cache_file";;
1837     esac
1838   fi
1839 else
1840   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1842   >$cache_file
1843 fi
1844
1845 # Check that the precious variables saved in the cache have kept the same
1846 # value.
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850   eval ac_new_set=\$ac_env_${ac_var}_set
1851   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852   eval ac_new_val=\$ac_env_${ac_var}_value
1853   case $ac_old_set,$ac_new_set in
1854     set,)
1855       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857       ac_cache_corrupted=: ;;
1858     ,set)
1859       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861       ac_cache_corrupted=: ;;
1862     ,);;
1863     *)
1864       if test "x$ac_old_val" != "x$ac_new_val"; then
1865         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1868 echo "$as_me:   former value:  $ac_old_val" >&2;}
1869         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1870 echo "$as_me:   current value: $ac_new_val" >&2;}
1871         ac_cache_corrupted=:
1872       fi;;
1873   esac
1874   # Pass precious variables to config.status.
1875   if test "$ac_new_set" = set; then
1876     case $ac_new_val in
1877     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878     *) ac_arg=$ac_var=$ac_new_val ;;
1879     esac
1880     case " $ac_configure_args " in
1881       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1882       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883     esac
1884   fi
1885 done
1886 if $ac_cache_corrupted; then
1887   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891    { (exit 1); exit 1; }; }
1892 fi
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
1926 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1927
1928
1929
1930
1931
1932
1933
1934 ac_aux_dir=
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936   if test -f "$ac_dir/install-sh"; then
1937     ac_aux_dir=$ac_dir
1938     ac_install_sh="$ac_aux_dir/install-sh -c"
1939     break
1940   elif test -f "$ac_dir/install.sh"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/install.sh -c"
1943     break
1944   elif test -f "$ac_dir/shtool"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/shtool install -c"
1947     break
1948   fi
1949 done
1950 if test -z "$ac_aux_dir"; then
1951   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953    { (exit 1); exit 1; }; }
1954 fi
1955
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1963
1964
1965
1966 if test ${srcdir} != "." ; then
1967   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1968     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970    { (exit 1); exit 1; }; }
1971   fi
1972 fi
1973
1974
1975
1976 if test -d ${srcdir}/projects/llvm-gcc ; then
1977   subdirs="$subdirs projects/llvm-gcc"
1978
1979 fi
1980
1981 if test -d ${srcdir}/projects/test-suite ; then
1982   subdirs="$subdirs projects/test-suite"
1983
1984 fi
1985
1986 if test -d ${srcdir}/projects/llvm-test ; then
1987   subdirs="$subdirs projects/llvm-test"
1988
1989 fi
1990
1991 if test -d ${srcdir}/projects/poolalloc ; then
1992   subdirs="$subdirs projects/poolalloc"
1993
1994 fi
1995
1996 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1997   subdirs="$subdirs projects/llvm-poolalloc"
1998
1999 fi
2000
2001 for i in `ls ${srcdir}/projects`
2002 do
2003   if test -d ${srcdir}/projects/${i} ; then
2004     case ${i} in
2005       sample)       subdirs="$subdirs projects/sample"
2006     ;;
2007       privbracket)  subdirs="$subdirs projects/privbracket"
2008  ;;
2009       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2010  ;;
2011       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2012 ;;
2013       llvm-java)    subdirs="$subdirs projects/llvm-java"
2014  ;;
2015       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2016    ;;
2017       safecode)     subdirs="$subdirs projects/safecode"
2018  ;;
2019       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2020  ;;
2021       llvm-gcc)       ;;
2022       test-suite)     ;;
2023       llvm-test)      ;;
2024       poolalloc)      ;;
2025       llvm-poolalloc) ;;
2026       *)
2027         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2029         ;;
2030     esac
2031   fi
2032 done
2033
2034 # Check whether --enable-polly was given.
2035 if test "${enable_polly+set}" = set; then
2036   enableval=$enable_polly;
2037 else
2038   enableval=default
2039 fi
2040
2041 case "$enableval" in
2042   yes) ENABLE_POLLY=1
2043  ;;
2044   no)  ENABLE_POLLY=0
2045  ;;
2046   default) ENABLE_POLLY=1
2047  ;;
2048   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050    { (exit 1); exit 1; }; } ;;
2051 esac
2052
2053
2054 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2055   LLVM_HAS_POLLY=1
2056
2057   subdirs="$subdirs tools/polly"
2058
2059 fi
2060
2061
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2064   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066    { (exit 1); exit 1; }; }
2067
2068 { echo "$as_me:$LINENO: checking build system type" >&5
2069 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   ac_build_alias=$build_alias
2074 test "x$ac_build_alias" = x &&
2075   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x &&
2077   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079    { (exit 1); exit 1; }; }
2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083    { (exit 1); exit 1; }; }
2084
2085 fi
2086 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 echo "${ECHO_T}$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2089 *-*-*) ;;
2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 echo "$as_me: error: invalid value of canonical build" >&2;}
2092    { (exit 1); exit 1; }; };;
2093 esac
2094 build=$ac_cv_build
2095 ac_save_IFS=$IFS; IFS='-'
2096 set x $ac_cv_build
2097 shift
2098 build_cpu=$1
2099 build_vendor=$2
2100 shift; shift
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2103 build_os=$*
2104 IFS=$ac_save_IFS
2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106
2107
2108 { echo "$as_me:$LINENO: checking host system type" >&5
2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   if test "x$host_alias" = x; then
2114   ac_cv_host=$ac_cv_build
2115 else
2116   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119    { (exit 1); exit 1; }; }
2120 fi
2121
2122 fi
2123 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 echo "${ECHO_T}$ac_cv_host" >&6; }
2125 case $ac_cv_host in
2126 *-*-*) ;;
2127 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 echo "$as_me: error: invalid value of canonical host" >&2;}
2129    { (exit 1); exit 1; }; };;
2130 esac
2131 host=$ac_cv_host
2132 ac_save_IFS=$IFS; IFS='-'
2133 set x $ac_cv_host
2134 shift
2135 host_cpu=$1
2136 host_vendor=$2
2137 shift; shift
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2140 host_os=$*
2141 IFS=$ac_save_IFS
2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2143
2144
2145 { echo "$as_me:$LINENO: checking target system type" >&5
2146 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_target+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   if test "x$target_alias" = x; then
2151   ac_cv_target=$ac_cv_host
2152 else
2153   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2154     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156    { (exit 1); exit 1; }; }
2157 fi
2158
2159 fi
2160 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161 echo "${ECHO_T}$ac_cv_target" >&6; }
2162 case $ac_cv_target in
2163 *-*-*) ;;
2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165 echo "$as_me: error: invalid value of canonical target" >&2;}
2166    { (exit 1); exit 1; }; };;
2167 esac
2168 target=$ac_cv_target
2169 ac_save_IFS=$IFS; IFS='-'
2170 set x $ac_cv_target
2171 shift
2172 target_cpu=$1
2173 target_vendor=$2
2174 shift; shift
2175 # Remember, the first character of IFS is used to create $*,
2176 # except with old shells:
2177 target_os=$*
2178 IFS=$ac_save_IFS
2179 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2180
2181
2182 # The aliases save the names the user supplied, while $host etc.
2183 # will get canonicalized.
2184 test -n "$target_alias" &&
2185   test "$program_prefix$program_suffix$program_transform_name" = \
2186     NONENONEs,x,x, &&
2187   program_prefix=${target_alias}-
2188
2189 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191 if test "${llvm_cv_os_type+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   case $host in
2195   *-*-aix*)
2196     llvm_cv_link_all_option="-Wl,--whole-archive"
2197     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198     llvm_cv_os_type="AIX"
2199     llvm_cv_platform_type="Unix" ;;
2200   *-*-irix*)
2201     llvm_cv_link_all_option="-Wl,--whole-archive"
2202     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203     llvm_cv_os_type="IRIX"
2204     llvm_cv_platform_type="Unix" ;;
2205   *-*-cygwin*)
2206     llvm_cv_link_all_option="-Wl,--whole-archive"
2207     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208     llvm_cv_os_type="Cygwin"
2209     llvm_cv_platform_type="Unix" ;;
2210   *-*-darwin*)
2211     llvm_cv_link_all_option="-Wl,-all_load"
2212     llvm_cv_no_link_all_option="-Wl,-noall_load"
2213     llvm_cv_os_type="Darwin"
2214     llvm_cv_platform_type="Unix" ;;
2215   *-*-minix*)
2216     llvm_cv_link_all_option="-Wl,-all_load"
2217     llvm_cv_no_link_all_option="-Wl,-noall_load"
2218     llvm_cv_os_type="Minix"
2219     llvm_cv_platform_type="Unix" ;;
2220   *-*-freebsd*)
2221     llvm_cv_link_all_option="-Wl,--whole-archive"
2222     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223     llvm_cv_os_type="FreeBSD"
2224     llvm_cv_platform_type="Unix" ;;
2225   *-*-openbsd*)
2226     llvm_cv_link_all_option="-Wl,--whole-archive"
2227     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228     llvm_cv_os_type="OpenBSD"
2229     llvm_cv_platform_type="Unix" ;;
2230   *-*-netbsd*)
2231     llvm_cv_link_all_option="-Wl,--whole-archive"
2232     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233     llvm_cv_os_type="NetBSD"
2234     llvm_cv_platform_type="Unix" ;;
2235   *-*-dragonfly*)
2236     llvm_cv_link_all_option="-Wl,--whole-archive"
2237     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238     llvm_cv_os_type="DragonFly"
2239     llvm_cv_platform_type="Unix" ;;
2240   *-*-hpux*)
2241     llvm_cv_link_all_option="-Wl,--whole-archive"
2242     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243     llvm_cv_os_type="HP-UX"
2244     llvm_cv_platform_type="Unix" ;;
2245   *-*-interix*)
2246     llvm_cv_link_all_option="-Wl,--whole-archive"
2247     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248     llvm_cv_os_type="Interix"
2249     llvm_cv_platform_type="Unix" ;;
2250   *-*-linux*)
2251     llvm_cv_link_all_option="-Wl,--whole-archive"
2252     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253     llvm_cv_os_type="Linux"
2254     llvm_cv_platform_type="Unix" ;;
2255   *-*-solaris*)
2256     llvm_cv_link_all_option="-Wl,-z,allextract"
2257     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2258     llvm_cv_os_type="SunOS"
2259     llvm_cv_platform_type="Unix" ;;
2260   *-*-auroraux*)
2261     llvm_cv_link_all_option="-Wl,-z,allextract"
2262     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2263     llvm_cv_os_type="AuroraUX"
2264     llvm_cv_platform_type="Unix" ;;
2265   *-*-win32*)
2266     llvm_cv_link_all_option="-Wl,--whole-archive"
2267     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268     llvm_cv_os_type="Win32"
2269     llvm_cv_platform_type="Win32" ;;
2270   *-*-mingw*)
2271     llvm_cv_link_all_option="-Wl,--whole-archive"
2272     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273     llvm_cv_os_type="MingW"
2274     llvm_cv_platform_type="Win32" ;;
2275   *-*-haiku*)
2276     llvm_cv_link_all_option="-Wl,--whole-archive"
2277     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278     llvm_cv_os_type="Haiku"
2279     llvm_cv_platform_type="Unix" ;;
2280   *-unknown-eabi*)
2281     llvm_cv_link_all_option="-Wl,--whole-archive"
2282     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283     llvm_cv_os_type="Freestanding"
2284     llvm_cv_platform_type="Unix" ;;
2285   *-unknown-elf*)
2286     llvm_cv_link_all_option="-Wl,--whole-archive"
2287     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288     llvm_cv_os_type="Freestanding"
2289     llvm_cv_platform_type="Unix" ;;
2290   *)
2291     llvm_cv_link_all_option=""
2292     llvm_cv_no_link_all_option=""
2293     llvm_cv_os_type="Unknown"
2294     llvm_cv_platform_type="Unknown" ;;
2295 esac
2296 fi
2297 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2299
2300 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302 if test "${llvm_cv_target_os_type+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   case $target in
2306   *-*-aix*)
2307     llvm_cv_target_os_type="AIX" ;;
2308   *-*-irix*)
2309     llvm_cv_target_os_type="IRIX" ;;
2310   *-*-cygwin*)
2311     llvm_cv_target_os_type="Cygwin" ;;
2312   *-*-darwin*)
2313     llvm_cv_target_os_type="Darwin" ;;
2314   *-*-minix*)
2315     llvm_cv_target_os_type="Minix" ;;
2316   *-*-freebsd*)
2317     llvm_cv_target_os_type="FreeBSD" ;;
2318   *-*-openbsd*)
2319     llvm_cv_target_os_type="OpenBSD" ;;
2320   *-*-netbsd*)
2321     llvm_cv_target_os_type="NetBSD" ;;
2322   *-*-dragonfly*)
2323     llvm_cv_target_os_type="DragonFly" ;;
2324   *-*-hpux*)
2325     llvm_cv_target_os_type="HP-UX" ;;
2326   *-*-interix*)
2327     llvm_cv_target_os_type="Interix" ;;
2328   *-*-linux*)
2329     llvm_cv_target_os_type="Linux" ;;
2330   *-*-solaris*)
2331     llvm_cv_target_os_type="SunOS" ;;
2332   *-*-auroraux*)
2333     llvm_cv_target_os_type="AuroraUX" ;;
2334   *-*-win32*)
2335     llvm_cv_target_os_type="Win32" ;;
2336   *-*-mingw*)
2337     llvm_cv_target_os_type="MingW" ;;
2338   *-*-haiku*)
2339     llvm_cv_target_os_type="Haiku" ;;
2340   *-*-rtems*)
2341     llvm_cv_target_os_type="RTEMS" ;;
2342   *-unknown-eabi*)
2343     llvm_cv_target_os_type="Freestanding" ;;
2344   *)
2345     llvm_cv_target_os_type="Unknown" ;;
2346 esac
2347 fi
2348 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2349 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2350
2351 if test "$llvm_cv_os_type" = "Unknown" ; then
2352   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2353 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357 OS=$llvm_cv_os_type
2358
2359 HOST_OS=$llvm_cv_os_type
2360
2361 TARGET_OS=$llvm_cv_target_os_type
2362
2363
2364 LINKALL=$llvm_cv_link_all_option
2365
2366 NOLINKALL=$llvm_cv_no_link_all_option
2367
2368
2369 case $llvm_cv_platform_type in
2370   Unix)
2371
2372 cat >>confdefs.h <<\_ACEOF
2373 #define LLVM_ON_UNIX 1
2374 _ACEOF
2375
2376     LLVM_ON_UNIX=1
2377
2378     LLVM_ON_WIN32=0
2379
2380     ;;
2381   Win32)
2382
2383 cat >>confdefs.h <<\_ACEOF
2384 #define LLVM_ON_WIN32 1
2385 _ACEOF
2386
2387     LLVM_ON_UNIX=0
2388
2389     LLVM_ON_WIN32=1
2390
2391     ;;
2392 esac
2393
2394 { echo "$as_me:$LINENO: checking target architecture" >&5
2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_arch+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   case $target in
2400   i?86-*)                 llvm_cv_target_arch="x86" ;;
2401   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2402   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2403   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2404   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2405   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2406   mips-*)                 llvm_cv_target_arch="Mips" ;;
2407   xcore-*)                llvm_cv_target_arch="XCore" ;;
2408   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2409   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2410   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2411   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2412   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2413   *)                      llvm_cv_target_arch="Unknown" ;;
2414 esac
2415 fi
2416 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2417 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2418
2419 if test "$llvm_cv_target_arch" = "Unknown" ; then
2420   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2421 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2422 fi
2423
2424 # Determine the LLVM native architecture for the target
2425 case "$llvm_cv_target_arch" in
2426     x86)     LLVM_NATIVE_ARCH="X86" ;;
2427     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2428     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2429 esac
2430
2431 ARCH=$llvm_cv_target_arch
2432
2433
2434 ac_ext=c
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_CC+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   if test -n "$CC"; then
2448   ac_cv_prog_CC="$CC" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453   IFS=$as_save_IFS
2454   test -z "$as_dir" && as_dir=.
2455   for ac_exec_ext in '' $ac_executable_extensions; do
2456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2457     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459     break 2
2460   fi
2461 done
2462 done
2463 IFS=$as_save_IFS
2464
2465 fi
2466 fi
2467 CC=$ac_cv_prog_CC
2468 if test -n "$CC"; then
2469   { echo "$as_me:$LINENO: result: $CC" >&5
2470 echo "${ECHO_T}$CC" >&6; }
2471 else
2472   { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2474 fi
2475
2476
2477 fi
2478 if test -z "$ac_cv_prog_CC"; then
2479   ac_ct_CC=$CC
2480   # Extract the first word of "gcc", so it can be a program name with args.
2481 set dummy gcc; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test -n "$ac_ct_CC"; then
2488   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     ac_cv_prog_ac_ct_CC="gcc"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508 if test -n "$ac_ct_CC"; then
2509   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510 echo "${ECHO_T}$ac_ct_CC" >&6; }
2511 else
2512   { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2514 fi
2515
2516   if test "x$ac_ct_CC" = x; then
2517     CC=""
2518   else
2519     case $cross_compiling:$ac_tool_warned in
2520 yes:)
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet.  If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet.  If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned=yes ;;
2528 esac
2529     CC=$ac_ct_CC
2530   fi
2531 else
2532   CC="$ac_cv_prog_CC"
2533 fi
2534
2535 if test -z "$CC"; then
2536           if test -n "$ac_tool_prefix"; then
2537     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}cc; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   if test -n "$CC"; then
2545   ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552   for ac_exec_ext in '' $ac_executable_extensions; do
2553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2554     ac_cv_prog_CC="${ac_tool_prefix}cc"
2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566   { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2568 else
2569   { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2571 fi
2572
2573
2574   fi
2575 fi
2576 if test -z "$CC"; then
2577   # Extract the first word of "cc", so it can be a program name with args.
2578 set dummy cc; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   if test -n "$CC"; then
2585   ac_cv_prog_CC="$CC" # Let the user override the test.
2586 else
2587   ac_prog_rejected=no
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593   for ac_exec_ext in '' $ac_executable_extensions; do
2594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2595     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2596        ac_prog_rejected=yes
2597        continue
2598      fi
2599     ac_cv_prog_CC="cc"
2600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 if test $ac_prog_rejected = yes; then
2608   # We found a bogon in the path, so make sure we never use it.
2609   set dummy $ac_cv_prog_CC
2610   shift
2611   if test $# != 0; then
2612     # We chose a different compiler from the bogus one.
2613     # However, it has the same basename, so the bogon will be chosen
2614     # first if we set CC to just the basename; use the full file name.
2615     shift
2616     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617   fi
2618 fi
2619 fi
2620 fi
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623   { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2625 else
2626   { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2628 fi
2629
2630
2631 fi
2632 if test -z "$CC"; then
2633   if test -n "$ac_tool_prefix"; then
2634   for ac_prog in cl.exe
2635   do
2636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643   if test -n "$CC"; then
2644   ac_cv_prog_CC="$CC" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649   IFS=$as_save_IFS
2650   test -z "$as_dir" && as_dir=.
2651   for ac_exec_ext in '' $ac_executable_extensions; do
2652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2653     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655     break 2
2656   fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 CC=$ac_cv_prog_CC
2664 if test -n "$CC"; then
2665   { echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6; }
2667 else
2668   { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2670 fi
2671
2672
2673     test -n "$CC" && break
2674   done
2675 fi
2676 if test -z "$CC"; then
2677   ac_ct_CC=$CC
2678   for ac_prog in cl.exe
2679 do
2680   # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   if test -n "$ac_ct_CC"; then
2688   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     ac_cv_prog_ac_ct_CC="$ac_prog"
2698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 echo "${ECHO_T}$ac_ct_CC" >&6; }
2711 else
2712   { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2714 fi
2715
2716
2717   test -n "$ac_ct_CC" && break
2718 done
2719
2720   if test "x$ac_ct_CC" = x; then
2721     CC=""
2722   else
2723     case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2726 whose name does not start with the host triplet.  If you think this
2727 configuration is useful to you, please write to autoconf@gnu.org." >&5
2728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2729 whose name does not start with the host triplet.  If you think this
2730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2731 ac_tool_warned=yes ;;
2732 esac
2733     CC=$ac_ct_CC
2734   fi
2735 fi
2736
2737 fi
2738
2739
2740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&2;}
2744    { (exit 1); exit 1; }; }
2745
2746 # Provide some information about the compiler.
2747 echo "$as_me:$LINENO: checking for C compiler version" >&5
2748 ac_compiler=`set X $ac_compile; echo $2`
2749 { (ac_try="$ac_compiler --version >&5"
2750 case "(($ac_try" in
2751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752   *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755   (eval "$ac_compiler --version >&5") 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }
2759 { (ac_try="$ac_compiler -v >&5"
2760 case "(($ac_try" in
2761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762   *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765   (eval "$ac_compiler -v >&5") 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }
2769 { (ac_try="$ac_compiler -V >&5"
2770 case "(($ac_try" in
2771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772   *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775   (eval "$ac_compiler -V >&5") 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }
2779
2780 cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h.  */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h.  */
2786
2787 int
2788 main ()
2789 {
2790
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 ac_clean_files_save=$ac_clean_files
2796 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2797 # Try to create an executable without -o first, disregard a.out.
2798 # It will help us diagnose broken compilers, and finding out an intuition
2799 # of exeext.
2800 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2802 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2803 #
2804 # List of possible output files, starting from the most likely.
2805 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2806 # only as a last resort.  b.out is created by i960 compilers.
2807 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2808 #
2809 # The IRIX 6 linker writes into existing files which may not be
2810 # executable, retaining their permissions.  Remove them first so a
2811 # subsequent execution test works.
2812 ac_rmfiles=
2813 for ac_file in $ac_files
2814 do
2815   case $ac_file in
2816     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2817     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818   esac
2819 done
2820 rm -f $ac_rmfiles
2821
2822 if { (ac_try="$ac_link_default"
2823 case "(($ac_try" in
2824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825   *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828   (eval "$ac_link_default") 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; then
2832   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2835 # so that the user can short-circuit this test for compilers unknown to
2836 # Autoconf.
2837 for ac_file in $ac_files
2838 do
2839   test -f "$ac_file" || continue
2840   case $ac_file in
2841     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2842         ;;
2843     [ab].out )
2844         # We found the default executable, but exeext='' is most
2845         # certainly right.
2846         break;;
2847     *.* )
2848         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2849         then :; else
2850            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851         fi
2852         # We set ac_cv_exeext here because the later test for it is not
2853         # safe: cross compilers may not add the suffix if given an `-o'
2854         # argument, so we may need to know it at that point already.
2855         # Even if this section looks crufty: it has the advantage of
2856         # actually working.
2857         break;;
2858     * )
2859         break;;
2860   esac
2861 done
2862 test "$ac_cv_exeext" = no && ac_cv_exeext=
2863
2864 else
2865   echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&2;}
2872    { (exit 77); exit 77; }; }
2873 fi
2874
2875 ac_exeext=$ac_cv_exeext
2876 { echo "$as_me:$LINENO: result: $ac_file" >&5
2877 echo "${ECHO_T}$ac_file" >&6; }
2878
2879 # Check that the compiler produces executables we can run.  If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884 # If not cross compiling, check that we can run a simple program.
2885 if test "$cross_compiling" != yes; then
2886   if { ac_try='./$ac_file'
2887   { (case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_try") 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }; }; then
2896     cross_compiling=no
2897   else
2898     if test "$cross_compiling" = maybe; then
2899         cross_compiling=yes
2900     else
2901         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&2;}
2907    { (exit 1); exit 1; }; }
2908     fi
2909   fi
2910 fi
2911 { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2913
2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 # Check that the compiler produces executables we can run.  If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6; }
2922
2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925 if { (ac_try="$ac_link"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_link") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }; then
2935   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2937 # work properly (i.e., refer to `conftest.exe'), while it won't with
2938 # `rm'.
2939 for ac_file in conftest.exe conftest conftest.*; do
2940   test -f "$ac_file" || continue
2941   case $ac_file in
2942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944           break;;
2945     * ) break;;
2946   esac
2947 done
2948 else
2949   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&2;}
2953    { (exit 1); exit 1; }; }
2954 fi
2955
2956 rm -f conftest$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2959
2960 rm -f conftest.$ac_ext
2961 EXEEXT=$ac_cv_exeext
2962 ac_exeext=$EXEEXT
2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965 if test "${ac_cv_objext+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974
2975 int
2976 main ()
2977 {
2978
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 rm -f conftest.o conftest.obj
2984 if { (ac_try="$ac_compile"
2985 case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990   (eval "$ac_compile") 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; then
2994   for ac_file in conftest.o conftest.obj conftest.*; do
2995   test -f "$ac_file" || continue;
2996   case $ac_file in
2997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2998     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999        break;;
3000   esac
3001 done
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&2;}
3010    { (exit 1); exit 1; }; }
3011 fi
3012
3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016 echo "${ECHO_T}$ac_cv_objext" >&6; }
3017 OBJEXT=$ac_cv_objext
3018 ac_objext=$OBJEXT
3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034 #ifndef __GNUC__
3035        choke me
3036 #endif
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_compile") 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } &&
3056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057   { (case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_try") 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; } &&
3066          { ac_try='test -s conftest.$ac_objext'
3067   { (case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072   (eval "$ac_try") 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   ac_compiler_gnu=yes
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081         ac_compiler_gnu=no
3082 fi
3083
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3086
3087 fi
3088 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3089 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3090 GCC=`test $ac_compiler_gnu = yes && echo yes`
3091 ac_test_CFLAGS=${CFLAGS+set}
3092 ac_save_CFLAGS=$CFLAGS
3093 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3094 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3095 if test "${ac_cv_prog_cc_g+set}" = set; then
3096   echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098   ac_save_c_werror_flag=$ac_c_werror_flag
3099    ac_c_werror_flag=yes
3100    ac_cv_prog_cc_g=no
3101    CFLAGS="-g"
3102    cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108
3109 int
3110 main ()
3111 {
3112
3113   ;
3114   return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_compile") 2>conftest.er1
3125   ac_status=$?
3126   grep -v '^ *+' conftest.er1 >conftest.err
3127   rm -f conftest.er1
3128   cat conftest.err >&5
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); } &&
3131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132   { (case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_try") 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; } &&
3141          { ac_try='test -s conftest.$ac_objext'
3142   { (case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_try") 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; }; then
3151   ac_cv_prog_cc_g=yes
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156         CFLAGS=""
3157       cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_compile") 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187   { (case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_try") 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; } &&
3196          { ac_try='test -s conftest.$ac_objext'
3197   { (case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202   (eval "$ac_try") 2>&5
3203   ac_status=$?
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); }; }; then
3206   :
3207 else
3208   echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211         ac_c_werror_flag=$ac_save_c_werror_flag
3212          CFLAGS="-g"
3213          cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 int
3221 main ()
3222 {
3223
3224   ;
3225   return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235   (eval "$ac_compile") 2>conftest.er1
3236   ac_status=$?
3237   grep -v '^ *+' conftest.er1 >conftest.err
3238   rm -f conftest.er1
3239   cat conftest.err >&5
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); } &&
3242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243   { (case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248   (eval "$ac_try") 2>&5
3249   ac_status=$?
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); }; } &&
3252          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }; }; then
3262   ac_cv_prog_cc_g=yes
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267
3268 fi
3269
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 fi
3272
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 fi
3275
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277    ac_c_werror_flag=$ac_save_c_werror_flag
3278 fi
3279 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3281 if test "$ac_test_CFLAGS" = set; then
3282   CFLAGS=$ac_save_CFLAGS
3283 elif test $ac_cv_prog_cc_g = yes; then
3284   if test "$GCC" = yes; then
3285     CFLAGS="-g -O2"
3286   else
3287     CFLAGS="-g"
3288   fi
3289 else
3290   if test "$GCC" = yes; then
3291     CFLAGS="-O2"
3292   else
3293     CFLAGS=
3294   fi
3295 fi
3296 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3297 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_cc_c89+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   ac_cv_prog_cc_c89=no
3302 ac_save_CC=$CC
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <stdarg.h>
3310 #include <stdio.h>
3311 #include <sys/types.h>
3312 #include <sys/stat.h>
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3317      char **p;
3318      int i;
3319 {
3320   return p[i];
3321 }
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3323 {
3324   char *s;
3325   va_list v;
3326   va_start (v,p);
3327   s = g (p, va_arg (v,int));
3328   va_end (v);
3329   return s;
3330 }
3331
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3333    function prototypes and stuff, but not '\xHH' hex character constants.
3334    These don't provoke an error unfortunately, instead are silently treated
3335    as 'x'.  The following induces an error, until -std is added to get
3336    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3337    array size at least.  It's necessary to write '\x00'==0 to get something
3338    that's true only with -std.  */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3340
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342    inside strings and character constants.  */
3343 #define FOO(x) 'x'
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3345
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 int argc;
3351 char **argv;
3352 int
3353 main ()
3354 {
3355 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3362 do
3363   CC="$ac_save_CC $ac_arg"
3364   rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371   (eval "$ac_compile") 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } &&
3378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3379   { (case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_try") 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }; } &&
3388          { ac_try='test -s conftest.$ac_objext'
3389   { (case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_try") 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }; }; then
3398   ac_cv_prog_cc_c89=$ac_arg
3399 else
3400   echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403
3404 fi
3405
3406 rm -f core conftest.err conftest.$ac_objext
3407   test "x$ac_cv_prog_cc_c89" != "xno" && break
3408 done
3409 rm -f conftest.$ac_ext
3410 CC=$ac_save_CC
3411
3412 fi
3413 # AC_CACHE_VAL
3414 case "x$ac_cv_prog_cc_c89" in
3415   x)
3416     { echo "$as_me:$LINENO: result: none needed" >&5
3417 echo "${ECHO_T}none needed" >&6; } ;;
3418   xno)
3419     { echo "$as_me:$LINENO: result: unsupported" >&5
3420 echo "${ECHO_T}unsupported" >&6; } ;;
3421   *)
3422     CC="$CC $ac_cv_prog_cc_c89"
3423     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3424 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3425 esac
3426
3427
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434
3435 ac_ext=c
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3442 # On Suns, sometimes $CPP names a directory.
3443 if test -n "$CPP" && test -d "$CPP"; then
3444   CPP=
3445 fi
3446 if test -z "$CPP"; then
3447   if test "${ac_cv_prog_CPP+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450       # Double quotes because CPP needs to be expanded
3451     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3452     do
3453       ac_preproc_ok=false
3454 for ac_c_preproc_warn_flag in '' yes
3455 do
3456   # Use a header file that comes with gcc, so configuring glibc
3457   # with a fresh cross-compiler works.
3458   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459   # <limits.h> exists even on freestanding compilers.
3460   # On the NeXT, cc -E runs the code through the compiler's parser,
3461   # not just through cpp. "Syntax error" is here to catch this case.
3462   cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468 #ifdef __STDC__
3469 # include <limits.h>
3470 #else
3471 # include <assert.h>
3472 #endif
3473                      Syntax error
3474 _ACEOF
3475 if { (ac_try="$ac_cpp conftest.$ac_ext"
3476 case "(($ac_try" in
3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478   *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482   ac_status=$?
3483   grep -v '^ *+' conftest.er1 >conftest.err
3484   rm -f conftest.er1
3485   cat conftest.err >&5
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); } >/dev/null; then
3488   if test -s conftest.err; then
3489     ac_cpp_err=$ac_c_preproc_warn_flag
3490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491   else
3492     ac_cpp_err=
3493   fi
3494 else
3495   ac_cpp_err=yes
3496 fi
3497 if test -z "$ac_cpp_err"; then
3498   :
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503   # Broken: fails on valid input.
3504 continue
3505 fi
3506
3507 rm -f conftest.err conftest.$ac_ext
3508
3509   # OK, works on sane cases.  Now check whether nonexistent headers
3510   # can be detected and how.
3511   cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h.  */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h.  */
3517 #include <ac_nonexistent.h>
3518 _ACEOF
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } >/dev/null; then
3532   if test -s conftest.err; then
3533     ac_cpp_err=$ac_c_preproc_warn_flag
3534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535   else
3536     ac_cpp_err=
3537   fi
3538 else
3539   ac_cpp_err=yes
3540 fi
3541 if test -z "$ac_cpp_err"; then
3542   # Broken: success on invalid input.
3543 continue
3544 else
3545   echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548   # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3551 fi
3552
3553 rm -f conftest.err conftest.$ac_ext
3554
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559   break
3560 fi
3561
3562     done
3563     ac_cv_prog_CPP=$CPP
3564
3565 fi
3566   CPP=$ac_cv_prog_CPP
3567 else
3568   ac_cv_prog_CPP=$CPP
3569 fi
3570 { echo "$as_me:$LINENO: result: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6; }
3572 ac_preproc_ok=false
3573 for ac_c_preproc_warn_flag in '' yes
3574 do
3575   # Use a header file that comes with gcc, so configuring glibc
3576   # with a fresh cross-compiler works.
3577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578   # <limits.h> exists even on freestanding compilers.
3579   # On the NeXT, cc -E runs the code through the compiler's parser,
3580   # not just through cpp. "Syntax error" is here to catch this case.
3581   cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592                      Syntax error
3593 _ACEOF
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601   ac_status=$?
3602   grep -v '^ *+' conftest.er1 >conftest.err
3603   rm -f conftest.er1
3604   cat conftest.err >&5
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); } >/dev/null; then
3607   if test -s conftest.err; then
3608     ac_cpp_err=$ac_c_preproc_warn_flag
3609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610   else
3611     ac_cpp_err=
3612   fi
3613 else
3614   ac_cpp_err=yes
3615 fi
3616 if test -z "$ac_cpp_err"; then
3617   :
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622   # Broken: fails on valid input.
3623 continue
3624 fi
3625
3626 rm -f conftest.err conftest.$ac_ext
3627
3628   # OK, works on sane cases.  Now check whether nonexistent headers
3629   # can be detected and how.
3630   cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 #include <ac_nonexistent.h>
3637 _ACEOF
3638 if { (ac_try="$ac_cpp conftest.$ac_ext"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645   ac_status=$?
3646   grep -v '^ *+' conftest.er1 >conftest.err
3647   rm -f conftest.er1
3648   cat conftest.err >&5
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } >/dev/null; then
3651   if test -s conftest.err; then
3652     ac_cpp_err=$ac_c_preproc_warn_flag
3653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3654   else
3655     ac_cpp_err=
3656   fi
3657 else
3658   ac_cpp_err=yes
3659 fi
3660 if test -z "$ac_cpp_err"; then
3661   # Broken: success on invalid input.
3662 continue
3663 else
3664   echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667   # Passes both tests.
3668 ac_preproc_ok=:
3669 break
3670 fi
3671
3672 rm -f conftest.err conftest.$ac_ext
3673
3674 done
3675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3676 rm -f conftest.err conftest.$ac_ext
3677 if $ac_preproc_ok; then
3678   :
3679 else
3680   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details." >&5
3682 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log' for more details." >&2;}
3684    { (exit 1); exit 1; }; }
3685 fi
3686
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693
3694 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3695 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_GREP+set}" = set; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   # Extract the first word of "grep ggrep" to use in msg output
3700 if test -z "$GREP"; then
3701 set dummy grep ggrep; ac_prog_name=$2
3702 if test "${ac_cv_path_GREP+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   ac_path_GREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712   for ac_prog in grep ggrep; do
3713   for ac_exec_ext in '' $ac_executable_extensions; do
3714     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3716     # Check for GNU ac_path_GREP and select it if it is found.
3717   # Check for GNU $ac_path_GREP
3718 case `"$ac_path_GREP" --version 2>&1` in
3719 *GNU*)
3720   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3721 *)
3722   ac_count=0
3723   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3724   while :
3725   do
3726     cat "conftest.in" "conftest.in" >"conftest.tmp"
3727     mv "conftest.tmp" "conftest.in"
3728     cp "conftest.in" "conftest.nl"
3729     echo 'GREP' >> "conftest.nl"
3730     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732     ac_count=`expr $ac_count + 1`
3733     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734       # Best one so far, save it but keep looking for a better one
3735       ac_cv_path_GREP="$ac_path_GREP"
3736       ac_path_GREP_max=$ac_count
3737     fi
3738     # 10*(2^10) chars as input seems more than enough
3739     test $ac_count -gt 10 && break
3740   done
3741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742 esac
3743
3744
3745     $ac_path_GREP_found && break 3
3746   done
3747 done
3748
3749 done
3750 IFS=$as_save_IFS
3751
3752
3753 fi
3754
3755 GREP="$ac_cv_path_GREP"
3756 if test -z "$GREP"; then
3757   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759    { (exit 1); exit 1; }; }
3760 fi
3761
3762 else
3763   ac_cv_path_GREP=$GREP
3764 fi
3765
3766
3767 fi
3768 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3769 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3770  GREP="$ac_cv_path_GREP"
3771
3772
3773 { echo "$as_me:$LINENO: checking for egrep" >&5
3774 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_EGREP+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3779    then ac_cv_path_EGREP="$GREP -E"
3780    else
3781      # Extract the first word of "egrep" to use in msg output
3782 if test -z "$EGREP"; then
3783 set dummy egrep; ac_prog_name=$2
3784 if test "${ac_cv_path_EGREP+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   ac_path_EGREP_found=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794   for ac_prog in egrep; do
3795   for ac_exec_ext in '' $ac_executable_extensions; do
3796     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3797     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3798     # Check for GNU ac_path_EGREP and select it if it is found.
3799   # Check for GNU $ac_path_EGREP
3800 case `"$ac_path_EGREP" --version 2>&1` in
3801 *GNU*)
3802   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3803 *)
3804   ac_count=0
3805   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3806   while :
3807   do
3808     cat "conftest.in" "conftest.in" >"conftest.tmp"
3809     mv "conftest.tmp" "conftest.in"
3810     cp "conftest.in" "conftest.nl"
3811     echo 'EGREP' >> "conftest.nl"
3812     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814     ac_count=`expr $ac_count + 1`
3815     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816       # Best one so far, save it but keep looking for a better one
3817       ac_cv_path_EGREP="$ac_path_EGREP"
3818       ac_path_EGREP_max=$ac_count
3819     fi
3820     # 10*(2^10) chars as input seems more than enough
3821     test $ac_count -gt 10 && break
3822   done
3823   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 esac
3825
3826
3827     $ac_path_EGREP_found && break 3
3828   done
3829 done
3830
3831 done
3832 IFS=$as_save_IFS
3833
3834
3835 fi
3836
3837 EGREP="$ac_cv_path_EGREP"
3838 if test -z "$EGREP"; then
3839   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841    { (exit 1); exit 1; }; }
3842 fi
3843
3844 else
3845   ac_cv_path_EGREP=$EGREP
3846 fi
3847
3848
3849    fi
3850 fi
3851 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3852 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3853  EGREP="$ac_cv_path_EGREP"
3854
3855
3856 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3858 if test "${ac_cv_header_stdc+set}" = set; then
3859   echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861   cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h.  */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h.  */
3867 #include <stdlib.h>
3868 #include <stdarg.h>
3869 #include <string.h>
3870 #include <float.h>
3871
3872 int
3873 main ()
3874 {
3875
3876   ;
3877   return 0;
3878 }
3879 _ACEOF
3880 rm -f conftest.$ac_objext
3881 if { (ac_try="$ac_compile"
3882 case "(($ac_try" in
3883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884   *) ac_try_echo=$ac_try;;
3885 esac
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887   (eval "$ac_compile") 2>conftest.er1
3888   ac_status=$?
3889   grep -v '^ *+' conftest.er1 >conftest.err
3890   rm -f conftest.er1
3891   cat conftest.err >&5
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); } &&
3894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3895   { (case "(($ac_try" in
3896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897   *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900   (eval "$ac_try") 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }; } &&
3904          { ac_try='test -s conftest.$ac_objext'
3905   { (case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910   (eval "$ac_try") 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }; }; then
3914   ac_cv_header_stdc=yes
3915 else
3916   echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919         ac_cv_header_stdc=no
3920 fi
3921
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923
3924 if test $ac_cv_header_stdc = yes; then
3925   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3926   cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h.  */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h.  */
3932 #include <string.h>
3933
3934 _ACEOF
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936   $EGREP "memchr" >/dev/null 2>&1; then
3937   :
3938 else
3939   ac_cv_header_stdc=no
3940 fi
3941 rm -f conftest*
3942
3943 fi
3944
3945 if test $ac_cv_header_stdc = yes; then
3946   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3947   cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953 #include <stdlib.h>
3954
3955 _ACEOF
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957   $EGREP "free" >/dev/null 2>&1; then
3958   :
3959 else
3960   ac_cv_header_stdc=no
3961 fi
3962 rm -f conftest*
3963
3964 fi
3965
3966 if test $ac_cv_header_stdc = yes; then
3967   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968   if test "$cross_compiling" = yes; then
3969   :
3970 else
3971   cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h.  */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h.  */
3977 #include <ctype.h>
3978 #include <stdlib.h>
3979 #if ((' ' & 0x0FF) == 0x020)
3980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3982 #else
3983 # define ISLOWER(c) \
3984                    (('a' <= (c) && (c) <= 'i') \
3985                      || ('j' <= (c) && (c) <= 'r') \
3986                      || ('s' <= (c) && (c) <= 'z'))
3987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3988 #endif
3989
3990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991 int
3992 main ()
3993 {
3994   int i;
3995   for (i = 0; i < 256; i++)
3996     if (XOR (islower (i), ISLOWER (i))
3997         || toupper (i) != TOUPPER (i))
3998       return 2;
3999   return 0;
4000 }
4001 _ACEOF
4002 rm -f conftest$ac_exeext
4003 if { (ac_try="$ac_link"
4004 case "(($ac_try" in
4005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006   *) ac_try_echo=$ac_try;;
4007 esac
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009   (eval "$ac_link") 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013   { (case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018   (eval "$ac_try") 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); }; }; then
4022   :
4023 else
4024   echo "$as_me: program exited with status $ac_status" >&5
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 ( exit $ac_status )
4029 ac_cv_header_stdc=no
4030 fi
4031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4032 fi
4033
4034
4035 fi
4036 fi
4037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4039 if test $ac_cv_header_stdc = yes; then
4040
4041 cat >>confdefs.h <<\_ACEOF
4042 #define STDC_HEADERS 1
4043 _ACEOF
4044
4045 fi
4046
4047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058                   inttypes.h stdint.h unistd.h
4059 do
4060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h.  */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h.  */
4072 $ac_includes_default
4073
4074 #include <$ac_header>
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4078 case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083   (eval "$ac_compile") 2>conftest.er1
4084   ac_status=$?
4085   grep -v '^ *+' conftest.er1 >conftest.err
4086   rm -f conftest.er1
4087   cat conftest.err >&5
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); } &&
4090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091   { (case "(($ac_try" in
4092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093   *) ac_try_echo=$ac_try;;
4094 esac
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096   (eval "$ac_try") 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; } &&
4100          { ac_try='test -s conftest.$ac_objext'
4101   { (case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106   (eval "$ac_try") 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; }; then
4110   eval "$as_ac_Header=yes"
4111 else
4112   echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115         eval "$as_ac_Header=no"
4116 fi
4117
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 fi
4120 ac_res=`eval echo '${'$as_ac_Header'}'`
4121                { echo "$as_me:$LINENO: result: $ac_res" >&5
4122 echo "${ECHO_T}$ac_res" >&6; }
4123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4124   cat >>confdefs.h <<_ACEOF
4125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4126 _ACEOF
4127
4128 fi
4129
4130 done
4131
4132
4133 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4135 if test "${ac_cv_c_bigendian+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138   # See if sys/param.h defines the BYTE_ORDER macro.
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 #include <sys/types.h>
4146 #include <sys/param.h>
4147
4148 int
4149 main ()
4150 {
4151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4152  bogus endian macros
4153 #endif
4154
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166   (eval "$ac_compile") 2>conftest.er1
4167   ac_status=$?
4168   grep -v '^ *+' conftest.er1 >conftest.err
4169   rm -f conftest.er1
4170   cat conftest.err >&5
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); } &&
4173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174   { (case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179   (eval "$ac_try") 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; } &&
4183          { ac_try='test -s conftest.$ac_objext'
4184   { (case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_try") 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); }; }; then
4193   # It does; now see whether it defined to BIG_ENDIAN or not.
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200 #include <sys/types.h>
4201 #include <sys/param.h>
4202
4203 int
4204 main ()
4205 {
4206 #if BYTE_ORDER != BIG_ENDIAN
4207  not big endian
4208 #endif
4209
4210   ;
4211   return 0;
4212 }
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4216 case "(($ac_try" in
4217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218   *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221   (eval "$ac_compile") 2>conftest.er1
4222   ac_status=$?
4223   grep -v '^ *+' conftest.er1 >conftest.err
4224   rm -f conftest.er1
4225   cat conftest.err >&5
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } &&
4228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229   { (case "(($ac_try" in
4230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231   *) ac_try_echo=$ac_try;;
4232 esac
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234   (eval "$ac_try") 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; } &&
4238          { ac_try='test -s conftest.$ac_objext'
4239   { (case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244   (eval "$ac_try") 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); }; }; then
4248   ac_cv_c_bigendian=yes
4249 else
4250   echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253         ac_cv_c_bigendian=no
4254 fi
4255
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 else
4258   echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261         # It does not; compile a test program.
4262 if test "$cross_compiling" = yes; then
4263   # try to guess the endianness by grepping values into an object file
4264   ac_cv_c_bigendian=unknown
4265   cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h.  */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h.  */
4271 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4272 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4273 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4274 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4275 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4276 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4277 int
4278 main ()
4279 {
4280  _ascii (); _ebcdic ();
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (ac_try="$ac_compile"
4287 case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_compile") 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4300   { (case "(($ac_try" in
4301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302   *) ac_try_echo=$ac_try;;
4303 esac
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305   (eval "$ac_try") 2>&5
4306   ac_status=$?
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); }; } &&
4309          { ac_try='test -s conftest.$ac_objext'
4310   { (case "(($ac_try" in
4311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312   *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315   (eval "$ac_try") 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then
4319   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4320   ac_cv_c_bigendian=yes
4321 fi
4322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4323   if test "$ac_cv_c_bigendian" = unknown; then
4324     ac_cv_c_bigendian=no
4325   else
4326     # finding both strings is unlikely to happen, but who knows?
4327     ac_cv_c_bigendian=unknown
4328   fi
4329 fi
4330 else
4331   echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334
4335 fi
4336
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 else
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 $ac_includes_default
4346 int
4347 main ()
4348 {
4349
4350   /* Are we little or big endian?  From Harbison&Steele.  */
4351   union
4352   {
4353     long int l;
4354     char c[sizeof (long int)];
4355   } u;
4356   u.l = 1;
4357   return u.c[sizeof (long int) - 1] == 1;
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4365 case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370   (eval "$ac_link") 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374   { (case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379   (eval "$ac_try") 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   ac_cv_c_bigendian=no
4384 else
4385   echo "$as_me: program exited with status $ac_status" >&5
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 ( exit $ac_status )
4390 ac_cv_c_bigendian=yes
4391 fi
4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4393 fi
4394
4395
4396 fi
4397
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 fi
4400 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4401 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4402 case $ac_cv_c_bigendian in
4403   yes)
4404     ENDIAN=big
4405  ;;
4406   no)
4407     ENDIAN=little
4408  ;;
4409   *)
4410     { { echo "$as_me:$LINENO: error: unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4412 echo "$as_me: error: unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4414    { (exit 1); exit 1; }; } ;;
4415 esac
4416
4417
4418 if test "$cross_compiling" = yes; then
4419   LLVM_CROSS_COMPILING=1
4420
4421
4422 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4423 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4424 if test "${ac_cv_build_exeext+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4428   ac_cv_build_exeext=.exe
4429 else
4430   ac_build_prefix=${build_alias}-
4431
4432   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_build_prefix}gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   if test -n "$BUILD_CC"; then
4440   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447   for ac_exec_ext in '' $ac_executable_extensions; do
4448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454 done
4455 IFS=$as_save_IFS
4456
4457 fi
4458 fi
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469   if test -z "$BUILD_CC"; then
4470      # Extract the first word of "gcc", so it can be a program name with args.
4471 set dummy gcc; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test -n "$BUILD_CC"; then
4478   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4487     ac_cv_prog_BUILD_CC="gcc"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 fi
4496 fi
4497 BUILD_CC=$ac_cv_prog_BUILD_CC
4498 if test -n "$BUILD_CC"; then
4499   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500 echo "${ECHO_T}$BUILD_CC" >&6; }
4501 else
4502   { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4504 fi
4505
4506
4507      if test -z "$BUILD_CC"; then
4508        # Extract the first word of "cc", so it can be a program name with args.
4509 set dummy cc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   if test -n "$BUILD_CC"; then
4516   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4517 else
4518   ac_prog_rejected=no
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524   for ac_exec_ext in '' $ac_executable_extensions; do
4525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4526     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527        ac_prog_rejected=yes
4528        continue
4529      fi
4530     ac_cv_prog_BUILD_CC="cc"
4531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535 done
4536 IFS=$as_save_IFS
4537
4538 if test $ac_prog_rejected = yes; then
4539   # We found a bogon in the path, so make sure we never use it.
4540   set dummy $ac_cv_prog_BUILD_CC
4541   shift
4542   if test $# != 0; then
4543     # We chose a different compiler from the bogus one.
4544     # However, it has the same basename, so the bogon will be chosen
4545     # first if we set BUILD_CC to just the basename; use the full file name.
4546     shift
4547     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548   fi
4549 fi
4550 fi
4551 fi
4552 BUILD_CC=$ac_cv_prog_BUILD_CC
4553 if test -n "$BUILD_CC"; then
4554   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4555 echo "${ECHO_T}$BUILD_CC" >&6; }
4556 else
4557   { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4559 fi
4560
4561
4562      fi
4563   fi
4564   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4565 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4566    { (exit 1); exit 1; }; }
4567   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4568   rm -f conftest*
4569   echo 'int main () { return 0; }' > conftest.$ac_ext
4570   ac_cv_build_exeext=
4571   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4572   (eval $ac_build_link) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; then
4576     for file in conftest.*; do
4577       case $file in
4578       *.c | *.o | *.obj | *.dSYM) ;;
4579       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4580       esac
4581     done
4582   else
4583     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4584 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4585    { (exit 1); exit 1; }; }
4586   fi
4587   rm -f conftest*
4588   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4589 fi
4590 fi
4591
4592 BUILD_EXEEXT=""
4593 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4594 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4595 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4596 ac_build_exeext=$BUILD_EXEEXT
4597
4598   ac_build_prefix=${build_alias}-
4599   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4600 set dummy ${ac_build_prefix}g++; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   if test -n "$BUILD_CXX"; then
4607   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612   IFS=$as_save_IFS
4613   test -z "$as_dir" && as_dir=.
4614   for ac_exec_ext in '' $ac_executable_extensions; do
4615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618     break 2
4619   fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 fi
4625 fi
4626 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627 if test -n "$BUILD_CXX"; then
4628   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629 echo "${ECHO_T}$BUILD_CXX" >&6; }
4630 else
4631   { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4633 fi
4634
4635
4636   if test -z "$BUILD_CXX"; then
4637      # Extract the first word of "g++", so it can be a program name with args.
4638 set dummy g++; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   if test -n "$BUILD_CXX"; then
4645   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652   for ac_exec_ext in '' $ac_executable_extensions; do
4653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4654     ac_cv_prog_BUILD_CXX="g++"
4655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665 if test -n "$BUILD_CXX"; then
4666   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667 echo "${ECHO_T}$BUILD_CXX" >&6; }
4668 else
4669   { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4671 fi
4672
4673
4674      if test -z "$BUILD_CXX"; then
4675        # Extract the first word of "c++", so it can be a program name with args.
4676 set dummy c++; ac_word=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682   if test -n "$BUILD_CXX"; then
4683   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4684 else
4685   ac_prog_rejected=no
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691   for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4694        ac_prog_rejected=yes
4695        continue
4696      fi
4697     ac_cv_prog_BUILD_CXX="c++"
4698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 if test $ac_prog_rejected = yes; then
4706   # We found a bogon in the path, so make sure we never use it.
4707   set dummy $ac_cv_prog_BUILD_CXX
4708   shift
4709   if test $# != 0; then
4710     # We chose a different compiler from the bogus one.
4711     # However, it has the same basename, so the bogon will be chosen
4712     # first if we set BUILD_CXX to just the basename; use the full file name.
4713     shift
4714     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715   fi
4716 fi
4717 fi
4718 fi
4719 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4720 if test -n "$BUILD_CXX"; then
4721   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4722 echo "${ECHO_T}$BUILD_CXX" >&6; }
4723 else
4724   { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4726 fi
4727
4728
4729      fi
4730   fi
4731 else
4732   LLVM_CROSS_COMPILING=0
4733
4734 fi
4735
4736 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4737   cvsbuild="yes"
4738   optimize="no"
4739   CVSBUILD=CVSBUILD=1
4740
4741 else
4742   cvsbuild="no"
4743   optimize="yes"
4744 fi
4745
4746
4747 # Check whether --enable-optimized was given.
4748 if test "${enable_optimized+set}" = set; then
4749   enableval=$enable_optimized;
4750 else
4751   enableval=$optimize
4752 fi
4753
4754 if test ${enableval} = "no" ; then
4755   ENABLE_OPTIMIZED=
4756
4757 else
4758   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4759
4760 fi
4761
4762 # Check whether --enable-profiling was given.
4763 if test "${enable_profiling+set}" = set; then
4764   enableval=$enable_profiling;
4765 else
4766   enableval="no"
4767 fi
4768
4769 if test ${enableval} = "no" ; then
4770   ENABLE_PROFILING=
4771
4772 else
4773   ENABLE_PROFILING=ENABLE_PROFILING=1
4774
4775 fi
4776
4777 # Check whether --enable-assertions was given.
4778 if test "${enable_assertions+set}" = set; then
4779   enableval=$enable_assertions;
4780 else
4781   enableval="yes"
4782 fi
4783
4784 if test ${enableval} = "yes" ; then
4785   DISABLE_ASSERTIONS=
4786
4787 else
4788   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4789
4790 fi
4791
4792 # Check whether --enable-expensive-checks was given.
4793 if test "${enable_expensive_checks+set}" = set; then
4794   enableval=$enable_expensive_checks;
4795 else
4796   enableval="no"
4797 fi
4798
4799 if test ${enableval} = "yes" ; then
4800   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4801
4802   EXPENSIVE_CHECKS=yes
4803
4804 else
4805   ENABLE_EXPENSIVE_CHECKS=
4806
4807   EXPENSIVE_CHECKS=no
4808
4809 fi
4810
4811 # Check whether --enable-debug-runtime was given.
4812 if test "${enable_debug_runtime+set}" = set; then
4813   enableval=$enable_debug_runtime;
4814 else
4815   enableval=no
4816 fi
4817
4818 if test ${enableval} = "no" ; then
4819   DEBUG_RUNTIME=
4820
4821 else
4822   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4823
4824 fi
4825
4826 # Check whether --enable-debug-symbols was given.
4827 if test "${enable_debug_symbols+set}" = set; then
4828   enableval=$enable_debug_symbols;
4829 else
4830   enableval=no
4831 fi
4832
4833 if test ${enableval} = "no" ; then
4834   DEBUG_SYMBOLS=
4835
4836 else
4837   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4838
4839 fi
4840
4841 # Check whether --enable-jit was given.
4842 if test "${enable_jit+set}" = set; then
4843   enableval=$enable_jit;
4844 else
4845   enableval=default
4846 fi
4847
4848 if test ${enableval} = "no"
4849 then
4850   JIT=
4851
4852 else
4853   case "$llvm_cv_target_arch" in
4854     x86)         TARGET_HAS_JIT=1
4855  ;;
4856     Sparc)       TARGET_HAS_JIT=0
4857  ;;
4858     PowerPC)     TARGET_HAS_JIT=1
4859  ;;
4860     x86_64)      TARGET_HAS_JIT=1
4861  ;;
4862     Alpha)       TARGET_HAS_JIT=0
4863  ;;
4864     ARM)         TARGET_HAS_JIT=1
4865  ;;
4866     Mips)        TARGET_HAS_JIT=0
4867  ;;
4868     XCore)       TARGET_HAS_JIT=0
4869  ;;
4870     MSP430)      TARGET_HAS_JIT=0
4871  ;;
4872     SystemZ)     TARGET_HAS_JIT=0
4873  ;;
4874     Blackfin)    TARGET_HAS_JIT=0
4875  ;;
4876     MBlaze)      TARGET_HAS_JIT=0
4877  ;;
4878     PTX)         TARGET_HAS_JIT=0
4879  ;;
4880     *)           TARGET_HAS_JIT=0
4881  ;;
4882   esac
4883 fi
4884
4885 # Check whether --enable-docs was given.
4886 if test "${enable_docs+set}" = set; then
4887   enableval=$enable_docs;
4888 else
4889   enableval=default
4890 fi
4891
4892 case "$enableval" in
4893   yes) ENABLE_DOCS=1
4894  ;;
4895   no)  ENABLE_DOCS=0
4896  ;;
4897   default) ENABLE_DOCS=1
4898  ;;
4899   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4901    { (exit 1); exit 1; }; } ;;
4902 esac
4903
4904 # Check whether --enable-doxygen was given.
4905 if test "${enable_doxygen+set}" = set; then
4906   enableval=$enable_doxygen;
4907 else
4908   enableval=default
4909 fi
4910
4911 case "$enableval" in
4912   yes) ENABLE_DOXYGEN=1
4913  ;;
4914   no)  ENABLE_DOXYGEN=0
4915  ;;
4916   default) ENABLE_DOXYGEN=0
4917  ;;
4918   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4920    { (exit 1); exit 1; }; } ;;
4921 esac
4922
4923 # Check whether --enable-threads was given.
4924 if test "${enable_threads+set}" = set; then
4925   enableval=$enable_threads;
4926 else
4927   enableval=default
4928 fi
4929
4930 case "$enableval" in
4931   yes) ENABLE_THREADS=1
4932  ;;
4933   no)  ENABLE_THREADS=0
4934  ;;
4935   default) ENABLE_THREADS=1
4936  ;;
4937   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4938 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4939    { (exit 1); exit 1; }; } ;;
4940 esac
4941
4942 cat >>confdefs.h <<_ACEOF
4943 #define ENABLE_THREADS $ENABLE_THREADS
4944 _ACEOF
4945
4946
4947 # Check whether --enable-pthreads was given.
4948 if test "${enable_pthreads+set}" = set; then
4949   enableval=$enable_pthreads;
4950 else
4951   enableval=default
4952 fi
4953
4954 case "$enableval" in
4955   yes) ENABLE_PTHREADS=1
4956  ;;
4957   no)  ENABLE_PTHREADS=0
4958  ;;
4959   default) ENABLE_PTHREADS=1
4960  ;;
4961   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4963    { (exit 1); exit 1; }; } ;;
4964 esac
4965
4966 # Check whether --enable-pic was given.
4967 if test "${enable_pic+set}" = set; then
4968   enableval=$enable_pic;
4969 else
4970   enableval=default
4971 fi
4972
4973 case "$enableval" in
4974   yes) ENABLE_PIC=1
4975  ;;
4976   no)  ENABLE_PIC=0
4977  ;;
4978   default) ENABLE_PIC=1
4979  ;;
4980   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4981 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4982    { (exit 1); exit 1; }; } ;;
4983 esac
4984
4985 cat >>confdefs.h <<_ACEOF
4986 #define ENABLE_PIC $ENABLE_PIC
4987 _ACEOF
4988
4989
4990 # Check whether --enable-shared was given.
4991 if test "${enable_shared+set}" = set; then
4992   enableval=$enable_shared;
4993 else
4994   enableval=default
4995 fi
4996
4997 case "$enableval" in
4998   yes) ENABLE_SHARED=1
4999  ;;
5000   no)  ENABLE_SHARED=0
5001  ;;
5002   default) ENABLE_SHARED=0
5003  ;;
5004   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5005 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5006    { (exit 1); exit 1; }; } ;;
5007 esac
5008
5009 # Check whether --enable-embed-stdcxx was given.
5010 if test "${enable_embed_stdcxx+set}" = set; then
5011   enableval=$enable_embed_stdcxx;
5012 else
5013   enableval=default
5014 fi
5015
5016 case "$enableval" in
5017   yes) ENABLE_EMBED_STDCXX=1
5018  ;;
5019   no)  ENABLE_EMBED_STDCXX=0
5020  ;;
5021   default) ENABLE_EMBED_STDCXX=1
5022  ;;
5023   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5024 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5025    { (exit 1); exit 1; }; } ;;
5026 esac
5027
5028 # Check whether --enable-timestamps was given.
5029 if test "${enable_timestamps+set}" = set; then
5030   enableval=$enable_timestamps;
5031 else
5032   enableval=default
5033 fi
5034
5035 case "$enableval" in
5036   yes) ENABLE_TIMESTAMPS=1
5037  ;;
5038   no)  ENABLE_TIMESTAMPS=0
5039  ;;
5040   default) ENABLE_TIMESTAMPS=1
5041  ;;
5042   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5043 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5044    { (exit 1); exit 1; }; } ;;
5045 esac
5046
5047 cat >>confdefs.h <<_ACEOF
5048 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5049 _ACEOF
5050
5051
5052 TARGETS_TO_BUILD=""
5053 # Check whether --enable-targets was given.
5054 if test "${enable_targets+set}" = set; then
5055   enableval=$enable_targets;
5056 else
5057   enableval=all
5058 fi
5059
5060 if test "$enableval" = host-only ; then
5061   enableval=host
5062 fi
5063 case "$enableval" in
5064   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5065   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5066       case "$a_target" in
5067         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5068         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5069         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5070         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5071         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5072         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5073         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5074         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5075         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5076         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5077         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5078         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5079         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5080         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5081         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5082         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5083         host) case "$llvm_cv_target_arch" in
5084             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5085             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5086             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5087             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5088             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5089             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5090             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5091             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5092             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5093             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5094             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5095             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5096             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5097             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5098             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5099 echo "$as_me: error: Can not set target to build" >&2;}
5100    { (exit 1); exit 1; }; } ;;
5101           esac ;;
5102         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5103 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5104    { (exit 1); exit 1; }; } ;;
5105       esac
5106   done
5107   ;;
5108 esac
5109 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5110
5111
5112 # Determine whether we are building LLVM support for the native architecture.
5113 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5114 for a_target in $TARGETS_TO_BUILD; do
5115   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5116
5117 cat >>confdefs.h <<_ACEOF
5118 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5119 _ACEOF
5120
5121     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5122     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5123     LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo"
5124     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5125     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5126       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5127     fi
5128
5129 cat >>confdefs.h <<_ACEOF
5130 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5131 _ACEOF
5132
5133
5134 cat >>confdefs.h <<_ACEOF
5135 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5136 _ACEOF
5137
5138
5139 cat >>confdefs.h <<_ACEOF
5140 #define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO
5141 _ACEOF
5142
5143
5144 cat >>confdefs.h <<_ACEOF
5145 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5146 _ACEOF
5147
5148     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5149
5150 cat >>confdefs.h <<_ACEOF
5151 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5152 _ACEOF
5153
5154     fi
5155   fi
5156 done
5157
5158 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5159 # target feature def files.
5160 LLVM_ENUM_TARGETS=""
5161 LLVM_ENUM_ASM_PRINTERS=""
5162 LLVM_ENUM_ASM_PARSERS=""
5163 LLVM_ENUM_DISASSEMBLERS=""
5164 for target_to_build in $TARGETS_TO_BUILD; do
5165   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5166   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5167     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5168   fi
5169   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5170     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5171   fi
5172   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5173     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5174   fi
5175 done
5176
5177
5178
5179
5180
5181 # Check whether --enable-cbe-printf-a was given.
5182 if test "${enable_cbe_printf_a+set}" = set; then
5183   enableval=$enable_cbe_printf_a;
5184 else
5185   enableval=default
5186 fi
5187
5188 case "$enableval" in
5189   yes) ENABLE_CBE_PRINTF_A=1
5190  ;;
5191   no)  ENABLE_CBE_PRINTF_A=0
5192  ;;
5193   default)  ENABLE_CBE_PRINTF_A=1
5194  ;;
5195   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5196 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5197    { (exit 1); exit 1; }; } ;;
5198 esac
5199
5200 cat >>confdefs.h <<_ACEOF
5201 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5202 _ACEOF
5203
5204
5205
5206 # Check whether --with-llvmgccdir was given.
5207 if test "${with_llvmgccdir+set}" = set; then
5208   withval=$with_llvmgccdir;
5209 else
5210   withval=default
5211 fi
5212
5213 case "$withval" in
5214   default) WITH_LLVMGCCDIR=default ;;
5215   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5216   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5217 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5218    { (exit 1); exit 1; }; } ;;
5219 esac
5220
5221
5222 # Check whether --with-llvmgcc was given.
5223 if test "${with_llvmgcc+set}" = set; then
5224   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5225       WITH_LLVMGCCDIR=""
5226 fi
5227
5228
5229
5230 # Check whether --with-llvmgxx was given.
5231 if test "${with_llvmgxx+set}" = set; then
5232   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5233     WITH_LLVMGCCDIR=""
5234 fi
5235
5236
5237 if test -n "$LLVMGCC"; then
5238    LLVMGCCCOMMAND="$LLVMGCC"
5239 fi
5240
5241 if test -n "$LLVMGXX"; then
5242    LLVMGXXCOMMAND="$LLVMGXX"
5243 fi
5244
5245 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5246    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5247 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5248    { (exit 1); exit 1; }; };
5249 fi
5250
5251 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5252    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5253 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5254    { (exit 1); exit 1; }; };
5255 fi
5256
5257
5258 # Check whether --with-clang was given.
5259 if test "${with_clang+set}" = set; then
5260   withval=$with_clang;
5261 else
5262   with_clang=default
5263 fi
5264
5265
5266
5267 # Check whether --with-built-clang was given.
5268 if test "${with_built_clang+set}" = set; then
5269   withval=$with_built_clang;
5270 else
5271   with_built_clang=check
5272 fi
5273
5274
5275 { echo "$as_me:$LINENO: checking clang compiler" >&5
5276 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5277 WITH_CLANGPATH=""
5278 WITH_BUILT_CLANG=0
5279 if test "$with_clang" != "default"; then
5280    WITH_CLANGPATH="$with_clang"
5281    if ! test -x "$WITH_CLANGPATH"; then
5282      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5283 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5284    { (exit 1); exit 1; }; }
5285    fi
5286 elif test "$with_built_clang" = "yes"; then
5287    WITH_BUILT_CLANG=1
5288 elif test "$with_built_clang" = "no"; then
5289    WITH_BUILT_CLANG=0
5290 else
5291    if test "$with_built_clang" != "check"; then
5292       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5293 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5294    { (exit 1); exit 1; }; }
5295    fi
5296
5297    if test -f ${srcdir}/tools/clang/README.txt; then
5298      WITH_BUILT_CLANG=1
5299    fi
5300 fi
5301
5302 if ! test -z "$WITH_CLANGPATH"; then
5303    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5304 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5305    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5306 elif test "$WITH_BUILT_CLANG" = "1"; then
5307    { echo "$as_me:$LINENO: result: built" >&5
5308 echo "${ECHO_T}built" >&6; }
5309 else
5310    { echo "$as_me:$LINENO: result: none" >&5
5311 echo "${ECHO_T}none" >&6; }
5312 fi
5313 CLANGPATH=$WITH_CLANGPATH
5314
5315 CLANGXXPATH=$WITH_CLANGXXPATH
5316
5317 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5318
5319
5320
5321 # Check whether --with-optimize-option was given.
5322 if test "${with_optimize_option+set}" = set; then
5323   withval=$with_optimize_option;
5324 else
5325   withval=default
5326 fi
5327
5328 { echo "$as_me:$LINENO: checking optimization flags" >&5
5329 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5330 case "$withval" in
5331   default)
5332     case "$llvm_cv_os_type" in
5333     FreeBSD) optimize_option=-O2 ;;
5334     MingW) optimize_option=-O2 ;;
5335     *)     optimize_option=-O3 ;;
5336     esac ;;
5337   *) optimize_option="$withval" ;;
5338 esac
5339 OPTIMIZE_OPTION=$optimize_option
5340
5341 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5342 echo "${ECHO_T}$optimize_option" >&6; }
5343
5344
5345 # Check whether --with-extra-options was given.
5346 if test "${with_extra_options+set}" = set; then
5347   withval=$with_extra_options;
5348 else
5349   withval=default
5350 fi
5351
5352 case "$withval" in
5353   default) EXTRA_OPTIONS= ;;
5354   *) EXTRA_OPTIONS=$withval ;;
5355 esac
5356 EXTRA_OPTIONS=$EXTRA_OPTIONS
5357
5358
5359
5360 # Check whether --with-extra-ld-options was given.
5361 if test "${with_extra_ld_options+set}" = set; then
5362   withval=$with_extra_ld_options;
5363 else
5364   withval=default
5365 fi
5366
5367 case "$withval" in
5368   default) EXTRA_LD_OPTIONS= ;;
5369   *) EXTRA_LD_OPTIONS=$withval ;;
5370 esac
5371 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5372
5373
5374 # Check whether --enable-bindings was given.
5375 if test "${enable_bindings+set}" = set; then
5376   enableval=$enable_bindings;
5377 else
5378   enableval=default
5379 fi
5380
5381 BINDINGS_TO_BUILD=""
5382 case "$enableval" in
5383   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5384   all ) BINDINGS_TO_BUILD="ocaml" ;;
5385   none | no) BINDINGS_TO_BUILD="" ;;
5386   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5387       case "$a_binding" in
5388         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5389         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5390 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5391    { (exit 1); exit 1; }; } ;;
5392       esac
5393   done
5394   ;;
5395 esac
5396
5397
5398 # Check whether --with-ocaml-libdir was given.
5399 if test "${with_ocaml_libdir+set}" = set; then
5400   withval=$with_ocaml_libdir;
5401 else
5402   withval=auto
5403 fi
5404
5405 case "$withval" in
5406   auto) with_ocaml_libdir="$withval" ;;
5407   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5408   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5409 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5410    { (exit 1); exit 1; }; } ;;
5411 esac
5412
5413
5414 # Check whether --with-clang-resource-dir was given.
5415 if test "${with_clang_resource_dir+set}" = set; then
5416   withval=$with_clang_resource_dir;
5417 else
5418   withval=""
5419 fi
5420
5421
5422 cat >>confdefs.h <<_ACEOF
5423 #define CLANG_RESOURCE_DIR "$withval"
5424 _ACEOF
5425
5426
5427
5428 # Check whether --with-c-include-dirs was given.
5429 if test "${with_c_include_dirs+set}" = set; then
5430   withval=$with_c_include_dirs;
5431 else
5432   withval=""
5433 fi
5434
5435
5436 cat >>confdefs.h <<_ACEOF
5437 #define C_INCLUDE_DIRS "$withval"
5438 _ACEOF
5439
5440
5441
5442 # Check whether --with-cxx-include-root was given.
5443 if test "${with_cxx_include_root+set}" = set; then
5444   withval=$with_cxx_include_root;
5445 else
5446   withval=""
5447 fi
5448
5449
5450 cat >>confdefs.h <<_ACEOF
5451 #define CXX_INCLUDE_ROOT "$withval"
5452 _ACEOF
5453
5454
5455
5456 # Check whether --with-cxx-include-arch was given.
5457 if test "${with_cxx_include_arch+set}" = set; then
5458   withval=$with_cxx_include_arch;
5459 else
5460   withval=""
5461 fi
5462
5463
5464 cat >>confdefs.h <<_ACEOF
5465 #define CXX_INCLUDE_ARCH "$withval"
5466 _ACEOF
5467
5468
5469
5470 # Check whether --with-cxx-include-32bit-dir was given.
5471 if test "${with_cxx_include_32bit_dir+set}" = set; then
5472   withval=$with_cxx_include_32bit_dir;
5473 else
5474   withval=""
5475 fi
5476
5477
5478 cat >>confdefs.h <<_ACEOF
5479 #define CXX_INCLUDE_32BIT_DIR "$withval"
5480 _ACEOF
5481
5482
5483
5484 # Check whether --with-cxx-include-64bit-dir was given.
5485 if test "${with_cxx_include_64bit_dir+set}" = set; then
5486   withval=$with_cxx_include_64bit_dir;
5487 else
5488   withval=""
5489 fi
5490
5491
5492 cat >>confdefs.h <<_ACEOF
5493 #define CXX_INCLUDE_64BIT_DIR "$withval"
5494 _ACEOF
5495
5496
5497
5498 # Check whether --with-binutils-include was given.
5499 if test "${with_binutils_include+set}" = set; then
5500   withval=$with_binutils_include;
5501 else
5502   withval=default
5503 fi
5504
5505 case "$withval" in
5506   default) WITH_BINUTILS_INCDIR=default ;;
5507   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5508   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5509 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5510    { (exit 1); exit 1; }; } ;;
5511 esac
5512 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5513   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5514
5515   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5516      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5517      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5518 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5519    { (exit 1); exit 1; }; };
5520   fi
5521 fi
5522
5523 # Check whether --enable-libffi was given.
5524 if test "${enable_libffi+set}" = set; then
5525   enableval=$enable_libffi; case "$enableval" in
5526     yes) llvm_cv_enable_libffi="yes" ;;
5527     no)  llvm_cv_enable_libffi="no"  ;;
5528     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5529 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5530    { (exit 1); exit 1; }; } ;;
5531   esac
5532 else
5533   llvm_cv_enable_libffi=no
5534 fi
5535
5536
5537
5538 ac_ext=c
5539 ac_cpp='$CPP $CPPFLAGS'
5540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5544 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5545 # On Suns, sometimes $CPP names a directory.
5546 if test -n "$CPP" && test -d "$CPP"; then
5547   CPP=
5548 fi
5549 if test -z "$CPP"; then
5550   if test "${ac_cv_prog_CPP+set}" = set; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553       # Double quotes because CPP needs to be expanded
5554     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5555     do
5556       ac_preproc_ok=false
5557 for ac_c_preproc_warn_flag in '' yes
5558 do
5559   # Use a header file that comes with gcc, so configuring glibc
5560   # with a fresh cross-compiler works.
5561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562   # <limits.h> exists even on freestanding compilers.
5563   # On the NeXT, cc -E runs the code through the compiler's parser,
5564   # not just through cpp. "Syntax error" is here to catch this case.
5565   cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h.  */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h.  */
5571 #ifdef __STDC__
5572 # include <limits.h>
5573 #else
5574 # include <assert.h>
5575 #endif
5576                      Syntax error
5577 _ACEOF
5578 if { (ac_try="$ac_cpp conftest.$ac_ext"
5579 case "(($ac_try" in
5580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581   *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5585   ac_status=$?
5586   grep -v '^ *+' conftest.er1 >conftest.err
5587   rm -f conftest.er1
5588   cat conftest.err >&5
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); } >/dev/null; then
5591   if test -s conftest.err; then
5592     ac_cpp_err=$ac_c_preproc_warn_flag
5593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5594   else
5595     ac_cpp_err=
5596   fi
5597 else
5598   ac_cpp_err=yes
5599 fi
5600 if test -z "$ac_cpp_err"; then
5601   :
5602 else
5603   echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606   # Broken: fails on valid input.
5607 continue
5608 fi
5609
5610 rm -f conftest.err conftest.$ac_ext
5611
5612   # OK, works on sane cases.  Now check whether nonexistent headers
5613   # can be detected and how.
5614   cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 #include <ac_nonexistent.h>
5621 _ACEOF
5622 if { (ac_try="$ac_cpp conftest.$ac_ext"
5623 case "(($ac_try" in
5624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625   *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5629   ac_status=$?
5630   grep -v '^ *+' conftest.er1 >conftest.err
5631   rm -f conftest.er1
5632   cat conftest.err >&5
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } >/dev/null; then
5635   if test -s conftest.err; then
5636     ac_cpp_err=$ac_c_preproc_warn_flag
5637     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5638   else
5639     ac_cpp_err=
5640   fi
5641 else
5642   ac_cpp_err=yes
5643 fi
5644 if test -z "$ac_cpp_err"; then
5645   # Broken: success on invalid input.
5646 continue
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651   # Passes both tests.
5652 ac_preproc_ok=:
5653 break
5654 fi
5655
5656 rm -f conftest.err conftest.$ac_ext
5657
5658 done
5659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5660 rm -f conftest.err conftest.$ac_ext
5661 if $ac_preproc_ok; then
5662   break
5663 fi
5664
5665     done
5666     ac_cv_prog_CPP=$CPP
5667
5668 fi
5669   CPP=$ac_cv_prog_CPP
5670 else
5671   ac_cv_prog_CPP=$CPP
5672 fi
5673 { echo "$as_me:$LINENO: result: $CPP" >&5
5674 echo "${ECHO_T}$CPP" >&6; }
5675 ac_preproc_ok=false
5676 for ac_c_preproc_warn_flag in '' yes
5677 do
5678   # Use a header file that comes with gcc, so configuring glibc
5679   # with a fresh cross-compiler works.
5680   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681   # <limits.h> exists even on freestanding compilers.
5682   # On the NeXT, cc -E runs the code through the compiler's parser,
5683   # not just through cpp. "Syntax error" is here to catch this case.
5684   cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 #ifdef __STDC__
5691 # include <limits.h>
5692 #else
5693 # include <assert.h>
5694 #endif
5695                      Syntax error
5696 _ACEOF
5697 if { (ac_try="$ac_cpp conftest.$ac_ext"
5698 case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } >/dev/null; then
5710   if test -s conftest.err; then
5711     ac_cpp_err=$ac_c_preproc_warn_flag
5712     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5713   else
5714     ac_cpp_err=
5715   fi
5716 else
5717   ac_cpp_err=yes
5718 fi
5719 if test -z "$ac_cpp_err"; then
5720   :
5721 else
5722   echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725   # Broken: fails on valid input.
5726 continue
5727 fi
5728
5729 rm -f conftest.err conftest.$ac_ext
5730
5731   # OK, works on sane cases.  Now check whether nonexistent headers
5732   # can be detected and how.
5733   cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h.  */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h.  */
5739 #include <ac_nonexistent.h>
5740 _ACEOF
5741 if { (ac_try="$ac_cpp conftest.$ac_ext"
5742 case "(($ac_try" in
5743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744   *) ac_try_echo=$ac_try;;
5745 esac
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5748   ac_status=$?
5749   grep -v '^ *+' conftest.er1 >conftest.err
5750   rm -f conftest.er1
5751   cat conftest.err >&5
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); } >/dev/null; then
5754   if test -s conftest.err; then
5755     ac_cpp_err=$ac_c_preproc_warn_flag
5756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5757   else
5758     ac_cpp_err=
5759   fi
5760 else
5761   ac_cpp_err=yes
5762 fi
5763 if test -z "$ac_cpp_err"; then
5764   # Broken: success on invalid input.
5765 continue
5766 else
5767   echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5769
5770   # Passes both tests.
5771 ac_preproc_ok=:
5772 break
5773 fi
5774
5775 rm -f conftest.err conftest.$ac_ext
5776
5777 done
5778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779 rm -f conftest.err conftest.$ac_ext
5780 if $ac_preproc_ok; then
5781   :
5782 else
5783   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5784 See \`config.log' for more details." >&5
5785 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5786 See \`config.log' for more details." >&2;}
5787    { (exit 1); exit 1; }; }
5788 fi
5789
5790 ac_ext=c
5791 ac_cpp='$CPP $CPPFLAGS'
5792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795
5796 ac_ext=c
5797 ac_cpp='$CPP $CPPFLAGS'
5798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5801 if test -n "$ac_tool_prefix"; then
5802   for ac_prog in gcc
5803   do
5804     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808 if test "${ac_cv_prog_CC+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   if test -n "$CC"; then
5812   ac_cv_prog_CC="$CC" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819   for ac_exec_ext in '' $ac_executable_extensions; do
5820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5821     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826 done
5827 IFS=$as_save_IFS
5828
5829 fi
5830 fi
5831 CC=$ac_cv_prog_CC
5832 if test -n "$CC"; then
5833   { echo "$as_me:$LINENO: result: $CC" >&5
5834 echo "${ECHO_T}$CC" >&6; }
5835 else
5836   { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5838 fi
5839
5840
5841     test -n "$CC" && break
5842   done
5843 fi
5844 if test -z "$CC"; then
5845   ac_ct_CC=$CC
5846   for ac_prog in gcc
5847 do
5848   # Extract the first word of "$ac_prog", so it can be a program name with args.
5849 set dummy $ac_prog; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   if test -n "$ac_ct_CC"; then
5856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_prog_ac_ct_CC="$ac_prog"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5876 if test -n "$ac_ct_CC"; then
5877   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5878 echo "${ECHO_T}$ac_ct_CC" >&6; }
5879 else
5880   { echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6; }
5882 fi
5883
5884
5885   test -n "$ac_ct_CC" && break
5886 done
5887
5888   if test "x$ac_ct_CC" = x; then
5889     CC=""
5890   else
5891     case $cross_compiling:$ac_tool_warned in
5892 yes:)
5893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5894 whose name does not start with the host triplet.  If you think this
5895 configuration is useful to you, please write to autoconf@gnu.org." >&5
5896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5897 whose name does not start with the host triplet.  If you think this
5898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5899 ac_tool_warned=yes ;;
5900 esac
5901     CC=$ac_ct_CC
5902   fi
5903 fi
5904
5905
5906 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5907 See \`config.log' for more details." >&5
5908 echo "$as_me: error: no acceptable C compiler found in \$PATH
5909 See \`config.log' for more details." >&2;}
5910    { (exit 1); exit 1; }; }
5911
5912 # Provide some information about the compiler.
5913 echo "$as_me:$LINENO: checking for C compiler version" >&5
5914 ac_compiler=`set X $ac_compile; echo $2`
5915 { (ac_try="$ac_compiler --version >&5"
5916 case "(($ac_try" in
5917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918   *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921   (eval "$ac_compiler --version >&5") 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); }
5925 { (ac_try="$ac_compiler -v >&5"
5926 case "(($ac_try" in
5927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928   *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931   (eval "$ac_compiler -v >&5") 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); }
5935 { (ac_try="$ac_compiler -V >&5"
5936 case "(($ac_try" in
5937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938   *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941   (eval "$ac_compiler -V >&5") 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }
5945
5946 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5947 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h.  */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h.  */
5957
5958 int
5959 main ()
5960 {
5961 #ifndef __GNUC__
5962        choke me
5963 #endif
5964
5965   ;
5966   return 0;
5967 }
5968 _ACEOF
5969 rm -f conftest.$ac_objext
5970 if { (ac_try="$ac_compile"
5971 case "(($ac_try" in
5972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973   *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976   (eval "$ac_compile") 2>conftest.er1
5977   ac_status=$?
5978   grep -v '^ *+' conftest.er1 >conftest.err
5979   rm -f conftest.er1
5980   cat conftest.err >&5
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } &&
5983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984   { (case "(($ac_try" in
5985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986   *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989   (eval "$ac_try") 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; } &&
5993          { ac_try='test -s conftest.$ac_objext'
5994   { (case "(($ac_try" in
5995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996   *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999   (eval "$ac_try") 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; }; then
6003   ac_compiler_gnu=yes
6004 else
6005   echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6007
6008         ac_compiler_gnu=no
6009 fi
6010
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6013
6014 fi
6015 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6016 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6017 GCC=`test $ac_compiler_gnu = yes && echo yes`
6018 ac_test_CFLAGS=${CFLAGS+set}
6019 ac_save_CFLAGS=$CFLAGS
6020 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6021 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6022 if test "${ac_cv_prog_cc_g+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   ac_save_c_werror_flag=$ac_c_werror_flag
6026    ac_c_werror_flag=yes
6027    ac_cv_prog_cc_g=no
6028    CFLAGS="-g"
6029    cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h.  */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h.  */
6035
6036 int
6037 main ()
6038 {
6039
6040   ;
6041   return 0;
6042 }
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6046 case "(($ac_try" in
6047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048   *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051   (eval "$ac_compile") 2>conftest.er1
6052   ac_status=$?
6053   grep -v '^ *+' conftest.er1 >conftest.err
6054   rm -f conftest.er1
6055   cat conftest.err >&5
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); } &&
6058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6059   { (case "(($ac_try" in
6060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061   *) ac_try_echo=$ac_try;;
6062 esac
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064   (eval "$ac_try") 2>&5
6065   ac_status=$?
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); }; } &&
6068          { ac_try='test -s conftest.$ac_objext'
6069   { (case "(($ac_try" in
6070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071   *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074   (eval "$ac_try") 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }; }; then
6078   ac_cv_prog_cc_g=yes
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083         CFLAGS=""
6084       cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h.  */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h.  */
6090
6091 int
6092 main ()
6093 {
6094
6095   ;
6096   return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext
6100 if { (ac_try="$ac_compile"
6101 case "(($ac_try" in
6102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103   *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106   (eval "$ac_compile") 2>conftest.er1
6107   ac_status=$?
6108   grep -v '^ *+' conftest.er1 >conftest.err
6109   rm -f conftest.er1
6110   cat conftest.err >&5
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } &&
6113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6114   { (case "(($ac_try" in
6115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116   *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119   (eval "$ac_try") 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; } &&
6123          { ac_try='test -s conftest.$ac_objext'
6124   { (case "(($ac_try" in
6125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126   *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129   (eval "$ac_try") 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; }; then
6133   :
6134 else
6135   echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138         ac_c_werror_flag=$ac_save_c_werror_flag
6139          CFLAGS="-g"
6140          cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h.  */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h.  */
6146
6147 int
6148 main ()
6149 {
6150
6151   ;
6152   return 0;
6153 }
6154 _ACEOF
6155 rm -f conftest.$ac_objext
6156 if { (ac_try="$ac_compile"
6157 case "(($ac_try" in
6158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159   *) ac_try_echo=$ac_try;;
6160 esac
6161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162   (eval "$ac_compile") 2>conftest.er1
6163   ac_status=$?
6164   grep -v '^ *+' conftest.er1 >conftest.err
6165   rm -f conftest.er1
6166   cat conftest.err >&5
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } &&
6169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6170   { (case "(($ac_try" in
6171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172   *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175   (eval "$ac_try") 2>&5
6176   ac_status=$?
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); }; } &&
6179          { ac_try='test -s conftest.$ac_objext'
6180   { (case "(($ac_try" in
6181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182   *) ac_try_echo=$ac_try;;
6183 esac
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185   (eval "$ac_try") 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; }; then
6189   ac_cv_prog_cc_g=yes
6190 else
6191   echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194
6195 fi
6196
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 fi
6199
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 fi
6202
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204    ac_c_werror_flag=$ac_save_c_werror_flag
6205 fi
6206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6207 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6208 if test "$ac_test_CFLAGS" = set; then
6209   CFLAGS=$ac_save_CFLAGS
6210 elif test $ac_cv_prog_cc_g = yes; then
6211   if test "$GCC" = yes; then
6212     CFLAGS="-g -O2"
6213   else
6214     CFLAGS="-g"
6215   fi
6216 else
6217   if test "$GCC" = yes; then
6218     CFLAGS="-O2"
6219   else
6220     CFLAGS=
6221   fi
6222 fi
6223 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6224 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_cc_c89+set}" = set; then
6226   echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228   ac_cv_prog_cc_c89=no
6229 ac_save_CC=$CC
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h.  */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h.  */
6236 #include <stdarg.h>
6237 #include <stdio.h>
6238 #include <sys/types.h>
6239 #include <sys/stat.h>
6240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6241 struct buf { int x; };
6242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6243 static char *e (p, i)
6244      char **p;
6245      int i;
6246 {
6247   return p[i];
6248 }
6249 static char *f (char * (*g) (char **, int), char **p, ...)
6250 {
6251   char *s;
6252   va_list v;
6253   va_start (v,p);
6254   s = g (p, va_arg (v,int));
6255   va_end (v);
6256   return s;
6257 }
6258
6259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6260    function prototypes and stuff, but not '\xHH' hex character constants.
6261    These don't provoke an error unfortunately, instead are silently treated
6262    as 'x'.  The following induces an error, until -std is added to get
6263    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6264    array size at least.  It's necessary to write '\x00'==0 to get something
6265    that's true only with -std.  */
6266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6267
6268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6269    inside strings and character constants.  */
6270 #define FOO(x) 'x'
6271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6272
6273 int test (int i, double x);
6274 struct s1 {int (*f) (int a);};
6275 struct s2 {int (*f) (double a);};
6276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6277 int argc;
6278 char **argv;
6279 int
6280 main ()
6281 {
6282 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6283   ;
6284   return 0;
6285 }
6286 _ACEOF
6287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6288         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6289 do
6290   CC="$ac_save_CC $ac_arg"
6291   rm -f conftest.$ac_objext
6292 if { (ac_try="$ac_compile"
6293 case "(($ac_try" in
6294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295   *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298   (eval "$ac_compile") 2>conftest.er1
6299   ac_status=$?
6300   grep -v '^ *+' conftest.er1 >conftest.err
6301   rm -f conftest.er1
6302   cat conftest.err >&5
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } &&
6305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6306   { (case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_try") 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; } &&
6315          { ac_try='test -s conftest.$ac_objext'
6316   { (case "(($ac_try" in
6317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318   *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321   (eval "$ac_try") 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); }; }; then
6325   ac_cv_prog_cc_c89=$ac_arg
6326 else
6327   echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330
6331 fi
6332
6333 rm -f core conftest.err conftest.$ac_objext
6334   test "x$ac_cv_prog_cc_c89" != "xno" && break
6335 done
6336 rm -f conftest.$ac_ext
6337 CC=$ac_save_CC
6338
6339 fi
6340 # AC_CACHE_VAL
6341 case "x$ac_cv_prog_cc_c89" in
6342   x)
6343     { echo "$as_me:$LINENO: result: none needed" >&5
6344 echo "${ECHO_T}none needed" >&6; } ;;
6345   xno)
6346     { echo "$as_me:$LINENO: result: unsupported" >&5
6347 echo "${ECHO_T}unsupported" >&6; } ;;
6348   *)
6349     CC="$CC $ac_cv_prog_cc_c89"
6350     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6351 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6352 esac
6353
6354
6355 ac_ext=c
6356 ac_cpp='$CPP $CPPFLAGS'
6357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6360
6361 ac_ext=cpp
6362 ac_cpp='$CXXCPP $CPPFLAGS'
6363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6366 if test -z "$CXX"; then
6367   if test -n "$CCC"; then
6368     CXX=$CCC
6369   else
6370     if test -n "$ac_tool_prefix"; then
6371   for ac_prog in g++
6372   do
6373     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6377 if test "${ac_cv_prog_CXX+set}" = set; then
6378   echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380   if test -n "$CXX"; then
6381   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386   IFS=$as_save_IFS
6387   test -z "$as_dir" && as_dir=.
6388   for ac_exec_ext in '' $ac_executable_extensions; do
6389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6390     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392     break 2
6393   fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6397
6398 fi
6399 fi
6400 CXX=$ac_cv_prog_CXX
6401 if test -n "$CXX"; then
6402   { echo "$as_me:$LINENO: result: $CXX" >&5
6403 echo "${ECHO_T}$CXX" >&6; }
6404 else
6405   { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6407 fi
6408
6409
6410     test -n "$CXX" && break
6411   done
6412 fi
6413 if test -z "$CXX"; then
6414   ac_ct_CXX=$CXX
6415   for ac_prog in g++
6416 do
6417   # Extract the first word of "$ac_prog", so it can be a program name with args.
6418 set dummy $ac_prog; ac_word=$2
6419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6421 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6422   echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424   if test -n "$ac_ct_CXX"; then
6425   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432   for ac_exec_ext in '' $ac_executable_extensions; do
6433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6434     ac_cv_prog_ac_ct_CXX="$ac_prog"
6435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436     break 2
6437   fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6445 if test -n "$ac_ct_CXX"; then
6446   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6447 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6448 else
6449   { echo "$as_me:$LINENO: result: no" >&5
6450 echo "${ECHO_T}no" >&6; }
6451 fi
6452
6453
6454   test -n "$ac_ct_CXX" && break
6455 done
6456
6457   if test "x$ac_ct_CXX" = x; then
6458     CXX="g++"
6459   else
6460     case $cross_compiling:$ac_tool_warned in
6461 yes:)
6462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6463 whose name does not start with the host triplet.  If you think this
6464 configuration is useful to you, please write to autoconf@gnu.org." >&5
6465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6466 whose name does not start with the host triplet.  If you think this
6467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470     CXX=$ac_ct_CXX
6471   fi
6472 fi
6473
6474   fi
6475 fi
6476 # Provide some information about the compiler.
6477 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6478 ac_compiler=`set X $ac_compile; echo $2`
6479 { (ac_try="$ac_compiler --version >&5"
6480 case "(($ac_try" in
6481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482   *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485   (eval "$ac_compiler --version >&5") 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }
6489 { (ac_try="$ac_compiler -v >&5"
6490 case "(($ac_try" in
6491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492   *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495   (eval "$ac_compiler -v >&5") 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }
6499 { (ac_try="$ac_compiler -V >&5"
6500 case "(($ac_try" in
6501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502   *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505   (eval "$ac_compiler -V >&5") 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }
6509
6510 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6511 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6512 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h.  */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h.  */
6521
6522 int
6523 main ()
6524 {
6525 #ifndef __GNUC__
6526        choke me
6527 #endif
6528
6529   ;
6530   return 0;
6531 }
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6535 case "(($ac_try" in
6536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537   *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540   (eval "$ac_compile") 2>conftest.er1
6541   ac_status=$?
6542   grep -v '^ *+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
6544   cat conftest.err >&5
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } &&
6547          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6548   { (case "(($ac_try" in
6549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550   *) ac_try_echo=$ac_try;;
6551 esac
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553   (eval "$ac_try") 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; } &&
6557          { ac_try='test -s conftest.$ac_objext'
6558   { (case "(($ac_try" in
6559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560   *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563   (eval "$ac_try") 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; }; then
6567   ac_compiler_gnu=yes
6568 else
6569   echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6571
6572         ac_compiler_gnu=no
6573 fi
6574
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6577
6578 fi
6579 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6580 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6581 GXX=`test $ac_compiler_gnu = yes && echo yes`
6582 ac_test_CXXFLAGS=${CXXFLAGS+set}
6583 ac_save_CXXFLAGS=$CXXFLAGS
6584 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6585 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6586 if test "${ac_cv_prog_cxx_g+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6590    ac_cxx_werror_flag=yes
6591    ac_cv_prog_cxx_g=no
6592    CXXFLAGS="-g"
6593    cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h.  */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h.  */
6599
6600 int
6601 main ()
6602 {
6603
6604   ;
6605   return 0;
6606 }
6607 _ACEOF
6608 rm -f conftest.$ac_objext
6609 if { (ac_try="$ac_compile"
6610 case "(($ac_try" in
6611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612   *) ac_try_echo=$ac_try;;
6613 esac
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615   (eval "$ac_compile") 2>conftest.er1
6616   ac_status=$?
6617   grep -v '^ *+' conftest.er1 >conftest.err
6618   rm -f conftest.er1
6619   cat conftest.err >&5
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); } &&
6622          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6623   { (case "(($ac_try" in
6624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625   *) ac_try_echo=$ac_try;;
6626 esac
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628   (eval "$ac_try") 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); }; } &&
6632          { ac_try='test -s conftest.$ac_objext'
6633   { (case "(($ac_try" in
6634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635   *) ac_try_echo=$ac_try;;
6636 esac
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638   (eval "$ac_try") 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; }; then
6642   ac_cv_prog_cxx_g=yes
6643 else
6644   echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647         CXXFLAGS=""
6648       cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h.  */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h.  */
6654
6655 int
6656 main ()
6657 {
6658
6659   ;
6660   return 0;
6661 }
6662 _ACEOF
6663 rm -f conftest.$ac_objext
6664 if { (ac_try="$ac_compile"
6665 case "(($ac_try" in
6666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667   *) ac_try_echo=$ac_try;;
6668 esac
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670   (eval "$ac_compile") 2>conftest.er1
6671   ac_status=$?
6672   grep -v '^ *+' conftest.er1 >conftest.err
6673   rm -f conftest.er1
6674   cat conftest.err >&5
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); } &&
6677          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6678   { (case "(($ac_try" in
6679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680   *) ac_try_echo=$ac_try;;
6681 esac
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683   (eval "$ac_try") 2>&5
6684   ac_status=$?
6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); }; } &&
6687          { ac_try='test -s conftest.$ac_objext'
6688   { (case "(($ac_try" in
6689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690   *) ac_try_echo=$ac_try;;
6691 esac
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693   (eval "$ac_try") 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); }; }; then
6697   :
6698 else
6699   echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6701
6702         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6703          CXXFLAGS="-g"
6704          cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h.  */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h.  */
6710
6711 int
6712 main ()
6713 {
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6721 case "(($ac_try" in
6722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723   *) ac_try_echo=$ac_try;;
6724 esac
6725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726   (eval "$ac_compile") 2>conftest.er1
6727   ac_status=$?
6728   grep -v '^ *+' conftest.er1 >conftest.err
6729   rm -f conftest.er1
6730   cat conftest.err >&5
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } &&
6733          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6734   { (case "(($ac_try" in
6735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736   *) ac_try_echo=$ac_try;;
6737 esac
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739   (eval "$ac_try") 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); }; } &&
6743          { ac_try='test -s conftest.$ac_objext'
6744   { (case "(($ac_try" in
6745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746   *) ac_try_echo=$ac_try;;
6747 esac
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749   (eval "$ac_try") 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); }; }; then
6753   ac_cv_prog_cxx_g=yes
6754 else
6755   echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6757
6758
6759 fi
6760
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 fi
6763
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 fi
6766
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6769 fi
6770 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6771 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6772 if test "$ac_test_CXXFLAGS" = set; then
6773   CXXFLAGS=$ac_save_CXXFLAGS
6774 elif test $ac_cv_prog_cxx_g = yes; then
6775   if test "$GXX" = yes; then
6776     CXXFLAGS="-g -O2"
6777   else
6778     CXXFLAGS="-g"
6779   fi
6780 else
6781   if test "$GXX" = yes; then
6782     CXXFLAGS="-O2"
6783   else
6784     CXXFLAGS=
6785   fi
6786 fi
6787 ac_ext=c
6788 ac_cpp='$CPP $CPPFLAGS'
6789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792
6793
6794 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6795 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6796 if test "${lt_cv_path_NM+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   if test -n "$NM"; then
6800   # Let the user override the test.
6801   lt_cv_path_NM="$NM"
6802 else
6803   lt_nm_to_check="${ac_tool_prefix}nm"
6804   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6805     lt_nm_to_check="$lt_nm_to_check nm"
6806   fi
6807   for lt_tmp_nm in $lt_nm_to_check; do
6808     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6809     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6810       IFS="$lt_save_ifs"
6811       test -z "$ac_dir" && ac_dir=.
6812       tmp_nm="$ac_dir/$lt_tmp_nm"
6813       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6814         # Check to see if the nm accepts a BSD-compat flag.
6815         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6816         #   nm: unknown option "B" ignored
6817         # Tru64's nm complains that /dev/null is an invalid object file
6818         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6819         */dev/null* | *'Invalid file or object type'*)
6820           lt_cv_path_NM="$tmp_nm -B"
6821           break
6822           ;;
6823         *)
6824           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6825           */dev/null*)
6826             lt_cv_path_NM="$tmp_nm -p"
6827             break
6828             ;;
6829           *)
6830             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6831             continue # so that we can try to find one that supports BSD flags
6832             ;;
6833           esac
6834           ;;
6835         esac
6836       fi
6837     done
6838     IFS="$lt_save_ifs"
6839   done
6840   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6841 fi
6842 fi
6843 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6844 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6845 NM="$lt_cv_path_NM"
6846
6847
6848
6849 { echo "$as_me:$LINENO: checking for GNU make" >&5
6850 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6851 if test "${llvm_cv_gnu_make_command+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   llvm_cv_gnu_make_command=''
6855  for a in "$MAKE" make gmake gnumake ; do
6856   if test -z "$a" ; then continue ; fi ;
6857   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6858   then
6859    llvm_cv_gnu_make_command=$a ;
6860    break;
6861   fi
6862  done
6863 fi
6864 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6865 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6866  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6867    ifGNUmake='' ;
6868  else
6869    ifGNUmake='#' ;
6870    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6871 echo "${ECHO_T}\"Not found\"" >&6; };
6872  fi
6873
6874
6875 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6876 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6877 LN_S=$as_ln_s
6878 if test "$LN_S" = "ln -s"; then
6879   { echo "$as_me:$LINENO: result: yes" >&5
6880 echo "${ECHO_T}yes" >&6; }
6881 else
6882   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6883 echo "${ECHO_T}no, using $LN_S" >&6; }
6884 fi
6885
6886 # Extract the first word of "cmp", so it can be a program name with args.
6887 set dummy cmp; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_path_CMP+set}" = set; then
6891   echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893   case $CMP in
6894   [\\/]* | ?:[\\/]*)
6895   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6896   ;;
6897   *)
6898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901   IFS=$as_save_IFS
6902   test -z "$as_dir" && as_dir=.
6903   for ac_exec_ext in '' $ac_executable_extensions; do
6904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907     break 2
6908   fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6914   ;;
6915 esac
6916 fi
6917 CMP=$ac_cv_path_CMP
6918 if test -n "$CMP"; then
6919   { echo "$as_me:$LINENO: result: $CMP" >&5
6920 echo "${ECHO_T}$CMP" >&6; }
6921 else
6922   { echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6; }
6924 fi
6925
6926
6927 # Extract the first word of "cp", so it can be a program name with args.
6928 set dummy cp; 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_CP+set}" = set; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934   case $CP in
6935   [\\/]* | ?:[\\/]*)
6936   ac_cv_path_CP="$CP" # 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_CP="$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_CP" && ac_cv_path_CP="cp"
6955   ;;
6956 esac
6957 fi
6958 CP=$ac_cv_path_CP
6959 if test -n "$CP"; then
6960   { echo "$as_me:$LINENO: result: $CP" >&5
6961 echo "${ECHO_T}$CP" >&6; }
6962 else
6963   { echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6; }
6965 fi
6966
6967
6968 # Extract the first word of "date", so it can be a program name with args.
6969 set dummy date; ac_word=$2
6970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972 if test "${ac_cv_path_DATE+set}" = set; then
6973   echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975   case $DATE in
6976   [\\/]* | ?:[\\/]*)
6977   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6978   ;;
6979   *)
6980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6982 do
6983   IFS=$as_save_IFS
6984   test -z "$as_dir" && as_dir=.
6985   for ac_exec_ext in '' $ac_executable_extensions; do
6986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6987     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989     break 2
6990   fi
6991 done
6992 done
6993 IFS=$as_save_IFS
6994
6995   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6996   ;;
6997 esac
6998 fi
6999 DATE=$ac_cv_path_DATE
7000 if test -n "$DATE"; then
7001   { echo "$as_me:$LINENO: result: $DATE" >&5
7002 echo "${ECHO_T}$DATE" >&6; }
7003 else
7004   { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7006 fi
7007
7008
7009 # Extract the first word of "find", so it can be a program name with args.
7010 set dummy find; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_path_FIND+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016   case $FIND in
7017   [\\/]* | ?:[\\/]*)
7018   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7019   ;;
7020   *)
7021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024   IFS=$as_save_IFS
7025   test -z "$as_dir" && as_dir=.
7026   for ac_exec_ext in '' $ac_executable_extensions; do
7027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7028     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030     break 2
7031   fi
7032 done
7033 done
7034 IFS=$as_save_IFS
7035
7036   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7037   ;;
7038 esac
7039 fi
7040 FIND=$ac_cv_path_FIND
7041 if test -n "$FIND"; then
7042   { echo "$as_me:$LINENO: result: $FIND" >&5
7043 echo "${ECHO_T}$FIND" >&6; }
7044 else
7045   { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7047 fi
7048
7049
7050 # Extract the first word of "grep", so it can be a program name with args.
7051 set dummy grep; ac_word=$2
7052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054 if test "${ac_cv_path_GREP+set}" = set; then
7055   echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057   case $GREP in
7058   [\\/]* | ?:[\\/]*)
7059   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7060   ;;
7061   *)
7062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067   for ac_exec_ext in '' $ac_executable_extensions; do
7068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7069     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074 done
7075 IFS=$as_save_IFS
7076
7077   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7078   ;;
7079 esac
7080 fi
7081 GREP=$ac_cv_path_GREP
7082 if test -n "$GREP"; then
7083   { echo "$as_me:$LINENO: result: $GREP" >&5
7084 echo "${ECHO_T}$GREP" >&6; }
7085 else
7086   { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7088 fi
7089
7090
7091 # Extract the first word of "mkdir", so it can be a program name with args.
7092 set dummy mkdir; ac_word=$2
7093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095 if test "${ac_cv_path_MKDIR+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   case $MKDIR in
7099   [\\/]* | ?:[\\/]*)
7100   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7101   ;;
7102   *)
7103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108   for ac_exec_ext in '' $ac_executable_extensions; do
7109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112     break 2
7113   fi
7114 done
7115 done
7116 IFS=$as_save_IFS
7117
7118   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7119   ;;
7120 esac
7121 fi
7122 MKDIR=$ac_cv_path_MKDIR
7123 if test -n "$MKDIR"; then
7124   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7125 echo "${ECHO_T}$MKDIR" >&6; }
7126 else
7127   { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7129 fi
7130
7131
7132 # Extract the first word of "mv", so it can be a program name with args.
7133 set dummy mv; ac_word=$2
7134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136 if test "${ac_cv_path_MV+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   case $MV in
7140   [\\/]* | ?:[\\/]*)
7141   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7142   ;;
7143   *)
7144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149   for ac_exec_ext in '' $ac_executable_extensions; do
7150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7160   ;;
7161 esac
7162 fi
7163 MV=$ac_cv_path_MV
7164 if test -n "$MV"; then
7165   { echo "$as_me:$LINENO: result: $MV" >&5
7166 echo "${ECHO_T}$MV" >&6; }
7167 else
7168   { echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6; }
7170 fi
7171
7172
7173 if test -n "$ac_tool_prefix"; then
7174   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178 if test "${ac_cv_prog_RANLIB+set}" = set; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181   if test -n "$RANLIB"; then
7182   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189   for ac_exec_ext in '' $ac_executable_extensions; do
7190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198
7199 fi
7200 fi
7201 RANLIB=$ac_cv_prog_RANLIB
7202 if test -n "$RANLIB"; then
7203   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7204 echo "${ECHO_T}$RANLIB" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210
7211 fi
7212 if test -z "$ac_cv_prog_RANLIB"; then
7213   ac_ct_RANLIB=$RANLIB
7214   # Extract the first word of "ranlib", so it can be a program name with args.
7215 set dummy ranlib; ac_word=$2
7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   if test -n "$ac_ct_RANLIB"; then
7222   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229   for ac_exec_ext in '' $ac_executable_extensions; do
7230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231     ac_cv_prog_ac_ct_RANLIB="ranlib"
7232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236 done
7237 IFS=$as_save_IFS
7238
7239 fi
7240 fi
7241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7242 if test -n "$ac_ct_RANLIB"; then
7243   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7244 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7245 else
7246   { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7248 fi
7249
7250   if test "x$ac_ct_RANLIB" = x; then
7251     RANLIB=":"
7252   else
7253     case $cross_compiling:$ac_tool_warned in
7254 yes:)
7255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7256 whose name does not start with the host triplet.  If you think this
7257 configuration is useful to you, please write to autoconf@gnu.org." >&5
7258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7259 whose name does not start with the host triplet.  If you think this
7260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7261 ac_tool_warned=yes ;;
7262 esac
7263     RANLIB=$ac_ct_RANLIB
7264   fi
7265 else
7266   RANLIB="$ac_cv_prog_RANLIB"
7267 fi
7268
7269 if test -n "$ac_tool_prefix"; then
7270   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7271 set dummy ${ac_tool_prefix}ar; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_prog_AR+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277   if test -n "$AR"; then
7278   ac_cv_prog_AR="$AR" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283   IFS=$as_save_IFS
7284   test -z "$as_dir" && as_dir=.
7285   for ac_exec_ext in '' $ac_executable_extensions; do
7286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7287     ac_cv_prog_AR="${ac_tool_prefix}ar"
7288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290   fi
7291 done
7292 done
7293 IFS=$as_save_IFS
7294
7295 fi
7296 fi
7297 AR=$ac_cv_prog_AR
7298 if test -n "$AR"; then
7299   { echo "$as_me:$LINENO: result: $AR" >&5
7300 echo "${ECHO_T}$AR" >&6; }
7301 else
7302   { echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6; }
7304 fi
7305
7306
7307 fi
7308 if test -z "$ac_cv_prog_AR"; then
7309   ac_ct_AR=$AR
7310   # Extract the first word of "ar", so it can be a program name with args.
7311 set dummy ar; ac_word=$2
7312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7315   echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317   if test -n "$ac_ct_AR"; then
7318   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323   IFS=$as_save_IFS
7324   test -z "$as_dir" && as_dir=.
7325   for ac_exec_ext in '' $ac_executable_extensions; do
7326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7327     ac_cv_prog_ac_ct_AR="ar"
7328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329     break 2
7330   fi
7331 done
7332 done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7338 if test -n "$ac_ct_AR"; then
7339   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7340 echo "${ECHO_T}$ac_ct_AR" >&6; }
7341 else
7342   { echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6; }
7344 fi
7345
7346   if test "x$ac_ct_AR" = x; then
7347     AR="false"
7348   else
7349     case $cross_compiling:$ac_tool_warned in
7350 yes:)
7351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7352 whose name does not start with the host triplet.  If you think this
7353 configuration is useful to you, please write to autoconf@gnu.org." >&5
7354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7355 whose name does not start with the host triplet.  If you think this
7356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7357 ac_tool_warned=yes ;;
7358 esac
7359     AR=$ac_ct_AR
7360   fi
7361 else
7362   AR="$ac_cv_prog_AR"
7363 fi
7364
7365 # Extract the first word of "rm", so it can be a program name with args.
7366 set dummy rm; ac_word=$2
7367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369 if test "${ac_cv_path_RM+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372   case $RM in
7373   [\\/]* | ?:[\\/]*)
7374   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7375   ;;
7376   *)
7377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380   IFS=$as_save_IFS
7381   test -z "$as_dir" && as_dir=.
7382   for ac_exec_ext in '' $ac_executable_extensions; do
7383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7384     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386     break 2
7387   fi
7388 done
7389 done
7390 IFS=$as_save_IFS
7391
7392   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7393   ;;
7394 esac
7395 fi
7396 RM=$ac_cv_path_RM
7397 if test -n "$RM"; then
7398   { echo "$as_me:$LINENO: result: $RM" >&5
7399 echo "${ECHO_T}$RM" >&6; }
7400 else
7401   { echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6; }
7403 fi
7404
7405
7406 # Extract the first word of "sed", so it can be a program name with args.
7407 set dummy sed; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_SED+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   case $SED in
7414   [\\/]* | ?:[\\/]*)
7415   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7416   ;;
7417   *)
7418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423   for ac_exec_ext in '' $ac_executable_extensions; do
7424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430 done
7431 IFS=$as_save_IFS
7432
7433   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7434   ;;
7435 esac
7436 fi
7437 SED=$ac_cv_path_SED
7438 if test -n "$SED"; then
7439   { echo "$as_me:$LINENO: result: $SED" >&5
7440 echo "${ECHO_T}$SED" >&6; }
7441 else
7442   { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7444 fi
7445
7446
7447 # Extract the first word of "tar", so it can be a program name with args.
7448 set dummy tar; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_TAR+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   case $TAR in
7455   [\\/]* | ?:[\\/]*)
7456   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7457   ;;
7458   *)
7459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7475   ;;
7476 esac
7477 fi
7478 TAR=$ac_cv_path_TAR
7479 if test -n "$TAR"; then
7480   { echo "$as_me:$LINENO: result: $TAR" >&5
7481 echo "${ECHO_T}$TAR" >&6; }
7482 else
7483   { echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6; }
7485 fi
7486
7487
7488 # Extract the first word of "pwd", so it can be a program name with args.
7489 set dummy pwd; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_BINPWD+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   case $BINPWD in
7496   [\\/]* | ?:[\\/]*)
7497   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7498   ;;
7499   *)
7500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505   for ac_exec_ext in '' $ac_executable_extensions; do
7506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7516   ;;
7517 esac
7518 fi
7519 BINPWD=$ac_cv_path_BINPWD
7520 if test -n "$BINPWD"; then
7521   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7522 echo "${ECHO_T}$BINPWD" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528
7529
7530 # Extract the first word of "Graphviz", so it can be a program name with args.
7531 set dummy Graphviz; ac_word=$2
7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   case $GRAPHVIZ in
7538   [\\/]* | ?:[\\/]*)
7539   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7540   ;;
7541   *)
7542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545   IFS=$as_save_IFS
7546   test -z "$as_dir" && as_dir=.
7547   for ac_exec_ext in '' $ac_executable_extensions; do
7548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551     break 2
7552   fi
7553 done
7554 done
7555 IFS=$as_save_IFS
7556
7557   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7558   ;;
7559 esac
7560 fi
7561 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7562 if test -n "$GRAPHVIZ"; then
7563   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7564 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7565 else
7566   { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7568 fi
7569
7570
7571 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7572
7573 cat >>confdefs.h <<\_ACEOF
7574 #define HAVE_GRAPHVIZ 1
7575 _ACEOF
7576
7577     if test "$llvm_cv_os_type" = "MingW" ; then
7578     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7579   fi
7580
7581 cat >>confdefs.h <<_ACEOF
7582 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7583 _ACEOF
7584
7585 fi
7586 # Extract the first word of "dot", so it can be a program name with args.
7587 set dummy dot; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_DOT+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   case $DOT in
7594   [\\/]* | ?:[\\/]*)
7595   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7596   ;;
7597   *)
7598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7614   ;;
7615 esac
7616 fi
7617 DOT=$ac_cv_path_DOT
7618 if test -n "$DOT"; then
7619   { echo "$as_me:$LINENO: result: $DOT" >&5
7620 echo "${ECHO_T}$DOT" >&6; }
7621 else
7622   { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7624 fi
7625
7626
7627 if test "$DOT" != "echo dot" ; then
7628
7629 cat >>confdefs.h <<\_ACEOF
7630 #define HAVE_DOT 1
7631 _ACEOF
7632
7633     if test "$llvm_cv_os_type" = "MingW" ; then
7634     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7635   fi
7636
7637 cat >>confdefs.h <<_ACEOF
7638 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7639 _ACEOF
7640
7641 fi
7642 # Extract the first word of "fdp", so it can be a program name with args.
7643 set dummy fdp; 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_FDP+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649   case $FDP in
7650   [\\/]* | ?:[\\/]*)
7651   ac_cv_path_FDP="$FDP" # 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_FDP="$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   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7670   ;;
7671 esac
7672 fi
7673 FDP=$ac_cv_path_FDP
7674 if test -n "$FDP"; then
7675   { echo "$as_me:$LINENO: result: $FDP" >&5
7676 echo "${ECHO_T}$FDP" >&6; }
7677 else
7678   { echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6; }
7680 fi
7681
7682
7683 if test "$FDP" != "echo fdp" ; then
7684
7685 cat >>confdefs.h <<\_ACEOF
7686 #define HAVE_FDP 1
7687 _ACEOF
7688
7689     if test "$llvm_cv_os_type" = "MingW" ; then
7690     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7691   fi
7692
7693 cat >>confdefs.h <<_ACEOF
7694 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7695 _ACEOF
7696
7697 fi
7698 # Extract the first word of "neato", so it can be a program name with args.
7699 set dummy neato; ac_word=$2
7700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7702 if test "${ac_cv_path_NEATO+set}" = set; then
7703   echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705   case $NEATO in
7706   [\\/]* | ?:[\\/]*)
7707   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7708   ;;
7709   *)
7710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715   for ac_exec_ext in '' $ac_executable_extensions; do
7716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7717     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719     break 2
7720   fi
7721 done
7722 done
7723 IFS=$as_save_IFS
7724
7725   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7726   ;;
7727 esac
7728 fi
7729 NEATO=$ac_cv_path_NEATO
7730 if test -n "$NEATO"; then
7731   { echo "$as_me:$LINENO: result: $NEATO" >&5
7732 echo "${ECHO_T}$NEATO" >&6; }
7733 else
7734   { echo "$as_me:$LINENO: result: no" >&5
7735 echo "${ECHO_T}no" >&6; }
7736 fi
7737
7738
7739 if test "$NEATO" != "echo neato" ; then
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_NEATO 1
7743 _ACEOF
7744
7745     if test "$llvm_cv_os_type" = "MingW" ; then
7746     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7747   fi
7748
7749 cat >>confdefs.h <<_ACEOF
7750 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7751 _ACEOF
7752
7753 fi
7754 # Extract the first word of "twopi", so it can be a program name with args.
7755 set dummy twopi; ac_word=$2
7756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7758 if test "${ac_cv_path_TWOPI+set}" = set; then
7759   echo $ECHO_N "(cached) $ECHO_C" >&6
7760 else
7761   case $TWOPI in
7762   [\\/]* | ?:[\\/]*)
7763   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7764   ;;
7765   *)
7766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769   IFS=$as_save_IFS
7770   test -z "$as_dir" && as_dir=.
7771   for ac_exec_ext in '' $ac_executable_extensions; do
7772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7773     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775     break 2
7776   fi
7777 done
7778 done
7779 IFS=$as_save_IFS
7780
7781   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7782   ;;
7783 esac
7784 fi
7785 TWOPI=$ac_cv_path_TWOPI
7786 if test -n "$TWOPI"; then
7787   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7788 echo "${ECHO_T}$TWOPI" >&6; }
7789 else
7790   { echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6; }
7792 fi
7793
7794
7795 if test "$TWOPI" != "echo twopi" ; then
7796
7797 cat >>confdefs.h <<\_ACEOF
7798 #define HAVE_TWOPI 1
7799 _ACEOF
7800
7801     if test "$llvm_cv_os_type" = "MingW" ; then
7802     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7803   fi
7804
7805 cat >>confdefs.h <<_ACEOF
7806 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7807 _ACEOF
7808
7809 fi
7810 # Extract the first word of "circo", so it can be a program name with args.
7811 set dummy circo; ac_word=$2
7812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7814 if test "${ac_cv_path_CIRCO+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   case $CIRCO in
7818   [\\/]* | ?:[\\/]*)
7819   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7820   ;;
7821   *)
7822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827   for ac_exec_ext in '' $ac_executable_extensions; do
7828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7829     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834 done
7835 IFS=$as_save_IFS
7836
7837   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7838   ;;
7839 esac
7840 fi
7841 CIRCO=$ac_cv_path_CIRCO
7842 if test -n "$CIRCO"; then
7843   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7844 echo "${ECHO_T}$CIRCO" >&6; }
7845 else
7846   { echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6; }
7848 fi
7849
7850
7851 if test "$CIRCO" != "echo circo" ; then
7852
7853 cat >>confdefs.h <<\_ACEOF
7854 #define HAVE_CIRCO 1
7855 _ACEOF
7856
7857     if test "$llvm_cv_os_type" = "MingW" ; then
7858     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7859   fi
7860
7861 cat >>confdefs.h <<_ACEOF
7862 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7863 _ACEOF
7864
7865 fi
7866 for ac_prog in gv gsview32
7867 do
7868   # Extract the first word of "$ac_prog", so it can be a program name with args.
7869 set dummy $ac_prog; ac_word=$2
7870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7872 if test "${ac_cv_path_GV+set}" = set; then
7873   echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875   case $GV in
7876   [\\/]* | ?:[\\/]*)
7877   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7878   ;;
7879   *)
7880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7882 do
7883   IFS=$as_save_IFS
7884   test -z "$as_dir" && as_dir=.
7885   for ac_exec_ext in '' $ac_executable_extensions; do
7886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7887     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7889     break 2
7890   fi
7891 done
7892 done
7893 IFS=$as_save_IFS
7894
7895   ;;
7896 esac
7897 fi
7898 GV=$ac_cv_path_GV
7899 if test -n "$GV"; then
7900   { echo "$as_me:$LINENO: result: $GV" >&5
7901 echo "${ECHO_T}$GV" >&6; }
7902 else
7903   { echo "$as_me:$LINENO: result: no" >&5
7904 echo "${ECHO_T}no" >&6; }
7905 fi
7906
7907
7908   test -n "$GV" && break
7909 done
7910 test -n "$GV" || GV="echo gv"
7911
7912 if test "$GV" != "echo gv" ; then
7913
7914 cat >>confdefs.h <<\_ACEOF
7915 #define HAVE_GV 1
7916 _ACEOF
7917
7918     if test "$llvm_cv_os_type" = "MingW" ; then
7919     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7920   fi
7921
7922 cat >>confdefs.h <<_ACEOF
7923 #define LLVM_PATH_GV "$GV${EXEEXT}"
7924 _ACEOF
7925
7926 fi
7927 # Extract the first word of "dotty", so it can be a program name with args.
7928 set dummy dotty; ac_word=$2
7929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931 if test "${ac_cv_path_DOTTY+set}" = set; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934   case $DOTTY in
7935   [\\/]* | ?:[\\/]*)
7936   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7937   ;;
7938   *)
7939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942   IFS=$as_save_IFS
7943   test -z "$as_dir" && as_dir=.
7944   for ac_exec_ext in '' $ac_executable_extensions; do
7945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7946     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7948     break 2
7949   fi
7950 done
7951 done
7952 IFS=$as_save_IFS
7953
7954   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7955   ;;
7956 esac
7957 fi
7958 DOTTY=$ac_cv_path_DOTTY
7959 if test -n "$DOTTY"; then
7960   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7961 echo "${ECHO_T}$DOTTY" >&6; }
7962 else
7963   { echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6; }
7965 fi
7966
7967
7968 if test "$DOTTY" != "echo dotty" ; then
7969
7970 cat >>confdefs.h <<\_ACEOF
7971 #define HAVE_DOTTY 1
7972 _ACEOF
7973
7974     if test "$llvm_cv_os_type" = "MingW" ; then
7975     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7976   fi
7977
7978 cat >>confdefs.h <<_ACEOF
7979 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7980 _ACEOF
7981
7982 fi
7983 # Extract the first word of "xdot.py", so it can be a program name with args.
7984 set dummy xdot.py; ac_word=$2
7985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7987 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7988   echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990   case $XDOT_PY in
7991   [\\/]* | ?:[\\/]*)
7992   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7993   ;;
7994   *)
7995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998   IFS=$as_save_IFS
7999   test -z "$as_dir" && as_dir=.
8000   for ac_exec_ext in '' $ac_executable_extensions; do
8001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8002     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8004     break 2
8005   fi
8006 done
8007 done
8008 IFS=$as_save_IFS
8009
8010   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8011   ;;
8012 esac
8013 fi
8014 XDOT_PY=$ac_cv_path_XDOT_PY
8015 if test -n "$XDOT_PY"; then
8016   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8017 echo "${ECHO_T}$XDOT_PY" >&6; }
8018 else
8019   { echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6; }
8021 fi
8022
8023
8024 if test "$XDOT_PY" != "echo xdot.py" ; then
8025
8026 cat >>confdefs.h <<\_ACEOF
8027 #define HAVE_XDOT_PY 1
8028 _ACEOF
8029
8030     if test "$llvm_cv_os_type" = "MingW" ; then
8031     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8032   fi
8033
8034 cat >>confdefs.h <<_ACEOF
8035 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8036 _ACEOF
8037
8038 fi
8039
8040
8041 # Extract the first word of "perl", so it can be a program name with args.
8042 set dummy perl; ac_word=$2
8043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8045 if test "${ac_cv_path_PERL+set}" = set; then
8046   echo $ECHO_N "(cached) $ECHO_C" >&6
8047 else
8048   case $PERL in
8049   [\\/]* | ?:[\\/]*)
8050   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8051   ;;
8052   *)
8053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8055 do
8056   IFS=$as_save_IFS
8057   test -z "$as_dir" && as_dir=.
8058   for ac_exec_ext in '' $ac_executable_extensions; do
8059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8060     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8062     break 2
8063   fi
8064 done
8065 done
8066 IFS=$as_save_IFS
8067
8068   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8069   ;;
8070 esac
8071 fi
8072 PERL=$ac_cv_path_PERL
8073 if test -n "$PERL"; then
8074   { echo "$as_me:$LINENO: result: $PERL" >&5
8075 echo "${ECHO_T}$PERL" >&6; }
8076 else
8077   { echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6; }
8079 fi
8080
8081
8082 if test "$PERL" != "none"; then
8083   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8084 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8085   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8086     { echo "$as_me:$LINENO: result: yes" >&5
8087 echo "${ECHO_T}yes" >&6; }
8088   else
8089     PERL=none
8090     { echo "$as_me:$LINENO: result: not found" >&5
8091 echo "${ECHO_T}not found" >&6; }
8092   fi
8093 fi
8094
8095
8096 if test x"$PERL" = xnone; then
8097    HAVE_PERL=0
8098
8099    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8100 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8101    { (exit 1); exit 1; }; }
8102 else
8103    HAVE_PERL=1
8104
8105 fi
8106
8107 # Find a good install program.  We prefer a C program (faster),
8108 # so one script is as good as another.  But avoid the broken or
8109 # incompatible versions:
8110 # SysV /etc/install, /usr/sbin/install
8111 # SunOS /usr/etc/install
8112 # IRIX /sbin/install
8113 # AIX /bin/install
8114 # AmigaOS /C/install, which installs bootblocks on floppy discs
8115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8118 # OS/2's system install, which has a completely different semantic
8119 # ./install, which can be erroneously created by make from ./install.sh.
8120 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8122 if test -z "$INSTALL"; then
8123 if test "${ac_cv_path_install+set}" = set; then
8124   echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8128 do
8129   IFS=$as_save_IFS
8130   test -z "$as_dir" && as_dir=.
8131   # Account for people who put trailing slashes in PATH elements.
8132 case $as_dir/ in
8133   ./ | .// | /cC/* | \
8134   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8135   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8136   /usr/ucb/* ) ;;
8137   *)
8138     # OSF1 and SCO ODT 3.0 have their own names for install.
8139     # Don't use installbsd from OSF since it installs stuff as root
8140     # by default.
8141     for ac_prog in ginstall scoinst install; do
8142       for ac_exec_ext in '' $ac_executable_extensions; do
8143         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8144           if test $ac_prog = install &&
8145             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8146             # AIX install.  It has an incompatible calling convention.
8147             :
8148           elif test $ac_prog = install &&
8149             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8150             # program-specific install script used by HP pwplus--don't use.
8151             :
8152           else
8153             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8154             break 3
8155           fi
8156         fi
8157       done
8158     done
8159     ;;
8160 esac
8161 done
8162 IFS=$as_save_IFS
8163
8164
8165 fi
8166   if test "${ac_cv_path_install+set}" = set; then
8167     INSTALL=$ac_cv_path_install
8168   else
8169     # As a last resort, use the slow shell script.  Don't cache a
8170     # value for INSTALL within a source directory, because that will
8171     # break other packages using the cache if that directory is
8172     # removed, or if the value is a relative name.
8173     INSTALL=$ac_install_sh
8174   fi
8175 fi
8176 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8177 echo "${ECHO_T}$INSTALL" >&6; }
8178
8179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8180 # It thinks the first close brace ends the variable substitution.
8181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8182
8183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8184
8185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8186
8187 case "$INSTALL" in
8188  [\\/$]* | ?:[\\/]* ) ;;
8189  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8190 esac
8191
8192 # Extract the first word of "bzip2", so it can be a program name with args.
8193 set dummy bzip2; ac_word=$2
8194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8196 if test "${ac_cv_path_BZIP2+set}" = set; then
8197   echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199   case $BZIP2 in
8200   [\\/]* | ?:[\\/]*)
8201   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8202   ;;
8203   *)
8204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8206 do
8207   IFS=$as_save_IFS
8208   test -z "$as_dir" && as_dir=.
8209   for ac_exec_ext in '' $ac_executable_extensions; do
8210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8211     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8213     break 2
8214   fi
8215 done
8216 done
8217 IFS=$as_save_IFS
8218
8219   ;;
8220 esac
8221 fi
8222 BZIP2=$ac_cv_path_BZIP2
8223 if test -n "$BZIP2"; then
8224   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8225 echo "${ECHO_T}$BZIP2" >&6; }
8226 else
8227   { echo "$as_me:$LINENO: result: no" >&5
8228 echo "${ECHO_T}no" >&6; }
8229 fi
8230
8231
8232 # Extract the first word of "cat", so it can be a program name with args.
8233 set dummy cat; ac_word=$2
8234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8236 if test "${ac_cv_path_CAT+set}" = set; then
8237   echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239   case $CAT in
8240   [\\/]* | ?:[\\/]*)
8241   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8242   ;;
8243   *)
8244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8246 do
8247   IFS=$as_save_IFS
8248   test -z "$as_dir" && as_dir=.
8249   for ac_exec_ext in '' $ac_executable_extensions; do
8250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8251     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8253     break 2
8254   fi
8255 done
8256 done
8257 IFS=$as_save_IFS
8258
8259   ;;
8260 esac
8261 fi
8262 CAT=$ac_cv_path_CAT
8263 if test -n "$CAT"; then
8264   { echo "$as_me:$LINENO: result: $CAT" >&5
8265 echo "${ECHO_T}$CAT" >&6; }
8266 else
8267   { echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6; }
8269 fi
8270
8271
8272 # Extract the first word of "doxygen", so it can be a program name with args.
8273 set dummy doxygen; ac_word=$2
8274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8276 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   case $DOXYGEN in
8280   [\\/]* | ?:[\\/]*)
8281   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8282   ;;
8283   *)
8284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287   IFS=$as_save_IFS
8288   test -z "$as_dir" && as_dir=.
8289   for ac_exec_ext in '' $ac_executable_extensions; do
8290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8291     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8293     break 2
8294   fi
8295 done
8296 done
8297 IFS=$as_save_IFS
8298
8299   ;;
8300 esac
8301 fi
8302 DOXYGEN=$ac_cv_path_DOXYGEN
8303 if test -n "$DOXYGEN"; then
8304   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8305 echo "${ECHO_T}$DOXYGEN" >&6; }
8306 else
8307   { echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6; }
8309 fi
8310
8311
8312 # Extract the first word of "groff", so it can be a program name with args.
8313 set dummy groff; ac_word=$2
8314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8316 if test "${ac_cv_path_GROFF+set}" = set; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319   case $GROFF in
8320   [\\/]* | ?:[\\/]*)
8321   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8322   ;;
8323   *)
8324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327   IFS=$as_save_IFS
8328   test -z "$as_dir" && as_dir=.
8329   for ac_exec_ext in '' $ac_executable_extensions; do
8330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8331     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333     break 2
8334   fi
8335 done
8336 done
8337 IFS=$as_save_IFS
8338
8339   ;;
8340 esac
8341 fi
8342 GROFF=$ac_cv_path_GROFF
8343 if test -n "$GROFF"; then
8344   { echo "$as_me:$LINENO: result: $GROFF" >&5
8345 echo "${ECHO_T}$GROFF" >&6; }
8346 else
8347   { echo "$as_me:$LINENO: result: no" >&5
8348 echo "${ECHO_T}no" >&6; }
8349 fi
8350
8351
8352 # Extract the first word of "gzip", so it can be a program name with args.
8353 set dummy gzip; ac_word=$2
8354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8356 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   case $GZIPBIN in
8360   [\\/]* | ?:[\\/]*)
8361   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8362   ;;
8363   *)
8364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367   IFS=$as_save_IFS
8368   test -z "$as_dir" && as_dir=.
8369   for ac_exec_ext in '' $ac_executable_extensions; do
8370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8371     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379   ;;
8380 esac
8381 fi
8382 GZIPBIN=$ac_cv_path_GZIPBIN
8383 if test -n "$GZIPBIN"; then
8384   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8385 echo "${ECHO_T}$GZIPBIN" >&6; }
8386 else
8387   { echo "$as_me:$LINENO: result: no" >&5
8388 echo "${ECHO_T}no" >&6; }
8389 fi
8390
8391
8392 # Extract the first word of "pod2html", so it can be a program name with args.
8393 set dummy pod2html; ac_word=$2
8394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8396 if test "${ac_cv_path_POD2HTML+set}" = set; then
8397   echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399   case $POD2HTML in
8400   [\\/]* | ?:[\\/]*)
8401   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8402   ;;
8403   *)
8404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407   IFS=$as_save_IFS
8408   test -z "$as_dir" && as_dir=.
8409   for ac_exec_ext in '' $ac_executable_extensions; do
8410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8411     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413     break 2
8414   fi
8415 done
8416 done
8417 IFS=$as_save_IFS
8418
8419   ;;
8420 esac
8421 fi
8422 POD2HTML=$ac_cv_path_POD2HTML
8423 if test -n "$POD2HTML"; then
8424   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8425 echo "${ECHO_T}$POD2HTML" >&6; }
8426 else
8427   { echo "$as_me:$LINENO: result: no" >&5
8428 echo "${ECHO_T}no" >&6; }
8429 fi
8430
8431
8432 # Extract the first word of "pod2man", so it can be a program name with args.
8433 set dummy pod2man; ac_word=$2
8434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8436 if test "${ac_cv_path_POD2MAN+set}" = set; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   case $POD2MAN in
8440   [\\/]* | ?:[\\/]*)
8441   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8442   ;;
8443   *)
8444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8446 do
8447   IFS=$as_save_IFS
8448   test -z "$as_dir" && as_dir=.
8449   for ac_exec_ext in '' $ac_executable_extensions; do
8450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8451     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8453     break 2
8454   fi
8455 done
8456 done
8457 IFS=$as_save_IFS
8458
8459   ;;
8460 esac
8461 fi
8462 POD2MAN=$ac_cv_path_POD2MAN
8463 if test -n "$POD2MAN"; then
8464   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8465 echo "${ECHO_T}$POD2MAN" >&6; }
8466 else
8467   { echo "$as_me:$LINENO: result: no" >&5
8468 echo "${ECHO_T}no" >&6; }
8469 fi
8470
8471
8472 # Extract the first word of "pdfroff", so it can be a program name with args.
8473 set dummy pdfroff; ac_word=$2
8474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8476 if test "${ac_cv_path_PDFROFF+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   case $PDFROFF in
8480   [\\/]* | ?:[\\/]*)
8481   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8482   ;;
8483   *)
8484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8486 do
8487   IFS=$as_save_IFS
8488   test -z "$as_dir" && as_dir=.
8489   for ac_exec_ext in '' $ac_executable_extensions; do
8490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8491     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8493     break 2
8494   fi
8495 done
8496 done
8497 IFS=$as_save_IFS
8498
8499   ;;
8500 esac
8501 fi
8502 PDFROFF=$ac_cv_path_PDFROFF
8503 if test -n "$PDFROFF"; then
8504   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8505 echo "${ECHO_T}$PDFROFF" >&6; }
8506 else
8507   { echo "$as_me:$LINENO: result: no" >&5
8508 echo "${ECHO_T}no" >&6; }
8509 fi
8510
8511
8512 # Extract the first word of "runtest", so it can be a program name with args.
8513 set dummy runtest; ac_word=$2
8514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8516 if test "${ac_cv_path_RUNTEST+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   case $RUNTEST in
8520   [\\/]* | ?:[\\/]*)
8521   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8522   ;;
8523   *)
8524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8526 do
8527   IFS=$as_save_IFS
8528   test -z "$as_dir" && as_dir=.
8529   for ac_exec_ext in '' $ac_executable_extensions; do
8530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8531     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8533     break 2
8534   fi
8535 done
8536 done
8537 IFS=$as_save_IFS
8538
8539   ;;
8540 esac
8541 fi
8542 RUNTEST=$ac_cv_path_RUNTEST
8543 if test -n "$RUNTEST"; then
8544   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8545 echo "${ECHO_T}$RUNTEST" >&6; }
8546 else
8547   { echo "$as_me:$LINENO: result: no" >&5
8548 echo "${ECHO_T}no" >&6; }
8549 fi
8550
8551
8552
8553 no_itcl=true
8554 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8555 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8556
8557 # Check whether --with-tclinclude was given.
8558 if test "${with_tclinclude+set}" = set; then
8559   withval=$with_tclinclude; with_tclinclude=${withval}
8560 else
8561   with_tclinclude=''
8562 fi
8563
8564 if test "${ac_cv_path_tclsh+set}" = set; then
8565   echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567
8568 if test x"${with_tclinclude}" != x ; then
8569   if test -f ${with_tclinclude}/tclsh ; then
8570     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8571   elif test -f ${with_tclinclude}/src/tclsh ; then
8572     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8573   else
8574     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8575 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8576    { (exit 1); exit 1; }; }
8577   fi
8578 fi
8579 fi
8580
8581
8582 if test x"${ac_cv_path_tclsh}" = x ; then
8583   { echo "$as_me:$LINENO: result: none" >&5
8584 echo "${ECHO_T}none" >&6; }
8585   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
8586 do
8587   # Extract the first word of "$ac_prog", so it can be a program name with args.
8588 set dummy $ac_prog; ac_word=$2
8589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8591 if test "${ac_cv_path_TCLSH+set}" = set; then
8592   echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594   case $TCLSH in
8595   [\\/]* | ?:[\\/]*)
8596   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8597   ;;
8598   *)
8599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8601 do
8602   IFS=$as_save_IFS
8603   test -z "$as_dir" && as_dir=.
8604   for ac_exec_ext in '' $ac_executable_extensions; do
8605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8606     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8608     break 2
8609   fi
8610 done
8611 done
8612 IFS=$as_save_IFS
8613
8614   ;;
8615 esac
8616 fi
8617 TCLSH=$ac_cv_path_TCLSH
8618 if test -n "$TCLSH"; then
8619   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8620 echo "${ECHO_T}$TCLSH" >&6; }
8621 else
8622   { echo "$as_me:$LINENO: result: no" >&5
8623 echo "${ECHO_T}no" >&6; }
8624 fi
8625
8626
8627   test -n "$TCLSH" && break
8628 done
8629
8630   if test x"${TCLSH}" = x ; then
8631     ac_cv_path_tclsh='';
8632   else
8633     ac_cv_path_tclsh="${TCLSH}";
8634   fi
8635 else
8636   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8637 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8638   TCLSH="${ac_cv_path_tclsh}"
8639
8640 fi
8641
8642 # Extract the first word of "zip", so it can be a program name with args.
8643 set dummy zip; ac_word=$2
8644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8646 if test "${ac_cv_path_ZIP+set}" = set; then
8647   echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649   case $ZIP in
8650   [\\/]* | ?:[\\/]*)
8651   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8652   ;;
8653   *)
8654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657   IFS=$as_save_IFS
8658   test -z "$as_dir" && as_dir=.
8659   for ac_exec_ext in '' $ac_executable_extensions; do
8660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8661     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8663     break 2
8664   fi
8665 done
8666 done
8667 IFS=$as_save_IFS
8668
8669   ;;
8670 esac
8671 fi
8672 ZIP=$ac_cv_path_ZIP
8673 if test -n "$ZIP"; then
8674   { echo "$as_me:$LINENO: result: $ZIP" >&5
8675 echo "${ECHO_T}$ZIP" >&6; }
8676 else
8677   { echo "$as_me:$LINENO: result: no" >&5
8678 echo "${ECHO_T}no" >&6; }
8679 fi
8680
8681
8682 for ac_prog in ocamlc
8683 do
8684   # Extract the first word of "$ac_prog", so it can be a program name with args.
8685 set dummy $ac_prog; ac_word=$2
8686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8688 if test "${ac_cv_path_OCAMLC+set}" = set; then
8689   echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691   case $OCAMLC in
8692   [\\/]* | ?:[\\/]*)
8693   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8694   ;;
8695   *)
8696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8698 do
8699   IFS=$as_save_IFS
8700   test -z "$as_dir" && as_dir=.
8701   for ac_exec_ext in '' $ac_executable_extensions; do
8702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8703     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8705     break 2
8706   fi
8707 done
8708 done
8709 IFS=$as_save_IFS
8710
8711   ;;
8712 esac
8713 fi
8714 OCAMLC=$ac_cv_path_OCAMLC
8715 if test -n "$OCAMLC"; then
8716   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8717 echo "${ECHO_T}$OCAMLC" >&6; }
8718 else
8719   { echo "$as_me:$LINENO: result: no" >&5
8720 echo "${ECHO_T}no" >&6; }
8721 fi
8722
8723
8724   test -n "$OCAMLC" && break
8725 done
8726
8727 for ac_prog in ocamlopt
8728 do
8729   # Extract the first word of "$ac_prog", so it can be a program name with args.
8730 set dummy $ac_prog; ac_word=$2
8731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8733 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8734   echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736   case $OCAMLOPT in
8737   [\\/]* | ?:[\\/]*)
8738   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8739   ;;
8740   *)
8741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 for as_dir in $PATH
8743 do
8744   IFS=$as_save_IFS
8745   test -z "$as_dir" && as_dir=.
8746   for ac_exec_ext in '' $ac_executable_extensions; do
8747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8748     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8750     break 2
8751   fi
8752 done
8753 done
8754 IFS=$as_save_IFS
8755
8756   ;;
8757 esac
8758 fi
8759 OCAMLOPT=$ac_cv_path_OCAMLOPT
8760 if test -n "$OCAMLOPT"; then
8761   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8762 echo "${ECHO_T}$OCAMLOPT" >&6; }
8763 else
8764   { echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6; }
8766 fi
8767
8768
8769   test -n "$OCAMLOPT" && break
8770 done
8771
8772 for ac_prog in ocamldep
8773 do
8774   # Extract the first word of "$ac_prog", so it can be a program name with args.
8775 set dummy $ac_prog; ac_word=$2
8776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8778 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8779   echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781   case $OCAMLDEP in
8782   [\\/]* | ?:[\\/]*)
8783   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8784   ;;
8785   *)
8786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 for as_dir in $PATH
8788 do
8789   IFS=$as_save_IFS
8790   test -z "$as_dir" && as_dir=.
8791   for ac_exec_ext in '' $ac_executable_extensions; do
8792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8793     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795     break 2
8796   fi
8797 done
8798 done
8799 IFS=$as_save_IFS
8800
8801   ;;
8802 esac
8803 fi
8804 OCAMLDEP=$ac_cv_path_OCAMLDEP
8805 if test -n "$OCAMLDEP"; then
8806   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8807 echo "${ECHO_T}$OCAMLDEP" >&6; }
8808 else
8809   { echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6; }
8811 fi
8812
8813
8814   test -n "$OCAMLDEP" && break
8815 done
8816
8817 for ac_prog in ocamldoc
8818 do
8819   # Extract the first word of "$ac_prog", so it can be a program name with args.
8820 set dummy $ac_prog; ac_word=$2
8821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8823 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8824   echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826   case $OCAMLDOC in
8827   [\\/]* | ?:[\\/]*)
8828   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8829   ;;
8830   *)
8831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $PATH
8833 do
8834   IFS=$as_save_IFS
8835   test -z "$as_dir" && as_dir=.
8836   for ac_exec_ext in '' $ac_executable_extensions; do
8837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8838     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8840     break 2
8841   fi
8842 done
8843 done
8844 IFS=$as_save_IFS
8845
8846   ;;
8847 esac
8848 fi
8849 OCAMLDOC=$ac_cv_path_OCAMLDOC
8850 if test -n "$OCAMLDOC"; then
8851   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8852 echo "${ECHO_T}$OCAMLDOC" >&6; }
8853 else
8854   { echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6; }
8856 fi
8857
8858
8859   test -n "$OCAMLDOC" && break
8860 done
8861
8862 for ac_prog in gas as
8863 do
8864   # Extract the first word of "$ac_prog", so it can be a program name with args.
8865 set dummy $ac_prog; ac_word=$2
8866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8868 if test "${ac_cv_path_GAS+set}" = set; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871   case $GAS in
8872   [\\/]* | ?:[\\/]*)
8873   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8874   ;;
8875   *)
8876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8878 do
8879   IFS=$as_save_IFS
8880   test -z "$as_dir" && as_dir=.
8881   for ac_exec_ext in '' $ac_executable_extensions; do
8882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8883     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8885     break 2
8886   fi
8887 done
8888 done
8889 IFS=$as_save_IFS
8890
8891   ;;
8892 esac
8893 fi
8894 GAS=$ac_cv_path_GAS
8895 if test -n "$GAS"; then
8896   { echo "$as_me:$LINENO: result: $GAS" >&5
8897 echo "${ECHO_T}$GAS" >&6; }
8898 else
8899   { echo "$as_me:$LINENO: result: no" >&5
8900 echo "${ECHO_T}no" >&6; }
8901 fi
8902
8903
8904   test -n "$GAS" && break
8905 done
8906
8907
8908 { echo "$as_me:$LINENO: checking for linker version" >&5
8909 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8910 if test "${llvm_cv_link_version+set}" = set; then
8911   echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913
8914    version_string="$(ld -v 2>&1 | head -1)"
8915
8916    # Check for ld64.
8917    if (echo "$version_string" | grep -q "ld64"); then
8918      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8919    else
8920      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8921    fi
8922
8923 fi
8924 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8925 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8926
8927 cat >>confdefs.h <<_ACEOF
8928 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8929 _ACEOF
8930
8931
8932
8933 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8934 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8935 if test "${llvm_cv_link_use_r+set}" = set; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938    ac_ext=c
8939 ac_cpp='$CPP $CPPFLAGS'
8940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8943
8944   oldcflags="$CFLAGS"
8945   CFLAGS="$CFLAGS -Wl,-R."
8946   cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952
8953 int
8954 main ()
8955 {
8956
8957   ;
8958   return 0;
8959 }
8960 _ACEOF
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (ac_try="$ac_link"
8963 case "(($ac_try" in
8964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965   *) ac_try_echo=$ac_try;;
8966 esac
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968   (eval "$ac_link") 2>conftest.er1
8969   ac_status=$?
8970   grep -v '^ *+' conftest.er1 >conftest.err
8971   rm -f conftest.er1
8972   cat conftest.err >&5
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); } &&
8975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8976   { (case "(($ac_try" in
8977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978   *) ac_try_echo=$ac_try;;
8979 esac
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981   (eval "$ac_try") 2>&5
8982   ac_status=$?
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); }; } &&
8985          { ac_try='test -s conftest$ac_exeext'
8986   { (case "(($ac_try" in
8987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988   *) ac_try_echo=$ac_try;;
8989 esac
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991   (eval "$ac_try") 2>&5
8992   ac_status=$?
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); }; }; then
8995   llvm_cv_link_use_r=yes
8996 else
8997   echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000         llvm_cv_link_use_r=no
9001 fi
9002
9003 rm -f core conftest.err conftest.$ac_objext \
9004       conftest$ac_exeext conftest.$ac_ext
9005   CFLAGS="$oldcflags"
9006   ac_ext=c
9007 ac_cpp='$CPP $CPPFLAGS'
9008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9011
9012
9013 fi
9014 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9015 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9016 if test "$llvm_cv_link_use_r" = yes ; then
9017
9018 cat >>confdefs.h <<\_ACEOF
9019 #define HAVE_LINK_R 1
9020 _ACEOF
9021
9022   fi
9023
9024
9025 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9026 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9027 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030    ac_ext=c
9031 ac_cpp='$CPP $CPPFLAGS'
9032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9035
9036   oldcflags="$CFLAGS"
9037   CFLAGS="$CFLAGS -Wl,-export-dynamic"
9038   cat >conftest.$ac_ext <<_ACEOF
9039 /* confdefs.h.  */
9040 _ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h.  */
9044
9045 int
9046 main ()
9047 {
9048
9049   ;
9050   return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (ac_try="$ac_link"
9055 case "(($ac_try" in
9056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057   *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060   (eval "$ac_link") 2>conftest.er1
9061   ac_status=$?
9062   grep -v '^ *+' conftest.er1 >conftest.err
9063   rm -f conftest.er1
9064   cat conftest.err >&5
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); } &&
9067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9068   { (case "(($ac_try" in
9069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070   *) ac_try_echo=$ac_try;;
9071 esac
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073   (eval "$ac_try") 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; } &&
9077          { ac_try='test -s conftest$ac_exeext'
9078   { (case "(($ac_try" in
9079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080   *) ac_try_echo=$ac_try;;
9081 esac
9082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083   (eval "$ac_try") 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); }; }; then
9087   llvm_cv_link_use_export_dynamic=yes
9088 else
9089   echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9091
9092         llvm_cv_link_use_export_dynamic=no
9093 fi
9094
9095 rm -f core conftest.err conftest.$ac_objext \
9096       conftest$ac_exeext conftest.$ac_ext
9097   CFLAGS="$oldcflags"
9098   ac_ext=c
9099 ac_cpp='$CPP $CPPFLAGS'
9100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9103
9104
9105 fi
9106 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9107 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9108 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9109
9110 cat >>confdefs.h <<\_ACEOF
9111 #define HAVE_LINK_EXPORT_DYNAMIC 1
9112 _ACEOF
9113
9114   fi
9115
9116
9117 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9118 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9119 if test "${llvm_cv_link_use_version_script+set}" = set; then
9120   echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122    ac_ext=c
9123 ac_cpp='$CPP $CPPFLAGS'
9124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9127
9128   oldcflags="$CFLAGS"
9129
9130   # The following code is from the autoconf manual,
9131   # "11.13: Limitations of Usual Tools".
9132   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9133   # Use mktemp if possible; otherwise fall back on mkdir,
9134   # with $RANDOM to make collisions less likely.
9135   : ${TMPDIR=/tmp}
9136   {
9137     tmp=`
9138       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9139     ` &&
9140     test -n "$tmp" && test -d "$tmp"
9141   } || {
9142     tmp=$TMPDIR/foo$$-$RANDOM
9143     (umask 077 && mkdir "$tmp")
9144   } || exit $?
9145
9146   echo "{" > "$tmp/export.map"
9147   echo "  global: main;" >> "$tmp/export.map"
9148   echo "  local: *;" >> "$tmp/export.map"
9149   echo "};" >> "$tmp/export.map"
9150
9151   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9152   cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h.  */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h.  */
9158
9159 int
9160 main ()
9161 {
9162
9163   ;
9164   return 0;
9165 }
9166 _ACEOF
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (ac_try="$ac_link"
9169 case "(($ac_try" in
9170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171   *) ac_try_echo=$ac_try;;
9172 esac
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174   (eval "$ac_link") 2>conftest.er1
9175   ac_status=$?
9176   grep -v '^ *+' conftest.er1 >conftest.err
9177   rm -f conftest.er1
9178   cat conftest.err >&5
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); } &&
9181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9182   { (case "(($ac_try" in
9183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184   *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187   (eval "$ac_try") 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); }; } &&
9191          { ac_try='test -s conftest$ac_exeext'
9192   { (case "(($ac_try" in
9193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194   *) ac_try_echo=$ac_try;;
9195 esac
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197   (eval "$ac_try") 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); }; }; then
9201   llvm_cv_link_use_version_script=yes
9202 else
9203   echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9205
9206         llvm_cv_link_use_version_script=no
9207 fi
9208
9209 rm -f core conftest.err conftest.$ac_objext \
9210       conftest$ac_exeext conftest.$ac_ext
9211   rm "$tmp/export.map"
9212   rmdir "$tmp"
9213   CFLAGS="$oldcflags"
9214   ac_ext=c
9215 ac_cpp='$CPP $CPPFLAGS'
9216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9219
9220
9221 fi
9222 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9223 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9224 if test "$llvm_cv_link_use_version_script" = yes ; then
9225   HAVE_LINK_VERSION_SCRIPT=1
9226
9227   fi
9228
9229
9230
9231
9232 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9233 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9234 if test "${ac_cv_c_const+set}" = set; then
9235   echo $ECHO_N "(cached) $ECHO_C" >&6
9236 else
9237   cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h.  */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h.  */
9243
9244 int
9245 main ()
9246 {
9247 /* FIXME: Include the comments suggested by Paul. */
9248 #ifndef __cplusplus
9249   /* Ultrix mips cc rejects this.  */
9250   typedef int charset[2];
9251   const charset x;
9252   /* SunOS 4.1.1 cc rejects this.  */
9253   char const *const *ccp;
9254   char **p;
9255   /* NEC SVR4.0.2 mips cc rejects this.  */
9256   struct point {int x, y;};
9257   static struct point const zero = {0,0};
9258   /* AIX XL C 1.02.0.0 rejects this.
9259      It does not let you subtract one const X* pointer from another in
9260      an arm of an if-expression whose if-part is not a constant
9261      expression */
9262   const char *g = "string";
9263   ccp = &g + (g ? g-g : 0);
9264   /* HPUX 7.0 cc rejects these. */
9265   ++ccp;
9266   p = (char**) ccp;
9267   ccp = (char const *const *) p;
9268   { /* SCO 3.2v4 cc rejects this.  */
9269     char *t;
9270     char const *s = 0 ? (char *) 0 : (char const *) 0;
9271
9272     *t++ = 0;
9273     if (s) return 0;
9274   }
9275   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9276     int x[] = {25, 17};
9277     const int *foo = &x[0];
9278     ++foo;
9279   }
9280   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9281     typedef const int *iptr;
9282     iptr p = 0;
9283     ++p;
9284   }
9285   { /* AIX XL C 1.02.0.0 rejects this saying
9286        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9287     struct s { int j; const int *ap[3]; };
9288     struct s *b; b->j = 5;
9289   }
9290   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9291     const int foo = 10;
9292     if (!foo) return 0;
9293   }
9294   return !x[0] && !zero.x;
9295 #endif
9296
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 rm -f conftest.$ac_objext
9302 if { (ac_try="$ac_compile"
9303 case "(($ac_try" in
9304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305   *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308   (eval "$ac_compile") 2>conftest.er1
9309   ac_status=$?
9310   grep -v '^ *+' conftest.er1 >conftest.err
9311   rm -f conftest.er1
9312   cat conftest.err >&5
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); } &&
9315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9316   { (case "(($ac_try" in
9317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318   *) ac_try_echo=$ac_try;;
9319 esac
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321   (eval "$ac_try") 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; } &&
9325          { ac_try='test -s conftest.$ac_objext'
9326   { (case "(($ac_try" in
9327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328   *) ac_try_echo=$ac_try;;
9329 esac
9330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331   (eval "$ac_try") 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); }; }; then
9335   ac_cv_c_const=yes
9336 else
9337   echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9339
9340         ac_cv_c_const=no
9341 fi
9342
9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 fi
9345 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9346 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9347 if test $ac_cv_c_const = no; then
9348
9349 cat >>confdefs.h <<\_ACEOF
9350 #define const
9351 _ACEOF
9352
9353 fi
9354
9355
9356
9357
9358
9359
9360 ac_header_dirent=no
9361 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9362   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9363 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9364 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h.  */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h.  */
9374 #include <sys/types.h>
9375 #include <$ac_hdr>
9376
9377 int
9378 main ()
9379 {
9380 if ((DIR *) 0)
9381 return 0;
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (ac_try="$ac_compile"
9388 case "(($ac_try" in
9389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390   *) ac_try_echo=$ac_try;;
9391 esac
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393   (eval "$ac_compile") 2>conftest.er1
9394   ac_status=$?
9395   grep -v '^ *+' conftest.er1 >conftest.err
9396   rm -f conftest.er1
9397   cat conftest.err >&5
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); } &&
9400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9401   { (case "(($ac_try" in
9402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403   *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406   (eval "$ac_try") 2>&5
9407   ac_status=$?
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); }; } &&
9410          { ac_try='test -s conftest.$ac_objext'
9411   { (case "(($ac_try" in
9412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413   *) ac_try_echo=$ac_try;;
9414 esac
9415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9416   (eval "$ac_try") 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); }; }; then
9420   eval "$as_ac_Header=yes"
9421 else
9422   echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9424
9425         eval "$as_ac_Header=no"
9426 fi
9427
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429 fi
9430 ac_res=`eval echo '${'$as_ac_Header'}'`
9431                { echo "$as_me:$LINENO: result: $ac_res" >&5
9432 echo "${ECHO_T}$ac_res" >&6; }
9433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9434   cat >>confdefs.h <<_ACEOF
9435 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9436 _ACEOF
9437
9438 ac_header_dirent=$ac_hdr; break
9439 fi
9440
9441 done
9442 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9443 if test $ac_header_dirent = dirent.h; then
9444   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9445 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9446 if test "${ac_cv_search_opendir+set}" = set; then
9447   echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449   ac_func_search_save_LIBS=$LIBS
9450 cat >conftest.$ac_ext <<_ACEOF
9451 /* confdefs.h.  */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h.  */
9456
9457 /* Override any GCC internal prototype to avoid an error.
9458    Use char because int might match the return type of a GCC
9459    builtin and then its argument prototype would still apply.  */
9460 #ifdef __cplusplus
9461 extern "C"
9462 #endif
9463 char opendir ();
9464 int
9465 main ()
9466 {
9467 return opendir ();
9468   ;
9469   return 0;
9470 }
9471 _ACEOF
9472 for ac_lib in '' dir; do
9473   if test -z "$ac_lib"; then
9474     ac_res="none required"
9475   else
9476     ac_res=-l$ac_lib
9477     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9478   fi
9479   rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (ac_try="$ac_link"
9481 case "(($ac_try" in
9482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483   *) ac_try_echo=$ac_try;;
9484 esac
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486   (eval "$ac_link") 2>conftest.er1
9487   ac_status=$?
9488   grep -v '^ *+' conftest.er1 >conftest.err
9489   rm -f conftest.er1
9490   cat conftest.err >&5
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); } &&
9493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9494   { (case "(($ac_try" in
9495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496   *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499   (eval "$ac_try") 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); }; } &&
9503          { ac_try='test -s conftest$ac_exeext'
9504   { (case "(($ac_try" in
9505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506   *) ac_try_echo=$ac_try;;
9507 esac
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509   (eval "$ac_try") 2>&5
9510   ac_status=$?
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); }; }; then
9513   ac_cv_search_opendir=$ac_res
9514 else
9515   echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9517
9518
9519 fi
9520
9521 rm -f core conftest.err conftest.$ac_objext \
9522       conftest$ac_exeext
9523   if test "${ac_cv_search_opendir+set}" = set; then
9524   break
9525 fi
9526 done
9527 if test "${ac_cv_search_opendir+set}" = set; then
9528   :
9529 else
9530   ac_cv_search_opendir=no
9531 fi
9532 rm conftest.$ac_ext
9533 LIBS=$ac_func_search_save_LIBS
9534 fi
9535 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9536 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9537 ac_res=$ac_cv_search_opendir
9538 if test "$ac_res" != no; then
9539   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9540
9541 fi
9542
9543 else
9544   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9545 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9546 if test "${ac_cv_search_opendir+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   ac_func_search_save_LIBS=$LIBS
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9556
9557 /* Override any GCC internal prototype to avoid an error.
9558    Use char because int might match the return type of a GCC
9559    builtin and then its argument prototype would still apply.  */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char opendir ();
9564 int
9565 main ()
9566 {
9567 return opendir ();
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 for ac_lib in '' x; do
9573   if test -z "$ac_lib"; then
9574     ac_res="none required"
9575   else
9576     ac_res=-l$ac_lib
9577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9578   fi
9579   rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9581 case "(($ac_try" in
9582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583   *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586   (eval "$ac_link") 2>conftest.er1
9587   ac_status=$?
9588   grep -v '^ *+' conftest.er1 >conftest.err
9589   rm -f conftest.er1
9590   cat conftest.err >&5
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } &&
9593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9594   { (case "(($ac_try" in
9595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596   *) ac_try_echo=$ac_try;;
9597 esac
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599   (eval "$ac_try") 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); }; } &&
9603          { ac_try='test -s conftest$ac_exeext'
9604   { (case "(($ac_try" in
9605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606   *) ac_try_echo=$ac_try;;
9607 esac
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609   (eval "$ac_try") 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); }; }; then
9613   ac_cv_search_opendir=$ac_res
9614 else
9615   echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618
9619 fi
9620
9621 rm -f core conftest.err conftest.$ac_objext \
9622       conftest$ac_exeext
9623   if test "${ac_cv_search_opendir+set}" = set; then
9624   break
9625 fi
9626 done
9627 if test "${ac_cv_search_opendir+set}" = set; then
9628   :
9629 else
9630   ac_cv_search_opendir=no
9631 fi
9632 rm conftest.$ac_ext
9633 LIBS=$ac_func_search_save_LIBS
9634 fi
9635 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9636 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9637 ac_res=$ac_cv_search_opendir
9638 if test "$ac_res" != no; then
9639   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9640
9641 fi
9642
9643 fi
9644
9645
9646 for ac_header in dlfcn.h
9647 do
9648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9650   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9653   echo $ECHO_N "(cached) $ECHO_C" >&6
9654 fi
9655 ac_res=`eval echo '${'$as_ac_Header'}'`
9656                { echo "$as_me:$LINENO: result: $ac_res" >&5
9657 echo "${ECHO_T}$ac_res" >&6; }
9658 else
9659   # Is the header compilable?
9660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668 $ac_includes_default
9669 #include <$ac_header>
9670 _ACEOF
9671 rm -f conftest.$ac_objext
9672 if { (ac_try="$ac_compile"
9673 case "(($ac_try" in
9674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675   *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678   (eval "$ac_compile") 2>conftest.er1
9679   ac_status=$?
9680   grep -v '^ *+' conftest.er1 >conftest.err
9681   rm -f conftest.er1
9682   cat conftest.err >&5
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686   { (case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_try") 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; } &&
9695          { ac_try='test -s conftest.$ac_objext'
9696   { (case "(($ac_try" in
9697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698   *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701   (eval "$ac_try") 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; }; then
9705   ac_header_compiler=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710         ac_header_compiler=no
9711 fi
9712
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9715 echo "${ECHO_T}$ac_header_compiler" >&6; }
9716
9717 # Is the header present?
9718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726 #include <$ac_header>
9727 _ACEOF
9728 if { (ac_try="$ac_cpp conftest.$ac_ext"
9729 case "(($ac_try" in
9730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731   *) ac_try_echo=$ac_try;;
9732 esac
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9735   ac_status=$?
9736   grep -v '^ *+' conftest.er1 >conftest.err
9737   rm -f conftest.er1
9738   cat conftest.err >&5
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } >/dev/null; then
9741   if test -s conftest.err; then
9742     ac_cpp_err=$ac_c_preproc_warn_flag
9743     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9744   else
9745     ac_cpp_err=
9746   fi
9747 else
9748   ac_cpp_err=yes
9749 fi
9750 if test -z "$ac_cpp_err"; then
9751   ac_header_preproc=yes
9752 else
9753   echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756   ac_header_preproc=no
9757 fi
9758
9759 rm -f conftest.err conftest.$ac_ext
9760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9761 echo "${ECHO_T}$ac_header_preproc" >&6; }
9762
9763 # So?  What about this header?
9764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9765   yes:no: )
9766     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9770     ac_header_preproc=yes
9771     ;;
9772   no:yes:* )
9773     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9775     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9776 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9777     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9779     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9780 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9783     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9785     ( cat <<\_ASBOX
9786 ## ----------------------------------- ##
9787 ## Report this to llvmbugs@cs.uiuc.edu ##
9788 ## ----------------------------------- ##
9789 _ASBOX
9790      ) | sed "s/^/$as_me: WARNING:     /" >&2
9791     ;;
9792 esac
9793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   eval "$as_ac_Header=\$ac_header_preproc"
9799 fi
9800 ac_res=`eval echo '${'$as_ac_Header'}'`
9801                { echo "$as_me:$LINENO: result: $ac_res" >&5
9802 echo "${ECHO_T}$ac_res" >&6; }
9803
9804 fi
9805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9806   cat >>confdefs.h <<_ACEOF
9807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9808 _ACEOF
9809
9810 fi
9811
9812 done
9813
9814 # Check whether --enable-ltdl-install was given.
9815 if test "${enable_ltdl_install+set}" = set; then
9816   enableval=$enable_ltdl_install;
9817 fi
9818
9819
9820
9821
9822 if test x"${enable_ltdl_install-no}" != xno; then
9823   INSTALL_LTDL_TRUE=
9824   INSTALL_LTDL_FALSE='#'
9825 else
9826   INSTALL_LTDL_TRUE='#'
9827   INSTALL_LTDL_FALSE=
9828 fi
9829
9830
9831
9832 if test x"${enable_ltdl_convenience-no}" != xno; then
9833   CONVENIENCE_LTDL_TRUE=
9834   CONVENIENCE_LTDL_FALSE='#'
9835 else
9836   CONVENIENCE_LTDL_TRUE='#'
9837   CONVENIENCE_LTDL_FALSE=
9838 fi
9839
9840
9841 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9843 library_names_spec=
9844 libname_spec='lib$name'
9845 soname_spec=
9846 shrext_cmds=".so"
9847 postinstall_cmds=
9848 postuninstall_cmds=
9849 finish_cmds=
9850 finish_eval=
9851 shlibpath_var=
9852 shlibpath_overrides_runpath=unknown
9853 version_type=none
9854 dynamic_linker="$host_os ld.so"
9855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9856 if test "$GCC" = yes; then
9857   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9858   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9859     # if the path contains ";" then we assume it to be the separator
9860     # otherwise default to the standard path separator (i.e. ":") - it is
9861     # assumed that no part of a normal pathname contains ";" but that should
9862     # okay in the real world where ";" in dirpaths is itself problematic.
9863     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9864   else
9865     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9866   fi
9867 else
9868   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9869 fi
9870 need_lib_prefix=unknown
9871 hardcode_into_libs=no
9872
9873 # when you set need_version to no, make sure it does not cause -set_version
9874 # flags to be left without arguments
9875 need_version=unknown
9876
9877 case $host_os in
9878 aix3*)
9879   version_type=linux
9880   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9881   shlibpath_var=LIBPATH
9882
9883   # AIX 3 has no versioning support, so we append a major version to the name.
9884   soname_spec='${libname}${release}${shared_ext}$major'
9885   ;;
9886
9887 aix4* | aix5*)
9888   version_type=linux
9889   need_lib_prefix=no
9890   need_version=no
9891   hardcode_into_libs=yes
9892   if test "$host_cpu" = ia64; then
9893     # AIX 5 supports IA64
9894     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9895     shlibpath_var=LD_LIBRARY_PATH
9896   else
9897     # With GCC up to 2.95.x, collect2 would create an import file
9898     # for dependence libraries.  The import file would start with
9899     # the line `#! .'.  This would cause the generated library to
9900     # depend on `.', always an invalid library.  This was fixed in
9901     # development snapshots of GCC prior to 3.0.
9902     case $host_os in
9903       aix4 | aix4.[01] | aix4.[01].*)
9904       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9905            echo ' yes '
9906            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9907         :
9908       else
9909         can_build_shared=no
9910       fi
9911       ;;
9912     esac
9913     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9914     # soname into executable. Probably we can add versioning support to
9915     # collect2, so additional links can be useful in future.
9916     if test "$aix_use_runtimelinking" = yes; then
9917       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9918       # instead of lib<name>.a to let people know that these are not
9919       # typical AIX shared libraries.
9920       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921     else
9922       # We preserve .a as extension for shared libraries through AIX4.2
9923       # and later when we are not doing run time linking.
9924       library_names_spec='${libname}${release}.a $libname.a'
9925       soname_spec='${libname}${release}${shared_ext}$major'
9926     fi
9927     shlibpath_var=LIBPATH
9928   fi
9929   ;;
9930
9931 amigaos*)
9932   library_names_spec='$libname.ixlibrary $libname.a'
9933   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9934   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'
9935   ;;
9936
9937 beos*)
9938   library_names_spec='${libname}${shared_ext}'
9939   dynamic_linker="$host_os ld.so"
9940   shlibpath_var=LIBRARY_PATH
9941   ;;
9942
9943 bsdi[45]*)
9944   version_type=linux
9945   need_version=no
9946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947   soname_spec='${libname}${release}${shared_ext}$major'
9948   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9949   shlibpath_var=LD_LIBRARY_PATH
9950   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9951   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9952   # the default ld.so.conf also contains /usr/contrib/lib and
9953   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9954   # libtool to hard-code these into programs
9955   ;;
9956
9957 cygwin* | mingw* | pw32*)
9958   version_type=windows
9959   shrext_cmds=".dll"
9960   need_version=no
9961   need_lib_prefix=no
9962
9963   case $GCC,$host_os in
9964   yes,cygwin* | yes,mingw* | yes,pw32*)
9965     library_names_spec='$libname.dll.a'
9966     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9967     postinstall_cmds='base_file=`basename \${file}`~
9968       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9969       dldir=$destdir/`dirname \$dlpath`~
9970       test -d \$dldir || mkdir -p \$dldir~
9971       $install_prog $dir/$dlname \$dldir/$dlname~
9972       chmod a+x \$dldir/$dlname'
9973     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9974       dlpath=$dir/\$dldll~
9975        $rm \$dlpath'
9976     shlibpath_overrides_runpath=yes
9977
9978     case $host_os in
9979     cygwin*)
9980       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9981       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9982       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9983       ;;
9984     mingw*)
9985       # MinGW DLLs use traditional 'lib' prefix
9986       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9988       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9989         # It is most probably a Windows format PATH printed by
9990         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9991         # path with ; separators, and with drive letters. We can handle the
9992         # drive letters (cygwin fileutils understands them), so leave them,
9993         # especially as we might pass files found there to a mingw objdump,
9994         # which wouldn't understand a cygwinified path. Ahh.
9995         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9996       else
9997         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9998       fi
9999       ;;
10000     pw32*)
10001       # pw32 DLLs use 'pw' prefix rather than 'lib'
10002       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10003       ;;
10004     esac
10005     ;;
10006
10007   *)
10008     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10009     ;;
10010   esac
10011   dynamic_linker='Win32 ld.exe'
10012   # FIXME: first we should search . and the directory the executable is in
10013   shlibpath_var=PATH
10014   ;;
10015
10016 darwin* | rhapsody*)
10017   dynamic_linker="$host_os dyld"
10018   version_type=darwin
10019   need_lib_prefix=no
10020   need_version=no
10021   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10022   soname_spec='${libname}${release}${major}$shared_ext'
10023   shlibpath_overrides_runpath=yes
10024   shlibpath_var=DYLD_LIBRARY_PATH
10025   shrext_cmds='.dylib'
10026   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10027   if test "$GCC" = yes; then
10028     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"`
10029   else
10030     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10031   fi
10032   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10033   ;;
10034
10035 dgux*)
10036   version_type=linux
10037   need_lib_prefix=no
10038   need_version=no
10039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   shlibpath_var=LD_LIBRARY_PATH
10042   ;;
10043
10044 freebsd1*)
10045   dynamic_linker=no
10046   ;;
10047
10048 kfreebsd*-gnu)
10049   version_type=linux
10050   need_lib_prefix=no
10051   need_version=no
10052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10053   soname_spec='${libname}${release}${shared_ext}$major'
10054   shlibpath_var=LD_LIBRARY_PATH
10055   shlibpath_overrides_runpath=no
10056   hardcode_into_libs=yes
10057   dynamic_linker='GNU ld.so'
10058   ;;
10059
10060 freebsd* | dragonfly*)
10061   # DragonFly does not have aout.  When/if they implement a new
10062   # versioning mechanism, adjust this.
10063   if test -x /usr/bin/objformat; then
10064     objformat=`/usr/bin/objformat`
10065   else
10066     case $host_os in
10067     freebsd[123]*) objformat=aout ;;
10068     *) objformat=elf ;;
10069     esac
10070   fi
10071   version_type=freebsd-$objformat
10072   case $version_type in
10073     freebsd-elf*)
10074       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10075       need_version=no
10076       need_lib_prefix=no
10077       ;;
10078     freebsd-*)
10079       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10080       need_version=yes
10081       ;;
10082   esac
10083   shlibpath_var=LD_LIBRARY_PATH
10084   case $host_os in
10085   freebsd2*)
10086     shlibpath_overrides_runpath=yes
10087     ;;
10088   freebsd3.[01]* | freebsdelf3.[01]*)
10089     shlibpath_overrides_runpath=yes
10090     hardcode_into_libs=yes
10091     ;;
10092   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10093   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10094     shlibpath_overrides_runpath=no
10095     hardcode_into_libs=yes
10096     ;;
10097   freebsd*) # from 4.6 on
10098     shlibpath_overrides_runpath=yes
10099     hardcode_into_libs=yes
10100     ;;
10101   esac
10102   ;;
10103
10104 gnu*)
10105   version_type=linux
10106   need_lib_prefix=no
10107   need_version=no
10108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10109   soname_spec='${libname}${release}${shared_ext}$major'
10110   shlibpath_var=LD_LIBRARY_PATH
10111   hardcode_into_libs=yes
10112   ;;
10113
10114 hpux9* | hpux10* | hpux11*)
10115   # Give a soname corresponding to the major version so that dld.sl refuses to
10116   # link against other versions.
10117   version_type=sunos
10118   need_lib_prefix=no
10119   need_version=no
10120   case $host_cpu in
10121   ia64*)
10122     shrext_cmds='.so'
10123     hardcode_into_libs=yes
10124     dynamic_linker="$host_os dld.so"
10125     shlibpath_var=LD_LIBRARY_PATH
10126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128     soname_spec='${libname}${release}${shared_ext}$major'
10129     if test "X$HPUX_IA64_MODE" = X32; then
10130       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10131     else
10132       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10133     fi
10134     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10135     ;;
10136    hppa*64*)
10137      shrext_cmds='.sl'
10138      hardcode_into_libs=yes
10139      dynamic_linker="$host_os dld.sl"
10140      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10141      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10142      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143      soname_spec='${libname}${release}${shared_ext}$major'
10144      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10145      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10146      ;;
10147    *)
10148     shrext_cmds='.sl'
10149     dynamic_linker="$host_os dld.sl"
10150     shlibpath_var=SHLIB_PATH
10151     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153     soname_spec='${libname}${release}${shared_ext}$major'
10154     ;;
10155   esac
10156   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10157   postinstall_cmds='chmod 555 $lib'
10158   ;;
10159
10160 interix3*)
10161   version_type=linux
10162   need_lib_prefix=no
10163   need_version=no
10164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10165   soname_spec='${libname}${release}${shared_ext}$major'
10166   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10167   shlibpath_var=LD_LIBRARY_PATH
10168   shlibpath_overrides_runpath=no
10169   hardcode_into_libs=yes
10170   ;;
10171
10172 irix5* | irix6* | nonstopux*)
10173   case $host_os in
10174     nonstopux*) version_type=nonstopux ;;
10175     *)
10176         if test "$lt_cv_prog_gnu_ld" = yes; then
10177                 version_type=linux
10178         else
10179                 version_type=irix
10180         fi ;;
10181   esac
10182   need_lib_prefix=no
10183   need_version=no
10184   soname_spec='${libname}${release}${shared_ext}$major'
10185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10186   case $host_os in
10187   irix5* | nonstopux*)
10188     libsuff= shlibsuff=
10189     ;;
10190   *)
10191     case $LD in # libtool.m4 will add one of these switches to LD
10192     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10193       libsuff= shlibsuff= libmagic=32-bit;;
10194     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10195       libsuff=32 shlibsuff=N32 libmagic=N32;;
10196     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10197       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10198     *) libsuff= shlibsuff= libmagic=never-match;;
10199     esac
10200     ;;
10201   esac
10202   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10203   shlibpath_overrides_runpath=no
10204   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10205   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10206   hardcode_into_libs=yes
10207   ;;
10208
10209 # No shared lib support for Linux oldld, aout, or coff.
10210 linux*oldld* | linux*aout* | linux*coff*)
10211   dynamic_linker=no
10212   ;;
10213
10214 # This must be Linux ELF.
10215 linux*)
10216   version_type=linux
10217   need_lib_prefix=no
10218   need_version=no
10219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220   soname_spec='${libname}${release}${shared_ext}$major'
10221   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10222   shlibpath_var=LD_LIBRARY_PATH
10223   shlibpath_overrides_runpath=no
10224   # This implies no fast_install, which is unacceptable.
10225   # Some rework will be needed to allow for fast_install
10226   # before this can be enabled.
10227   hardcode_into_libs=yes
10228
10229   # Append ld.so.conf contents to the search path
10230   if test -f /etc/ld.so.conf; then
10231     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' ' '`
10232     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10233   fi
10234
10235   # We used to test for /lib/ld.so.1 and disable shared libraries on
10236   # powerpc, because MkLinux only supported shared libraries with the
10237   # GNU dynamic linker.  Since this was broken with cross compilers,
10238   # most powerpc-linux boxes support dynamic linking these days and
10239   # people can always --disable-shared, the test was removed, and we
10240   # assume the GNU/Linux dynamic linker is in use.
10241   dynamic_linker='GNU/Linux ld.so'
10242   ;;
10243
10244 knetbsd*-gnu)
10245   version_type=linux
10246   need_lib_prefix=no
10247   need_version=no
10248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10249   soname_spec='${libname}${release}${shared_ext}$major'
10250   shlibpath_var=LD_LIBRARY_PATH
10251   shlibpath_overrides_runpath=no
10252   hardcode_into_libs=yes
10253   dynamic_linker='GNU ld.so'
10254   ;;
10255
10256 netbsd*)
10257   version_type=sunos
10258   need_lib_prefix=no
10259   need_version=no
10260   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10262     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10263     dynamic_linker='NetBSD (a.out) ld.so'
10264   else
10265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266     soname_spec='${libname}${release}${shared_ext}$major'
10267     dynamic_linker='NetBSD ld.elf_so'
10268   fi
10269   shlibpath_var=LD_LIBRARY_PATH
10270   shlibpath_overrides_runpath=yes
10271   hardcode_into_libs=yes
10272   ;;
10273
10274 newsos6)
10275   version_type=linux
10276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277   shlibpath_var=LD_LIBRARY_PATH
10278   shlibpath_overrides_runpath=yes
10279   ;;
10280
10281 nto-qnx*)
10282   version_type=linux
10283   need_lib_prefix=no
10284   need_version=no
10285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286   soname_spec='${libname}${release}${shared_ext}$major'
10287   shlibpath_var=LD_LIBRARY_PATH
10288   shlibpath_overrides_runpath=yes
10289   ;;
10290
10291 openbsd*)
10292   version_type=sunos
10293   sys_lib_dlsearch_path_spec="/usr/lib"
10294   need_lib_prefix=no
10295   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10296   case $host_os in
10297     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10298     *)                         need_version=no  ;;
10299   esac
10300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10304     case $host_os in
10305       openbsd2.[89] | openbsd2.[89].*)
10306         shlibpath_overrides_runpath=no
10307         ;;
10308       *)
10309         shlibpath_overrides_runpath=yes
10310         ;;
10311       esac
10312   else
10313     shlibpath_overrides_runpath=yes
10314   fi
10315   ;;
10316
10317 os2*)
10318   libname_spec='$name'
10319   shrext_cmds=".dll"
10320   need_lib_prefix=no
10321   library_names_spec='$libname${shared_ext} $libname.a'
10322   dynamic_linker='OS/2 ld.exe'
10323   shlibpath_var=LIBPATH
10324   ;;
10325
10326 osf3* | osf4* | osf5*)
10327   version_type=osf
10328   need_lib_prefix=no
10329   need_version=no
10330   soname_spec='${libname}${release}${shared_ext}$major'
10331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332   shlibpath_var=LD_LIBRARY_PATH
10333   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10334   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10335   ;;
10336
10337 solaris*)
10338   version_type=linux
10339   need_lib_prefix=no
10340   need_version=no
10341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342   soname_spec='${libname}${release}${shared_ext}$major'
10343   shlibpath_var=LD_LIBRARY_PATH
10344   shlibpath_overrides_runpath=yes
10345   hardcode_into_libs=yes
10346   # ldd complains unless libraries are executable
10347   postinstall_cmds='chmod +x $lib'
10348   ;;
10349
10350 sunos4*)
10351   version_type=sunos
10352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10353   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10354   shlibpath_var=LD_LIBRARY_PATH
10355   shlibpath_overrides_runpath=yes
10356   if test "$with_gnu_ld" = yes; then
10357     need_lib_prefix=no
10358   fi
10359   need_version=yes
10360   ;;
10361
10362 sysv4 | sysv4.3*)
10363   version_type=linux
10364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365   soname_spec='${libname}${release}${shared_ext}$major'
10366   shlibpath_var=LD_LIBRARY_PATH
10367   case $host_vendor in
10368     sni)
10369       shlibpath_overrides_runpath=no
10370       need_lib_prefix=no
10371       export_dynamic_flag_spec='${wl}-Blargedynsym'
10372       runpath_var=LD_RUN_PATH
10373       ;;
10374     siemens)
10375       need_lib_prefix=no
10376       ;;
10377     motorola)
10378       need_lib_prefix=no
10379       need_version=no
10380       shlibpath_overrides_runpath=no
10381       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10382       ;;
10383   esac
10384   ;;
10385
10386 sysv4*MP*)
10387   if test -d /usr/nec ;then
10388     version_type=linux
10389     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10390     soname_spec='$libname${shared_ext}.$major'
10391     shlibpath_var=LD_LIBRARY_PATH
10392   fi
10393   ;;
10394
10395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10396   version_type=freebsd-elf
10397   need_lib_prefix=no
10398   need_version=no
10399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10400   soname_spec='${libname}${release}${shared_ext}$major'
10401   shlibpath_var=LD_LIBRARY_PATH
10402   hardcode_into_libs=yes
10403   if test "$with_gnu_ld" = yes; then
10404     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10405     shlibpath_overrides_runpath=no
10406   else
10407     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10408     shlibpath_overrides_runpath=yes
10409     case $host_os in
10410       sco3.2v5*)
10411         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10412         ;;
10413     esac
10414   fi
10415   sys_lib_dlsearch_path_spec='/usr/lib'
10416   ;;
10417
10418 uts4*)
10419   version_type=linux
10420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421   soname_spec='${libname}${release}${shared_ext}$major'
10422   shlibpath_var=LD_LIBRARY_PATH
10423   ;;
10424
10425 *)
10426   dynamic_linker=no
10427   ;;
10428 esac
10429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10430 echo "${ECHO_T}$dynamic_linker" >&6; }
10431 test "$dynamic_linker" = no && can_build_shared=no
10432
10433 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10434 if test "$GCC" = yes; then
10435   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10436 fi
10437
10438
10439 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10440 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10441 if test "${libltdl_cv_shlibext+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444
10445 module=yes
10446 eval libltdl_cv_shlibext=$shrext_cmds
10447
10448 fi
10449 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10450 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10451 if test -n "$libltdl_cv_shlibext"; then
10452
10453 cat >>confdefs.h <<_ACEOF
10454 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10455 _ACEOF
10456
10457 fi
10458
10459
10460 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10461 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10462 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   libltdl_cv_shlibpath_var="$shlibpath_var"
10466 fi
10467 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10468 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10469 if test -n "$libltdl_cv_shlibpath_var"; then
10470
10471 cat >>confdefs.h <<_ACEOF
10472 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10473 _ACEOF
10474
10475 fi
10476
10477
10478 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10479 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10480 if test "${libltdl_cv_sys_search_path+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10484 fi
10485 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10486 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10487 if test -n "$libltdl_cv_sys_search_path"; then
10488   sys_search_path=
10489   for dir in $libltdl_cv_sys_search_path; do
10490     if test -z "$sys_search_path"; then
10491       sys_search_path="$dir"
10492     else
10493       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10494     fi
10495   done
10496
10497 cat >>confdefs.h <<_ACEOF
10498 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10499 _ACEOF
10500
10501 fi
10502
10503 { echo "$as_me:$LINENO: checking for objdir" >&5
10504 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10505 if test "${libltdl_cv_objdir+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508   libltdl_cv_objdir="$objdir"
10509   if test -n "$objdir"; then
10510     :
10511   else
10512     rm -f .libs 2>/dev/null
10513     mkdir .libs 2>/dev/null
10514     if test -d .libs; then
10515       libltdl_cv_objdir=.libs
10516     else
10517       # MS-DOS does not allow filenames that begin with a dot.
10518       libltdl_cv_objdir=_libs
10519     fi
10520   rmdir .libs 2>/dev/null
10521   fi
10522
10523 fi
10524 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10525 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10526
10527 cat >>confdefs.h <<_ACEOF
10528 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10529 _ACEOF
10530
10531
10532
10533
10534
10535
10536 # Check for command to grab the raw symbol name followed by C symbol from nm.
10537 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10538 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10539 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10540   echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542
10543 # These are sane defaults that work on at least a few old systems.
10544 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10545
10546 # Character class describing NM global symbol codes.
10547 symcode='[BCDEGRST]'
10548
10549 # Regexp to match symbols that can be accessed directly from C.
10550 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10551
10552 # Transform an extracted symbol line into a proper C declaration
10553 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10554
10555 # Transform an extracted symbol line into symbol name and symbol address
10556 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'"
10557
10558 # Define system-specific variables.
10559 case $host_os in
10560 aix*)
10561   symcode='[BCDT]'
10562   ;;
10563 cygwin* | mingw* | pw32*)
10564   symcode='[ABCDGISTW]'
10565   ;;
10566 hpux*) # Its linker distinguishes data from code symbols
10567   if test "$host_cpu" = ia64; then
10568     symcode='[ABCDEGRST]'
10569   fi
10570   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10571   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'"
10572   ;;
10573 linux*)
10574   if test "$host_cpu" = ia64; then
10575     symcode='[ABCDGIRSTW]'
10576     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10577     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'"
10578   fi
10579   ;;
10580 irix* | nonstopux*)
10581   symcode='[BCDEGRST]'
10582   ;;
10583 osf*)
10584   symcode='[BCDEGQRST]'
10585   ;;
10586 solaris*)
10587   symcode='[BDRT]'
10588   ;;
10589 sco3.2v5*)
10590   symcode='[DT]'
10591   ;;
10592 sysv4.2uw2*)
10593   symcode='[DT]'
10594   ;;
10595 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10596   symcode='[ABDT]'
10597   ;;
10598 sysv4)
10599   symcode='[DFNSTU]'
10600   ;;
10601 esac
10602
10603 # Handle CRLF in mingw tool chain
10604 opt_cr=
10605 case $build_os in
10606 mingw*)
10607   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10608   ;;
10609 esac
10610
10611 # If we're using GNU nm, then use its standard symbol codes.
10612 case `$NM -V 2>&1` in
10613 *GNU* | *'with BFD'*)
10614   symcode='[ABCDGIRSTW]' ;;
10615 esac
10616
10617 # Try without a prefix undercore, then with it.
10618 for ac_symprfx in "" "_"; do
10619
10620   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10621   symxfrm="\\1 $ac_symprfx\\2 \\2"
10622
10623   # Write the raw and C identifiers.
10624   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10625
10626   # Check to see that the pipe works correctly.
10627   pipe_works=no
10628
10629   rm -f conftest*
10630   cat > conftest.$ac_ext <<EOF
10631 #ifdef __cplusplus
10632 extern "C" {
10633 #endif
10634 char nm_test_var;
10635 void nm_test_func(){}
10636 #ifdef __cplusplus
10637 }
10638 #endif
10639 int main(){nm_test_var='a';nm_test_func();return(0);}
10640 EOF
10641
10642   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643   (eval $ac_compile) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; then
10647     # Now try to grab the symbols.
10648     nlist=conftest.nm
10649     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10650   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); } && test -s "$nlist"; then
10654       # Try sorting and uniquifying the output.
10655       if sort "$nlist" | uniq > "$nlist"T; then
10656         mv -f "$nlist"T "$nlist"
10657       else
10658         rm -f "$nlist"T
10659       fi
10660
10661       # Make sure that we snagged all the symbols we need.
10662       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10663         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10664           cat <<EOF > conftest.$ac_ext
10665 #ifdef __cplusplus
10666 extern "C" {
10667 #endif
10668
10669 EOF
10670           # Now generate the symbol file.
10671           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10672
10673           cat <<EOF >> conftest.$ac_ext
10674 #if defined (__STDC__) && __STDC__
10675 # define lt_ptr_t void *
10676 #else
10677 # define lt_ptr_t char *
10678 # define const
10679 #endif
10680
10681 /* The mapping between symbol names and symbols. */
10682 const struct {
10683   const char *name;
10684   lt_ptr_t address;
10685 }
10686 lt_preloaded_symbols[] =
10687 {
10688 EOF
10689           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10690           cat <<\EOF >> conftest.$ac_ext
10691   {0, (lt_ptr_t) 0}
10692 };
10693
10694 #ifdef __cplusplus
10695 }
10696 #endif
10697 EOF
10698           # Now try linking the two files.
10699           mv conftest.$ac_objext conftstm.$ac_objext
10700           lt_save_LIBS="$LIBS"
10701           lt_save_CFLAGS="$CFLAGS"
10702           LIBS="conftstm.$ac_objext"
10703           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10704           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705   (eval $ac_link) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10709             pipe_works=yes
10710           fi
10711           LIBS="$lt_save_LIBS"
10712           CFLAGS="$lt_save_CFLAGS"
10713         else
10714           echo "cannot find nm_test_func in $nlist" >&5
10715         fi
10716       else
10717         echo "cannot find nm_test_var in $nlist" >&5
10718       fi
10719     else
10720       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10721     fi
10722   else
10723     echo "$progname: failed program was:" >&5
10724     cat conftest.$ac_ext >&5
10725   fi
10726   rm -f conftest* conftst*
10727
10728   # Do not use the global_symbol_pipe unless it works.
10729   if test "$pipe_works" = yes; then
10730     break
10731   else
10732     lt_cv_sys_global_symbol_pipe=
10733   fi
10734 done
10735
10736 fi
10737
10738 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10739   lt_cv_sys_global_symbol_to_cdecl=
10740 fi
10741 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10742   { echo "$as_me:$LINENO: result: failed" >&5
10743 echo "${ECHO_T}failed" >&6; }
10744 else
10745   { echo "$as_me:$LINENO: result: ok" >&5
10746 echo "${ECHO_T}ok" >&6; }
10747 fi
10748
10749
10750 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10751 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10752 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10756     libltdl_cv_preloaded_symbols=yes
10757   else
10758     libltdl_cv_preloaded_symbols=no
10759   fi
10760
10761 fi
10762 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10763 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10764 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10765
10766 cat >>confdefs.h <<\_ACEOF
10767 #define HAVE_PRELOADED_SYMBOLS 1
10768 _ACEOF
10769
10770 fi
10771
10772 LIBADD_DL=
10773
10774 ac_ext=c
10775 ac_cpp='$CPP $CPPFLAGS'
10776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10779
10780
10781 { echo "$as_me:$LINENO: checking for shl_load" >&5
10782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10783 if test "${ac_cv_func_shl_load+set}" = set; then
10784   echo $ECHO_N "(cached) $ECHO_C" >&6
10785 else
10786   cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h.  */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h.  */
10792 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10794 #define shl_load innocuous_shl_load
10795
10796 /* System header to define __stub macros and hopefully few prototypes,
10797     which can conflict with char shl_load (); below.
10798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10799     <limits.h> exists even on freestanding compilers.  */
10800
10801 #ifdef __STDC__
10802 # include <limits.h>
10803 #else
10804 # include <assert.h>
10805 #endif
10806
10807 #undef shl_load
10808
10809 /* Override any GCC internal prototype to avoid an error.
10810    Use char because int might match the return type of a GCC
10811    builtin and then its argument prototype would still apply.  */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 char shl_load ();
10816 /* The GNU C library defines this for functions which it implements
10817     to always fail with ENOSYS.  Some functions are actually named
10818     something starting with __ and the normal name is an alias.  */
10819 #if defined __stub_shl_load || defined __stub___shl_load
10820 choke me
10821 #endif
10822
10823 int
10824 main ()
10825 {
10826 return shl_load ();
10827   ;
10828   return 0;
10829 }
10830 _ACEOF
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835   *) ac_try_echo=$ac_try;;
10836 esac
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838   (eval "$ac_link") 2>conftest.er1
10839   ac_status=$?
10840   grep -v '^ *+' conftest.er1 >conftest.err
10841   rm -f conftest.er1
10842   cat conftest.err >&5
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); } &&
10845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10846   { (case "(($ac_try" in
10847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848   *) ac_try_echo=$ac_try;;
10849 esac
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851   (eval "$ac_try") 2>&5
10852   ac_status=$?
10853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); }; } &&
10855          { ac_try='test -s conftest$ac_exeext'
10856   { (case "(($ac_try" in
10857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858   *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861   (eval "$ac_try") 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; }; then
10865   ac_cv_func_shl_load=yes
10866 else
10867   echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10869
10870         ac_cv_func_shl_load=no
10871 fi
10872
10873 rm -f core conftest.err conftest.$ac_objext \
10874       conftest$ac_exeext conftest.$ac_ext
10875 fi
10876 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10877 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10878 if test $ac_cv_func_shl_load = yes; then
10879
10880 cat >>confdefs.h <<\_ACEOF
10881 #define HAVE_SHL_LOAD 1
10882 _ACEOF
10883
10884 else
10885   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10886 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10887 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10888   echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890   ac_check_lib_save_LIBS=$LIBS
10891 LIBS="-ldld  $LIBS"
10892 cat >conftest.$ac_ext <<_ACEOF
10893 /* confdefs.h.  */
10894 _ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h.  */
10898
10899 /* Override any GCC internal prototype to avoid an error.
10900    Use char because int might match the return type of a GCC
10901    builtin and then its argument prototype would still apply.  */
10902 #ifdef __cplusplus
10903 extern "C"
10904 #endif
10905 char shl_load ();
10906 int
10907 main ()
10908 {
10909 return shl_load ();
10910   ;
10911   return 0;
10912 }
10913 _ACEOF
10914 rm -f conftest.$ac_objext conftest$ac_exeext
10915 if { (ac_try="$ac_link"
10916 case "(($ac_try" in
10917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918   *) ac_try_echo=$ac_try;;
10919 esac
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921   (eval "$ac_link") 2>conftest.er1
10922   ac_status=$?
10923   grep -v '^ *+' conftest.er1 >conftest.err
10924   rm -f conftest.er1
10925   cat conftest.err >&5
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); } &&
10928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10929   { (case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_try") 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; } &&
10938          { ac_try='test -s conftest$ac_exeext'
10939   { (case "(($ac_try" in
10940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941   *) ac_try_echo=$ac_try;;
10942 esac
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944   (eval "$ac_try") 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; }; then
10948   ac_cv_lib_dld_shl_load=yes
10949 else
10950   echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10952
10953         ac_cv_lib_dld_shl_load=no
10954 fi
10955
10956 rm -f core conftest.err conftest.$ac_objext \
10957       conftest$ac_exeext conftest.$ac_ext
10958 LIBS=$ac_check_lib_save_LIBS
10959 fi
10960 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10961 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10962 if test $ac_cv_lib_dld_shl_load = yes; then
10963
10964 cat >>confdefs.h <<\_ACEOF
10965 #define HAVE_SHL_LOAD 1
10966 _ACEOF
10967
10968         LIBADD_DL="$LIBADD_DL -ldld"
10969 else
10970   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10971 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10972 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10973   echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975   ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-ldl  $LIBS"
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985    Use char because int might match the return type of a GCC
10986    builtin and then its argument prototype would still apply.  */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char dlopen ();
10991 int
10992 main ()
10993 {
10994 return dlopen ();
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014   { (case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019   (eval "$ac_try") 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); }; } &&
11023          { ac_try='test -s conftest$ac_exeext'
11024   { (case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_try") 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; }; then
11033   ac_cv_lib_dl_dlopen=yes
11034 else
11035   echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038         ac_cv_lib_dl_dlopen=no
11039 fi
11040
11041 rm -f core conftest.err conftest.$ac_objext \
11042       conftest$ac_exeext conftest.$ac_ext
11043 LIBS=$ac_check_lib_save_LIBS
11044 fi
11045 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11046 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11047 if test $ac_cv_lib_dl_dlopen = yes; then
11048
11049 cat >>confdefs.h <<\_ACEOF
11050 #define HAVE_LIBDL 1
11051 _ACEOF
11052
11053                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11054 else
11055   cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h.  */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h.  */
11061 #if HAVE_DLFCN_H
11062 #  include <dlfcn.h>
11063 #endif
11064
11065 int
11066 main ()
11067 {
11068 dlopen(0, 0);
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (ac_try="$ac_link"
11075 case "(($ac_try" in
11076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077   *) ac_try_echo=$ac_try;;
11078 esac
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080   (eval "$ac_link") 2>conftest.er1
11081   ac_status=$?
11082   grep -v '^ *+' conftest.er1 >conftest.err
11083   rm -f conftest.er1
11084   cat conftest.err >&5
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); } &&
11087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11088   { (case "(($ac_try" in
11089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090   *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093   (eval "$ac_try") 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; } &&
11097          { ac_try='test -s conftest$ac_exeext'
11098   { (case "(($ac_try" in
11099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100   *) ac_try_echo=$ac_try;;
11101 esac
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103   (eval "$ac_try") 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); }; }; then
11107
11108 cat >>confdefs.h <<\_ACEOF
11109 #define HAVE_LIBDL 1
11110 _ACEOF
11111  libltdl_cv_func_dlopen="yes"
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11115
11116         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11117 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11118 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11119   echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121   ac_check_lib_save_LIBS=$LIBS
11122 LIBS="-lsvld  $LIBS"
11123 cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h.  */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h.  */
11129
11130 /* Override any GCC internal prototype to avoid an error.
11131    Use char because int might match the return type of a GCC
11132    builtin and then its argument prototype would still apply.  */
11133 #ifdef __cplusplus
11134 extern "C"
11135 #endif
11136 char dlopen ();
11137 int
11138 main ()
11139 {
11140 return dlopen ();
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_link") 2>conftest.er1
11153   ac_status=$?
11154   grep -v '^ *+' conftest.er1 >conftest.err
11155   rm -f conftest.er1
11156   cat conftest.err >&5
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160   { (case "(($ac_try" in
11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162   *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165   (eval "$ac_try") 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; } &&
11169          { ac_try='test -s conftest$ac_exeext'
11170   { (case "(($ac_try" in
11171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172   *) ac_try_echo=$ac_try;;
11173 esac
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175   (eval "$ac_try") 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; }; then
11179   ac_cv_lib_svld_dlopen=yes
11180 else
11181   echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11183
11184         ac_cv_lib_svld_dlopen=no
11185 fi
11186
11187 rm -f core conftest.err conftest.$ac_objext \
11188       conftest$ac_exeext conftest.$ac_ext
11189 LIBS=$ac_check_lib_save_LIBS
11190 fi
11191 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11192 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11193 if test $ac_cv_lib_svld_dlopen = yes; then
11194
11195 cat >>confdefs.h <<\_ACEOF
11196 #define HAVE_LIBDL 1
11197 _ACEOF
11198
11199                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11200 else
11201   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11202 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11203 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206   ac_check_lib_save_LIBS=$LIBS
11207 LIBS="-ldld  $LIBS"
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h.  */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h.  */
11214
11215 /* Override any GCC internal prototype to avoid an error.
11216    Use char because int might match the return type of a GCC
11217    builtin and then its argument prototype would still apply.  */
11218 #ifdef __cplusplus
11219 extern "C"
11220 #endif
11221 char dld_link ();
11222 int
11223 main ()
11224 {
11225 return dld_link ();
11226   ;
11227   return 0;
11228 }
11229 _ACEOF
11230 rm -f conftest.$ac_objext conftest$ac_exeext
11231 if { (ac_try="$ac_link"
11232 case "(($ac_try" in
11233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234   *) ac_try_echo=$ac_try;;
11235 esac
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237   (eval "$ac_link") 2>conftest.er1
11238   ac_status=$?
11239   grep -v '^ *+' conftest.er1 >conftest.err
11240   rm -f conftest.er1
11241   cat conftest.err >&5
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); } &&
11244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11245   { (case "(($ac_try" in
11246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247   *) ac_try_echo=$ac_try;;
11248 esac
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250   (eval "$ac_try") 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; } &&
11254          { ac_try='test -s conftest$ac_exeext'
11255   { (case "(($ac_try" in
11256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257   *) ac_try_echo=$ac_try;;
11258 esac
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260   (eval "$ac_try") 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }; then
11264   ac_cv_lib_dld_dld_link=yes
11265 else
11266   echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269         ac_cv_lib_dld_dld_link=no
11270 fi
11271
11272 rm -f core conftest.err conftest.$ac_objext \
11273       conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_lib_save_LIBS
11275 fi
11276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11277 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11278 if test $ac_cv_lib_dld_dld_link = yes; then
11279
11280 cat >>confdefs.h <<\_ACEOF
11281 #define HAVE_DLD 1
11282 _ACEOF
11283
11284                 LIBADD_DL="$LIBADD_DL -ldld"
11285 else
11286   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11287 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11288 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291   cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h.  */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h.  */
11297 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11299 #define _dyld_func_lookup innocuous__dyld_func_lookup
11300
11301 /* System header to define __stub macros and hopefully few prototypes,
11302     which can conflict with char _dyld_func_lookup (); below.
11303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11304     <limits.h> exists even on freestanding compilers.  */
11305
11306 #ifdef __STDC__
11307 # include <limits.h>
11308 #else
11309 # include <assert.h>
11310 #endif
11311
11312 #undef _dyld_func_lookup
11313
11314 /* Override any GCC internal prototype to avoid an error.
11315    Use char because int might match the return type of a GCC
11316    builtin and then its argument prototype would still apply.  */
11317 #ifdef __cplusplus
11318 extern "C"
11319 #endif
11320 char _dyld_func_lookup ();
11321 /* The GNU C library defines this for functions which it implements
11322     to always fail with ENOSYS.  Some functions are actually named
11323     something starting with __ and the normal name is an alias.  */
11324 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11325 choke me
11326 #endif
11327
11328 int
11329 main ()
11330 {
11331 return _dyld_func_lookup ();
11332   ;
11333   return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (ac_try="$ac_link"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_link") 2>conftest.er1
11344   ac_status=$?
11345   grep -v '^ *+' conftest.er1 >conftest.err
11346   rm -f conftest.er1
11347   cat conftest.err >&5
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } &&
11350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351   { (case "(($ac_try" in
11352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353   *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356   (eval "$ac_try") 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); }; } &&
11360          { ac_try='test -s conftest$ac_exeext'
11361   { (case "(($ac_try" in
11362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363   *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366   (eval "$ac_try") 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; }; then
11370   ac_cv_func__dyld_func_lookup=yes
11371 else
11372   echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375         ac_cv_func__dyld_func_lookup=no
11376 fi
11377
11378 rm -f core conftest.err conftest.$ac_objext \
11379       conftest$ac_exeext conftest.$ac_ext
11380 fi
11381 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11382 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11383 if test $ac_cv_func__dyld_func_lookup = yes; then
11384
11385 cat >>confdefs.h <<\_ACEOF
11386 #define HAVE_DYLD 1
11387 _ACEOF
11388
11389 fi
11390
11391
11392 fi
11393
11394
11395 fi
11396
11397
11398 fi
11399
11400 rm -f core conftest.err conftest.$ac_objext \
11401       conftest$ac_exeext conftest.$ac_ext
11402
11403 fi
11404
11405
11406 fi
11407
11408
11409 fi
11410
11411
11412 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11413 then
11414   lt_save_LIBS="$LIBS"
11415   LIBS="$LIBS $LIBADD_DL"
11416
11417 for ac_func in dlerror
11418 do
11419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11423   echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425   cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11433 #define $ac_func innocuous_$ac_func
11434
11435 /* System header to define __stub macros and hopefully few prototypes,
11436     which can conflict with char $ac_func (); below.
11437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11438     <limits.h> exists even on freestanding compilers.  */
11439
11440 #ifdef __STDC__
11441 # include <limits.h>
11442 #else
11443 # include <assert.h>
11444 #endif
11445
11446 #undef $ac_func
11447
11448 /* Override any GCC internal prototype to avoid an error.
11449    Use char because int might match the return type of a GCC
11450    builtin and then its argument prototype would still apply.  */
11451 #ifdef __cplusplus
11452 extern "C"
11453 #endif
11454 char $ac_func ();
11455 /* The GNU C library defines this for functions which it implements
11456     to always fail with ENOSYS.  Some functions are actually named
11457     something starting with __ and the normal name is an alias.  */
11458 #if defined __stub_$ac_func || defined __stub___$ac_func
11459 choke me
11460 #endif
11461
11462 int
11463 main ()
11464 {
11465 return $ac_func ();
11466   ;
11467   return 0;
11468 }
11469 _ACEOF
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (ac_try="$ac_link"
11472 case "(($ac_try" in
11473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474   *) ac_try_echo=$ac_try;;
11475 esac
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477   (eval "$ac_link") 2>conftest.er1
11478   ac_status=$?
11479   grep -v '^ *+' conftest.er1 >conftest.err
11480   rm -f conftest.er1
11481   cat conftest.err >&5
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); } &&
11484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11485   { (case "(($ac_try" in
11486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487   *) ac_try_echo=$ac_try;;
11488 esac
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490   (eval "$ac_try") 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; } &&
11494          { ac_try='test -s conftest$ac_exeext'
11495   { (case "(($ac_try" in
11496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497   *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500   (eval "$ac_try") 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   eval "$as_ac_var=yes"
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509         eval "$as_ac_var=no"
11510 fi
11511
11512 rm -f core conftest.err conftest.$ac_objext \
11513       conftest$ac_exeext conftest.$ac_ext
11514 fi
11515 ac_res=`eval echo '${'$as_ac_var'}'`
11516                { echo "$as_me:$LINENO: result: $ac_res" >&5
11517 echo "${ECHO_T}$ac_res" >&6; }
11518 if test `eval echo '${'$as_ac_var'}'` = yes; then
11519   cat >>confdefs.h <<_ACEOF
11520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11521 _ACEOF
11522
11523 fi
11524 done
11525
11526   LIBS="$lt_save_LIBS"
11527 fi
11528 ac_ext=c
11529 ac_cpp='$CPP $CPPFLAGS'
11530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11533
11534
11535
11536 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11537 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11538 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   ac_cv_sys_symbol_underscore=no
11542   cat > conftest.$ac_ext <<EOF
11543 void nm_test_func(){}
11544 int main(){nm_test_func;return 0;}
11545 EOF
11546   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547   (eval $ac_compile) 2>&5
11548   ac_status=$?
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); }; then
11551     # Now try to grab the symbols.
11552     ac_nlist=conftest.nm
11553     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11554   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); } && test -s "$ac_nlist"; then
11558       # See whether the symbols have a leading underscore.
11559       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11560         ac_cv_sys_symbol_underscore=yes
11561       else
11562         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11563           :
11564         else
11565           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11566         fi
11567       fi
11568     else
11569       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11570     fi
11571   else
11572     echo "configure: failed program was:" >&5
11573     cat conftest.c >&5
11574   fi
11575   rm -rf conftest*
11576
11577 fi
11578 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11579 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11580
11581
11582 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11583   if test x"$libltdl_cv_func_dlopen" = xyes ||
11584      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11585         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11586 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11587 if test "${libltdl_cv_need_uscore+set}" = set; then
11588   echo $ECHO_N "(cached) $ECHO_C" >&6
11589 else
11590   libltdl_cv_need_uscore=unknown
11591           save_LIBS="$LIBS"
11592           LIBS="$LIBS $LIBADD_DL"
11593           if test "$cross_compiling" = yes; then :
11594   libltdl_cv_need_uscore=cross
11595 else
11596   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597   lt_status=$lt_dlunknown
11598   cat > conftest.$ac_ext <<EOF
11599 #line 11591 "configure"
11600 #include "confdefs.h"
11601
11602 #if HAVE_DLFCN_H
11603 #include <dlfcn.h>
11604 #endif
11605
11606 #include <stdio.h>
11607
11608 #ifdef RTLD_GLOBAL
11609 #  define LT_DLGLOBAL           RTLD_GLOBAL
11610 #else
11611 #  ifdef DL_GLOBAL
11612 #    define LT_DLGLOBAL         DL_GLOBAL
11613 #  else
11614 #    define LT_DLGLOBAL         0
11615 #  endif
11616 #endif
11617
11618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619    find out it does not work in some platform. */
11620 #ifndef LT_DLLAZY_OR_NOW
11621 #  ifdef RTLD_LAZY
11622 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11623 #  else
11624 #    ifdef DL_LAZY
11625 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11626 #    else
11627 #      ifdef RTLD_NOW
11628 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11629 #      else
11630 #        ifdef DL_NOW
11631 #          define LT_DLLAZY_OR_NOW      DL_NOW
11632 #        else
11633 #          define LT_DLLAZY_OR_NOW      0
11634 #        endif
11635 #      endif
11636 #    endif
11637 #  endif
11638 #endif
11639
11640 #ifdef __cplusplus
11641 extern "C" void exit (int);
11642 #endif
11643
11644 void fnord() { int i=42;}
11645 int main ()
11646 {
11647   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11648   int status = $lt_dlunknown;
11649
11650   if (self)
11651     {
11652       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11653       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11654       /* dlclose (self); */
11655     }
11656   else
11657     puts (dlerror ());
11658
11659     exit (status);
11660 }
11661 EOF
11662   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663   (eval $ac_link) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11667     (./conftest; exit; ) >&5 2>/dev/null
11668     lt_status=$?
11669     case x$lt_status in
11670       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11671       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11672       x$lt_dlunknown|x*)  ;;
11673     esac
11674   else :
11675     # compilation failed
11676
11677   fi
11678 fi
11679 rm -fr conftest*
11680
11681           LIBS="$save_LIBS"
11682
11683 fi
11684 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11685 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11686   fi
11687 fi
11688
11689 if test x"$libltdl_cv_need_uscore" = xyes; then
11690
11691 cat >>confdefs.h <<\_ACEOF
11692 #define NEED_USCORE 1
11693 _ACEOF
11694
11695 fi
11696
11697
11698 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11699 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11700 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11701   echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703   # PORTME does your system automatically load deplibs for dlopen?
11704   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11705   # For now, we just catch OSes we know something about -- in the
11706   # future, we'll try test this programmatically.
11707   libltdl_cv_sys_dlopen_deplibs=unknown
11708   case "$host_os" in
11709   aix3*|aix4.1.*|aix4.2.*)
11710     # Unknown whether this is true for these versions of AIX, but
11711     # we want this `case' here to explicitly catch those versions.
11712     libltdl_cv_sys_dlopen_deplibs=unknown
11713     ;;
11714   aix[45]*)
11715     libltdl_cv_sys_dlopen_deplibs=yes
11716     ;;
11717   darwin*)
11718     # Assuming the user has installed a libdl from somewhere, this is true
11719     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11720     libltdl_cv_sys_dlopen_deplibs=yes
11721     ;;
11722   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11723     # GNU and its variants, using gnu ld.so (Glibc)
11724     libltdl_cv_sys_dlopen_deplibs=yes
11725     ;;
11726   hpux10*|hpux11*)
11727     libltdl_cv_sys_dlopen_deplibs=yes
11728     ;;
11729   interix*)
11730     libltdl_cv_sys_dlopen_deplibs=yes
11731     ;;
11732   irix[12345]*|irix6.[01]*)
11733     # Catch all versions of IRIX before 6.2, and indicate that we don't
11734     # know how it worked for any of those versions.
11735     libltdl_cv_sys_dlopen_deplibs=unknown
11736     ;;
11737   irix*)
11738     # The case above catches anything before 6.2, and it's known that
11739     # at 6.2 and later dlopen does load deplibs.
11740     libltdl_cv_sys_dlopen_deplibs=yes
11741     ;;
11742   netbsd*)
11743     libltdl_cv_sys_dlopen_deplibs=yes
11744     ;;
11745   openbsd*)
11746     libltdl_cv_sys_dlopen_deplibs=yes
11747     ;;
11748   osf[1234]*)
11749     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11750     # it did *not* use an RPATH in a shared library to find objects the
11751     # library depends on, so we explicitly say `no'.
11752     libltdl_cv_sys_dlopen_deplibs=no
11753     ;;
11754   osf5.0|osf5.0a|osf5.1)
11755     # dlopen *does* load deplibs and with the right loader patch applied
11756     # it even uses RPATH in a shared library to search for shared objects
11757     # that the library depends on, but there's no easy way to know if that
11758     # patch is installed.  Since this is the case, all we can really
11759     # say is unknown -- it depends on the patch being installed.  If
11760     # it is, this changes to `yes'.  Without it, it would be `no'.
11761     libltdl_cv_sys_dlopen_deplibs=unknown
11762     ;;
11763   osf*)
11764     # the two cases above should catch all versions of osf <= 5.1.  Read
11765     # the comments above for what we know about them.
11766     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11767     # is used to find them so we can finally say `yes'.
11768     libltdl_cv_sys_dlopen_deplibs=yes
11769     ;;
11770   solaris*)
11771     libltdl_cv_sys_dlopen_deplibs=yes
11772     ;;
11773   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11774     libltdl_cv_sys_dlopen_deplibs=yes
11775     ;;
11776   esac
11777
11778 fi
11779 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11780 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11781 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11782
11783 cat >>confdefs.h <<\_ACEOF
11784 #define LTDL_DLOPEN_DEPLIBS 1
11785 _ACEOF
11786
11787 fi
11788
11789
11790 for ac_header in argz.h
11791 do
11792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11794   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797   echo $ECHO_N "(cached) $ECHO_C" >&6
11798 fi
11799 ac_res=`eval echo '${'$as_ac_Header'}'`
11800                { echo "$as_me:$LINENO: result: $ac_res" >&5
11801 echo "${ECHO_T}$ac_res" >&6; }
11802 else
11803   # Is the header compilable?
11804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11806 cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h.  */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h.  */
11812 $ac_includes_default
11813 #include <$ac_header>
11814 _ACEOF
11815 rm -f conftest.$ac_objext
11816 if { (ac_try="$ac_compile"
11817 case "(($ac_try" in
11818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819   *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822   (eval "$ac_compile") 2>conftest.er1
11823   ac_status=$?
11824   grep -v '^ *+' conftest.er1 >conftest.err
11825   rm -f conftest.er1
11826   cat conftest.err >&5
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); } &&
11829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830   { (case "(($ac_try" in
11831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832   *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835   (eval "$ac_try") 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); }; } &&
11839          { ac_try='test -s conftest.$ac_objext'
11840   { (case "(($ac_try" in
11841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842   *) ac_try_echo=$ac_try;;
11843 esac
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845   (eval "$ac_try") 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; }; then
11849   ac_header_compiler=yes
11850 else
11851   echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11853
11854         ac_header_compiler=no
11855 fi
11856
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11859 echo "${ECHO_T}$ac_header_compiler" >&6; }
11860
11861 # Is the header present?
11862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11864 cat >conftest.$ac_ext <<_ACEOF
11865 /* confdefs.h.  */
11866 _ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h.  */
11870 #include <$ac_header>
11871 _ACEOF
11872 if { (ac_try="$ac_cpp conftest.$ac_ext"
11873 case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11879   ac_status=$?
11880   grep -v '^ *+' conftest.er1 >conftest.err
11881   rm -f conftest.er1
11882   cat conftest.err >&5
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); } >/dev/null; then
11885   if test -s conftest.err; then
11886     ac_cpp_err=$ac_c_preproc_warn_flag
11887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11888   else
11889     ac_cpp_err=
11890   fi
11891 else
11892   ac_cpp_err=yes
11893 fi
11894 if test -z "$ac_cpp_err"; then
11895   ac_header_preproc=yes
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900   ac_header_preproc=no
11901 fi
11902
11903 rm -f conftest.err conftest.$ac_ext
11904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11905 echo "${ECHO_T}$ac_header_preproc" >&6; }
11906
11907 # So?  What about this header?
11908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11909   yes:no: )
11910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11914     ac_header_preproc=yes
11915     ;;
11916   no:yes:* )
11917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11929     ( cat <<\_ASBOX
11930 ## ----------------------------------- ##
11931 ## Report this to llvmbugs@cs.uiuc.edu ##
11932 ## ----------------------------------- ##
11933 _ASBOX
11934      ) | sed "s/^/$as_me: WARNING:     /" >&2
11935     ;;
11936 esac
11937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   eval "$as_ac_Header=\$ac_header_preproc"
11943 fi
11944 ac_res=`eval echo '${'$as_ac_Header'}'`
11945                { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947
11948 fi
11949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11950   cat >>confdefs.h <<_ACEOF
11951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11952 _ACEOF
11953
11954 fi
11955
11956 done
11957
11958
11959 { echo "$as_me:$LINENO: checking for error_t" >&5
11960 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11961 if test "${ac_cv_type_error_t+set}" = set; then
11962   echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964   cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970 #if HAVE_ARGZ_H
11971 #  include <argz.h>
11972 #endif
11973
11974 typedef error_t ac__type_new_;
11975 int
11976 main ()
11977 {
11978 if ((ac__type_new_ *) 0)
11979   return 0;
11980 if (sizeof (ac__type_new_))
11981   return 0;
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993   (eval "$ac_compile") 2>conftest.er1
11994   ac_status=$?
11995   grep -v '^ *+' conftest.er1 >conftest.err
11996   rm -f conftest.er1
11997   cat conftest.err >&5
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); } &&
12000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12001   { (case "(($ac_try" in
12002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003   *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006   (eval "$ac_try") 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; } &&
12010          { ac_try='test -s conftest.$ac_objext'
12011   { (case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016   (eval "$ac_try") 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   ac_cv_type_error_t=yes
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025         ac_cv_type_error_t=no
12026 fi
12027
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 fi
12030 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12031 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12032 if test $ac_cv_type_error_t = yes; then
12033
12034 cat >>confdefs.h <<_ACEOF
12035 #define HAVE_ERROR_T 1
12036 _ACEOF
12037
12038
12039 else
12040
12041 cat >>confdefs.h <<\_ACEOF
12042 #define error_t int
12043 _ACEOF
12044
12045 fi
12046
12047
12048
12049
12050
12051
12052
12053 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12054 do
12055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12059   echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061   cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h.  */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h.  */
12067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12069 #define $ac_func innocuous_$ac_func
12070
12071 /* System header to define __stub macros and hopefully few prototypes,
12072     which can conflict with char $ac_func (); below.
12073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12074     <limits.h> exists even on freestanding compilers.  */
12075
12076 #ifdef __STDC__
12077 # include <limits.h>
12078 #else
12079 # include <assert.h>
12080 #endif
12081
12082 #undef $ac_func
12083
12084 /* Override any GCC internal prototype to avoid an error.
12085    Use char because int might match the return type of a GCC
12086    builtin and then its argument prototype would still apply.  */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 char $ac_func ();
12091 /* The GNU C library defines this for functions which it implements
12092     to always fail with ENOSYS.  Some functions are actually named
12093     something starting with __ and the normal name is an alias.  */
12094 #if defined __stub_$ac_func || defined __stub___$ac_func
12095 choke me
12096 #endif
12097
12098 int
12099 main ()
12100 {
12101 return $ac_func ();
12102   ;
12103   return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113   (eval "$ac_link") 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } &&
12120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121   { (case "(($ac_try" in
12122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123   *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126   (eval "$ac_try") 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; } &&
12130          { ac_try='test -s conftest$ac_exeext'
12131   { (case "(($ac_try" in
12132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133   *) ac_try_echo=$ac_try;;
12134 esac
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136   (eval "$ac_try") 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; }; then
12140   eval "$as_ac_var=yes"
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145         eval "$as_ac_var=no"
12146 fi
12147
12148 rm -f core conftest.err conftest.$ac_objext \
12149       conftest$ac_exeext conftest.$ac_ext
12150 fi
12151 ac_res=`eval echo '${'$as_ac_var'}'`
12152                { echo "$as_me:$LINENO: result: $ac_res" >&5
12153 echo "${ECHO_T}$ac_res" >&6; }
12154 if test `eval echo '${'$as_ac_var'}'` = yes; then
12155   cat >>confdefs.h <<_ACEOF
12156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12157 _ACEOF
12158
12159 fi
12160 done
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12190                   stdio.h unistd.h
12191 do
12192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12194   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12197   echo $ECHO_N "(cached) $ECHO_C" >&6
12198 fi
12199 ac_res=`eval echo '${'$as_ac_Header'}'`
12200                { echo "$as_me:$LINENO: result: $ac_res" >&5
12201 echo "${ECHO_T}$ac_res" >&6; }
12202 else
12203   # Is the header compilable?
12204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12206 cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h.  */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h.  */
12212 $ac_includes_default
12213 #include <$ac_header>
12214 _ACEOF
12215 rm -f conftest.$ac_objext
12216 if { (ac_try="$ac_compile"
12217 case "(($ac_try" in
12218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219   *) ac_try_echo=$ac_try;;
12220 esac
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222   (eval "$ac_compile") 2>conftest.er1
12223   ac_status=$?
12224   grep -v '^ *+' conftest.er1 >conftest.err
12225   rm -f conftest.er1
12226   cat conftest.err >&5
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); } &&
12229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12230   { (case "(($ac_try" in
12231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232   *) ac_try_echo=$ac_try;;
12233 esac
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235   (eval "$ac_try") 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; } &&
12239          { ac_try='test -s conftest.$ac_objext'
12240   { (case "(($ac_try" in
12241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242   *) ac_try_echo=$ac_try;;
12243 esac
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245   (eval "$ac_try") 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); }; }; then
12249   ac_header_compiler=yes
12250 else
12251   echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12253
12254         ac_header_compiler=no
12255 fi
12256
12257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12259 echo "${ECHO_T}$ac_header_compiler" >&6; }
12260
12261 # Is the header present?
12262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12264 cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h.  */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h.  */
12270 #include <$ac_header>
12271 _ACEOF
12272 if { (ac_try="$ac_cpp conftest.$ac_ext"
12273 case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } >/dev/null; then
12285   if test -s conftest.err; then
12286     ac_cpp_err=$ac_c_preproc_warn_flag
12287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12288   else
12289     ac_cpp_err=
12290   fi
12291 else
12292   ac_cpp_err=yes
12293 fi
12294 if test -z "$ac_cpp_err"; then
12295   ac_header_preproc=yes
12296 else
12297   echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300   ac_header_preproc=no
12301 fi
12302
12303 rm -f conftest.err conftest.$ac_ext
12304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12305 echo "${ECHO_T}$ac_header_preproc" >&6; }
12306
12307 # So?  What about this header?
12308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12309   yes:no: )
12310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12314     ac_header_preproc=yes
12315     ;;
12316   no:yes:* )
12317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12329     ( cat <<\_ASBOX
12330 ## ----------------------------------- ##
12331 ## Report this to llvmbugs@cs.uiuc.edu ##
12332 ## ----------------------------------- ##
12333 _ASBOX
12334      ) | sed "s/^/$as_me: WARNING:     /" >&2
12335     ;;
12336 esac
12337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   eval "$as_ac_Header=\$ac_header_preproc"
12343 fi
12344 ac_res=`eval echo '${'$as_ac_Header'}'`
12345                { echo "$as_me:$LINENO: result: $ac_res" >&5
12346 echo "${ECHO_T}$ac_res" >&6; }
12347
12348 fi
12349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12350   cat >>confdefs.h <<_ACEOF
12351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12352 _ACEOF
12353
12354 fi
12355
12356 done
12357
12358
12359
12360
12361
12362 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12363 do
12364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12369   echo $ECHO_N "(cached) $ECHO_C" >&6
12370 fi
12371 ac_res=`eval echo '${'$as_ac_Header'}'`
12372                { echo "$as_me:$LINENO: result: $ac_res" >&5
12373 echo "${ECHO_T}$ac_res" >&6; }
12374 else
12375   # Is the header compilable?
12376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12378 cat >conftest.$ac_ext <<_ACEOF
12379 /* confdefs.h.  */
12380 _ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h.  */
12384 $ac_includes_default
12385 #include <$ac_header>
12386 _ACEOF
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391   *) ac_try_echo=$ac_try;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394   (eval "$ac_compile") 2>conftest.er1
12395   ac_status=$?
12396   grep -v '^ *+' conftest.er1 >conftest.err
12397   rm -f conftest.er1
12398   cat conftest.err >&5
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } &&
12401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12402   { (case "(($ac_try" in
12403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404   *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407   (eval "$ac_try") 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); }; } &&
12411          { ac_try='test -s conftest.$ac_objext'
12412   { (case "(($ac_try" in
12413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414   *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417   (eval "$ac_try") 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; }; then
12421   ac_header_compiler=yes
12422 else
12423   echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12425
12426         ac_header_compiler=no
12427 fi
12428
12429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12431 echo "${ECHO_T}$ac_header_compiler" >&6; }
12432
12433 # Is the header present?
12434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12436 cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442 #include <$ac_header>
12443 _ACEOF
12444 if { (ac_try="$ac_cpp conftest.$ac_ext"
12445 case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12451   ac_status=$?
12452   grep -v '^ *+' conftest.er1 >conftest.err
12453   rm -f conftest.er1
12454   cat conftest.err >&5
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } >/dev/null; then
12457   if test -s conftest.err; then
12458     ac_cpp_err=$ac_c_preproc_warn_flag
12459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12460   else
12461     ac_cpp_err=
12462   fi
12463 else
12464   ac_cpp_err=yes
12465 fi
12466 if test -z "$ac_cpp_err"; then
12467   ac_header_preproc=yes
12468 else
12469   echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472   ac_header_preproc=no
12473 fi
12474
12475 rm -f conftest.err conftest.$ac_ext
12476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12477 echo "${ECHO_T}$ac_header_preproc" >&6; }
12478
12479 # So?  What about this header?
12480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12481   yes:no: )
12482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12486     ac_header_preproc=yes
12487     ;;
12488   no:yes:* )
12489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12501     ( cat <<\_ASBOX
12502 ## ----------------------------------- ##
12503 ## Report this to llvmbugs@cs.uiuc.edu ##
12504 ## ----------------------------------- ##
12505 _ASBOX
12506      ) | sed "s/^/$as_me: WARNING:     /" >&2
12507     ;;
12508 esac
12509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12512   echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514   eval "$as_ac_Header=\$ac_header_preproc"
12515 fi
12516 ac_res=`eval echo '${'$as_ac_Header'}'`
12517                { echo "$as_me:$LINENO: result: $ac_res" >&5
12518 echo "${ECHO_T}$ac_res" >&6; }
12519
12520 fi
12521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12522   cat >>confdefs.h <<_ACEOF
12523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12524 _ACEOF
12525
12526 fi
12527
12528 done
12529
12530
12531
12532 for ac_header in string.h strings.h
12533 do
12534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12536   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12539   echo $ECHO_N "(cached) $ECHO_C" >&6
12540 fi
12541 ac_res=`eval echo '${'$as_ac_Header'}'`
12542                { echo "$as_me:$LINENO: result: $ac_res" >&5
12543 echo "${ECHO_T}$ac_res" >&6; }
12544 else
12545   # Is the header compilable?
12546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h.  */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h.  */
12554 $ac_includes_default
12555 #include <$ac_header>
12556 _ACEOF
12557 rm -f conftest.$ac_objext
12558 if { (ac_try="$ac_compile"
12559 case "(($ac_try" in
12560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561   *) ac_try_echo=$ac_try;;
12562 esac
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564   (eval "$ac_compile") 2>conftest.er1
12565   ac_status=$?
12566   grep -v '^ *+' conftest.er1 >conftest.err
12567   rm -f conftest.er1
12568   cat conftest.err >&5
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } &&
12571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12572   { (case "(($ac_try" in
12573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574   *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577   (eval "$ac_try") 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); }; } &&
12581          { ac_try='test -s conftest.$ac_objext'
12582   { (case "(($ac_try" in
12583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584   *) ac_try_echo=$ac_try;;
12585 esac
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587   (eval "$ac_try") 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591   ac_header_compiler=yes
12592 else
12593   echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596         ac_header_compiler=no
12597 fi
12598
12599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12601 echo "${ECHO_T}$ac_header_compiler" >&6; }
12602
12603 # Is the header present?
12604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h.  */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h.  */
12612 #include <$ac_header>
12613 _ACEOF
12614 if { (ac_try="$ac_cpp conftest.$ac_ext"
12615 case "(($ac_try" in
12616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617   *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12621   ac_status=$?
12622   grep -v '^ *+' conftest.er1 >conftest.err
12623   rm -f conftest.er1
12624   cat conftest.err >&5
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); } >/dev/null; then
12627   if test -s conftest.err; then
12628     ac_cpp_err=$ac_c_preproc_warn_flag
12629     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12630   else
12631     ac_cpp_err=
12632   fi
12633 else
12634   ac_cpp_err=yes
12635 fi
12636 if test -z "$ac_cpp_err"; then
12637   ac_header_preproc=yes
12638 else
12639   echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12641
12642   ac_header_preproc=no
12643 fi
12644
12645 rm -f conftest.err conftest.$ac_ext
12646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12647 echo "${ECHO_T}$ac_header_preproc" >&6; }
12648
12649 # So?  What about this header?
12650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12651   yes:no: )
12652     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12656     ac_header_preproc=yes
12657     ;;
12658   no:yes:* )
12659     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12661     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12662 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12663     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12665     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12666 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12669     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12671     ( cat <<\_ASBOX
12672 ## ----------------------------------- ##
12673 ## Report this to llvmbugs@cs.uiuc.edu ##
12674 ## ----------------------------------- ##
12675 _ASBOX
12676      ) | sed "s/^/$as_me: WARNING:     /" >&2
12677     ;;
12678 esac
12679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684   eval "$as_ac_Header=\$ac_header_preproc"
12685 fi
12686 ac_res=`eval echo '${'$as_ac_Header'}'`
12687                { echo "$as_me:$LINENO: result: $ac_res" >&5
12688 echo "${ECHO_T}$ac_res" >&6; }
12689
12690 fi
12691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12692   cat >>confdefs.h <<_ACEOF
12693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12694 _ACEOF
12695  break
12696 fi
12697
12698 done
12699
12700
12701
12702
12703 for ac_func in strchr index
12704 do
12705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12709   echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711   cat >conftest.$ac_ext <<_ACEOF
12712 /* confdefs.h.  */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h.  */
12717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12719 #define $ac_func innocuous_$ac_func
12720
12721 /* System header to define __stub macros and hopefully few prototypes,
12722     which can conflict with char $ac_func (); below.
12723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12724     <limits.h> exists even on freestanding compilers.  */
12725
12726 #ifdef __STDC__
12727 # include <limits.h>
12728 #else
12729 # include <assert.h>
12730 #endif
12731
12732 #undef $ac_func
12733
12734 /* Override any GCC internal prototype to avoid an error.
12735    Use char because int might match the return type of a GCC
12736    builtin and then its argument prototype would still apply.  */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 char $ac_func ();
12741 /* The GNU C library defines this for functions which it implements
12742     to always fail with ENOSYS.  Some functions are actually named
12743     something starting with __ and the normal name is an alias.  */
12744 #if defined __stub_$ac_func || defined __stub___$ac_func
12745 choke me
12746 #endif
12747
12748 int
12749 main ()
12750 {
12751 return $ac_func ();
12752   ;
12753   return 0;
12754 }
12755 _ACEOF
12756 rm -f conftest.$ac_objext conftest$ac_exeext
12757 if { (ac_try="$ac_link"
12758 case "(($ac_try" in
12759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760   *) ac_try_echo=$ac_try;;
12761 esac
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763   (eval "$ac_link") 2>conftest.er1
12764   ac_status=$?
12765   grep -v '^ *+' conftest.er1 >conftest.err
12766   rm -f conftest.er1
12767   cat conftest.err >&5
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); } &&
12770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771   { (case "(($ac_try" in
12772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773   *) ac_try_echo=$ac_try;;
12774 esac
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776   (eval "$ac_try") 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); }; } &&
12780          { ac_try='test -s conftest$ac_exeext'
12781   { (case "(($ac_try" in
12782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783   *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786   (eval "$ac_try") 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); }; }; then
12790   eval "$as_ac_var=yes"
12791 else
12792   echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12794
12795         eval "$as_ac_var=no"
12796 fi
12797
12798 rm -f core conftest.err conftest.$ac_objext \
12799       conftest$ac_exeext conftest.$ac_ext
12800 fi
12801 ac_res=`eval echo '${'$as_ac_var'}'`
12802                { echo "$as_me:$LINENO: result: $ac_res" >&5
12803 echo "${ECHO_T}$ac_res" >&6; }
12804 if test `eval echo '${'$as_ac_var'}'` = yes; then
12805   cat >>confdefs.h <<_ACEOF
12806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12807 _ACEOF
12808  break
12809 fi
12810 done
12811
12812
12813
12814 for ac_func in strrchr rindex
12815 do
12816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12820   echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822   cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h.  */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h.  */
12828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12830 #define $ac_func innocuous_$ac_func
12831
12832 /* System header to define __stub macros and hopefully few prototypes,
12833     which can conflict with char $ac_func (); below.
12834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12835     <limits.h> exists even on freestanding compilers.  */
12836
12837 #ifdef __STDC__
12838 # include <limits.h>
12839 #else
12840 # include <assert.h>
12841 #endif
12842
12843 #undef $ac_func
12844
12845 /* Override any GCC internal prototype to avoid an error.
12846    Use char because int might match the return type of a GCC
12847    builtin and then its argument prototype would still apply.  */
12848 #ifdef __cplusplus
12849 extern "C"
12850 #endif
12851 char $ac_func ();
12852 /* The GNU C library defines this for functions which it implements
12853     to always fail with ENOSYS.  Some functions are actually named
12854     something starting with __ and the normal name is an alias.  */
12855 #if defined __stub_$ac_func || defined __stub___$ac_func
12856 choke me
12857 #endif
12858
12859 int
12860 main ()
12861 {
12862 return $ac_func ();
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871   *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874   (eval "$ac_link") 2>conftest.er1
12875   ac_status=$?
12876   grep -v '^ *+' conftest.er1 >conftest.err
12877   rm -f conftest.er1
12878   cat conftest.err >&5
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882   { (case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_try") 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; } &&
12891          { ac_try='test -s conftest$ac_exeext'
12892   { (case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897   (eval "$ac_try") 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; }; then
12901   eval "$as_ac_var=yes"
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906         eval "$as_ac_var=no"
12907 fi
12908
12909 rm -f core conftest.err conftest.$ac_objext \
12910       conftest$ac_exeext conftest.$ac_ext
12911 fi
12912 ac_res=`eval echo '${'$as_ac_var'}'`
12913                { echo "$as_me:$LINENO: result: $ac_res" >&5
12914 echo "${ECHO_T}$ac_res" >&6; }
12915 if test `eval echo '${'$as_ac_var'}'` = yes; then
12916   cat >>confdefs.h <<_ACEOF
12917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12918 _ACEOF
12919  break
12920 fi
12921 done
12922
12923
12924
12925 for ac_func in memcpy bcopy
12926 do
12927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12931   echo $ECHO_N "(cached) $ECHO_C" >&6
12932 else
12933   cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h.  */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h.  */
12939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12941 #define $ac_func innocuous_$ac_func
12942
12943 /* System header to define __stub macros and hopefully few prototypes,
12944     which can conflict with char $ac_func (); below.
12945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12946     <limits.h> exists even on freestanding compilers.  */
12947
12948 #ifdef __STDC__
12949 # include <limits.h>
12950 #else
12951 # include <assert.h>
12952 #endif
12953
12954 #undef $ac_func
12955
12956 /* Override any GCC internal prototype to avoid an error.
12957    Use char because int might match the return type of a GCC
12958    builtin and then its argument prototype would still apply.  */
12959 #ifdef __cplusplus
12960 extern "C"
12961 #endif
12962 char $ac_func ();
12963 /* The GNU C library defines this for functions which it implements
12964     to always fail with ENOSYS.  Some functions are actually named
12965     something starting with __ and the normal name is an alias.  */
12966 #if defined __stub_$ac_func || defined __stub___$ac_func
12967 choke me
12968 #endif
12969
12970 int
12971 main ()
12972 {
12973 return $ac_func ();
12974   ;
12975   return 0;
12976 }
12977 _ACEOF
12978 rm -f conftest.$ac_objext conftest$ac_exeext
12979 if { (ac_try="$ac_link"
12980 case "(($ac_try" in
12981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982   *) ac_try_echo=$ac_try;;
12983 esac
12984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985   (eval "$ac_link") 2>conftest.er1
12986   ac_status=$?
12987   grep -v '^ *+' conftest.er1 >conftest.err
12988   rm -f conftest.er1
12989   cat conftest.err >&5
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); } &&
12992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12993   { (case "(($ac_try" in
12994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995   *) ac_try_echo=$ac_try;;
12996 esac
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998   (eval "$ac_try") 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }; } &&
13002          { ac_try='test -s conftest$ac_exeext'
13003   { (case "(($ac_try" in
13004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005   *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008   (eval "$ac_try") 2>&5
13009   ac_status=$?
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); }; }; then
13012   eval "$as_ac_var=yes"
13013 else
13014   echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13016
13017         eval "$as_ac_var=no"
13018 fi
13019
13020 rm -f core conftest.err conftest.$ac_objext \
13021       conftest$ac_exeext conftest.$ac_ext
13022 fi
13023 ac_res=`eval echo '${'$as_ac_var'}'`
13024                { echo "$as_me:$LINENO: result: $ac_res" >&5
13025 echo "${ECHO_T}$ac_res" >&6; }
13026 if test `eval echo '${'$as_ac_var'}'` = yes; then
13027   cat >>confdefs.h <<_ACEOF
13028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13029 _ACEOF
13030  break
13031 fi
13032 done
13033
13034
13035
13036 for ac_func in memmove strcmp
13037 do
13038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13042   echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044   cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h.  */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h.  */
13050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13052 #define $ac_func innocuous_$ac_func
13053
13054 /* System header to define __stub macros and hopefully few prototypes,
13055     which can conflict with char $ac_func (); below.
13056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13057     <limits.h> exists even on freestanding compilers.  */
13058
13059 #ifdef __STDC__
13060 # include <limits.h>
13061 #else
13062 # include <assert.h>
13063 #endif
13064
13065 #undef $ac_func
13066
13067 /* Override any GCC internal prototype to avoid an error.
13068    Use char because int might match the return type of a GCC
13069    builtin and then its argument prototype would still apply.  */
13070 #ifdef __cplusplus
13071 extern "C"
13072 #endif
13073 char $ac_func ();
13074 /* The GNU C library defines this for functions which it implements
13075     to always fail with ENOSYS.  Some functions are actually named
13076     something starting with __ and the normal name is an alias.  */
13077 #if defined __stub_$ac_func || defined __stub___$ac_func
13078 choke me
13079 #endif
13080
13081 int
13082 main ()
13083 {
13084 return $ac_func ();
13085   ;
13086   return 0;
13087 }
13088 _ACEOF
13089 rm -f conftest.$ac_objext conftest$ac_exeext
13090 if { (ac_try="$ac_link"
13091 case "(($ac_try" in
13092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093   *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096   (eval "$ac_link") 2>conftest.er1
13097   ac_status=$?
13098   grep -v '^ *+' conftest.er1 >conftest.err
13099   rm -f conftest.er1
13100   cat conftest.err >&5
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); } &&
13103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13104   { (case "(($ac_try" in
13105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106   *) ac_try_echo=$ac_try;;
13107 esac
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109   (eval "$ac_try") 2>&5
13110   ac_status=$?
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); }; } &&
13113          { ac_try='test -s conftest$ac_exeext'
13114   { (case "(($ac_try" in
13115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116   *) ac_try_echo=$ac_try;;
13117 esac
13118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119   (eval "$ac_try") 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); }; }; then
13123   eval "$as_ac_var=yes"
13124 else
13125   echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13127
13128         eval "$as_ac_var=no"
13129 fi
13130
13131 rm -f core conftest.err conftest.$ac_objext \
13132       conftest$ac_exeext conftest.$ac_ext
13133 fi
13134 ac_res=`eval echo '${'$as_ac_var'}'`
13135                { echo "$as_me:$LINENO: result: $ac_res" >&5
13136 echo "${ECHO_T}$ac_res" >&6; }
13137 if test `eval echo '${'$as_ac_var'}'` = yes; then
13138   cat >>confdefs.h <<_ACEOF
13139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13140 _ACEOF
13141
13142 fi
13143 done
13144
13145
13146
13147
13148 for ac_func in closedir opendir readdir
13149 do
13150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13154   echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156   cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h.  */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h.  */
13162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13164 #define $ac_func innocuous_$ac_func
13165
13166 /* System header to define __stub macros and hopefully few prototypes,
13167     which can conflict with char $ac_func (); below.
13168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13169     <limits.h> exists even on freestanding compilers.  */
13170
13171 #ifdef __STDC__
13172 # include <limits.h>
13173 #else
13174 # include <assert.h>
13175 #endif
13176
13177 #undef $ac_func
13178
13179 /* Override any GCC internal prototype to avoid an error.
13180    Use char because int might match the return type of a GCC
13181    builtin and then its argument prototype would still apply.  */
13182 #ifdef __cplusplus
13183 extern "C"
13184 #endif
13185 char $ac_func ();
13186 /* The GNU C library defines this for functions which it implements
13187     to always fail with ENOSYS.  Some functions are actually named
13188     something starting with __ and the normal name is an alias.  */
13189 #if defined __stub_$ac_func || defined __stub___$ac_func
13190 choke me
13191 #endif
13192
13193 int
13194 main ()
13195 {
13196 return $ac_func ();
13197   ;
13198   return 0;
13199 }
13200 _ACEOF
13201 rm -f conftest.$ac_objext conftest$ac_exeext
13202 if { (ac_try="$ac_link"
13203 case "(($ac_try" in
13204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205   *) ac_try_echo=$ac_try;;
13206 esac
13207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208   (eval "$ac_link") 2>conftest.er1
13209   ac_status=$?
13210   grep -v '^ *+' conftest.er1 >conftest.err
13211   rm -f conftest.er1
13212   cat conftest.err >&5
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); } &&
13215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13216   { (case "(($ac_try" in
13217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218   *) ac_try_echo=$ac_try;;
13219 esac
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221   (eval "$ac_try") 2>&5
13222   ac_status=$?
13223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224   (exit $ac_status); }; } &&
13225          { ac_try='test -s conftest$ac_exeext'
13226   { (case "(($ac_try" in
13227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228   *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231   (eval "$ac_try") 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); }; }; then
13235   eval "$as_ac_var=yes"
13236 else
13237   echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13239
13240         eval "$as_ac_var=no"
13241 fi
13242
13243 rm -f core conftest.err conftest.$ac_objext \
13244       conftest$ac_exeext conftest.$ac_ext
13245 fi
13246 ac_res=`eval echo '${'$as_ac_var'}'`
13247                { echo "$as_me:$LINENO: result: $ac_res" >&5
13248 echo "${ECHO_T}$ac_res" >&6; }
13249 if test `eval echo '${'$as_ac_var'}'` = yes; then
13250   cat >>confdefs.h <<_ACEOF
13251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13252 _ACEOF
13253
13254 fi
13255 done
13256
13257
13258
13259 if test "$WITH_LLVMGCCDIR" = "default" ; then
13260   LLVMGCC="llvm-gcc${EXEEXT}"
13261   LLVMGXX="llvm-g++${EXEEXT}"
13262   LLVMGCCCOMMAND="$LLVMGCC"
13263   LLVMGXXCOMMAND="$LLVMGXX"
13264   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13265
13266   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13267
13268   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13269 set dummy $LLVMGCC; ac_word=$2
13270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13272 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13273   echo $ECHO_N "(cached) $ECHO_C" >&6
13274 else
13275   case $LLVMGCC in
13276   [\\/]* | ?:[\\/]*)
13277   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13278   ;;
13279   *)
13280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13282 do
13283   IFS=$as_save_IFS
13284   test -z "$as_dir" && as_dir=.
13285   for ac_exec_ext in '' $ac_executable_extensions; do
13286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13287     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13289     break 2
13290   fi
13291 done
13292 done
13293 IFS=$as_save_IFS
13294
13295   ;;
13296 esac
13297 fi
13298 LLVMGCC=$ac_cv_path_LLVMGCC
13299 if test -n "$LLVMGCC"; then
13300   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13301 echo "${ECHO_T}$LLVMGCC" >&6; }
13302 else
13303   { echo "$as_me:$LINENO: result: no" >&5
13304 echo "${ECHO_T}no" >&6; }
13305 fi
13306
13307
13308   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13309 set dummy $LLVMGXX; ac_word=$2
13310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13312 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13313   echo $ECHO_N "(cached) $ECHO_C" >&6
13314 else
13315   case $LLVMGXX in
13316   [\\/]* | ?:[\\/]*)
13317   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13318   ;;
13319   *)
13320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $PATH
13322 do
13323   IFS=$as_save_IFS
13324   test -z "$as_dir" && as_dir=.
13325   for ac_exec_ext in '' $ac_executable_extensions; do
13326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13327     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13329     break 2
13330   fi
13331 done
13332 done
13333 IFS=$as_save_IFS
13334
13335   ;;
13336 esac
13337 fi
13338 LLVMGXX=$ac_cv_path_LLVMGXX
13339 if test -n "$LLVMGXX"; then
13340   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13341 echo "${ECHO_T}$LLVMGXX" >&6; }
13342 else
13343   { echo "$as_me:$LINENO: result: no" >&5
13344 echo "${ECHO_T}no" >&6; }
13345 fi
13346
13347
13348 else
13349   if test -z "$LLVMGCC"; then
13350     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13351     LLVMGCCCOMMAND="$LLVMGCC"
13352   fi
13353   if test -z "$LLVMGXX"; then
13354     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13355     LLVMGXXCOMMAND="$LLVMGXX"
13356   fi
13357
13358   LLVMGCC=$LLVMGCC
13359
13360   LLVMGXX=$LLVMGXX
13361
13362   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13363
13364   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13365
13366 fi
13367
13368
13369 # Check whether --with-llvmcc was given.
13370 if test "${with_llvmcc+set}" = set; then
13371   withval=$with_llvmcc;
13372 else
13373   with_llvmcc=check
13374 fi
13375
13376 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13377 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13378 if test "$with_llvmcc" != "check"; then
13379    if (test "$with_llvmcc" != "llvm-gcc" &&
13380        test "$with_llvmcc" != "clang" &&
13381        test "$with_llvmcc" != "none"); then
13382       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13383 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13384    { (exit 1); exit 1; }; }
13385    fi
13386    WITH_LLVMCC="$with_llvmcc"
13387 elif test -n "$LLVMGCC"; then
13388    WITH_LLVMCC=llvm-gcc
13389 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13390    WITH_LLVMCC=clang
13391 else
13392    WITH_LLVMCC=none
13393 fi
13394 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13395 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13396 LLVMCC_OPTION=$WITH_LLVMCC
13397
13398
13399 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13400 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13401
13402 ICC=no
13403 IXX=no
13404 case $CC in
13405   icc*|icpc*)
13406     ICC=yes
13407     IXX=yes
13408     ;;
13409    *)
13410     ;;
13411 esac
13412
13413 if test "$GCC" != "yes" && test "$ICC" != "yes"
13414 then
13415   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13416 echo "$as_me: error: gcc|icc required but not found" >&2;}
13417    { (exit 1); exit 1; }; }
13418 fi
13419
13420 if test "$GXX" != "yes" && test "$IXX" != "yes"
13421 then
13422   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13423 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13424    { (exit 1); exit 1; }; }
13425 fi
13426
13427 if test "$GCC" = "yes"
13428 then
13429   cat >conftest.$ac_ext <<_ACEOF
13430 #if !defined(__GNUC__) || __GNUC__ < 3
13431 #error Unsupported GCC version
13432 #endif
13433
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (ac_try="$ac_compile"
13437 case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_compile") 2>conftest.er1
13443   ac_status=$?
13444   grep -v '^ *+' conftest.er1 >conftest.err
13445   rm -f conftest.er1
13446   cat conftest.err >&5
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } &&
13449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13450   { (case "(($ac_try" in
13451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452   *) ac_try_echo=$ac_try;;
13453 esac
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455   (eval "$ac_try") 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; } &&
13459          { ac_try='test -s conftest.$ac_objext'
13460   { (case "(($ac_try" in
13461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462   *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465   (eval "$ac_try") 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); }; }; then
13469   :
13470 else
13471   echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13473
13474         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13475 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13476    { (exit 1); exit 1; }; }
13477 fi
13478
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480 fi
13481
13482 if test -z "$llvm_cv_gnu_make_command"
13483 then
13484   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13485 echo "$as_me: error: GNU Make required but not found" >&2;}
13486    { (exit 1); exit 1; }; }
13487 fi
13488
13489 { echo "$as_me:$LINENO: result: ok" >&5
13490 echo "${ECHO_T}ok" >&6; }
13491
13492 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13493 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13494 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13495
13496 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13497
13498 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13499 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13500
13501
13502
13503 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13504 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13505 if test "${ac_cv_lib_m_sin+set}" = set; then
13506   echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508   ac_check_lib_save_LIBS=$LIBS
13509 LIBS="-lm  $LIBS"
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h.  */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h.  */
13516
13517 /* Override any GCC internal prototype to avoid an error.
13518    Use char because int might match the return type of a GCC
13519    builtin and then its argument prototype would still apply.  */
13520 #ifdef __cplusplus
13521 extern "C"
13522 #endif
13523 char sin ();
13524 int
13525 main ()
13526 {
13527 return sin ();
13528   ;
13529   return 0;
13530 }
13531 _ACEOF
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (ac_try="$ac_link"
13534 case "(($ac_try" in
13535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536   *) ac_try_echo=$ac_try;;
13537 esac
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539   (eval "$ac_link") 2>conftest.er1
13540   ac_status=$?
13541   grep -v '^ *+' conftest.er1 >conftest.err
13542   rm -f conftest.er1
13543   cat conftest.err >&5
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); } &&
13546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13547   { (case "(($ac_try" in
13548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549   *) ac_try_echo=$ac_try;;
13550 esac
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552   (eval "$ac_try") 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); }; } &&
13556          { ac_try='test -s conftest$ac_exeext'
13557   { (case "(($ac_try" in
13558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559   *) ac_try_echo=$ac_try;;
13560 esac
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562   (eval "$ac_try") 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; }; then
13566   ac_cv_lib_m_sin=yes
13567 else
13568   echo "$as_me: failed program was:" >&5
13569 sed 's/^/| /' conftest.$ac_ext >&5
13570
13571         ac_cv_lib_m_sin=no
13572 fi
13573
13574 rm -f core conftest.err conftest.$ac_objext \
13575       conftest$ac_exeext conftest.$ac_ext
13576 LIBS=$ac_check_lib_save_LIBS
13577 fi
13578 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13579 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13580 if test $ac_cv_lib_m_sin = yes; then
13581   cat >>confdefs.h <<_ACEOF
13582 #define HAVE_LIBM 1
13583 _ACEOF
13584
13585   LIBS="-lm $LIBS"
13586
13587 fi
13588
13589 if test "$llvm_cv_os_type" = "MingW" ; then
13590
13591 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13592 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13593 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13594   echo $ECHO_N "(cached) $ECHO_C" >&6
13595 else
13596   ac_check_lib_save_LIBS=$LIBS
13597 LIBS="-limagehlp  $LIBS"
13598 cat >conftest.$ac_ext <<_ACEOF
13599 /* confdefs.h.  */
13600 _ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h.  */
13604
13605
13606 int
13607 main ()
13608 {
13609 return main ();
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618   *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621   (eval "$ac_link") 2>conftest.er1
13622   ac_status=$?
13623   grep -v '^ *+' conftest.er1 >conftest.err
13624   rm -f conftest.er1
13625   cat conftest.err >&5
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629   { (case "(($ac_try" in
13630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631   *) ac_try_echo=$ac_try;;
13632 esac
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634   (eval "$ac_try") 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; } &&
13638          { ac_try='test -s conftest$ac_exeext'
13639   { (case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_try") 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); }; }; then
13648   ac_cv_lib_imagehlp_main=yes
13649 else
13650   echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13652
13653         ac_cv_lib_imagehlp_main=no
13654 fi
13655
13656 rm -f core conftest.err conftest.$ac_objext \
13657       conftest$ac_exeext conftest.$ac_ext
13658 LIBS=$ac_check_lib_save_LIBS
13659 fi
13660 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13661 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13662 if test $ac_cv_lib_imagehlp_main = yes; then
13663   cat >>confdefs.h <<_ACEOF
13664 #define HAVE_LIBIMAGEHLP 1
13665 _ACEOF
13666
13667   LIBS="-limagehlp $LIBS"
13668
13669 fi
13670
13671
13672 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13673 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13674 if test "${ac_cv_lib_psapi_main+set}" = set; then
13675   echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677   ac_check_lib_save_LIBS=$LIBS
13678 LIBS="-lpsapi  $LIBS"
13679 cat >conftest.$ac_ext <<_ACEOF
13680 /* confdefs.h.  */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h.  */
13685
13686
13687 int
13688 main ()
13689 {
13690 return main ();
13691   ;
13692   return 0;
13693 }
13694 _ACEOF
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699   *) ac_try_echo=$ac_try;;
13700 esac
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702   (eval "$ac_link") 2>conftest.er1
13703   ac_status=$?
13704   grep -v '^ *+' conftest.er1 >conftest.err
13705   rm -f conftest.er1
13706   cat conftest.err >&5
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); } &&
13709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710   { (case "(($ac_try" in
13711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712   *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715   (eval "$ac_try") 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); }; } &&
13719          { ac_try='test -s conftest$ac_exeext'
13720   { (case "(($ac_try" in
13721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722   *) ac_try_echo=$ac_try;;
13723 esac
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725   (eval "$ac_try") 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; }; then
13729   ac_cv_lib_psapi_main=yes
13730 else
13731   echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13733
13734         ac_cv_lib_psapi_main=no
13735 fi
13736
13737 rm -f core conftest.err conftest.$ac_objext \
13738       conftest$ac_exeext conftest.$ac_ext
13739 LIBS=$ac_check_lib_save_LIBS
13740 fi
13741 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13742 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13743 if test $ac_cv_lib_psapi_main = yes; then
13744   cat >>confdefs.h <<_ACEOF
13745 #define HAVE_LIBPSAPI 1
13746 _ACEOF
13747
13748   LIBS="-lpsapi $LIBS"
13749
13750 fi
13751
13752 fi
13753
13754 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13755 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13756 if test "${ac_cv_search_dlopen+set}" = set; then
13757   echo $ECHO_N "(cached) $ECHO_C" >&6
13758 else
13759   ac_func_search_save_LIBS=$LIBS
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h.  */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h.  */
13766
13767 /* Override any GCC internal prototype to avoid an error.
13768    Use char because int might match the return type of a GCC
13769    builtin and then its argument prototype would still apply.  */
13770 #ifdef __cplusplus
13771 extern "C"
13772 #endif
13773 char dlopen ();
13774 int
13775 main ()
13776 {
13777 return dlopen ();
13778   ;
13779   return 0;
13780 }
13781 _ACEOF
13782 for ac_lib in '' dl; do
13783   if test -z "$ac_lib"; then
13784     ac_res="none required"
13785   else
13786     ac_res=-l$ac_lib
13787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13788   fi
13789   rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (ac_try="$ac_link"
13791 case "(($ac_try" in
13792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793   *) ac_try_echo=$ac_try;;
13794 esac
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796   (eval "$ac_link") 2>conftest.er1
13797   ac_status=$?
13798   grep -v '^ *+' conftest.er1 >conftest.err
13799   rm -f conftest.er1
13800   cat conftest.err >&5
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } &&
13803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13804   { (case "(($ac_try" in
13805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806   *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809   (eval "$ac_try") 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; } &&
13813          { ac_try='test -s conftest$ac_exeext'
13814   { (case "(($ac_try" in
13815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816   *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819   (eval "$ac_try") 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); }; }; then
13823   ac_cv_search_dlopen=$ac_res
13824 else
13825   echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828
13829 fi
13830
13831 rm -f core conftest.err conftest.$ac_objext \
13832       conftest$ac_exeext
13833   if test "${ac_cv_search_dlopen+set}" = set; then
13834   break
13835 fi
13836 done
13837 if test "${ac_cv_search_dlopen+set}" = set; then
13838   :
13839 else
13840   ac_cv_search_dlopen=no
13841 fi
13842 rm conftest.$ac_ext
13843 LIBS=$ac_func_search_save_LIBS
13844 fi
13845 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13846 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13847 ac_res=$ac_cv_search_dlopen
13848 if test "$ac_res" != no; then
13849   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13850
13851 cat >>confdefs.h <<\_ACEOF
13852 #define HAVE_DLOPEN 1
13853 _ACEOF
13854
13855 else
13856   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13857 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13858 fi
13859
13860
13861 if test "$llvm_cv_enable_libffi" = "yes" ; then
13862   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13863 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13864 if test "${ac_cv_search_ffi_call+set}" = set; then
13865   echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867   ac_func_search_save_LIBS=$LIBS
13868 cat >conftest.$ac_ext <<_ACEOF
13869 /* confdefs.h.  */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h.  */
13874
13875 /* Override any GCC internal prototype to avoid an error.
13876    Use char because int might match the return type of a GCC
13877    builtin and then its argument prototype would still apply.  */
13878 #ifdef __cplusplus
13879 extern "C"
13880 #endif
13881 char ffi_call ();
13882 int
13883 main ()
13884 {
13885 return ffi_call ();
13886   ;
13887   return 0;
13888 }
13889 _ACEOF
13890 for ac_lib in '' ffi; do
13891   if test -z "$ac_lib"; then
13892     ac_res="none required"
13893   else
13894     ac_res=-l$ac_lib
13895     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13896   fi
13897   rm -f conftest.$ac_objext conftest$ac_exeext
13898 if { (ac_try="$ac_link"
13899 case "(($ac_try" in
13900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901   *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904   (eval "$ac_link") 2>conftest.er1
13905   ac_status=$?
13906   grep -v '^ *+' conftest.er1 >conftest.err
13907   rm -f conftest.er1
13908   cat conftest.err >&5
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); } &&
13911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13912   { (case "(($ac_try" in
13913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914   *) ac_try_echo=$ac_try;;
13915 esac
13916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13917   (eval "$ac_try") 2>&5
13918   ac_status=$?
13919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920   (exit $ac_status); }; } &&
13921          { ac_try='test -s conftest$ac_exeext'
13922   { (case "(($ac_try" in
13923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924   *) ac_try_echo=$ac_try;;
13925 esac
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927   (eval "$ac_try") 2>&5
13928   ac_status=$?
13929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   (exit $ac_status); }; }; then
13931   ac_cv_search_ffi_call=$ac_res
13932 else
13933   echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13935
13936
13937 fi
13938
13939 rm -f core conftest.err conftest.$ac_objext \
13940       conftest$ac_exeext
13941   if test "${ac_cv_search_ffi_call+set}" = set; then
13942   break
13943 fi
13944 done
13945 if test "${ac_cv_search_ffi_call+set}" = set; then
13946   :
13947 else
13948   ac_cv_search_ffi_call=no
13949 fi
13950 rm conftest.$ac_ext
13951 LIBS=$ac_func_search_save_LIBS
13952 fi
13953 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13954 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13955 ac_res=$ac_cv_search_ffi_call
13956 if test "$ac_res" != no; then
13957   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13958
13959 cat >>confdefs.h <<\_ACEOF
13960 #define HAVE_FFI_CALL 1
13961 _ACEOF
13962
13963 else
13964   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13965 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13966    { (exit 1); exit 1; }; }
13967 fi
13968
13969 fi
13970
13971 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13972 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13973 if test "${ac_cv_search_mallinfo+set}" = set; then
13974   echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976   ac_func_search_save_LIBS=$LIBS
13977 cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983
13984 /* Override any GCC internal prototype to avoid an error.
13985    Use char because int might match the return type of a GCC
13986    builtin and then its argument prototype would still apply.  */
13987 #ifdef __cplusplus
13988 extern "C"
13989 #endif
13990 char mallinfo ();
13991 int
13992 main ()
13993 {
13994 return mallinfo ();
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 for ac_lib in '' malloc; do
14000   if test -z "$ac_lib"; then
14001     ac_res="none required"
14002   else
14003     ac_res=-l$ac_lib
14004     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14005   fi
14006   rm -f conftest.$ac_objext conftest$ac_exeext
14007 if { (ac_try="$ac_link"
14008 case "(($ac_try" in
14009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010   *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013   (eval "$ac_link") 2>conftest.er1
14014   ac_status=$?
14015   grep -v '^ *+' conftest.er1 >conftest.err
14016   rm -f conftest.er1
14017   cat conftest.err >&5
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } &&
14020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14021   { (case "(($ac_try" in
14022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023   *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026   (eval "$ac_try") 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; } &&
14030          { ac_try='test -s conftest$ac_exeext'
14031   { (case "(($ac_try" in
14032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033   *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036   (eval "$ac_try") 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   ac_cv_search_mallinfo=$ac_res
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045
14046 fi
14047
14048 rm -f core conftest.err conftest.$ac_objext \
14049       conftest$ac_exeext
14050   if test "${ac_cv_search_mallinfo+set}" = set; then
14051   break
14052 fi
14053 done
14054 if test "${ac_cv_search_mallinfo+set}" = set; then
14055   :
14056 else
14057   ac_cv_search_mallinfo=no
14058 fi
14059 rm conftest.$ac_ext
14060 LIBS=$ac_func_search_save_LIBS
14061 fi
14062 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14063 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14064 ac_res=$ac_cv_search_mallinfo
14065 if test "$ac_res" != no; then
14066   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14067
14068 cat >>confdefs.h <<\_ACEOF
14069 #define HAVE_MALLINFO 1
14070 _ACEOF
14071
14072 fi
14073
14074
14075 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14076
14077 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14078 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14079 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   ac_check_lib_save_LIBS=$LIBS
14083 LIBS="-lpthread  $LIBS"
14084 cat >conftest.$ac_ext <<_ACEOF
14085 /* confdefs.h.  */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h.  */
14090
14091 /* Override any GCC internal prototype to avoid an error.
14092    Use char because int might match the return type of a GCC
14093    builtin and then its argument prototype would still apply.  */
14094 #ifdef __cplusplus
14095 extern "C"
14096 #endif
14097 char pthread_mutex_init ();
14098 int
14099 main ()
14100 {
14101 return pthread_mutex_init ();
14102   ;
14103   return 0;
14104 }
14105 _ACEOF
14106 rm -f conftest.$ac_objext conftest$ac_exeext
14107 if { (ac_try="$ac_link"
14108 case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_link") 2>conftest.er1
14114   ac_status=$?
14115   grep -v '^ *+' conftest.er1 >conftest.err
14116   rm -f conftest.er1
14117   cat conftest.err >&5
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } &&
14120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14121   { (case "(($ac_try" in
14122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123   *) ac_try_echo=$ac_try;;
14124 esac
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126   (eval "$ac_try") 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); }; } &&
14130          { ac_try='test -s conftest$ac_exeext'
14131   { (case "(($ac_try" in
14132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133   *) ac_try_echo=$ac_try;;
14134 esac
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136   (eval "$ac_try") 2>&5
14137   ac_status=$?
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); }; }; then
14140   ac_cv_lib_pthread_pthread_mutex_init=yes
14141 else
14142   echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14144
14145         ac_cv_lib_pthread_pthread_mutex_init=no
14146 fi
14147
14148 rm -f core conftest.err conftest.$ac_objext \
14149       conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14151 fi
14152 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14153 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14154 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14155   cat >>confdefs.h <<_ACEOF
14156 #define HAVE_LIBPTHREAD 1
14157 _ACEOF
14158
14159   LIBS="-lpthread $LIBS"
14160
14161 fi
14162
14163   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14164 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14165 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14166   echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168   ac_func_search_save_LIBS=$LIBS
14169 cat >conftest.$ac_ext <<_ACEOF
14170 /* confdefs.h.  */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h.  */
14175
14176 /* Override any GCC internal prototype to avoid an error.
14177    Use char because int might match the return type of a GCC
14178    builtin and then its argument prototype would still apply.  */
14179 #ifdef __cplusplus
14180 extern "C"
14181 #endif
14182 char pthread_mutex_lock ();
14183 int
14184 main ()
14185 {
14186 return pthread_mutex_lock ();
14187   ;
14188   return 0;
14189 }
14190 _ACEOF
14191 for ac_lib in '' pthread; do
14192   if test -z "$ac_lib"; then
14193     ac_res="none required"
14194   else
14195     ac_res=-l$ac_lib
14196     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14197   fi
14198   rm -f conftest.$ac_objext conftest$ac_exeext
14199 if { (ac_try="$ac_link"
14200 case "(($ac_try" in
14201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202   *) ac_try_echo=$ac_try;;
14203 esac
14204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205   (eval "$ac_link") 2>conftest.er1
14206   ac_status=$?
14207   grep -v '^ *+' conftest.er1 >conftest.err
14208   rm -f conftest.er1
14209   cat conftest.err >&5
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); } &&
14212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14219   ac_status=$?
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); }; } &&
14222          { ac_try='test -s conftest$ac_exeext'
14223   { (case "(($ac_try" in
14224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225   *) ac_try_echo=$ac_try;;
14226 esac
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228   (eval "$ac_try") 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); }; }; then
14232   ac_cv_search_pthread_mutex_lock=$ac_res
14233 else
14234   echo "$as_me: failed program was:" >&5
14235 sed 's/^/| /' conftest.$ac_ext >&5
14236
14237
14238 fi
14239
14240 rm -f core conftest.err conftest.$ac_objext \
14241       conftest$ac_exeext
14242   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14243   break
14244 fi
14245 done
14246 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14247   :
14248 else
14249   ac_cv_search_pthread_mutex_lock=no
14250 fi
14251 rm conftest.$ac_ext
14252 LIBS=$ac_func_search_save_LIBS
14253 fi
14254 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14255 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14256 ac_res=$ac_cv_search_pthread_mutex_lock
14257 if test "$ac_res" != no; then
14258   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14259
14260 cat >>confdefs.h <<\_ACEOF
14261 #define HAVE_PTHREAD_MUTEX_LOCK 1
14262 _ACEOF
14263
14264 fi
14265
14266   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14267 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14268 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14269   echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271   ac_func_search_save_LIBS=$LIBS
14272 cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h.  */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h.  */
14278
14279 /* Override any GCC internal prototype to avoid an error.
14280    Use char because int might match the return type of a GCC
14281    builtin and then its argument prototype would still apply.  */
14282 #ifdef __cplusplus
14283 extern "C"
14284 #endif
14285 char pthread_rwlock_init ();
14286 int
14287 main ()
14288 {
14289 return pthread_rwlock_init ();
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 for ac_lib in '' pthread; do
14295   if test -z "$ac_lib"; then
14296     ac_res="none required"
14297   else
14298     ac_res=-l$ac_lib
14299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14300   fi
14301   rm -f conftest.$ac_objext conftest$ac_exeext
14302 if { (ac_try="$ac_link"
14303 case "(($ac_try" in
14304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305   *) ac_try_echo=$ac_try;;
14306 esac
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308   (eval "$ac_link") 2>conftest.er1
14309   ac_status=$?
14310   grep -v '^ *+' conftest.er1 >conftest.err
14311   rm -f conftest.er1
14312   cat conftest.err >&5
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } &&
14315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14316   { (case "(($ac_try" in
14317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318   *) ac_try_echo=$ac_try;;
14319 esac
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321   (eval "$ac_try") 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; } &&
14325          { ac_try='test -s conftest$ac_exeext'
14326   { (case "(($ac_try" in
14327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328   *) ac_try_echo=$ac_try;;
14329 esac
14330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331   (eval "$ac_try") 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; }; then
14335   ac_cv_search_pthread_rwlock_init=$ac_res
14336 else
14337   echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340
14341 fi
14342
14343 rm -f core conftest.err conftest.$ac_objext \
14344       conftest$ac_exeext
14345   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14346   break
14347 fi
14348 done
14349 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14350   :
14351 else
14352   ac_cv_search_pthread_rwlock_init=no
14353 fi
14354 rm conftest.$ac_ext
14355 LIBS=$ac_func_search_save_LIBS
14356 fi
14357 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14358 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14359 ac_res=$ac_cv_search_pthread_rwlock_init
14360 if test "$ac_res" != no; then
14361   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14362
14363 cat >>confdefs.h <<\_ACEOF
14364 #define HAVE_PTHREAD_RWLOCK_INIT 1
14365 _ACEOF
14366
14367 fi
14368
14369   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14370 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14371 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14372   echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374   ac_func_search_save_LIBS=$LIBS
14375 cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h.  */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h.  */
14381
14382 /* Override any GCC internal prototype to avoid an error.
14383    Use char because int might match the return type of a GCC
14384    builtin and then its argument prototype would still apply.  */
14385 #ifdef __cplusplus
14386 extern "C"
14387 #endif
14388 char pthread_getspecific ();
14389 int
14390 main ()
14391 {
14392 return pthread_getspecific ();
14393   ;
14394   return 0;
14395 }
14396 _ACEOF
14397 for ac_lib in '' pthread; do
14398   if test -z "$ac_lib"; then
14399     ac_res="none required"
14400   else
14401     ac_res=-l$ac_lib
14402     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14403   fi
14404   rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408   *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411   (eval "$ac_link") 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } &&
14418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14419   { (case "(($ac_try" in
14420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421   *) ac_try_echo=$ac_try;;
14422 esac
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424   (eval "$ac_try") 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; } &&
14428          { ac_try='test -s conftest$ac_exeext'
14429   { (case "(($ac_try" in
14430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431   *) ac_try_echo=$ac_try;;
14432 esac
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434   (eval "$ac_try") 2>&5
14435   ac_status=$?
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); }; }; then
14438   ac_cv_search_pthread_getspecific=$ac_res
14439 else
14440   echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443
14444 fi
14445
14446 rm -f core conftest.err conftest.$ac_objext \
14447       conftest$ac_exeext
14448   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14449   break
14450 fi
14451 done
14452 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14453   :
14454 else
14455   ac_cv_search_pthread_getspecific=no
14456 fi
14457 rm conftest.$ac_ext
14458 LIBS=$ac_func_search_save_LIBS
14459 fi
14460 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14461 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14462 ac_res=$ac_cv_search_pthread_getspecific
14463 if test "$ac_res" != no; then
14464   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14465
14466 cat >>confdefs.h <<\_ACEOF
14467 #define HAVE_PTHREAD_GETSPECIFIC 1
14468 _ACEOF
14469
14470 fi
14471
14472 fi
14473
14474
14475 # Check whether --with-udis86 was given.
14476 if test "${with_udis86+set}" = set; then
14477   withval=$with_udis86;
14478       USE_UDIS86=1
14479
14480       case "$withval" in
14481         /usr/lib|yes) ;;
14482         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14483       esac
14484
14485 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14486 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14487 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14488   echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490   ac_check_lib_save_LIBS=$LIBS
14491 LIBS="-ludis86  $LIBS"
14492 cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h.  */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h.  */
14498
14499 /* Override any GCC internal prototype to avoid an error.
14500    Use char because int might match the return type of a GCC
14501    builtin and then its argument prototype would still apply.  */
14502 #ifdef __cplusplus
14503 extern "C"
14504 #endif
14505 char ud_init ();
14506 int
14507 main ()
14508 {
14509 return ud_init ();
14510   ;
14511   return 0;
14512 }
14513 _ACEOF
14514 rm -f conftest.$ac_objext conftest$ac_exeext
14515 if { (ac_try="$ac_link"
14516 case "(($ac_try" in
14517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518   *) ac_try_echo=$ac_try;;
14519 esac
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521   (eval "$ac_link") 2>conftest.er1
14522   ac_status=$?
14523   grep -v '^ *+' conftest.er1 >conftest.err
14524   rm -f conftest.er1
14525   cat conftest.err >&5
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); } &&
14528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14529   { (case "(($ac_try" in
14530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531   *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534   (eval "$ac_try") 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; } &&
14538          { ac_try='test -s conftest$ac_exeext'
14539   { (case "(($ac_try" in
14540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541   *) ac_try_echo=$ac_try;;
14542 esac
14543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544   (eval "$ac_try") 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); }; }; then
14548   ac_cv_lib_udis86_ud_init=yes
14549 else
14550   echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14552
14553         ac_cv_lib_udis86_ud_init=no
14554 fi
14555
14556 rm -f core conftest.err conftest.$ac_objext \
14557       conftest$ac_exeext conftest.$ac_ext
14558 LIBS=$ac_check_lib_save_LIBS
14559 fi
14560 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14561 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14562 if test $ac_cv_lib_udis86_ud_init = yes; then
14563   cat >>confdefs.h <<_ACEOF
14564 #define HAVE_LIBUDIS86 1
14565 _ACEOF
14566
14567   LIBS="-ludis86 $LIBS"
14568
14569 else
14570
14571         echo "Error! You need to have libudis86 around."
14572         exit -1
14573
14574 fi
14575
14576
14577 else
14578   USE_UDIS86=0
14579
14580 fi
14581
14582
14583 cat >>confdefs.h <<_ACEOF
14584 #define USE_UDIS86 $USE_UDIS86
14585 _ACEOF
14586
14587
14588
14589 # Check whether --with-oprofile was given.
14590 if test "${with_oprofile+set}" = set; then
14591   withval=$with_oprofile;
14592       USE_OPROFILE=1
14593
14594       case "$withval" in
14595         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14596         no) llvm_cv_oppath=
14597             USE_OPROFILE=0
14598  ;;
14599         *) llvm_cv_oppath="${withval}/lib/oprofile"
14600            CPPFLAGS="-I${withval}/include";;
14601       esac
14602       if test -n "$llvm_cv_oppath" ; then
14603         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14604                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14605 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14606 if test "${ac_cv_search_bfd_init+set}" = set; then
14607   echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609   ac_func_search_save_LIBS=$LIBS
14610 cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h.  */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h.  */
14616
14617 /* Override any GCC internal prototype to avoid an error.
14618    Use char because int might match the return type of a GCC
14619    builtin and then its argument prototype would still apply.  */
14620 #ifdef __cplusplus
14621 extern "C"
14622 #endif
14623 char bfd_init ();
14624 int
14625 main ()
14626 {
14627 return bfd_init ();
14628   ;
14629   return 0;
14630 }
14631 _ACEOF
14632 for ac_lib in '' bfd; do
14633   if test -z "$ac_lib"; then
14634     ac_res="none required"
14635   else
14636     ac_res=-l$ac_lib
14637     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14638   fi
14639   rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (ac_try="$ac_link"
14641 case "(($ac_try" in
14642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643   *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646   (eval "$ac_link") 2>conftest.er1
14647   ac_status=$?
14648   grep -v '^ *+' conftest.er1 >conftest.err
14649   rm -f conftest.er1
14650   cat conftest.err >&5
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } &&
14653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14654   { (case "(($ac_try" in
14655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656   *) ac_try_echo=$ac_try;;
14657 esac
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659   (eval "$ac_try") 2>&5
14660   ac_status=$?
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); }; } &&
14663          { ac_try='test -s conftest$ac_exeext'
14664   { (case "(($ac_try" in
14665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14666   *) ac_try_echo=$ac_try;;
14667 esac
14668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14669   (eval "$ac_try") 2>&5
14670   ac_status=$?
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); }; }; then
14673   ac_cv_search_bfd_init=$ac_res
14674 else
14675   echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14677
14678
14679 fi
14680
14681 rm -f core conftest.err conftest.$ac_objext \
14682       conftest$ac_exeext
14683   if test "${ac_cv_search_bfd_init+set}" = set; then
14684   break
14685 fi
14686 done
14687 if test "${ac_cv_search_bfd_init+set}" = set; then
14688   :
14689 else
14690   ac_cv_search_bfd_init=no
14691 fi
14692 rm conftest.$ac_ext
14693 LIBS=$ac_func_search_save_LIBS
14694 fi
14695 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14696 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14697 ac_res=$ac_cv_search_bfd_init
14698 if test "$ac_res" != no; then
14699   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14700
14701 fi
14702
14703         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14704 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14705 if test "${ac_cv_search_op_open_agent+set}" = set; then
14706   echo $ECHO_N "(cached) $ECHO_C" >&6
14707 else
14708   ac_func_search_save_LIBS=$LIBS
14709 cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h.  */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h.  */
14715
14716 /* Override any GCC internal prototype to avoid an error.
14717    Use char because int might match the return type of a GCC
14718    builtin and then its argument prototype would still apply.  */
14719 #ifdef __cplusplus
14720 extern "C"
14721 #endif
14722 char op_open_agent ();
14723 int
14724 main ()
14725 {
14726 return op_open_agent ();
14727   ;
14728   return 0;
14729 }
14730 _ACEOF
14731 for ac_lib in '' opagent; do
14732   if test -z "$ac_lib"; then
14733     ac_res="none required"
14734   else
14735     ac_res=-l$ac_lib
14736     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14737   fi
14738   rm -f conftest.$ac_objext conftest$ac_exeext
14739 if { (ac_try="$ac_link"
14740 case "(($ac_try" in
14741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742   *) ac_try_echo=$ac_try;;
14743 esac
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745   (eval "$ac_link") 2>conftest.er1
14746   ac_status=$?
14747   grep -v '^ *+' conftest.er1 >conftest.err
14748   rm -f conftest.er1
14749   cat conftest.err >&5
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } &&
14752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14753   { (case "(($ac_try" in
14754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755   *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758   (eval "$ac_try") 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; } &&
14762          { ac_try='test -s conftest$ac_exeext'
14763   { (case "(($ac_try" in
14764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765   *) ac_try_echo=$ac_try;;
14766 esac
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768   (eval "$ac_try") 2>&5
14769   ac_status=$?
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); }; }; then
14772   ac_cv_search_op_open_agent=$ac_res
14773 else
14774   echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14776
14777
14778 fi
14779
14780 rm -f core conftest.err conftest.$ac_objext \
14781       conftest$ac_exeext
14782   if test "${ac_cv_search_op_open_agent+set}" = set; then
14783   break
14784 fi
14785 done
14786 if test "${ac_cv_search_op_open_agent+set}" = set; then
14787   :
14788 else
14789   ac_cv_search_op_open_agent=no
14790 fi
14791 rm conftest.$ac_ext
14792 LIBS=$ac_func_search_save_LIBS
14793 fi
14794 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14795 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14796 ac_res=$ac_cv_search_op_open_agent
14797 if test "$ac_res" != no; then
14798   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14799
14800 else
14801
14802           echo "Error! You need to have libopagent around."
14803           exit -1
14804
14805 fi
14806
14807         if test "${ac_cv_header_opagent_h+set}" = set; then
14808   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14809 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14810 if test "${ac_cv_header_opagent_h+set}" = set; then
14811   echo $ECHO_N "(cached) $ECHO_C" >&6
14812 fi
14813 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14814 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14815 else
14816   # Is the header compilable?
14817 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14818 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825 $ac_includes_default
14826 #include <opagent.h>
14827 _ACEOF
14828 rm -f conftest.$ac_objext
14829 if { (ac_try="$ac_compile"
14830 case "(($ac_try" in
14831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832   *) ac_try_echo=$ac_try;;
14833 esac
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835   (eval "$ac_compile") 2>conftest.er1
14836   ac_status=$?
14837   grep -v '^ *+' conftest.er1 >conftest.err
14838   rm -f conftest.er1
14839   cat conftest.err >&5
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); } &&
14842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14843   { (case "(($ac_try" in
14844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845   *) ac_try_echo=$ac_try;;
14846 esac
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848   (eval "$ac_try") 2>&5
14849   ac_status=$?
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); }; } &&
14852          { ac_try='test -s conftest.$ac_objext'
14853   { (case "(($ac_try" in
14854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855   *) ac_try_echo=$ac_try;;
14856 esac
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858   (eval "$ac_try") 2>&5
14859   ac_status=$?
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); }; }; then
14862   ac_header_compiler=yes
14863 else
14864   echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14866
14867         ac_header_compiler=no
14868 fi
14869
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14872 echo "${ECHO_T}$ac_header_compiler" >&6; }
14873
14874 # Is the header present?
14875 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14876 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14877 cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h.  */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h.  */
14883 #include <opagent.h>
14884 _ACEOF
14885 if { (ac_try="$ac_cpp conftest.$ac_ext"
14886 case "(($ac_try" in
14887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888   *) ac_try_echo=$ac_try;;
14889 esac
14890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14892   ac_status=$?
14893   grep -v '^ *+' conftest.er1 >conftest.err
14894   rm -f conftest.er1
14895   cat conftest.err >&5
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); } >/dev/null; then
14898   if test -s conftest.err; then
14899     ac_cpp_err=$ac_c_preproc_warn_flag
14900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14901   else
14902     ac_cpp_err=
14903   fi
14904 else
14905   ac_cpp_err=yes
14906 fi
14907 if test -z "$ac_cpp_err"; then
14908   ac_header_preproc=yes
14909 else
14910   echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14912
14913   ac_header_preproc=no
14914 fi
14915
14916 rm -f conftest.err conftest.$ac_ext
14917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14918 echo "${ECHO_T}$ac_header_preproc" >&6; }
14919
14920 # So?  What about this header?
14921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14922   yes:no: )
14923     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14924 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14925     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14926 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14927     ac_header_preproc=yes
14928     ;;
14929   no:yes:* )
14930     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14931 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14932     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14933 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14934     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14935 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14936     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14937 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14938     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14939 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14940     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14941 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14942     ( cat <<\_ASBOX
14943 ## ----------------------------------- ##
14944 ## Report this to llvmbugs@cs.uiuc.edu ##
14945 ## ----------------------------------- ##
14946 _ASBOX
14947      ) | sed "s/^/$as_me: WARNING:     /" >&2
14948     ;;
14949 esac
14950 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14951 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14952 if test "${ac_cv_header_opagent_h+set}" = set; then
14953   echo $ECHO_N "(cached) $ECHO_C" >&6
14954 else
14955   ac_cv_header_opagent_h=$ac_header_preproc
14956 fi
14957 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14958 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14959
14960 fi
14961 if test $ac_cv_header_opagent_h = yes; then
14962   :
14963 else
14964
14965           echo "Error! You need to have opagent.h around."
14966           exit -1
14967
14968 fi
14969
14970
14971       fi
14972
14973 else
14974
14975       USE_OPROFILE=0
14976
14977
14978 fi
14979
14980
14981 cat >>confdefs.h <<_ACEOF
14982 #define USE_OPROFILE $USE_OPROFILE
14983 _ACEOF
14984
14985
14986
14987
14988
14989
14990
14991
14992 ac_header_dirent=no
14993 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14994   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14995 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14996 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14998   echo $ECHO_N "(cached) $ECHO_C" >&6
14999 else
15000   cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h.  */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h.  */
15006 #include <sys/types.h>
15007 #include <$ac_hdr>
15008
15009 int
15010 main ()
15011 {
15012 if ((DIR *) 0)
15013 return 0;
15014   ;
15015   return 0;
15016 }
15017 _ACEOF
15018 rm -f conftest.$ac_objext
15019 if { (ac_try="$ac_compile"
15020 case "(($ac_try" in
15021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022   *) ac_try_echo=$ac_try;;
15023 esac
15024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025   (eval "$ac_compile") 2>conftest.er1
15026   ac_status=$?
15027   grep -v '^ *+' conftest.er1 >conftest.err
15028   rm -f conftest.er1
15029   cat conftest.err >&5
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); } &&
15032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15033   { (case "(($ac_try" in
15034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035   *) ac_try_echo=$ac_try;;
15036 esac
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038   (eval "$ac_try") 2>&5
15039   ac_status=$?
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); }; } &&
15042          { ac_try='test -s conftest.$ac_objext'
15043   { (case "(($ac_try" in
15044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045   *) ac_try_echo=$ac_try;;
15046 esac
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048   (eval "$ac_try") 2>&5
15049   ac_status=$?
15050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); }; }; then
15052   eval "$as_ac_Header=yes"
15053 else
15054   echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057         eval "$as_ac_Header=no"
15058 fi
15059
15060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 fi
15062 ac_res=`eval echo '${'$as_ac_Header'}'`
15063                { echo "$as_me:$LINENO: result: $ac_res" >&5
15064 echo "${ECHO_T}$ac_res" >&6; }
15065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15066   cat >>confdefs.h <<_ACEOF
15067 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15068 _ACEOF
15069
15070 ac_header_dirent=$ac_hdr; break
15071 fi
15072
15073 done
15074 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15075 if test $ac_header_dirent = dirent.h; then
15076   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15077 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15078 if test "${ac_cv_search_opendir+set}" = set; then
15079   echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081   ac_func_search_save_LIBS=$LIBS
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h.  */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h.  */
15088
15089 /* Override any GCC internal prototype to avoid an error.
15090    Use char because int might match the return type of a GCC
15091    builtin and then its argument prototype would still apply.  */
15092 #ifdef __cplusplus
15093 extern "C"
15094 #endif
15095 char opendir ();
15096 int
15097 main ()
15098 {
15099 return opendir ();
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 for ac_lib in '' dir; do
15105   if test -z "$ac_lib"; then
15106     ac_res="none required"
15107   else
15108     ac_res=-l$ac_lib
15109     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15110   fi
15111   rm -f conftest.$ac_objext conftest$ac_exeext
15112 if { (ac_try="$ac_link"
15113 case "(($ac_try" in
15114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115   *) ac_try_echo=$ac_try;;
15116 esac
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118   (eval "$ac_link") 2>conftest.er1
15119   ac_status=$?
15120   grep -v '^ *+' conftest.er1 >conftest.err
15121   rm -f conftest.er1
15122   cat conftest.err >&5
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); } &&
15125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15126   { (case "(($ac_try" in
15127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128   *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131   (eval "$ac_try") 2>&5
15132   ac_status=$?
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); }; } &&
15135          { ac_try='test -s conftest$ac_exeext'
15136   { (case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141   (eval "$ac_try") 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); }; }; then
15145   ac_cv_search_opendir=$ac_res
15146 else
15147   echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150
15151 fi
15152
15153 rm -f core conftest.err conftest.$ac_objext \
15154       conftest$ac_exeext
15155   if test "${ac_cv_search_opendir+set}" = set; then
15156   break
15157 fi
15158 done
15159 if test "${ac_cv_search_opendir+set}" = set; then
15160   :
15161 else
15162   ac_cv_search_opendir=no
15163 fi
15164 rm conftest.$ac_ext
15165 LIBS=$ac_func_search_save_LIBS
15166 fi
15167 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15168 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15169 ac_res=$ac_cv_search_opendir
15170 if test "$ac_res" != no; then
15171   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15172
15173 fi
15174
15175 else
15176   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15177 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15178 if test "${ac_cv_search_opendir+set}" = set; then
15179   echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181   ac_func_search_save_LIBS=$LIBS
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h.  */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h.  */
15188
15189 /* Override any GCC internal prototype to avoid an error.
15190    Use char because int might match the return type of a GCC
15191    builtin and then its argument prototype would still apply.  */
15192 #ifdef __cplusplus
15193 extern "C"
15194 #endif
15195 char opendir ();
15196 int
15197 main ()
15198 {
15199 return opendir ();
15200   ;
15201   return 0;
15202 }
15203 _ACEOF
15204 for ac_lib in '' x; do
15205   if test -z "$ac_lib"; then
15206     ac_res="none required"
15207   else
15208     ac_res=-l$ac_lib
15209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15210   fi
15211   rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (ac_try="$ac_link"
15213 case "(($ac_try" in
15214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215   *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218   (eval "$ac_link") 2>conftest.er1
15219   ac_status=$?
15220   grep -v '^ *+' conftest.er1 >conftest.err
15221   rm -f conftest.er1
15222   cat conftest.err >&5
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); } &&
15225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15226   { (case "(($ac_try" in
15227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228   *) ac_try_echo=$ac_try;;
15229 esac
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231   (eval "$ac_try") 2>&5
15232   ac_status=$?
15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234   (exit $ac_status); }; } &&
15235          { ac_try='test -s conftest$ac_exeext'
15236   { (case "(($ac_try" in
15237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238   *) ac_try_echo=$ac_try;;
15239 esac
15240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241   (eval "$ac_try") 2>&5
15242   ac_status=$?
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); }; }; then
15245   ac_cv_search_opendir=$ac_res
15246 else
15247   echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15249
15250
15251 fi
15252
15253 rm -f core conftest.err conftest.$ac_objext \
15254       conftest$ac_exeext
15255   if test "${ac_cv_search_opendir+set}" = set; then
15256   break
15257 fi
15258 done
15259 if test "${ac_cv_search_opendir+set}" = set; then
15260   :
15261 else
15262   ac_cv_search_opendir=no
15263 fi
15264 rm conftest.$ac_ext
15265 LIBS=$ac_func_search_save_LIBS
15266 fi
15267 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15268 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15269 ac_res=$ac_cv_search_opendir
15270 if test "$ac_res" != no; then
15271   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15272
15273 fi
15274
15275 fi
15276
15277 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15278 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15279 if test "${ac_cv_header_mmap_anon+set}" = set; then
15280   echo $ECHO_N "(cached) $ECHO_C" >&6
15281 else
15282    ac_ext=c
15283 ac_cpp='$CPP $CPPFLAGS'
15284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15287
15288   cat >conftest.$ac_ext <<_ACEOF
15289 /* confdefs.h.  */
15290 _ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h.  */
15294 #include <sys/mman.h>
15295 #include <unistd.h>
15296 #include <fcntl.h>
15297 int
15298 main ()
15299 {
15300 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309   *) ac_try_echo=$ac_try;;
15310 esac
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312   (eval "$ac_compile") 2>conftest.er1
15313   ac_status=$?
15314   grep -v '^ *+' conftest.er1 >conftest.err
15315   rm -f conftest.er1
15316   cat conftest.err >&5
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } &&
15319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320   { (case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_try") 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; } &&
15329          { ac_try='test -s conftest.$ac_objext'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339   ac_cv_header_mmap_anon=yes
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344         ac_cv_header_mmap_anon=no
15345 fi
15346
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348   ac_ext=c
15349 ac_cpp='$CPP $CPPFLAGS'
15350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15353
15354
15355 fi
15356 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15357 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15358 if test "$ac_cv_header_mmap_anon" = yes; then
15359
15360 cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_MMAP_ANONYMOUS 1
15362 _ACEOF
15363
15364 fi
15365
15366 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15367 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15368 if test "${ac_cv_header_stat_broken+set}" = set; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377 #include <sys/types.h>
15378 #include <sys/stat.h>
15379
15380 #if defined S_ISBLK && defined S_IFDIR
15381 # if S_ISBLK (S_IFDIR)
15382 You lose.
15383 # endif
15384 #endif
15385
15386 #if defined S_ISBLK && defined S_IFCHR
15387 # if S_ISBLK (S_IFCHR)
15388 You lose.
15389 # endif
15390 #endif
15391
15392 #if defined S_ISLNK && defined S_IFREG
15393 # if S_ISLNK (S_IFREG)
15394 You lose.
15395 # endif
15396 #endif
15397
15398 #if defined S_ISSOCK && defined S_IFREG
15399 # if S_ISSOCK (S_IFREG)
15400 You lose.
15401 # endif
15402 #endif
15403
15404 _ACEOF
15405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15406   $EGREP "You lose" >/dev/null 2>&1; then
15407   ac_cv_header_stat_broken=yes
15408 else
15409   ac_cv_header_stat_broken=no
15410 fi
15411 rm -f conftest*
15412
15413 fi
15414 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15415 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15416 if test $ac_cv_header_stat_broken = yes; then
15417
15418 cat >>confdefs.h <<\_ACEOF
15419 #define STAT_MACROS_BROKEN 1
15420 _ACEOF
15421
15422 fi
15423
15424 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15425 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15426 if test "${ac_cv_header_stdc+set}" = set; then
15427   echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429   cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h.  */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h.  */
15435 #include <stdlib.h>
15436 #include <stdarg.h>
15437 #include <string.h>
15438 #include <float.h>
15439
15440 int
15441 main ()
15442 {
15443
15444   ;
15445   return 0;
15446 }
15447 _ACEOF
15448 rm -f conftest.$ac_objext
15449 if { (ac_try="$ac_compile"
15450 case "(($ac_try" in
15451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452   *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455   (eval "$ac_compile") 2>conftest.er1
15456   ac_status=$?
15457   grep -v '^ *+' conftest.er1 >conftest.err
15458   rm -f conftest.er1
15459   cat conftest.err >&5
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); } &&
15462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15463   { (case "(($ac_try" in
15464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465   *) ac_try_echo=$ac_try;;
15466 esac
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468   (eval "$ac_try") 2>&5
15469   ac_status=$?
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); }; } &&
15472          { ac_try='test -s conftest.$ac_objext'
15473   { (case "(($ac_try" in
15474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475   *) ac_try_echo=$ac_try;;
15476 esac
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478   (eval "$ac_try") 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; }; then
15482   ac_cv_header_stdc=yes
15483 else
15484   echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487         ac_cv_header_stdc=no
15488 fi
15489
15490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491
15492 if test $ac_cv_header_stdc = yes; then
15493   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15494   cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h.  */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h.  */
15500 #include <string.h>
15501
15502 _ACEOF
15503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15504   $EGREP "memchr" >/dev/null 2>&1; then
15505   :
15506 else
15507   ac_cv_header_stdc=no
15508 fi
15509 rm -f conftest*
15510
15511 fi
15512
15513 if test $ac_cv_header_stdc = yes; then
15514   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15515   cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h.  */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h.  */
15521 #include <stdlib.h>
15522
15523 _ACEOF
15524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15525   $EGREP "free" >/dev/null 2>&1; then
15526   :
15527 else
15528   ac_cv_header_stdc=no
15529 fi
15530 rm -f conftest*
15531
15532 fi
15533
15534 if test $ac_cv_header_stdc = yes; then
15535   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15536   if test "$cross_compiling" = yes; then
15537   :
15538 else
15539   cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h.  */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h.  */
15545 #include <ctype.h>
15546 #include <stdlib.h>
15547 #if ((' ' & 0x0FF) == 0x020)
15548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15550 #else
15551 # define ISLOWER(c) \
15552                    (('a' <= (c) && (c) <= 'i') \
15553                      || ('j' <= (c) && (c) <= 'r') \
15554                      || ('s' <= (c) && (c) <= 'z'))
15555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15556 #endif
15557
15558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15559 int
15560 main ()
15561 {
15562   int i;
15563   for (i = 0; i < 256; i++)
15564     if (XOR (islower (i), ISLOWER (i))
15565         || toupper (i) != TOUPPER (i))
15566       return 2;
15567   return 0;
15568 }
15569 _ACEOF
15570 rm -f conftest$ac_exeext
15571 if { (ac_try="$ac_link"
15572 case "(($ac_try" in
15573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574   *) ac_try_echo=$ac_try;;
15575 esac
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577   (eval "$ac_link") 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15581   { (case "(($ac_try" in
15582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583   *) ac_try_echo=$ac_try;;
15584 esac
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586   (eval "$ac_try") 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; }; then
15590   :
15591 else
15592   echo "$as_me: program exited with status $ac_status" >&5
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15595
15596 ( exit $ac_status )
15597 ac_cv_header_stdc=no
15598 fi
15599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15600 fi
15601
15602
15603 fi
15604 fi
15605 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15606 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15607 if test $ac_cv_header_stdc = yes; then
15608
15609 cat >>confdefs.h <<\_ACEOF
15610 #define STDC_HEADERS 1
15611 _ACEOF
15612
15613 fi
15614
15615 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15616 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15617 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15618   echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620   cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h.  */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h.  */
15626 #include <sys/types.h>
15627 #include <sys/wait.h>
15628 #ifndef WEXITSTATUS
15629 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15630 #endif
15631 #ifndef WIFEXITED
15632 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15633 #endif
15634
15635 int
15636 main ()
15637 {
15638   int s;
15639   wait (&s);
15640   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15641   ;
15642   return 0;
15643 }
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649   *) ac_try_echo=$ac_try;;
15650 esac
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652   (eval "$ac_compile") 2>conftest.er1
15653   ac_status=$?
15654   grep -v '^ *+' conftest.er1 >conftest.err
15655   rm -f conftest.er1
15656   cat conftest.err >&5
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); } &&
15659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15660   { (case "(($ac_try" in
15661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662   *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665   (eval "$ac_try") 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; } &&
15669          { ac_try='test -s conftest.$ac_objext'
15670   { (case "(($ac_try" in
15671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672   *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675   (eval "$ac_try") 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   ac_cv_header_sys_wait_h=yes
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684         ac_cv_header_sys_wait_h=no
15685 fi
15686
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 fi
15689 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15690 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15691 if test $ac_cv_header_sys_wait_h = yes; then
15692
15693 cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_SYS_WAIT_H 1
15695 _ACEOF
15696
15697 fi
15698
15699 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15700 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15701 if test "${ac_cv_header_time+set}" = set; then
15702   echo $ECHO_N "(cached) $ECHO_C" >&6
15703 else
15704   cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h.  */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h.  */
15710 #include <sys/types.h>
15711 #include <sys/time.h>
15712 #include <time.h>
15713
15714 int
15715 main ()
15716 {
15717 if ((struct tm *) 0)
15718 return 0;
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext
15724 if { (ac_try="$ac_compile"
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_compile") 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); } &&
15737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15738   { (case "(($ac_try" in
15739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740   *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743   (eval "$ac_try") 2>&5
15744   ac_status=$?
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); }; } &&
15747          { ac_try='test -s conftest.$ac_objext'
15748   { (case "(($ac_try" in
15749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750   *) ac_try_echo=$ac_try;;
15751 esac
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753   (eval "$ac_try") 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); }; }; then
15757   ac_cv_header_time=yes
15758 else
15759   echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15761
15762         ac_cv_header_time=no
15763 fi
15764
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 fi
15767 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15768 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15769 if test $ac_cv_header_time = yes; then
15770
15771 cat >>confdefs.h <<\_ACEOF
15772 #define TIME_WITH_SYS_TIME 1
15773 _ACEOF
15774
15775 fi
15776
15777
15778
15779
15780
15781
15782
15783
15784 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15785 do
15786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791   echo $ECHO_N "(cached) $ECHO_C" >&6
15792 fi
15793 ac_res=`eval echo '${'$as_ac_Header'}'`
15794                { echo "$as_me:$LINENO: result: $ac_res" >&5
15795 echo "${ECHO_T}$ac_res" >&6; }
15796 else
15797   # Is the header compilable?
15798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15800 cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h.  */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h.  */
15806 $ac_includes_default
15807 #include <$ac_header>
15808 _ACEOF
15809 rm -f conftest.$ac_objext
15810 if { (ac_try="$ac_compile"
15811 case "(($ac_try" in
15812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15813   *) ac_try_echo=$ac_try;;
15814 esac
15815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15816   (eval "$ac_compile") 2>conftest.er1
15817   ac_status=$?
15818   grep -v '^ *+' conftest.er1 >conftest.err
15819   rm -f conftest.er1
15820   cat conftest.err >&5
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); } &&
15823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15824   { (case "(($ac_try" in
15825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826   *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829   (eval "$ac_try") 2>&5
15830   ac_status=$?
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); }; } &&
15833          { ac_try='test -s conftest.$ac_objext'
15834   { (case "(($ac_try" in
15835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836   *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839   (eval "$ac_try") 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); }; }; then
15843   ac_header_compiler=yes
15844 else
15845   echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15847
15848         ac_header_compiler=no
15849 fi
15850
15851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15853 echo "${ECHO_T}$ac_header_compiler" >&6; }
15854
15855 # Is the header present?
15856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15858 cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h.  */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h.  */
15864 #include <$ac_header>
15865 _ACEOF
15866 if { (ac_try="$ac_cpp conftest.$ac_ext"
15867 case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15873   ac_status=$?
15874   grep -v '^ *+' conftest.er1 >conftest.err
15875   rm -f conftest.er1
15876   cat conftest.err >&5
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); } >/dev/null; then
15879   if test -s conftest.err; then
15880     ac_cpp_err=$ac_c_preproc_warn_flag
15881     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15882   else
15883     ac_cpp_err=
15884   fi
15885 else
15886   ac_cpp_err=yes
15887 fi
15888 if test -z "$ac_cpp_err"; then
15889   ac_header_preproc=yes
15890 else
15891   echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15893
15894   ac_header_preproc=no
15895 fi
15896
15897 rm -f conftest.err conftest.$ac_ext
15898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15899 echo "${ECHO_T}$ac_header_preproc" >&6; }
15900
15901 # So?  What about this header?
15902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15903   yes:no: )
15904     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15908     ac_header_preproc=yes
15909     ;;
15910   no:yes:* )
15911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15913     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15914 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15915     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15917     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15918 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15921     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15923     ( cat <<\_ASBOX
15924 ## ----------------------------------- ##
15925 ## Report this to llvmbugs@cs.uiuc.edu ##
15926 ## ----------------------------------- ##
15927 _ASBOX
15928      ) | sed "s/^/$as_me: WARNING:     /" >&2
15929     ;;
15930 esac
15931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15934   echo $ECHO_N "(cached) $ECHO_C" >&6
15935 else
15936   eval "$as_ac_Header=\$ac_header_preproc"
15937 fi
15938 ac_res=`eval echo '${'$as_ac_Header'}'`
15939                { echo "$as_me:$LINENO: result: $ac_res" >&5
15940 echo "${ECHO_T}$ac_res" >&6; }
15941
15942 fi
15943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15944   cat >>confdefs.h <<_ACEOF
15945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15946 _ACEOF
15947
15948 fi
15949
15950 done
15951
15952
15953
15954
15955
15956
15957
15958 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15959 do
15960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965   echo $ECHO_N "(cached) $ECHO_C" >&6
15966 fi
15967 ac_res=`eval echo '${'$as_ac_Header'}'`
15968                { echo "$as_me:$LINENO: result: $ac_res" >&5
15969 echo "${ECHO_T}$ac_res" >&6; }
15970 else
15971   # Is the header compilable?
15972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980 $ac_includes_default
15981 #include <$ac_header>
15982 _ACEOF
15983 rm -f conftest.$ac_objext
15984 if { (ac_try="$ac_compile"
15985 case "(($ac_try" in
15986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987   *) ac_try_echo=$ac_try;;
15988 esac
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990   (eval "$ac_compile") 2>conftest.er1
15991   ac_status=$?
15992   grep -v '^ *+' conftest.er1 >conftest.err
15993   rm -f conftest.er1
15994   cat conftest.err >&5
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } &&
15997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15998   { (case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_try") 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; } &&
16007          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16014   ac_status=$?
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); }; }; then
16017   ac_header_compiler=yes
16018 else
16019   echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022         ac_header_compiler=no
16023 fi
16024
16025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16027 echo "${ECHO_T}$ac_header_compiler" >&6; }
16028
16029 # Is the header present?
16030 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16032 cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h.  */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h.  */
16038 #include <$ac_header>
16039 _ACEOF
16040 if { (ac_try="$ac_cpp conftest.$ac_ext"
16041 case "(($ac_try" in
16042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043   *) ac_try_echo=$ac_try;;
16044 esac
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16047   ac_status=$?
16048   grep -v '^ *+' conftest.er1 >conftest.err
16049   rm -f conftest.er1
16050   cat conftest.err >&5
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); } >/dev/null; then
16053   if test -s conftest.err; then
16054     ac_cpp_err=$ac_c_preproc_warn_flag
16055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16056   else
16057     ac_cpp_err=
16058   fi
16059 else
16060   ac_cpp_err=yes
16061 fi
16062 if test -z "$ac_cpp_err"; then
16063   ac_header_preproc=yes
16064 else
16065   echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068   ac_header_preproc=no
16069 fi
16070
16071 rm -f conftest.err conftest.$ac_ext
16072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16073 echo "${ECHO_T}$ac_header_preproc" >&6; }
16074
16075 # So?  What about this header?
16076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16077   yes:no: )
16078     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16082     ac_header_preproc=yes
16083     ;;
16084   no:yes:* )
16085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16087     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16088 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16089     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16091     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16092 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16095     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16097     ( cat <<\_ASBOX
16098 ## ----------------------------------- ##
16099 ## Report this to llvmbugs@cs.uiuc.edu ##
16100 ## ----------------------------------- ##
16101 _ASBOX
16102      ) | sed "s/^/$as_me: WARNING:     /" >&2
16103     ;;
16104 esac
16105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16108   echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110   eval "$as_ac_Header=\$ac_header_preproc"
16111 fi
16112 ac_res=`eval echo '${'$as_ac_Header'}'`
16113                { echo "$as_me:$LINENO: result: $ac_res" >&5
16114 echo "${ECHO_T}$ac_res" >&6; }
16115
16116 fi
16117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16118   cat >>confdefs.h <<_ACEOF
16119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16120 _ACEOF
16121
16122 fi
16123
16124 done
16125
16126
16127
16128 for ac_header in utime.h windows.h
16129 do
16130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16132   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16135   echo $ECHO_N "(cached) $ECHO_C" >&6
16136 fi
16137 ac_res=`eval echo '${'$as_ac_Header'}'`
16138                { echo "$as_me:$LINENO: result: $ac_res" >&5
16139 echo "${ECHO_T}$ac_res" >&6; }
16140 else
16141   # Is the header compilable?
16142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16144 cat >conftest.$ac_ext <<_ACEOF
16145 /* confdefs.h.  */
16146 _ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h.  */
16150 $ac_includes_default
16151 #include <$ac_header>
16152 _ACEOF
16153 rm -f conftest.$ac_objext
16154 if { (ac_try="$ac_compile"
16155 case "(($ac_try" in
16156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157   *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160   (eval "$ac_compile") 2>conftest.er1
16161   ac_status=$?
16162   grep -v '^ *+' conftest.er1 >conftest.err
16163   rm -f conftest.er1
16164   cat conftest.err >&5
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } &&
16167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16168   { (case "(($ac_try" in
16169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170   *) ac_try_echo=$ac_try;;
16171 esac
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173   (eval "$ac_try") 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; } &&
16177          { ac_try='test -s conftest.$ac_objext'
16178   { (case "(($ac_try" in
16179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180   *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183   (eval "$ac_try") 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; }; then
16187   ac_header_compiler=yes
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192         ac_header_compiler=no
16193 fi
16194
16195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16197 echo "${ECHO_T}$ac_header_compiler" >&6; }
16198
16199 # Is the header present?
16200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16202 cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h.  */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h.  */
16208 #include <$ac_header>
16209 _ACEOF
16210 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16217   ac_status=$?
16218   grep -v '^ *+' conftest.er1 >conftest.err
16219   rm -f conftest.er1
16220   cat conftest.err >&5
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } >/dev/null; then
16223   if test -s conftest.err; then
16224     ac_cpp_err=$ac_c_preproc_warn_flag
16225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16226   else
16227     ac_cpp_err=
16228   fi
16229 else
16230   ac_cpp_err=yes
16231 fi
16232 if test -z "$ac_cpp_err"; then
16233   ac_header_preproc=yes
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238   ac_header_preproc=no
16239 fi
16240
16241 rm -f conftest.err conftest.$ac_ext
16242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16243 echo "${ECHO_T}$ac_header_preproc" >&6; }
16244
16245 # So?  What about this header?
16246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16247   yes:no: )
16248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16252     ac_header_preproc=yes
16253     ;;
16254   no:yes:* )
16255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16267     ( cat <<\_ASBOX
16268 ## ----------------------------------- ##
16269 ## Report this to llvmbugs@cs.uiuc.edu ##
16270 ## ----------------------------------- ##
16271 _ASBOX
16272      ) | sed "s/^/$as_me: WARNING:     /" >&2
16273     ;;
16274 esac
16275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16278   echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16280   eval "$as_ac_Header=\$ac_header_preproc"
16281 fi
16282 ac_res=`eval echo '${'$as_ac_Header'}'`
16283                { echo "$as_me:$LINENO: result: $ac_res" >&5
16284 echo "${ECHO_T}$ac_res" >&6; }
16285
16286 fi
16287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16288   cat >>confdefs.h <<_ACEOF
16289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16290 _ACEOF
16291
16292 fi
16293
16294 done
16295
16296
16297
16298
16299
16300
16301 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16302 do
16303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16305   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16308   echo $ECHO_N "(cached) $ECHO_C" >&6
16309 fi
16310 ac_res=`eval echo '${'$as_ac_Header'}'`
16311                { echo "$as_me:$LINENO: result: $ac_res" >&5
16312 echo "${ECHO_T}$ac_res" >&6; }
16313 else
16314   # Is the header compilable?
16315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323 $ac_includes_default
16324 #include <$ac_header>
16325 _ACEOF
16326 rm -f conftest.$ac_objext
16327 if { (ac_try="$ac_compile"
16328 case "(($ac_try" in
16329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330   *) ac_try_echo=$ac_try;;
16331 esac
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333   (eval "$ac_compile") 2>conftest.er1
16334   ac_status=$?
16335   grep -v '^ *+' conftest.er1 >conftest.err
16336   rm -f conftest.er1
16337   cat conftest.err >&5
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); } &&
16340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16341   { (case "(($ac_try" in
16342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343   *) ac_try_echo=$ac_try;;
16344 esac
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346   (eval "$ac_try") 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); }; } &&
16350          { ac_try='test -s conftest.$ac_objext'
16351   { (case "(($ac_try" in
16352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353   *) ac_try_echo=$ac_try;;
16354 esac
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356   (eval "$ac_try") 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; }; then
16360   ac_header_compiler=yes
16361 else
16362   echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365         ac_header_compiler=no
16366 fi
16367
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16370 echo "${ECHO_T}$ac_header_compiler" >&6; }
16371
16372 # Is the header present?
16373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16375 cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h.  */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h.  */
16381 #include <$ac_header>
16382 _ACEOF
16383 if { (ac_try="$ac_cpp conftest.$ac_ext"
16384 case "(($ac_try" in
16385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386   *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16390   ac_status=$?
16391   grep -v '^ *+' conftest.er1 >conftest.err
16392   rm -f conftest.er1
16393   cat conftest.err >&5
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } >/dev/null; then
16396   if test -s conftest.err; then
16397     ac_cpp_err=$ac_c_preproc_warn_flag
16398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16399   else
16400     ac_cpp_err=
16401   fi
16402 else
16403   ac_cpp_err=yes
16404 fi
16405 if test -z "$ac_cpp_err"; then
16406   ac_header_preproc=yes
16407 else
16408   echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411   ac_header_preproc=no
16412 fi
16413
16414 rm -f conftest.err conftest.$ac_ext
16415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16416 echo "${ECHO_T}$ac_header_preproc" >&6; }
16417
16418 # So?  What about this header?
16419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16420   yes:no: )
16421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16425     ac_header_preproc=yes
16426     ;;
16427   no:yes:* )
16428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16440     ( cat <<\_ASBOX
16441 ## ----------------------------------- ##
16442 ## Report this to llvmbugs@cs.uiuc.edu ##
16443 ## ----------------------------------- ##
16444 _ASBOX
16445      ) | sed "s/^/$as_me: WARNING:     /" >&2
16446     ;;
16447 esac
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451   echo $ECHO_N "(cached) $ECHO_C" >&6
16452 else
16453   eval "$as_ac_Header=\$ac_header_preproc"
16454 fi
16455 ac_res=`eval echo '${'$as_ac_Header'}'`
16456                { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16458
16459 fi
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461   cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16463 _ACEOF
16464
16465 fi
16466
16467 done
16468
16469
16470
16471
16472
16473 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16474 do
16475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16480   echo $ECHO_N "(cached) $ECHO_C" >&6
16481 fi
16482 ac_res=`eval echo '${'$as_ac_Header'}'`
16483                { echo "$as_me:$LINENO: result: $ac_res" >&5
16484 echo "${ECHO_T}$ac_res" >&6; }
16485 else
16486   # Is the header compilable?
16487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495 $ac_includes_default
16496 #include <$ac_header>
16497 _ACEOF
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502   *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505   (eval "$ac_compile") 2>conftest.er1
16506   ac_status=$?
16507   grep -v '^ *+' conftest.er1 >conftest.err
16508   rm -f conftest.er1
16509   cat conftest.err >&5
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); } &&
16512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513   { (case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_try") 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; } &&
16522          { ac_try='test -s conftest.$ac_objext'
16523   { (case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_try") 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; }; then
16532   ac_header_compiler=yes
16533 else
16534   echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537         ac_header_compiler=no
16538 fi
16539
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16542 echo "${ECHO_T}$ac_header_compiler" >&6; }
16543
16544 # Is the header present?
16545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 #include <$ac_header>
16554 _ACEOF
16555 if { (ac_try="$ac_cpp conftest.$ac_ext"
16556 case "(($ac_try" in
16557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558   *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16562   ac_status=$?
16563   grep -v '^ *+' conftest.er1 >conftest.err
16564   rm -f conftest.er1
16565   cat conftest.err >&5
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } >/dev/null; then
16568   if test -s conftest.err; then
16569     ac_cpp_err=$ac_c_preproc_warn_flag
16570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16571   else
16572     ac_cpp_err=
16573   fi
16574 else
16575   ac_cpp_err=yes
16576 fi
16577 if test -z "$ac_cpp_err"; then
16578   ac_header_preproc=yes
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583   ac_header_preproc=no
16584 fi
16585
16586 rm -f conftest.err conftest.$ac_ext
16587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16588 echo "${ECHO_T}$ac_header_preproc" >&6; }
16589
16590 # So?  What about this header?
16591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16592   yes:no: )
16593     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16597     ac_header_preproc=yes
16598     ;;
16599   no:yes:* )
16600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16602     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16603 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16604     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16606     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16607 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16610     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16612     ( cat <<\_ASBOX
16613 ## ----------------------------------- ##
16614 ## Report this to llvmbugs@cs.uiuc.edu ##
16615 ## ----------------------------------- ##
16616 _ASBOX
16617      ) | sed "s/^/$as_me: WARNING:     /" >&2
16618     ;;
16619 esac
16620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16623   echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625   eval "$as_ac_Header=\$ac_header_preproc"
16626 fi
16627 ac_res=`eval echo '${'$as_ac_Header'}'`
16628                { echo "$as_me:$LINENO: result: $ac_res" >&5
16629 echo "${ECHO_T}$ac_res" >&6; }
16630
16631 fi
16632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16633   cat >>confdefs.h <<_ACEOF
16634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16635 _ACEOF
16636
16637 fi
16638
16639 done
16640
16641
16642 for ac_header in valgrind/valgrind.h
16643 do
16644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 fi
16651 ac_res=`eval echo '${'$as_ac_Header'}'`
16652                { echo "$as_me:$LINENO: result: $ac_res" >&5
16653 echo "${ECHO_T}$ac_res" >&6; }
16654 else
16655   # Is the header compilable?
16656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16658 cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h.  */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h.  */
16664 $ac_includes_default
16665 #include <$ac_header>
16666 _ACEOF
16667 rm -f conftest.$ac_objext
16668 if { (ac_try="$ac_compile"
16669 case "(($ac_try" in
16670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671   *) ac_try_echo=$ac_try;;
16672 esac
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674   (eval "$ac_compile") 2>conftest.er1
16675   ac_status=$?
16676   grep -v '^ *+' conftest.er1 >conftest.err
16677   rm -f conftest.er1
16678   cat conftest.err >&5
16679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680   (exit $ac_status); } &&
16681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16682   { (case "(($ac_try" in
16683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684   *) ac_try_echo=$ac_try;;
16685 esac
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687   (eval "$ac_try") 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; } &&
16691          { ac_try='test -s conftest.$ac_objext'
16692   { (case "(($ac_try" in
16693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694   *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697   (eval "$ac_try") 2>&5
16698   ac_status=$?
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); }; }; then
16701   ac_header_compiler=yes
16702 else
16703   echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16705
16706         ac_header_compiler=no
16707 fi
16708
16709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16711 echo "${ECHO_T}$ac_header_compiler" >&6; }
16712
16713 # Is the header present?
16714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16716 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h.  */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h.  */
16722 #include <$ac_header>
16723 _ACEOF
16724 if { (ac_try="$ac_cpp conftest.$ac_ext"
16725 case "(($ac_try" in
16726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727   *) ac_try_echo=$ac_try;;
16728 esac
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16731   ac_status=$?
16732   grep -v '^ *+' conftest.er1 >conftest.err
16733   rm -f conftest.er1
16734   cat conftest.err >&5
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); } >/dev/null; then
16737   if test -s conftest.err; then
16738     ac_cpp_err=$ac_c_preproc_warn_flag
16739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16740   else
16741     ac_cpp_err=
16742   fi
16743 else
16744   ac_cpp_err=yes
16745 fi
16746 if test -z "$ac_cpp_err"; then
16747   ac_header_preproc=yes
16748 else
16749   echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752   ac_header_preproc=no
16753 fi
16754
16755 rm -f conftest.err conftest.$ac_ext
16756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16757 echo "${ECHO_T}$ac_header_preproc" >&6; }
16758
16759 # So?  What about this header?
16760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16761   yes:no: )
16762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16766     ac_header_preproc=yes
16767     ;;
16768   no:yes:* )
16769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16781     ( cat <<\_ASBOX
16782 ## ----------------------------------- ##
16783 ## Report this to llvmbugs@cs.uiuc.edu ##
16784 ## ----------------------------------- ##
16785 _ASBOX
16786      ) | sed "s/^/$as_me: WARNING:     /" >&2
16787     ;;
16788 esac
16789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16792   echo $ECHO_N "(cached) $ECHO_C" >&6
16793 else
16794   eval "$as_ac_Header=\$ac_header_preproc"
16795 fi
16796 ac_res=`eval echo '${'$as_ac_Header'}'`
16797                { echo "$as_me:$LINENO: result: $ac_res" >&5
16798 echo "${ECHO_T}$ac_res" >&6; }
16799
16800 fi
16801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16802   cat >>confdefs.h <<_ACEOF
16803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16804 _ACEOF
16805
16806 fi
16807
16808 done
16809
16810
16811 for ac_header in fenv.h
16812 do
16813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16815   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16818   echo $ECHO_N "(cached) $ECHO_C" >&6
16819 fi
16820 ac_res=`eval echo '${'$as_ac_Header'}'`
16821                { echo "$as_me:$LINENO: result: $ac_res" >&5
16822 echo "${ECHO_T}$ac_res" >&6; }
16823 else
16824   # Is the header compilable?
16825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16827 cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833 $ac_includes_default
16834 #include <$ac_header>
16835 _ACEOF
16836 rm -f conftest.$ac_objext
16837 if { (ac_try="$ac_compile"
16838 case "(($ac_try" in
16839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840   *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843   (eval "$ac_compile") 2>conftest.er1
16844   ac_status=$?
16845   grep -v '^ *+' conftest.er1 >conftest.err
16846   rm -f conftest.er1
16847   cat conftest.err >&5
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); } &&
16850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16851   { (case "(($ac_try" in
16852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853   *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_try") 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }; } &&
16860          { ac_try='test -s conftest.$ac_objext'
16861   { (case "(($ac_try" in
16862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863   *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866   (eval "$ac_try") 2>&5
16867   ac_status=$?
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); }; }; then
16870   ac_header_compiler=yes
16871 else
16872   echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16874
16875         ac_header_compiler=no
16876 fi
16877
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16880 echo "${ECHO_T}$ac_header_compiler" >&6; }
16881
16882 # Is the header present?
16883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16885 cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891 #include <$ac_header>
16892 _ACEOF
16893 if { (ac_try="$ac_cpp conftest.$ac_ext"
16894 case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16900   ac_status=$?
16901   grep -v '^ *+' conftest.er1 >conftest.err
16902   rm -f conftest.er1
16903   cat conftest.err >&5
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } >/dev/null; then
16906   if test -s conftest.err; then
16907     ac_cpp_err=$ac_c_preproc_warn_flag
16908     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16909   else
16910     ac_cpp_err=
16911   fi
16912 else
16913   ac_cpp_err=yes
16914 fi
16915 if test -z "$ac_cpp_err"; then
16916   ac_header_preproc=yes
16917 else
16918   echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921   ac_header_preproc=no
16922 fi
16923
16924 rm -f conftest.err conftest.$ac_ext
16925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16926 echo "${ECHO_T}$ac_header_preproc" >&6; }
16927
16928 # So?  What about this header?
16929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16930   yes:no: )
16931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16935     ac_header_preproc=yes
16936     ;;
16937   no:yes:* )
16938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16950     ( cat <<\_ASBOX
16951 ## ----------------------------------- ##
16952 ## Report this to llvmbugs@cs.uiuc.edu ##
16953 ## ----------------------------------- ##
16954 _ASBOX
16955      ) | sed "s/^/$as_me: WARNING:     /" >&2
16956     ;;
16957 esac
16958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963   eval "$as_ac_Header=\$ac_header_preproc"
16964 fi
16965 ac_res=`eval echo '${'$as_ac_Header'}'`
16966                { echo "$as_me:$LINENO: result: $ac_res" >&5
16967 echo "${ECHO_T}$ac_res" >&6; }
16968
16969 fi
16970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16971   cat >>confdefs.h <<_ACEOF
16972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16973 _ACEOF
16974
16975 fi
16976
16977 done
16978
16979 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16980
16981 for ac_header in pthread.h
16982 do
16983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16985   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16988   echo $ECHO_N "(cached) $ECHO_C" >&6
16989 fi
16990 ac_res=`eval echo '${'$as_ac_Header'}'`
16991                { echo "$as_me:$LINENO: result: $ac_res" >&5
16992 echo "${ECHO_T}$ac_res" >&6; }
16993 else
16994   # Is the header compilable?
16995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16997 cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h.  */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h.  */
17003 $ac_includes_default
17004 #include <$ac_header>
17005 _ACEOF
17006 rm -f conftest.$ac_objext
17007 if { (ac_try="$ac_compile"
17008 case "(($ac_try" in
17009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010   *) ac_try_echo=$ac_try;;
17011 esac
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013   (eval "$ac_compile") 2>conftest.er1
17014   ac_status=$?
17015   grep -v '^ *+' conftest.er1 >conftest.err
17016   rm -f conftest.er1
17017   cat conftest.err >&5
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); } &&
17020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021   { (case "(($ac_try" in
17022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023   *) ac_try_echo=$ac_try;;
17024 esac
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026   (eval "$ac_try") 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }; } &&
17030          { ac_try='test -s conftest.$ac_objext'
17031   { (case "(($ac_try" in
17032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033   *) ac_try_echo=$ac_try;;
17034 esac
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036   (eval "$ac_try") 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   ac_header_compiler=yes
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045         ac_header_compiler=no
17046 fi
17047
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17050 echo "${ECHO_T}$ac_header_compiler" >&6; }
17051
17052 # Is the header present?
17053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17055 cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h.  */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h.  */
17061 #include <$ac_header>
17062 _ACEOF
17063 if { (ac_try="$ac_cpp conftest.$ac_ext"
17064 case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } >/dev/null; then
17076   if test -s conftest.err; then
17077     ac_cpp_err=$ac_c_preproc_warn_flag
17078     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17079   else
17080     ac_cpp_err=
17081   fi
17082 else
17083   ac_cpp_err=yes
17084 fi
17085 if test -z "$ac_cpp_err"; then
17086   ac_header_preproc=yes
17087 else
17088   echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17090
17091   ac_header_preproc=no
17092 fi
17093
17094 rm -f conftest.err conftest.$ac_ext
17095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17096 echo "${ECHO_T}$ac_header_preproc" >&6; }
17097
17098 # So?  What about this header?
17099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17100   yes:no: )
17101     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17105     ac_header_preproc=yes
17106     ;;
17107   no:yes:* )
17108     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17110     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17111 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17112     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17114     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17115 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17118     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17120     ( cat <<\_ASBOX
17121 ## ----------------------------------- ##
17122 ## Report this to llvmbugs@cs.uiuc.edu ##
17123 ## ----------------------------------- ##
17124 _ASBOX
17125      ) | sed "s/^/$as_me: WARNING:     /" >&2
17126     ;;
17127 esac
17128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17131   echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133   eval "$as_ac_Header=\$ac_header_preproc"
17134 fi
17135 ac_res=`eval echo '${'$as_ac_Header'}'`
17136                { echo "$as_me:$LINENO: result: $ac_res" >&5
17137 echo "${ECHO_T}$ac_res" >&6; }
17138
17139 fi
17140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17141   cat >>confdefs.h <<_ACEOF
17142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17143 _ACEOF
17144  HAVE_PTHREAD=1
17145
17146 else
17147   HAVE_PTHREAD=0
17148
17149 fi
17150
17151 done
17152
17153 else
17154   HAVE_PTHREAD=0
17155
17156 fi
17157
17158 if test "$llvm_cv_enable_libffi" = "yes" ; then
17159
17160
17161 for ac_header in ffi.h ffi/ffi.h
17162 do
17163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17165   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17168   echo $ECHO_N "(cached) $ECHO_C" >&6
17169 fi
17170 ac_res=`eval echo '${'$as_ac_Header'}'`
17171                { echo "$as_me:$LINENO: result: $ac_res" >&5
17172 echo "${ECHO_T}$ac_res" >&6; }
17173 else
17174   # Is the header compilable?
17175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17177 cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h.  */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h.  */
17183 $ac_includes_default
17184 #include <$ac_header>
17185 _ACEOF
17186 rm -f conftest.$ac_objext
17187 if { (ac_try="$ac_compile"
17188 case "(($ac_try" in
17189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190   *) ac_try_echo=$ac_try;;
17191 esac
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193   (eval "$ac_compile") 2>conftest.er1
17194   ac_status=$?
17195   grep -v '^ *+' conftest.er1 >conftest.err
17196   rm -f conftest.er1
17197   cat conftest.err >&5
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); } &&
17200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17201   { (case "(($ac_try" in
17202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203   *) ac_try_echo=$ac_try;;
17204 esac
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206   (eval "$ac_try") 2>&5
17207   ac_status=$?
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); }; } &&
17210          { ac_try='test -s conftest.$ac_objext'
17211   { (case "(($ac_try" in
17212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213   *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216   (eval "$ac_try") 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); }; }; then
17220   ac_header_compiler=yes
17221 else
17222   echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17224
17225         ac_header_compiler=no
17226 fi
17227
17228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17230 echo "${ECHO_T}$ac_header_compiler" >&6; }
17231
17232 # Is the header present?
17233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17235 cat >conftest.$ac_ext <<_ACEOF
17236 /* confdefs.h.  */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h.  */
17241 #include <$ac_header>
17242 _ACEOF
17243 if { (ac_try="$ac_cpp conftest.$ac_ext"
17244 case "(($ac_try" in
17245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246   *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17250   ac_status=$?
17251   grep -v '^ *+' conftest.er1 >conftest.err
17252   rm -f conftest.er1
17253   cat conftest.err >&5
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); } >/dev/null; then
17256   if test -s conftest.err; then
17257     ac_cpp_err=$ac_c_preproc_warn_flag
17258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17259   else
17260     ac_cpp_err=
17261   fi
17262 else
17263   ac_cpp_err=yes
17264 fi
17265 if test -z "$ac_cpp_err"; then
17266   ac_header_preproc=yes
17267 else
17268   echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271   ac_header_preproc=no
17272 fi
17273
17274 rm -f conftest.err conftest.$ac_ext
17275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17276 echo "${ECHO_T}$ac_header_preproc" >&6; }
17277
17278 # So?  What about this header?
17279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17280   yes:no: )
17281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17285     ac_header_preproc=yes
17286     ;;
17287   no:yes:* )
17288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17300     ( cat <<\_ASBOX
17301 ## ----------------------------------- ##
17302 ## Report this to llvmbugs@cs.uiuc.edu ##
17303 ## ----------------------------------- ##
17304 _ASBOX
17305      ) | sed "s/^/$as_me: WARNING:     /" >&2
17306     ;;
17307 esac
17308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313   eval "$as_ac_Header=\$ac_header_preproc"
17314 fi
17315 ac_res=`eval echo '${'$as_ac_Header'}'`
17316                { echo "$as_me:$LINENO: result: $ac_res" >&5
17317 echo "${ECHO_T}$ac_res" >&6; }
17318
17319 fi
17320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17321   cat >>confdefs.h <<_ACEOF
17322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17323 _ACEOF
17324
17325 fi
17326
17327 done
17328
17329 fi
17330
17331
17332 for ac_header in CrashReporterClient.h
17333 do
17334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 fi
17341 ac_res=`eval echo '${'$as_ac_Header'}'`
17342                { echo "$as_me:$LINENO: result: $ac_res" >&5
17343 echo "${ECHO_T}$ac_res" >&6; }
17344 else
17345   # Is the header compilable?
17346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17348 cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354 $ac_includes_default
17355 #include <$ac_header>
17356 _ACEOF
17357 rm -f conftest.$ac_objext
17358 if { (ac_try="$ac_compile"
17359 case "(($ac_try" in
17360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361   *) ac_try_echo=$ac_try;;
17362 esac
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364   (eval "$ac_compile") 2>conftest.er1
17365   ac_status=$?
17366   grep -v '^ *+' conftest.er1 >conftest.err
17367   rm -f conftest.er1
17368   cat conftest.err >&5
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); } &&
17371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17372   { (case "(($ac_try" in
17373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374   *) ac_try_echo=$ac_try;;
17375 esac
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377   (eval "$ac_try") 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; } &&
17381          { ac_try='test -s conftest.$ac_objext'
17382   { (case "(($ac_try" in
17383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384   *) ac_try_echo=$ac_try;;
17385 esac
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387   (eval "$ac_try") 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; }; then
17391   ac_header_compiler=yes
17392 else
17393   echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396         ac_header_compiler=no
17397 fi
17398
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17401 echo "${ECHO_T}$ac_header_compiler" >&6; }
17402
17403 # Is the header present?
17404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17406 cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h.  */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h.  */
17412 #include <$ac_header>
17413 _ACEOF
17414 if { (ac_try="$ac_cpp conftest.$ac_ext"
17415 case "(($ac_try" in
17416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417   *) ac_try_echo=$ac_try;;
17418 esac
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17421   ac_status=$?
17422   grep -v '^ *+' conftest.er1 >conftest.err
17423   rm -f conftest.er1
17424   cat conftest.err >&5
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); } >/dev/null; then
17427   if test -s conftest.err; then
17428     ac_cpp_err=$ac_c_preproc_warn_flag
17429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17430   else
17431     ac_cpp_err=
17432   fi
17433 else
17434   ac_cpp_err=yes
17435 fi
17436 if test -z "$ac_cpp_err"; then
17437   ac_header_preproc=yes
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442   ac_header_preproc=no
17443 fi
17444
17445 rm -f conftest.err conftest.$ac_ext
17446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17447 echo "${ECHO_T}$ac_header_preproc" >&6; }
17448
17449 # So?  What about this header?
17450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17451   yes:no: )
17452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17456     ac_header_preproc=yes
17457     ;;
17458   no:yes:* )
17459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17471     ( cat <<\_ASBOX
17472 ## ----------------------------------- ##
17473 ## Report this to llvmbugs@cs.uiuc.edu ##
17474 ## ----------------------------------- ##
17475 _ASBOX
17476      ) | sed "s/^/$as_me: WARNING:     /" >&2
17477     ;;
17478 esac
17479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17482   echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17484   eval "$as_ac_Header=\$ac_header_preproc"
17485 fi
17486 ac_res=`eval echo '${'$as_ac_Header'}'`
17487                { echo "$as_me:$LINENO: result: $ac_res" >&5
17488 echo "${ECHO_T}$ac_res" >&6; }
17489
17490 fi
17491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17492   cat >>confdefs.h <<_ACEOF
17493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17494 _ACEOF
17495
17496 fi
17497
17498 done
17499
17500
17501 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17502 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17503 cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509 extern const char *__crashreporter_info__;
17510       int main() {
17511         __crashreporter_info__ = "test";
17512         return 0;
17513       }
17514
17515 _ACEOF
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520   *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523   (eval "$ac_link") 2>conftest.er1
17524   ac_status=$?
17525   grep -v '^ *+' conftest.er1 >conftest.err
17526   rm -f conftest.er1
17527   cat conftest.err >&5
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); } &&
17530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17531   { (case "(($ac_try" in
17532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533   *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536   (eval "$ac_try") 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); }; } &&
17540          { ac_try='test -s conftest$ac_exeext'
17541   { (case "(($ac_try" in
17542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543   *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546   (eval "$ac_try") 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }; }; then
17550   { echo "$as_me:$LINENO: result: yes" >&5
17551 echo "${ECHO_T}yes" >&6; }
17552
17553 cat >>confdefs.h <<\_ACEOF
17554 #define HAVE_CRASHREPORTER_INFO 1
17555 _ACEOF
17556
17557 else
17558   echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17560
17561         { echo "$as_me:$LINENO: result: no" >&5
17562 echo "${ECHO_T}no" >&6; }
17563
17564 cat >>confdefs.h <<\_ACEOF
17565 #define HAVE_CRASHREPORTER_INFO 0
17566 _ACEOF
17567
17568 fi
17569
17570 rm -f core conftest.err conftest.$ac_objext \
17571       conftest$ac_exeext conftest.$ac_ext
17572
17573
17574
17575
17576   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17577 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17578 if test "${ac_cv_huge_val_sanity+set}" = set; then
17579   echo $ECHO_N "(cached) $ECHO_C" >&6
17580 else
17581
17582     ac_ext=cpp
17583 ac_cpp='$CXXCPP $CPPFLAGS'
17584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17587
17588     ac_save_CXXFLAGS=$CXXFLAGS
17589     CXXFLAGS=-pedantic
17590     if test "$cross_compiling" = yes; then
17591   ac_cv_huge_val_sanity=yes
17592 else
17593   cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h.  */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h.  */
17599 #include <math.h>
17600 int
17601 main ()
17602 {
17603 double x = HUGE_VAL; return x != x;
17604   ;
17605   return 0;
17606 }
17607 _ACEOF
17608 rm -f conftest$ac_exeext
17609 if { (ac_try="$ac_link"
17610 case "(($ac_try" in
17611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612   *) ac_try_echo=$ac_try;;
17613 esac
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615   (eval "$ac_link") 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17619   { (case "(($ac_try" in
17620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621   *) ac_try_echo=$ac_try;;
17622 esac
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624   (eval "$ac_try") 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; }; then
17628   ac_cv_huge_val_sanity=yes
17629 else
17630   echo "$as_me: program exited with status $ac_status" >&5
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17633
17634 ( exit $ac_status )
17635 ac_cv_huge_val_sanity=no
17636 fi
17637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17638 fi
17639
17640
17641     CXXFLAGS=$ac_save_CXXFLAGS
17642     ac_ext=c
17643 ac_cpp='$CPP $CPPFLAGS'
17644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17647
17648
17649 fi
17650 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17651 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17652   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17653
17654
17655 { echo "$as_me:$LINENO: checking for pid_t" >&5
17656 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17657 if test "${ac_cv_type_pid_t+set}" = set; then
17658   echo $ECHO_N "(cached) $ECHO_C" >&6
17659 else
17660   cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h.  */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h.  */
17666 $ac_includes_default
17667 typedef pid_t ac__type_new_;
17668 int
17669 main ()
17670 {
17671 if ((ac__type_new_ *) 0)
17672   return 0;
17673 if (sizeof (ac__type_new_))
17674   return 0;
17675   ;
17676   return 0;
17677 }
17678 _ACEOF
17679 rm -f conftest.$ac_objext
17680 if { (ac_try="$ac_compile"
17681 case "(($ac_try" in
17682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683   *) ac_try_echo=$ac_try;;
17684 esac
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686   (eval "$ac_compile") 2>conftest.er1
17687   ac_status=$?
17688   grep -v '^ *+' conftest.er1 >conftest.err
17689   rm -f conftest.er1
17690   cat conftest.err >&5
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); } &&
17693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17694   { (case "(($ac_try" in
17695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696   *) ac_try_echo=$ac_try;;
17697 esac
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699   (eval "$ac_try") 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; } &&
17703          { ac_try='test -s conftest.$ac_objext'
17704   { (case "(($ac_try" in
17705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706   *) ac_try_echo=$ac_try;;
17707 esac
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709   (eval "$ac_try") 2>&5
17710   ac_status=$?
17711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); }; }; then
17713   ac_cv_type_pid_t=yes
17714 else
17715   echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17717
17718         ac_cv_type_pid_t=no
17719 fi
17720
17721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17722 fi
17723 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17724 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17725 if test $ac_cv_type_pid_t = yes; then
17726   :
17727 else
17728
17729 cat >>confdefs.h <<_ACEOF
17730 #define pid_t int
17731 _ACEOF
17732
17733 fi
17734
17735 { echo "$as_me:$LINENO: checking for size_t" >&5
17736 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17737 if test "${ac_cv_type_size_t+set}" = set; then
17738   echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740   cat >conftest.$ac_ext <<_ACEOF
17741 /* confdefs.h.  */
17742 _ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h.  */
17746 $ac_includes_default
17747 typedef size_t ac__type_new_;
17748 int
17749 main ()
17750 {
17751 if ((ac__type_new_ *) 0)
17752   return 0;
17753 if (sizeof (ac__type_new_))
17754   return 0;
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext
17760 if { (ac_try="$ac_compile"
17761 case "(($ac_try" in
17762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763   *) ac_try_echo=$ac_try;;
17764 esac
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766   (eval "$ac_compile") 2>conftest.er1
17767   ac_status=$?
17768   grep -v '^ *+' conftest.er1 >conftest.err
17769   rm -f conftest.er1
17770   cat conftest.err >&5
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); } &&
17773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17774   { (case "(($ac_try" in
17775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776   *) ac_try_echo=$ac_try;;
17777 esac
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779   (eval "$ac_try") 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; } &&
17783          { ac_try='test -s conftest.$ac_objext'
17784   { (case "(($ac_try" in
17785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786   *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789   (eval "$ac_try") 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); }; }; then
17793   ac_cv_type_size_t=yes
17794 else
17795   echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798         ac_cv_type_size_t=no
17799 fi
17800
17801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17802 fi
17803 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17804 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17805 if test $ac_cv_type_size_t = yes; then
17806   :
17807 else
17808
17809 cat >>confdefs.h <<_ACEOF
17810 #define size_t unsigned int
17811 _ACEOF
17812
17813 fi
17814
17815
17816 cat >>confdefs.h <<_ACEOF
17817 #define RETSIGTYPE void
17818 _ACEOF
17819
17820 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17821 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17822 if test "${ac_cv_struct_tm+set}" = set; then
17823   echo $ECHO_N "(cached) $ECHO_C" >&6
17824 else
17825   cat >conftest.$ac_ext <<_ACEOF
17826 /* confdefs.h.  */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h.  */
17831 #include <sys/types.h>
17832 #include <time.h>
17833
17834 int
17835 main ()
17836 {
17837 struct tm *tp; tp->tm_sec;
17838   ;
17839   return 0;
17840 }
17841 _ACEOF
17842 rm -f conftest.$ac_objext
17843 if { (ac_try="$ac_compile"
17844 case "(($ac_try" in
17845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846   *) ac_try_echo=$ac_try;;
17847 esac
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849   (eval "$ac_compile") 2>conftest.er1
17850   ac_status=$?
17851   grep -v '^ *+' conftest.er1 >conftest.err
17852   rm -f conftest.er1
17853   cat conftest.err >&5
17854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855   (exit $ac_status); } &&
17856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857   { (case "(($ac_try" in
17858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859   *) ac_try_echo=$ac_try;;
17860 esac
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862   (eval "$ac_try") 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; } &&
17866          { ac_try='test -s conftest.$ac_objext'
17867   { (case "(($ac_try" in
17868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869   *) ac_try_echo=$ac_try;;
17870 esac
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872   (eval "$ac_try") 2>&5
17873   ac_status=$?
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); }; }; then
17876   ac_cv_struct_tm=time.h
17877 else
17878   echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881         ac_cv_struct_tm=sys/time.h
17882 fi
17883
17884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885 fi
17886 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17887 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17888 if test $ac_cv_struct_tm = sys/time.h; then
17889
17890 cat >>confdefs.h <<\_ACEOF
17891 #define TM_IN_SYS_TIME 1
17892 _ACEOF
17893
17894 fi
17895
17896 { echo "$as_me:$LINENO: checking for int64_t" >&5
17897 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17898 if test "${ac_cv_type_int64_t+set}" = set; then
17899   echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901   cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h.  */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h.  */
17907 $ac_includes_default
17908 typedef int64_t ac__type_new_;
17909 int
17910 main ()
17911 {
17912 if ((ac__type_new_ *) 0)
17913   return 0;
17914 if (sizeof (ac__type_new_))
17915   return 0;
17916   ;
17917   return 0;
17918 }
17919 _ACEOF
17920 rm -f conftest.$ac_objext
17921 if { (ac_try="$ac_compile"
17922 case "(($ac_try" in
17923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924   *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927   (eval "$ac_compile") 2>conftest.er1
17928   ac_status=$?
17929   grep -v '^ *+' conftest.er1 >conftest.err
17930   rm -f conftest.er1
17931   cat conftest.err >&5
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); } &&
17934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17935   { (case "(($ac_try" in
17936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937   *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940   (eval "$ac_try") 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; } &&
17944          { ac_try='test -s conftest.$ac_objext'
17945   { (case "(($ac_try" in
17946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947   *) ac_try_echo=$ac_try;;
17948 esac
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950   (eval "$ac_try") 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; }; then
17954   ac_cv_type_int64_t=yes
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959         ac_cv_type_int64_t=no
17960 fi
17961
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963 fi
17964 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17965 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17966 if test $ac_cv_type_int64_t = yes; then
17967
17968 cat >>confdefs.h <<_ACEOF
17969 #define HAVE_INT64_T 1
17970 _ACEOF
17971
17972
17973 else
17974   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17975 echo "$as_me: error: Type int64_t required but not found" >&2;}
17976    { (exit 1); exit 1; }; }
17977 fi
17978
17979 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17980 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17981 if test "${ac_cv_type_uint64_t+set}" = set; then
17982   echo $ECHO_N "(cached) $ECHO_C" >&6
17983 else
17984   cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h.  */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h.  */
17990 $ac_includes_default
17991 typedef uint64_t ac__type_new_;
17992 int
17993 main ()
17994 {
17995 if ((ac__type_new_ *) 0)
17996   return 0;
17997 if (sizeof (ac__type_new_))
17998   return 0;
17999   ;
18000   return 0;
18001 }
18002 _ACEOF
18003 rm -f conftest.$ac_objext
18004 if { (ac_try="$ac_compile"
18005 case "(($ac_try" in
18006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007   *) ac_try_echo=$ac_try;;
18008 esac
18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010   (eval "$ac_compile") 2>conftest.er1
18011   ac_status=$?
18012   grep -v '^ *+' conftest.er1 >conftest.err
18013   rm -f conftest.er1
18014   cat conftest.err >&5
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); } &&
18017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18018   { (case "(($ac_try" in
18019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020   *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023   (eval "$ac_try") 2>&5
18024   ac_status=$?
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); }; } &&
18027          { ac_try='test -s conftest.$ac_objext'
18028   { (case "(($ac_try" in
18029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030   *) ac_try_echo=$ac_try;;
18031 esac
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033   (eval "$ac_try") 2>&5
18034   ac_status=$?
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); }; }; then
18037   ac_cv_type_uint64_t=yes
18038 else
18039   echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18041
18042         ac_cv_type_uint64_t=no
18043 fi
18044
18045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18046 fi
18047 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18048 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18049 if test $ac_cv_type_uint64_t = yes; then
18050
18051 cat >>confdefs.h <<_ACEOF
18052 #define HAVE_UINT64_T 1
18053 _ACEOF
18054
18055
18056 else
18057   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18058 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18059 if test "${ac_cv_type_u_int64_t+set}" = set; then
18060   echo $ECHO_N "(cached) $ECHO_C" >&6
18061 else
18062   cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h.  */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h.  */
18068 $ac_includes_default
18069 typedef u_int64_t ac__type_new_;
18070 int
18071 main ()
18072 {
18073 if ((ac__type_new_ *) 0)
18074   return 0;
18075 if (sizeof (ac__type_new_))
18076   return 0;
18077   ;
18078   return 0;
18079 }
18080 _ACEOF
18081 rm -f conftest.$ac_objext
18082 if { (ac_try="$ac_compile"
18083 case "(($ac_try" in
18084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085   *) ac_try_echo=$ac_try;;
18086 esac
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088   (eval "$ac_compile") 2>conftest.er1
18089   ac_status=$?
18090   grep -v '^ *+' conftest.er1 >conftest.err
18091   rm -f conftest.er1
18092   cat conftest.err >&5
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); } &&
18095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18096   { (case "(($ac_try" in
18097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098   *) ac_try_echo=$ac_try;;
18099 esac
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101   (eval "$ac_try") 2>&5
18102   ac_status=$?
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); }; } &&
18105          { ac_try='test -s conftest.$ac_objext'
18106   { (case "(($ac_try" in
18107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108   *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111   (eval "$ac_try") 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; }; then
18115   ac_cv_type_u_int64_t=yes
18116 else
18117   echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18119
18120         ac_cv_type_u_int64_t=no
18121 fi
18122
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124 fi
18125 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18126 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18127 if test $ac_cv_type_u_int64_t = yes; then
18128
18129 cat >>confdefs.h <<_ACEOF
18130 #define HAVE_U_INT64_T 1
18131 _ACEOF
18132
18133
18134 else
18135   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18136 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18137    { (exit 1); exit 1; }; }
18138 fi
18139
18140 fi
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18152 do
18153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18157   echo $ECHO_N "(cached) $ECHO_C" >&6
18158 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18167 #define $ac_func innocuous_$ac_func
18168
18169 /* System header to define __stub macros and hopefully few prototypes,
18170     which can conflict with char $ac_func (); below.
18171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18172     <limits.h> exists even on freestanding compilers.  */
18173
18174 #ifdef __STDC__
18175 # include <limits.h>
18176 #else
18177 # include <assert.h>
18178 #endif
18179
18180 #undef $ac_func
18181
18182 /* Override any GCC internal prototype to avoid an error.
18183    Use char because int might match the return type of a GCC
18184    builtin and then its argument prototype would still apply.  */
18185 #ifdef __cplusplus
18186 extern "C"
18187 #endif
18188 char $ac_func ();
18189 /* The GNU C library defines this for functions which it implements
18190     to always fail with ENOSYS.  Some functions are actually named
18191     something starting with __ and the normal name is an alias.  */
18192 #if defined __stub_$ac_func || defined __stub___$ac_func
18193 choke me
18194 #endif
18195
18196 int
18197 main ()
18198 {
18199 return $ac_func ();
18200   ;
18201   return 0;
18202 }
18203 _ACEOF
18204 rm -f conftest.$ac_objext conftest$ac_exeext
18205 if { (ac_try="$ac_link"
18206 case "(($ac_try" in
18207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208   *) ac_try_echo=$ac_try;;
18209 esac
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211   (eval "$ac_link") 2>conftest.er1
18212   ac_status=$?
18213   grep -v '^ *+' conftest.er1 >conftest.err
18214   rm -f conftest.er1
18215   cat conftest.err >&5
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); } &&
18218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18219   { (case "(($ac_try" in
18220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221   *) ac_try_echo=$ac_try;;
18222 esac
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224   (eval "$ac_try") 2>&5
18225   ac_status=$?
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); }; } &&
18228          { ac_try='test -s conftest$ac_exeext'
18229   { (case "(($ac_try" in
18230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231   *) ac_try_echo=$ac_try;;
18232 esac
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234   (eval "$ac_try") 2>&5
18235   ac_status=$?
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); }; }; then
18238   eval "$as_ac_var=yes"
18239 else
18240   echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18242
18243         eval "$as_ac_var=no"
18244 fi
18245
18246 rm -f core conftest.err conftest.$ac_objext \
18247       conftest$ac_exeext conftest.$ac_ext
18248 fi
18249 ac_res=`eval echo '${'$as_ac_var'}'`
18250                { echo "$as_me:$LINENO: result: $ac_res" >&5
18251 echo "${ECHO_T}$ac_res" >&6; }
18252 if test `eval echo '${'$as_ac_var'}'` = yes; then
18253   cat >>confdefs.h <<_ACEOF
18254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18255 _ACEOF
18256
18257 fi
18258 done
18259
18260
18261
18262
18263
18264 for ac_func in powf fmodf strtof round
18265 do
18266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18270   echo $ECHO_N "(cached) $ECHO_C" >&6
18271 else
18272   cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h.  */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h.  */
18278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18280 #define $ac_func innocuous_$ac_func
18281
18282 /* System header to define __stub macros and hopefully few prototypes,
18283     which can conflict with char $ac_func (); below.
18284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18285     <limits.h> exists even on freestanding compilers.  */
18286
18287 #ifdef __STDC__
18288 # include <limits.h>
18289 #else
18290 # include <assert.h>
18291 #endif
18292
18293 #undef $ac_func
18294
18295 /* Override any GCC internal prototype to avoid an error.
18296    Use char because int might match the return type of a GCC
18297    builtin and then its argument prototype would still apply.  */
18298 #ifdef __cplusplus
18299 extern "C"
18300 #endif
18301 char $ac_func ();
18302 /* The GNU C library defines this for functions which it implements
18303     to always fail with ENOSYS.  Some functions are actually named
18304     something starting with __ and the normal name is an alias.  */
18305 #if defined __stub_$ac_func || defined __stub___$ac_func
18306 choke me
18307 #endif
18308
18309 int
18310 main ()
18311 {
18312 return $ac_func ();
18313   ;
18314   return 0;
18315 }
18316 _ACEOF
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (ac_try="$ac_link"
18319 case "(($ac_try" in
18320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321   *) ac_try_echo=$ac_try;;
18322 esac
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324   (eval "$ac_link") 2>conftest.er1
18325   ac_status=$?
18326   grep -v '^ *+' conftest.er1 >conftest.err
18327   rm -f conftest.er1
18328   cat conftest.err >&5
18329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); } &&
18331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18332   { (case "(($ac_try" in
18333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334   *) ac_try_echo=$ac_try;;
18335 esac
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337   (eval "$ac_try") 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; } &&
18341          { ac_try='test -s conftest$ac_exeext'
18342   { (case "(($ac_try" in
18343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344   *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347   (eval "$ac_try") 2>&5
18348   ac_status=$?
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); }; }; then
18351   eval "$as_ac_var=yes"
18352 else
18353   echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18355
18356         eval "$as_ac_var=no"
18357 fi
18358
18359 rm -f core conftest.err conftest.$ac_objext \
18360       conftest$ac_exeext conftest.$ac_ext
18361 fi
18362 ac_res=`eval echo '${'$as_ac_var'}'`
18363                { echo "$as_me:$LINENO: result: $ac_res" >&5
18364 echo "${ECHO_T}$ac_res" >&6; }
18365 if test `eval echo '${'$as_ac_var'}'` = yes; then
18366   cat >>confdefs.h <<_ACEOF
18367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18368 _ACEOF
18369
18370 fi
18371 done
18372
18373
18374
18375
18376
18377
18378 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18379 do
18380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18384   echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386   cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h.  */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h.  */
18392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18394 #define $ac_func innocuous_$ac_func
18395
18396 /* System header to define __stub macros and hopefully few prototypes,
18397     which can conflict with char $ac_func (); below.
18398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18399     <limits.h> exists even on freestanding compilers.  */
18400
18401 #ifdef __STDC__
18402 # include <limits.h>
18403 #else
18404 # include <assert.h>
18405 #endif
18406
18407 #undef $ac_func
18408
18409 /* Override any GCC internal prototype to avoid an error.
18410    Use char because int might match the return type of a GCC
18411    builtin and then its argument prototype would still apply.  */
18412 #ifdef __cplusplus
18413 extern "C"
18414 #endif
18415 char $ac_func ();
18416 /* The GNU C library defines this for functions which it implements
18417     to always fail with ENOSYS.  Some functions are actually named
18418     something starting with __ and the normal name is an alias.  */
18419 #if defined __stub_$ac_func || defined __stub___$ac_func
18420 choke me
18421 #endif
18422
18423 int
18424 main ()
18425 {
18426 return $ac_func ();
18427   ;
18428   return 0;
18429 }
18430 _ACEOF
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (ac_try="$ac_link"
18433 case "(($ac_try" in
18434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435   *) ac_try_echo=$ac_try;;
18436 esac
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438   (eval "$ac_link") 2>conftest.er1
18439   ac_status=$?
18440   grep -v '^ *+' conftest.er1 >conftest.err
18441   rm -f conftest.er1
18442   cat conftest.err >&5
18443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444   (exit $ac_status); } &&
18445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18446   { (case "(($ac_try" in
18447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448   *) ac_try_echo=$ac_try;;
18449 esac
18450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451   (eval "$ac_try") 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); }; } &&
18455          { ac_try='test -s conftest$ac_exeext'
18456   { (case "(($ac_try" in
18457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458   *) ac_try_echo=$ac_try;;
18459 esac
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461   (eval "$ac_try") 2>&5
18462   ac_status=$?
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); }; }; then
18465   eval "$as_ac_var=yes"
18466 else
18467   echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18469
18470         eval "$as_ac_var=no"
18471 fi
18472
18473 rm -f core conftest.err conftest.$ac_objext \
18474       conftest$ac_exeext conftest.$ac_ext
18475 fi
18476 ac_res=`eval echo '${'$as_ac_var'}'`
18477                { echo "$as_me:$LINENO: result: $ac_res" >&5
18478 echo "${ECHO_T}$ac_res" >&6; }
18479 if test `eval echo '${'$as_ac_var'}'` = yes; then
18480   cat >>confdefs.h <<_ACEOF
18481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18482 _ACEOF
18483
18484 fi
18485 done
18486
18487
18488
18489
18490 for ac_func in isatty mkdtemp mkstemp
18491 do
18492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18496   echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498   cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h.  */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h.  */
18504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18506 #define $ac_func innocuous_$ac_func
18507
18508 /* System header to define __stub macros and hopefully few prototypes,
18509     which can conflict with char $ac_func (); below.
18510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18511     <limits.h> exists even on freestanding compilers.  */
18512
18513 #ifdef __STDC__
18514 # include <limits.h>
18515 #else
18516 # include <assert.h>
18517 #endif
18518
18519 #undef $ac_func
18520
18521 /* Override any GCC internal prototype to avoid an error.
18522    Use char because int might match the return type of a GCC
18523    builtin and then its argument prototype would still apply.  */
18524 #ifdef __cplusplus
18525 extern "C"
18526 #endif
18527 char $ac_func ();
18528 /* The GNU C library defines this for functions which it implements
18529     to always fail with ENOSYS.  Some functions are actually named
18530     something starting with __ and the normal name is an alias.  */
18531 #if defined __stub_$ac_func || defined __stub___$ac_func
18532 choke me
18533 #endif
18534
18535 int
18536 main ()
18537 {
18538 return $ac_func ();
18539   ;
18540   return 0;
18541 }
18542 _ACEOF
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (ac_try="$ac_link"
18545 case "(($ac_try" in
18546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547   *) ac_try_echo=$ac_try;;
18548 esac
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550   (eval "$ac_link") 2>conftest.er1
18551   ac_status=$?
18552   grep -v '^ *+' conftest.er1 >conftest.err
18553   rm -f conftest.er1
18554   cat conftest.err >&5
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); } &&
18557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18558   { (case "(($ac_try" in
18559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560   *) ac_try_echo=$ac_try;;
18561 esac
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563   (eval "$ac_try") 2>&5
18564   ac_status=$?
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); }; } &&
18567          { ac_try='test -s conftest$ac_exeext'
18568   { (case "(($ac_try" in
18569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570   *) ac_try_echo=$ac_try;;
18571 esac
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573   (eval "$ac_try") 2>&5
18574   ac_status=$?
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); }; }; then
18577   eval "$as_ac_var=yes"
18578 else
18579   echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18581
18582         eval "$as_ac_var=no"
18583 fi
18584
18585 rm -f core conftest.err conftest.$ac_objext \
18586       conftest$ac_exeext conftest.$ac_ext
18587 fi
18588 ac_res=`eval echo '${'$as_ac_var'}'`
18589                { echo "$as_me:$LINENO: result: $ac_res" >&5
18590 echo "${ECHO_T}$ac_res" >&6; }
18591 if test `eval echo '${'$as_ac_var'}'` = yes; then
18592   cat >>confdefs.h <<_ACEOF
18593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18594 _ACEOF
18595
18596 fi
18597 done
18598
18599
18600
18601
18602
18603
18604
18605 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18606 do
18607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18611   echo $ECHO_N "(cached) $ECHO_C" >&6
18612 else
18613   cat >conftest.$ac_ext <<_ACEOF
18614 /* confdefs.h.  */
18615 _ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h.  */
18619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18621 #define $ac_func innocuous_$ac_func
18622
18623 /* System header to define __stub macros and hopefully few prototypes,
18624     which can conflict with char $ac_func (); below.
18625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18626     <limits.h> exists even on freestanding compilers.  */
18627
18628 #ifdef __STDC__
18629 # include <limits.h>
18630 #else
18631 # include <assert.h>
18632 #endif
18633
18634 #undef $ac_func
18635
18636 /* Override any GCC internal prototype to avoid an error.
18637    Use char because int might match the return type of a GCC
18638    builtin and then its argument prototype would still apply.  */
18639 #ifdef __cplusplus
18640 extern "C"
18641 #endif
18642 char $ac_func ();
18643 /* The GNU C library defines this for functions which it implements
18644     to always fail with ENOSYS.  Some functions are actually named
18645     something starting with __ and the normal name is an alias.  */
18646 #if defined __stub_$ac_func || defined __stub___$ac_func
18647 choke me
18648 #endif
18649
18650 int
18651 main ()
18652 {
18653 return $ac_func ();
18654   ;
18655   return 0;
18656 }
18657 _ACEOF
18658 rm -f conftest.$ac_objext conftest$ac_exeext
18659 if { (ac_try="$ac_link"
18660 case "(($ac_try" in
18661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662   *) ac_try_echo=$ac_try;;
18663 esac
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665   (eval "$ac_link") 2>conftest.er1
18666   ac_status=$?
18667   grep -v '^ *+' conftest.er1 >conftest.err
18668   rm -f conftest.er1
18669   cat conftest.err >&5
18670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671   (exit $ac_status); } &&
18672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18673   { (case "(($ac_try" in
18674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675   *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678   (eval "$ac_try") 2>&5
18679   ac_status=$?
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); }; } &&
18682          { ac_try='test -s conftest$ac_exeext'
18683   { (case "(($ac_try" in
18684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685   *) ac_try_echo=$ac_try;;
18686 esac
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688   (eval "$ac_try") 2>&5
18689   ac_status=$?
18690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); }; }; then
18692   eval "$as_ac_var=yes"
18693 else
18694   echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18696
18697         eval "$as_ac_var=no"
18698 fi
18699
18700 rm -f core conftest.err conftest.$ac_objext \
18701       conftest$ac_exeext conftest.$ac_ext
18702 fi
18703 ac_res=`eval echo '${'$as_ac_var'}'`
18704                { echo "$as_me:$LINENO: result: $ac_res" >&5
18705 echo "${ECHO_T}$ac_res" >&6; }
18706 if test `eval echo '${'$as_ac_var'}'` = yes; then
18707   cat >>confdefs.h <<_ACEOF
18708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18709 _ACEOF
18710
18711 fi
18712 done
18713
18714
18715
18716
18717 for ac_func in strerror strerror_r setenv
18718 do
18719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18723   echo $ECHO_N "(cached) $ECHO_C" >&6
18724 else
18725   cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h.  */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h.  */
18731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18733 #define $ac_func innocuous_$ac_func
18734
18735 /* System header to define __stub macros and hopefully few prototypes,
18736     which can conflict with char $ac_func (); below.
18737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18738     <limits.h> exists even on freestanding compilers.  */
18739
18740 #ifdef __STDC__
18741 # include <limits.h>
18742 #else
18743 # include <assert.h>
18744 #endif
18745
18746 #undef $ac_func
18747
18748 /* Override any GCC internal prototype to avoid an error.
18749    Use char because int might match the return type of a GCC
18750    builtin and then its argument prototype would still apply.  */
18751 #ifdef __cplusplus
18752 extern "C"
18753 #endif
18754 char $ac_func ();
18755 /* The GNU C library defines this for functions which it implements
18756     to always fail with ENOSYS.  Some functions are actually named
18757     something starting with __ and the normal name is an alias.  */
18758 #if defined __stub_$ac_func || defined __stub___$ac_func
18759 choke me
18760 #endif
18761
18762 int
18763 main ()
18764 {
18765 return $ac_func ();
18766   ;
18767   return 0;
18768 }
18769 _ACEOF
18770 rm -f conftest.$ac_objext conftest$ac_exeext
18771 if { (ac_try="$ac_link"
18772 case "(($ac_try" in
18773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774   *) ac_try_echo=$ac_try;;
18775 esac
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777   (eval "$ac_link") 2>conftest.er1
18778   ac_status=$?
18779   grep -v '^ *+' conftest.er1 >conftest.err
18780   rm -f conftest.er1
18781   cat conftest.err >&5
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); } &&
18784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18785   { (case "(($ac_try" in
18786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787   *) ac_try_echo=$ac_try;;
18788 esac
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790   (eval "$ac_try") 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; } &&
18794          { ac_try='test -s conftest$ac_exeext'
18795   { (case "(($ac_try" in
18796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797   *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800   (eval "$ac_try") 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; }; then
18804   eval "$as_ac_var=yes"
18805 else
18806   echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18808
18809         eval "$as_ac_var=no"
18810 fi
18811
18812 rm -f core conftest.err conftest.$ac_objext \
18813       conftest$ac_exeext conftest.$ac_ext
18814 fi
18815 ac_res=`eval echo '${'$as_ac_var'}'`
18816                { echo "$as_me:$LINENO: result: $ac_res" >&5
18817 echo "${ECHO_T}$ac_res" >&6; }
18818 if test `eval echo '${'$as_ac_var'}'` = yes; then
18819   cat >>confdefs.h <<_ACEOF
18820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18821 _ACEOF
18822
18823 fi
18824 done
18825
18826
18827
18828
18829
18830 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18831 do
18832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838   cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h.  */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h.  */
18844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18846 #define $ac_func innocuous_$ac_func
18847
18848 /* System header to define __stub macros and hopefully few prototypes,
18849     which can conflict with char $ac_func (); below.
18850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18851     <limits.h> exists even on freestanding compilers.  */
18852
18853 #ifdef __STDC__
18854 # include <limits.h>
18855 #else
18856 # include <assert.h>
18857 #endif
18858
18859 #undef $ac_func
18860
18861 /* Override any GCC internal prototype to avoid an error.
18862    Use char because int might match the return type of a GCC
18863    builtin and then its argument prototype would still apply.  */
18864 #ifdef __cplusplus
18865 extern "C"
18866 #endif
18867 char $ac_func ();
18868 /* The GNU C library defines this for functions which it implements
18869     to always fail with ENOSYS.  Some functions are actually named
18870     something starting with __ and the normal name is an alias.  */
18871 #if defined __stub_$ac_func || defined __stub___$ac_func
18872 choke me
18873 #endif
18874
18875 int
18876 main ()
18877 {
18878 return $ac_func ();
18879   ;
18880   return 0;
18881 }
18882 _ACEOF
18883 rm -f conftest.$ac_objext conftest$ac_exeext
18884 if { (ac_try="$ac_link"
18885 case "(($ac_try" in
18886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887   *) ac_try_echo=$ac_try;;
18888 esac
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890   (eval "$ac_link") 2>conftest.er1
18891   ac_status=$?
18892   grep -v '^ *+' conftest.er1 >conftest.err
18893   rm -f conftest.er1
18894   cat conftest.err >&5
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); } &&
18897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18898   { (case "(($ac_try" in
18899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900   *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903   (eval "$ac_try") 2>&5
18904   ac_status=$?
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); }; } &&
18907          { ac_try='test -s conftest$ac_exeext'
18908   { (case "(($ac_try" in
18909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910   *) ac_try_echo=$ac_try;;
18911 esac
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913   (eval "$ac_try") 2>&5
18914   ac_status=$?
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); }; }; then
18917   eval "$as_ac_var=yes"
18918 else
18919   echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18921
18922         eval "$as_ac_var=no"
18923 fi
18924
18925 rm -f core conftest.err conftest.$ac_objext \
18926       conftest$ac_exeext conftest.$ac_ext
18927 fi
18928 ac_res=`eval echo '${'$as_ac_var'}'`
18929                { echo "$as_me:$LINENO: result: $ac_res" >&5
18930 echo "${ECHO_T}$ac_res" >&6; }
18931 if test `eval echo '${'$as_ac_var'}'` = yes; then
18932   cat >>confdefs.h <<_ACEOF
18933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18934 _ACEOF
18935
18936 fi
18937 done
18938
18939
18940
18941
18942
18943
18944 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18945 do
18946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18950   echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952   cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h.  */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h.  */
18958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18960 #define $ac_func innocuous_$ac_func
18961
18962 /* System header to define __stub macros and hopefully few prototypes,
18963     which can conflict with char $ac_func (); below.
18964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965     <limits.h> exists even on freestanding compilers.  */
18966
18967 #ifdef __STDC__
18968 # include <limits.h>
18969 #else
18970 # include <assert.h>
18971 #endif
18972
18973 #undef $ac_func
18974
18975 /* Override any GCC internal prototype to avoid an error.
18976    Use char because int might match the return type of a GCC
18977    builtin and then its argument prototype would still apply.  */
18978 #ifdef __cplusplus
18979 extern "C"
18980 #endif
18981 char $ac_func ();
18982 /* The GNU C library defines this for functions which it implements
18983     to always fail with ENOSYS.  Some functions are actually named
18984     something starting with __ and the normal name is an alias.  */
18985 #if defined __stub_$ac_func || defined __stub___$ac_func
18986 choke me
18987 #endif
18988
18989 int
18990 main ()
18991 {
18992 return $ac_func ();
18993   ;
18994   return 0;
18995 }
18996 _ACEOF
18997 rm -f conftest.$ac_objext conftest$ac_exeext
18998 if { (ac_try="$ac_link"
18999 case "(($ac_try" in
19000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001   *) ac_try_echo=$ac_try;;
19002 esac
19003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19004   (eval "$ac_link") 2>conftest.er1
19005   ac_status=$?
19006   grep -v '^ *+' conftest.er1 >conftest.err
19007   rm -f conftest.er1
19008   cat conftest.err >&5
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); } &&
19011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19012   { (case "(($ac_try" in
19013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014   *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017   (eval "$ac_try") 2>&5
19018   ac_status=$?
19019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020   (exit $ac_status); }; } &&
19021          { ac_try='test -s conftest$ac_exeext'
19022   { (case "(($ac_try" in
19023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024   *) ac_try_echo=$ac_try;;
19025 esac
19026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19027   (eval "$ac_try") 2>&5
19028   ac_status=$?
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); }; }; then
19031   eval "$as_ac_var=yes"
19032 else
19033   echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19035
19036         eval "$as_ac_var=no"
19037 fi
19038
19039 rm -f core conftest.err conftest.$ac_objext \
19040       conftest$ac_exeext conftest.$ac_ext
19041 fi
19042 ac_res=`eval echo '${'$as_ac_var'}'`
19043                { echo "$as_me:$LINENO: result: $ac_res" >&5
19044 echo "${ECHO_T}$ac_res" >&6; }
19045 if test `eval echo '${'$as_ac_var'}'` = yes; then
19046   cat >>confdefs.h <<_ACEOF
19047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19048 _ACEOF
19049
19050 fi
19051 done
19052
19053 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19054 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19055 if test "${llvm_cv_c_printf_a+set}" = set; then
19056   echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058   ac_ext=c
19059 ac_cpp='$CPP $CPPFLAGS'
19060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19063
19064  if test "$cross_compiling" = yes; then
19065   llvmac_cv_c_printf_a=no
19066 else
19067   cat >conftest.$ac_ext <<_ACEOF
19068
19069   /* confdefs.h.  */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h.  */
19074
19075 #include <stdio.h>
19076 #include <stdlib.h>
19077
19078 int
19079 main ()
19080 {
19081
19082 volatile double A, B;
19083 char Buffer[100];
19084 A = 1;
19085 A /= 10.0;
19086 sprintf(Buffer, "%a", A);
19087 B = atof(Buffer);
19088 if (A != B)
19089   return (1);
19090 if (A != 0x1.999999999999ap-4)
19091   return (1);
19092 return (0);
19093   ;
19094   return 0;
19095 }
19096 _ACEOF
19097 rm -f conftest$ac_exeext
19098 if { (ac_try="$ac_link"
19099 case "(($ac_try" in
19100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101   *) ac_try_echo=$ac_try;;
19102 esac
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104   (eval "$ac_link") 2>&5
19105   ac_status=$?
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19108   { (case "(($ac_try" in
19109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110   *) ac_try_echo=$ac_try;;
19111 esac
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113   (eval "$ac_try") 2>&5
19114   ac_status=$?
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); }; }; then
19117   llvm_cv_c_printf_a=yes
19118 else
19119   echo "$as_me: program exited with status $ac_status" >&5
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19122
19123 ( exit $ac_status )
19124 llvmac_cv_c_printf_a=no
19125 fi
19126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19127 fi
19128
19129
19130  ac_ext=c
19131 ac_cpp='$CPP $CPPFLAGS'
19132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19135
19136 fi
19137 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19138 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19139  if test "$llvm_cv_c_printf_a" = "yes"; then
19140
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_PRINTF_A 1
19143 _ACEOF
19144
19145  fi
19146
19147
19148 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19149 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19150 if test "${ac_cv_func_rand48+set}" = set; then
19151   echo $ECHO_N "(cached) $ECHO_C" >&6
19152 else
19153   ac_ext=cpp
19154 ac_cpp='$CXXCPP $CPPFLAGS'
19155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19158
19159    cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165 #include <stdlib.h>
19166 int
19167 main ()
19168 {
19169 srand48(0);lrand48();drand48();
19170   ;
19171   return 0;
19172 }
19173 _ACEOF
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178   *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181   (eval "$ac_compile") 2>conftest.er1
19182   ac_status=$?
19183   grep -v '^ *+' conftest.er1 >conftest.err
19184   rm -f conftest.er1
19185   cat conftest.err >&5
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); } &&
19188          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19189   { (case "(($ac_try" in
19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191   *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194   (eval "$ac_try") 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); }; } &&
19198          { ac_try='test -s conftest.$ac_objext'
19199   { (case "(($ac_try" in
19200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201   *) ac_try_echo=$ac_try;;
19202 esac
19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204   (eval "$ac_try") 2>&5
19205   ac_status=$?
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); }; }; then
19208   ac_cv_func_rand48=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213         ac_cv_func_rand48=no
19214 fi
19215
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217   ac_ext=c
19218 ac_cpp='$CPP $CPPFLAGS'
19219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19222
19223 fi
19224 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19225 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19226
19227 if test "$ac_cv_func_rand48" = "yes" ; then
19228
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE_RAND48 1
19231 _ACEOF
19232
19233 fi
19234
19235
19236 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19237 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19238 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19239   echo $ECHO_N "(cached) $ECHO_C" >&6
19240 else
19241   cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247 $ac_includes_default
19248 int
19249 main ()
19250 {
19251 #ifndef strerror_s
19252   char *p = (char *) strerror_s;
19253   return !p;
19254 #endif
19255
19256   ;
19257   return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext
19261 if { (ac_try="$ac_compile"
19262 case "(($ac_try" in
19263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264   *) ac_try_echo=$ac_try;;
19265 esac
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267   (eval "$ac_compile") 2>conftest.er1
19268   ac_status=$?
19269   grep -v '^ *+' conftest.er1 >conftest.err
19270   rm -f conftest.er1
19271   cat conftest.err >&5
19272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273   (exit $ac_status); } &&
19274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19275   { (case "(($ac_try" in
19276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277   *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280   (eval "$ac_try") 2>&5
19281   ac_status=$?
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); }; } &&
19284          { ac_try='test -s conftest.$ac_objext'
19285   { (case "(($ac_try" in
19286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287   *) ac_try_echo=$ac_try;;
19288 esac
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290   (eval "$ac_try") 2>&5
19291   ac_status=$?
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); }; }; then
19294   ac_cv_have_decl_strerror_s=yes
19295 else
19296   echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19298
19299         ac_cv_have_decl_strerror_s=no
19300 fi
19301
19302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19303 fi
19304 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19305 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19306 if test $ac_cv_have_decl_strerror_s = yes; then
19307
19308 cat >>confdefs.h <<_ACEOF
19309 #define HAVE_DECL_STRERROR_S 1
19310 _ACEOF
19311
19312
19313 else
19314   cat >>confdefs.h <<_ACEOF
19315 #define HAVE_DECL_STRERROR_S 0
19316 _ACEOF
19317
19318
19319 fi
19320
19321
19322
19323 if test "$llvm_cv_os_type" = "MingW" ; then
19324   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19325 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19326 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19327   echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329   ac_check_lib_save_LIBS=$LIBS
19330 LIBS="-lgcc  $LIBS"
19331 cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337
19338 /* Override any GCC internal prototype to avoid an error.
19339    Use char because int might match the return type of a GCC
19340    builtin and then its argument prototype would still apply.  */
19341 #ifdef __cplusplus
19342 extern "C"
19343 #endif
19344 char _alloca ();
19345 int
19346 main ()
19347 {
19348 return _alloca ();
19349   ;
19350   return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (ac_try="$ac_link"
19355 case "(($ac_try" in
19356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357   *) ac_try_echo=$ac_try;;
19358 esac
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360   (eval "$ac_link") 2>conftest.er1
19361   ac_status=$?
19362   grep -v '^ *+' conftest.er1 >conftest.err
19363   rm -f conftest.er1
19364   cat conftest.err >&5
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); } &&
19367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19368   { (case "(($ac_try" in
19369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370   *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373   (eval "$ac_try") 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; } &&
19377          { ac_try='test -s conftest$ac_exeext'
19378   { (case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383   (eval "$ac_try") 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; }; then
19387   ac_cv_lib_gcc__alloca=yes
19388 else
19389   echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19391
19392         ac_cv_lib_gcc__alloca=no
19393 fi
19394
19395 rm -f core conftest.err conftest.$ac_objext \
19396       conftest$ac_exeext conftest.$ac_ext
19397 LIBS=$ac_check_lib_save_LIBS
19398 fi
19399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19400 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19401 if test $ac_cv_lib_gcc__alloca = yes; then
19402
19403 cat >>confdefs.h <<\_ACEOF
19404 #define HAVE__ALLOCA 1
19405 _ACEOF
19406
19407 fi
19408
19409   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19410 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19411 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19412   echo $ECHO_N "(cached) $ECHO_C" >&6
19413 else
19414   ac_check_lib_save_LIBS=$LIBS
19415 LIBS="-lgcc  $LIBS"
19416 cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h.  */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h.  */
19422
19423 /* Override any GCC internal prototype to avoid an error.
19424    Use char because int might match the return type of a GCC
19425    builtin and then its argument prototype would still apply.  */
19426 #ifdef __cplusplus
19427 extern "C"
19428 #endif
19429 char __alloca ();
19430 int
19431 main ()
19432 {
19433 return __alloca ();
19434   ;
19435   return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext conftest$ac_exeext
19439 if { (ac_try="$ac_link"
19440 case "(($ac_try" in
19441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442   *) ac_try_echo=$ac_try;;
19443 esac
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445   (eval "$ac_link") 2>conftest.er1
19446   ac_status=$?
19447   grep -v '^ *+' conftest.er1 >conftest.err
19448   rm -f conftest.er1
19449   cat conftest.err >&5
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); } &&
19452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19453   { (case "(($ac_try" in
19454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455   *) ac_try_echo=$ac_try;;
19456 esac
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458   (eval "$ac_try") 2>&5
19459   ac_status=$?
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); }; } &&
19462          { ac_try='test -s conftest$ac_exeext'
19463   { (case "(($ac_try" in
19464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465   *) ac_try_echo=$ac_try;;
19466 esac
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468   (eval "$ac_try") 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; }; then
19472   ac_cv_lib_gcc___alloca=yes
19473 else
19474   echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477         ac_cv_lib_gcc___alloca=no
19478 fi
19479
19480 rm -f core conftest.err conftest.$ac_objext \
19481       conftest$ac_exeext conftest.$ac_ext
19482 LIBS=$ac_check_lib_save_LIBS
19483 fi
19484 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19485 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19486 if test $ac_cv_lib_gcc___alloca = yes; then
19487
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE___ALLOCA 1
19490 _ACEOF
19491
19492 fi
19493
19494   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19495 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19496 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19497   echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499   ac_check_lib_save_LIBS=$LIBS
19500 LIBS="-lgcc  $LIBS"
19501 cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h.  */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h.  */
19507
19508 /* Override any GCC internal prototype to avoid an error.
19509    Use char because int might match the return type of a GCC
19510    builtin and then its argument prototype would still apply.  */
19511 #ifdef __cplusplus
19512 extern "C"
19513 #endif
19514 char __chkstk ();
19515 int
19516 main ()
19517 {
19518 return __chkstk ();
19519   ;
19520   return 0;
19521 }
19522 _ACEOF
19523 rm -f conftest.$ac_objext conftest$ac_exeext
19524 if { (ac_try="$ac_link"
19525 case "(($ac_try" in
19526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527   *) ac_try_echo=$ac_try;;
19528 esac
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530   (eval "$ac_link") 2>conftest.er1
19531   ac_status=$?
19532   grep -v '^ *+' conftest.er1 >conftest.err
19533   rm -f conftest.er1
19534   cat conftest.err >&5
19535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536   (exit $ac_status); } &&
19537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19538   { (case "(($ac_try" in
19539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540   *) ac_try_echo=$ac_try;;
19541 esac
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543   (eval "$ac_try") 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); }; } &&
19547          { ac_try='test -s conftest$ac_exeext'
19548   { (case "(($ac_try" in
19549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550   *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553   (eval "$ac_try") 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; }; then
19557   ac_cv_lib_gcc___chkstk=yes
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562         ac_cv_lib_gcc___chkstk=no
19563 fi
19564
19565 rm -f core conftest.err conftest.$ac_objext \
19566       conftest$ac_exeext conftest.$ac_ext
19567 LIBS=$ac_check_lib_save_LIBS
19568 fi
19569 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19570 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19571 if test $ac_cv_lib_gcc___chkstk = yes; then
19572
19573 cat >>confdefs.h <<\_ACEOF
19574 #define HAVE___CHKSTK 1
19575 _ACEOF
19576
19577 fi
19578
19579   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19580 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19581 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19582   echo $ECHO_N "(cached) $ECHO_C" >&6
19583 else
19584   ac_check_lib_save_LIBS=$LIBS
19585 LIBS="-lgcc  $LIBS"
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h.  */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h.  */
19592
19593 /* Override any GCC internal prototype to avoid an error.
19594    Use char because int might match the return type of a GCC
19595    builtin and then its argument prototype would still apply.  */
19596 #ifdef __cplusplus
19597 extern "C"
19598 #endif
19599 char ___chkstk ();
19600 int
19601 main ()
19602 {
19603 return ___chkstk ();
19604   ;
19605   return 0;
19606 }
19607 _ACEOF
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (ac_try="$ac_link"
19610 case "(($ac_try" in
19611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612   *) ac_try_echo=$ac_try;;
19613 esac
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615   (eval "$ac_link") 2>conftest.er1
19616   ac_status=$?
19617   grep -v '^ *+' conftest.er1 >conftest.err
19618   rm -f conftest.er1
19619   cat conftest.err >&5
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); } &&
19622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19623   { (case "(($ac_try" in
19624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625   *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628   (eval "$ac_try") 2>&5
19629   ac_status=$?
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); }; } &&
19632          { ac_try='test -s conftest$ac_exeext'
19633   { (case "(($ac_try" in
19634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635   *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638   (eval "$ac_try") 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; }; then
19642   ac_cv_lib_gcc____chkstk=yes
19643 else
19644   echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647         ac_cv_lib_gcc____chkstk=no
19648 fi
19649
19650 rm -f core conftest.err conftest.$ac_objext \
19651       conftest$ac_exeext conftest.$ac_ext
19652 LIBS=$ac_check_lib_save_LIBS
19653 fi
19654 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19655 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19656 if test $ac_cv_lib_gcc____chkstk = yes; then
19657
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE____CHKSTK 1
19660 _ACEOF
19661
19662 fi
19663
19664
19665   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19666 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19667 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19668   echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670   ac_check_lib_save_LIBS=$LIBS
19671 LIBS="-lgcc  $LIBS"
19672 cat >conftest.$ac_ext <<_ACEOF
19673 /* confdefs.h.  */
19674 _ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h.  */
19678
19679 /* Override any GCC internal prototype to avoid an error.
19680    Use char because int might match the return type of a GCC
19681    builtin and then its argument prototype would still apply.  */
19682 #ifdef __cplusplus
19683 extern "C"
19684 #endif
19685 char __ashldi3 ();
19686 int
19687 main ()
19688 {
19689 return __ashldi3 ();
19690   ;
19691   return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701   (eval "$ac_link") 2>conftest.er1
19702   ac_status=$?
19703   grep -v '^ *+' conftest.er1 >conftest.err
19704   rm -f conftest.er1
19705   cat conftest.err >&5
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); } &&
19708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19709   { (case "(($ac_try" in
19710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711   *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714   (eval "$ac_try") 2>&5
19715   ac_status=$?
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); }; } &&
19718          { ac_try='test -s conftest$ac_exeext'
19719   { (case "(($ac_try" in
19720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721   *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724   (eval "$ac_try") 2>&5
19725   ac_status=$?
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); }; }; then
19728   ac_cv_lib_gcc___ashldi3=yes
19729 else
19730   echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19732
19733         ac_cv_lib_gcc___ashldi3=no
19734 fi
19735
19736 rm -f core conftest.err conftest.$ac_objext \
19737       conftest$ac_exeext conftest.$ac_ext
19738 LIBS=$ac_check_lib_save_LIBS
19739 fi
19740 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19741 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19742 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19743
19744 cat >>confdefs.h <<\_ACEOF
19745 #define HAVE___ASHLDI3 1
19746 _ACEOF
19747
19748 fi
19749
19750   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19751 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19752 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19753   echo $ECHO_N "(cached) $ECHO_C" >&6
19754 else
19755   ac_check_lib_save_LIBS=$LIBS
19756 LIBS="-lgcc  $LIBS"
19757 cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h.  */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h.  */
19763
19764 /* Override any GCC internal prototype to avoid an error.
19765    Use char because int might match the return type of a GCC
19766    builtin and then its argument prototype would still apply.  */
19767 #ifdef __cplusplus
19768 extern "C"
19769 #endif
19770 char __ashrdi3 ();
19771 int
19772 main ()
19773 {
19774 return __ashrdi3 ();
19775   ;
19776   return 0;
19777 }
19778 _ACEOF
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (ac_try="$ac_link"
19781 case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786   (eval "$ac_link") 2>conftest.er1
19787   ac_status=$?
19788   grep -v '^ *+' conftest.er1 >conftest.err
19789   rm -f conftest.er1
19790   cat conftest.err >&5
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); } &&
19793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19794   { (case "(($ac_try" in
19795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796   *) ac_try_echo=$ac_try;;
19797 esac
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799   (eval "$ac_try") 2>&5
19800   ac_status=$?
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); }; } &&
19803          { ac_try='test -s conftest$ac_exeext'
19804   { (case "(($ac_try" in
19805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806   *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809   (eval "$ac_try") 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }; }; then
19813   ac_cv_lib_gcc___ashrdi3=yes
19814 else
19815   echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818         ac_cv_lib_gcc___ashrdi3=no
19819 fi
19820
19821 rm -f core conftest.err conftest.$ac_objext \
19822       conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19824 fi
19825 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19826 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19827 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19828
19829 cat >>confdefs.h <<\_ACEOF
19830 #define HAVE___ASHRDI3 1
19831 _ACEOF
19832
19833 fi
19834
19835   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19836 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19837 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19838   echo $ECHO_N "(cached) $ECHO_C" >&6
19839 else
19840   ac_check_lib_save_LIBS=$LIBS
19841 LIBS="-lgcc  $LIBS"
19842 cat >conftest.$ac_ext <<_ACEOF
19843 /* confdefs.h.  */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h.  */
19848
19849 /* Override any GCC internal prototype to avoid an error.
19850    Use char because int might match the return type of a GCC
19851    builtin and then its argument prototype would still apply.  */
19852 #ifdef __cplusplus
19853 extern "C"
19854 #endif
19855 char __divdi3 ();
19856 int
19857 main ()
19858 {
19859 return __divdi3 ();
19860   ;
19861   return 0;
19862 }
19863 _ACEOF
19864 rm -f conftest.$ac_objext conftest$ac_exeext
19865 if { (ac_try="$ac_link"
19866 case "(($ac_try" in
19867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868   *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871   (eval "$ac_link") 2>conftest.er1
19872   ac_status=$?
19873   grep -v '^ *+' conftest.er1 >conftest.err
19874   rm -f conftest.er1
19875   cat conftest.err >&5
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } &&
19878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19879   { (case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_try") 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; } &&
19888          { ac_try='test -s conftest$ac_exeext'
19889   { (case "(($ac_try" in
19890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891   *) ac_try_echo=$ac_try;;
19892 esac
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894   (eval "$ac_try") 2>&5
19895   ac_status=$?
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); }; }; then
19898   ac_cv_lib_gcc___divdi3=yes
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903         ac_cv_lib_gcc___divdi3=no
19904 fi
19905
19906 rm -f core conftest.err conftest.$ac_objext \
19907       conftest$ac_exeext conftest.$ac_ext
19908 LIBS=$ac_check_lib_save_LIBS
19909 fi
19910 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19911 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19912 if test $ac_cv_lib_gcc___divdi3 = yes; then
19913
19914 cat >>confdefs.h <<\_ACEOF
19915 #define HAVE___DIVDI3 1
19916 _ACEOF
19917
19918 fi
19919
19920   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19921 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19922 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   ac_check_lib_save_LIBS=$LIBS
19926 LIBS="-lgcc  $LIBS"
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933
19934 /* Override any GCC internal prototype to avoid an error.
19935    Use char because int might match the return type of a GCC
19936    builtin and then its argument prototype would still apply.  */
19937 #ifdef __cplusplus
19938 extern "C"
19939 #endif
19940 char __fixdfdi ();
19941 int
19942 main ()
19943 {
19944 return __fixdfdi ();
19945   ;
19946   return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953   *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956   (eval "$ac_link") 2>conftest.er1
19957   ac_status=$?
19958   grep -v '^ *+' conftest.er1 >conftest.err
19959   rm -f conftest.er1
19960   cat conftest.err >&5
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); } &&
19963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19964   { (case "(($ac_try" in
19965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966   *) ac_try_echo=$ac_try;;
19967 esac
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969   (eval "$ac_try") 2>&5
19970   ac_status=$?
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); }; } &&
19973          { ac_try='test -s conftest$ac_exeext'
19974   { (case "(($ac_try" in
19975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976   *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979   (eval "$ac_try") 2>&5
19980   ac_status=$?
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); }; }; then
19983   ac_cv_lib_gcc___fixdfdi=yes
19984 else
19985   echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19987
19988         ac_cv_lib_gcc___fixdfdi=no
19989 fi
19990
19991 rm -f core conftest.err conftest.$ac_objext \
19992       conftest$ac_exeext conftest.$ac_ext
19993 LIBS=$ac_check_lib_save_LIBS
19994 fi
19995 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19996 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19997 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19998
19999 cat >>confdefs.h <<\_ACEOF
20000 #define HAVE___FIXDFDI 1
20001 _ACEOF
20002
20003 fi
20004
20005   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20006 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20007 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20008   echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010   ac_check_lib_save_LIBS=$LIBS
20011 LIBS="-lgcc  $LIBS"
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h.  */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h.  */
20018
20019 /* Override any GCC internal prototype to avoid an error.
20020    Use char because int might match the return type of a GCC
20021    builtin and then its argument prototype would still apply.  */
20022 #ifdef __cplusplus
20023 extern "C"
20024 #endif
20025 char __fixsfdi ();
20026 int
20027 main ()
20028 {
20029 return __fixsfdi ();
20030   ;
20031   return 0;
20032 }
20033 _ACEOF
20034 rm -f conftest.$ac_objext conftest$ac_exeext
20035 if { (ac_try="$ac_link"
20036 case "(($ac_try" in
20037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038   *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041   (eval "$ac_link") 2>conftest.er1
20042   ac_status=$?
20043   grep -v '^ *+' conftest.er1 >conftest.err
20044   rm -f conftest.er1
20045   cat conftest.err >&5
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } &&
20048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20049   { (case "(($ac_try" in
20050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051   *) ac_try_echo=$ac_try;;
20052 esac
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054   (eval "$ac_try") 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); }; } &&
20058          { ac_try='test -s conftest$ac_exeext'
20059   { (case "(($ac_try" in
20060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061   *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064   (eval "$ac_try") 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; }; then
20068   ac_cv_lib_gcc___fixsfdi=yes
20069 else
20070   echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20072
20073         ac_cv_lib_gcc___fixsfdi=no
20074 fi
20075
20076 rm -f core conftest.err conftest.$ac_objext \
20077       conftest$ac_exeext conftest.$ac_ext
20078 LIBS=$ac_check_lib_save_LIBS
20079 fi
20080 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20081 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20082 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20083
20084 cat >>confdefs.h <<\_ACEOF
20085 #define HAVE___FIXSFDI 1
20086 _ACEOF
20087
20088 fi
20089
20090   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20091 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20092 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20093   echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095   ac_check_lib_save_LIBS=$LIBS
20096 LIBS="-lgcc  $LIBS"
20097 cat >conftest.$ac_ext <<_ACEOF
20098 /* confdefs.h.  */
20099 _ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h.  */
20103
20104 /* Override any GCC internal prototype to avoid an error.
20105    Use char because int might match the return type of a GCC
20106    builtin and then its argument prototype would still apply.  */
20107 #ifdef __cplusplus
20108 extern "C"
20109 #endif
20110 char __floatdidf ();
20111 int
20112 main ()
20113 {
20114 return __floatdidf ();
20115   ;
20116   return 0;
20117 }
20118 _ACEOF
20119 rm -f conftest.$ac_objext conftest$ac_exeext
20120 if { (ac_try="$ac_link"
20121 case "(($ac_try" in
20122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123   *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126   (eval "$ac_link") 2>conftest.er1
20127   ac_status=$?
20128   grep -v '^ *+' conftest.er1 >conftest.err
20129   rm -f conftest.er1
20130   cat conftest.err >&5
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); } &&
20133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); }; } &&
20143          { ac_try='test -s conftest$ac_exeext'
20144   { (case "(($ac_try" in
20145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146   *) ac_try_echo=$ac_try;;
20147 esac
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149   (eval "$ac_try") 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); }; }; then
20153   ac_cv_lib_gcc___floatdidf=yes
20154 else
20155   echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158         ac_cv_lib_gcc___floatdidf=no
20159 fi
20160
20161 rm -f core conftest.err conftest.$ac_objext \
20162       conftest$ac_exeext conftest.$ac_ext
20163 LIBS=$ac_check_lib_save_LIBS
20164 fi
20165 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20166 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20167 if test $ac_cv_lib_gcc___floatdidf = yes; then
20168
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE___FLOATDIDF 1
20171 _ACEOF
20172
20173 fi
20174
20175   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20176 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20177 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20178   echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180   ac_check_lib_save_LIBS=$LIBS
20181 LIBS="-lgcc  $LIBS"
20182 cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h.  */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h.  */
20188
20189 /* Override any GCC internal prototype to avoid an error.
20190    Use char because int might match the return type of a GCC
20191    builtin and then its argument prototype would still apply.  */
20192 #ifdef __cplusplus
20193 extern "C"
20194 #endif
20195 char __lshrdi3 ();
20196 int
20197 main ()
20198 {
20199 return __lshrdi3 ();
20200   ;
20201   return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208   *) ac_try_echo=$ac_try;;
20209 esac
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211   (eval "$ac_link") 2>conftest.er1
20212   ac_status=$?
20213   grep -v '^ *+' conftest.er1 >conftest.err
20214   rm -f conftest.er1
20215   cat conftest.err >&5
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); } &&
20218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20219   { (case "(($ac_try" in
20220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221   *) ac_try_echo=$ac_try;;
20222 esac
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224   (eval "$ac_try") 2>&5
20225   ac_status=$?
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); }; } &&
20228          { ac_try='test -s conftest$ac_exeext'
20229   { (case "(($ac_try" in
20230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231   *) ac_try_echo=$ac_try;;
20232 esac
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234   (eval "$ac_try") 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; }; then
20238   ac_cv_lib_gcc___lshrdi3=yes
20239 else
20240   echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243         ac_cv_lib_gcc___lshrdi3=no
20244 fi
20245
20246 rm -f core conftest.err conftest.$ac_objext \
20247       conftest$ac_exeext conftest.$ac_ext
20248 LIBS=$ac_check_lib_save_LIBS
20249 fi
20250 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20251 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20252 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20253
20254 cat >>confdefs.h <<\_ACEOF
20255 #define HAVE___LSHRDI3 1
20256 _ACEOF
20257
20258 fi
20259
20260   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20261 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20262 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20263   echo $ECHO_N "(cached) $ECHO_C" >&6
20264 else
20265   ac_check_lib_save_LIBS=$LIBS
20266 LIBS="-lgcc  $LIBS"
20267 cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273
20274 /* Override any GCC internal prototype to avoid an error.
20275    Use char because int might match the return type of a GCC
20276    builtin and then its argument prototype would still apply.  */
20277 #ifdef __cplusplus
20278 extern "C"
20279 #endif
20280 char __moddi3 ();
20281 int
20282 main ()
20283 {
20284 return __moddi3 ();
20285   ;
20286   return 0;
20287 }
20288 _ACEOF
20289 rm -f conftest.$ac_objext conftest$ac_exeext
20290 if { (ac_try="$ac_link"
20291 case "(($ac_try" in
20292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293   *) ac_try_echo=$ac_try;;
20294 esac
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296   (eval "$ac_link") 2>conftest.er1
20297   ac_status=$?
20298   grep -v '^ *+' conftest.er1 >conftest.err
20299   rm -f conftest.er1
20300   cat conftest.err >&5
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); } &&
20303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20304   { (case "(($ac_try" in
20305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306   *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309   (eval "$ac_try") 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); }; } &&
20313          { ac_try='test -s conftest$ac_exeext'
20314   { (case "(($ac_try" in
20315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316   *) ac_try_echo=$ac_try;;
20317 esac
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319   (eval "$ac_try") 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); }; }; then
20323   ac_cv_lib_gcc___moddi3=yes
20324 else
20325   echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328         ac_cv_lib_gcc___moddi3=no
20329 fi
20330
20331 rm -f core conftest.err conftest.$ac_objext \
20332       conftest$ac_exeext conftest.$ac_ext
20333 LIBS=$ac_check_lib_save_LIBS
20334 fi
20335 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20336 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20337 if test $ac_cv_lib_gcc___moddi3 = yes; then
20338
20339 cat >>confdefs.h <<\_ACEOF
20340 #define HAVE___MODDI3 1
20341 _ACEOF
20342
20343 fi
20344
20345   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20346 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20347 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20348   echo $ECHO_N "(cached) $ECHO_C" >&6
20349 else
20350   ac_check_lib_save_LIBS=$LIBS
20351 LIBS="-lgcc  $LIBS"
20352 cat >conftest.$ac_ext <<_ACEOF
20353 /* confdefs.h.  */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h.  */
20358
20359 /* Override any GCC internal prototype to avoid an error.
20360    Use char because int might match the return type of a GCC
20361    builtin and then its argument prototype would still apply.  */
20362 #ifdef __cplusplus
20363 extern "C"
20364 #endif
20365 char __udivdi3 ();
20366 int
20367 main ()
20368 {
20369 return __udivdi3 ();
20370   ;
20371   return 0;
20372 }
20373 _ACEOF
20374 rm -f conftest.$ac_objext conftest$ac_exeext
20375 if { (ac_try="$ac_link"
20376 case "(($ac_try" in
20377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378   *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381   (eval "$ac_link") 2>conftest.er1
20382   ac_status=$?
20383   grep -v '^ *+' conftest.er1 >conftest.err
20384   rm -f conftest.er1
20385   cat conftest.err >&5
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); } &&
20388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20389   { (case "(($ac_try" in
20390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391   *) ac_try_echo=$ac_try;;
20392 esac
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394   (eval "$ac_try") 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); }; } &&
20398          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); }; }; then
20408   ac_cv_lib_gcc___udivdi3=yes
20409 else
20410   echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413         ac_cv_lib_gcc___udivdi3=no
20414 fi
20415
20416 rm -f core conftest.err conftest.$ac_objext \
20417       conftest$ac_exeext conftest.$ac_ext
20418 LIBS=$ac_check_lib_save_LIBS
20419 fi
20420 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20421 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20422 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20423
20424 cat >>confdefs.h <<\_ACEOF
20425 #define HAVE___UDIVDI3 1
20426 _ACEOF
20427
20428 fi
20429
20430   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20431 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20432 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20433   echo $ECHO_N "(cached) $ECHO_C" >&6
20434 else
20435   ac_check_lib_save_LIBS=$LIBS
20436 LIBS="-lgcc  $LIBS"
20437 cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h.  */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h.  */
20443
20444 /* Override any GCC internal prototype to avoid an error.
20445    Use char because int might match the return type of a GCC
20446    builtin and then its argument prototype would still apply.  */
20447 #ifdef __cplusplus
20448 extern "C"
20449 #endif
20450 char __umoddi3 ();
20451 int
20452 main ()
20453 {
20454 return __umoddi3 ();
20455   ;
20456   return 0;
20457 }
20458 _ACEOF
20459 rm -f conftest.$ac_objext conftest$ac_exeext
20460 if { (ac_try="$ac_link"
20461 case "(($ac_try" in
20462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463   *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466   (eval "$ac_link") 2>conftest.er1
20467   ac_status=$?
20468   grep -v '^ *+' conftest.er1 >conftest.err
20469   rm -f conftest.er1
20470   cat conftest.err >&5
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } &&
20473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474   { (case "(($ac_try" in
20475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476   *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479   (eval "$ac_try") 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; } &&
20483          { ac_try='test -s conftest$ac_exeext'
20484   { (case "(($ac_try" in
20485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486   *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489   (eval "$ac_try") 2>&5
20490   ac_status=$?
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); }; }; then
20493   ac_cv_lib_gcc___umoddi3=yes
20494 else
20495   echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498         ac_cv_lib_gcc___umoddi3=no
20499 fi
20500
20501 rm -f core conftest.err conftest.$ac_objext \
20502       conftest$ac_exeext conftest.$ac_ext
20503 LIBS=$ac_check_lib_save_LIBS
20504 fi
20505 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20506 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20507 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20508
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE___UMODDI3 1
20511 _ACEOF
20512
20513 fi
20514
20515
20516   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20517 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20518 if test "${ac_cv_lib_gcc___main+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521   ac_check_lib_save_LIBS=$LIBS
20522 LIBS="-lgcc  $LIBS"
20523 cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h.  */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h.  */
20529
20530 /* Override any GCC internal prototype to avoid an error.
20531    Use char because int might match the return type of a GCC
20532    builtin and then its argument prototype would still apply.  */
20533 #ifdef __cplusplus
20534 extern "C"
20535 #endif
20536 char __main ();
20537 int
20538 main ()
20539 {
20540 return __main ();
20541   ;
20542   return 0;
20543 }
20544 _ACEOF
20545 rm -f conftest.$ac_objext conftest$ac_exeext
20546 if { (ac_try="$ac_link"
20547 case "(($ac_try" in
20548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549   *) ac_try_echo=$ac_try;;
20550 esac
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552   (eval "$ac_link") 2>conftest.er1
20553   ac_status=$?
20554   grep -v '^ *+' conftest.er1 >conftest.err
20555   rm -f conftest.er1
20556   cat conftest.err >&5
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); } &&
20559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20560   { (case "(($ac_try" in
20561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562   *) ac_try_echo=$ac_try;;
20563 esac
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565   (eval "$ac_try") 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); }; } &&
20569          { ac_try='test -s conftest$ac_exeext'
20570   { (case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575   (eval "$ac_try") 2>&5
20576   ac_status=$?
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); }; }; then
20579   ac_cv_lib_gcc___main=yes
20580 else
20581   echo "$as_me: failed program was:" >&5
20582 sed 's/^/| /' conftest.$ac_ext >&5
20583
20584         ac_cv_lib_gcc___main=no
20585 fi
20586
20587 rm -f core conftest.err conftest.$ac_objext \
20588       conftest$ac_exeext conftest.$ac_ext
20589 LIBS=$ac_check_lib_save_LIBS
20590 fi
20591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20592 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20593 if test $ac_cv_lib_gcc___main = yes; then
20594
20595 cat >>confdefs.h <<\_ACEOF
20596 #define HAVE___MAIN 1
20597 _ACEOF
20598
20599 fi
20600
20601   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20602 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20603 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20604   echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20606   ac_check_lib_save_LIBS=$LIBS
20607 LIBS="-lgcc  $LIBS"
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h.  */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h.  */
20614
20615 /* Override any GCC internal prototype to avoid an error.
20616    Use char because int might match the return type of a GCC
20617    builtin and then its argument prototype would still apply.  */
20618 #ifdef __cplusplus
20619 extern "C"
20620 #endif
20621 char __cmpdi2 ();
20622 int
20623 main ()
20624 {
20625 return __cmpdi2 ();
20626   ;
20627   return 0;
20628 }
20629 _ACEOF
20630 rm -f conftest.$ac_objext conftest$ac_exeext
20631 if { (ac_try="$ac_link"
20632 case "(($ac_try" in
20633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634   *) ac_try_echo=$ac_try;;
20635 esac
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637   (eval "$ac_link") 2>conftest.er1
20638   ac_status=$?
20639   grep -v '^ *+' conftest.er1 >conftest.err
20640   rm -f conftest.er1
20641   cat conftest.err >&5
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); } &&
20644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20645   { (case "(($ac_try" in
20646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647   *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650   (eval "$ac_try") 2>&5
20651   ac_status=$?
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); }; } &&
20654          { ac_try='test -s conftest$ac_exeext'
20655   { (case "(($ac_try" in
20656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657   *) ac_try_echo=$ac_try;;
20658 esac
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660   (eval "$ac_try") 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); }; }; then
20664   ac_cv_lib_gcc___cmpdi2=yes
20665 else
20666   echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20668
20669         ac_cv_lib_gcc___cmpdi2=no
20670 fi
20671
20672 rm -f core conftest.err conftest.$ac_objext \
20673       conftest$ac_exeext conftest.$ac_ext
20674 LIBS=$ac_check_lib_save_LIBS
20675 fi
20676 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20677 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20678 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20679
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE___CMPDI2 1
20682 _ACEOF
20683
20684 fi
20685
20686 fi
20687
20688 if test "$llvm_cv_os_type" = "MingW" ; then
20689   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20690 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20691   cat >conftest.$ac_ext <<_ACEOF
20692 #include <windows.h>
20693 #include <imagehlp.h>
20694 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20695 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20696 _ACEOF
20697 rm -f conftest.$ac_objext
20698 if { (ac_try="$ac_compile"
20699 case "(($ac_try" in
20700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701   *) ac_try_echo=$ac_try;;
20702 esac
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704   (eval "$ac_compile") 2>conftest.er1
20705   ac_status=$?
20706   grep -v '^ *+' conftest.er1 >conftest.err
20707   rm -f conftest.er1
20708   cat conftest.err >&5
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } &&
20711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20712   { (case "(($ac_try" in
20713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714   *) ac_try_echo=$ac_try;;
20715 esac
20716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717   (eval "$ac_try") 2>&5
20718   ac_status=$?
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); }; } &&
20721          { ac_try='test -s conftest.$ac_objext'
20722   { (case "(($ac_try" in
20723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724   *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727   (eval "$ac_try") 2>&5
20728   ac_status=$?
20729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730   (exit $ac_status); }; }; then
20731
20732   { echo "$as_me:$LINENO: result: yes" >&5
20733 echo "${ECHO_T}yes" >&6; }
20734   llvm_cv_win32_elmcb_pcstr="PCSTR"
20735
20736 else
20737   echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20739
20740
20741   { echo "$as_me:$LINENO: result: no" >&5
20742 echo "${ECHO_T}no" >&6; }
20743   llvm_cv_win32_elmcb_pcstr="PSTR"
20744
20745 fi
20746
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748
20749 cat >>confdefs.h <<_ACEOF
20750 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20751 _ACEOF
20752
20753 fi
20754
20755
20756 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20757 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20758 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20759   echo $ECHO_N "(cached) $ECHO_C" >&6
20760 else
20761   ac_ext=cpp
20762 ac_cpp='$CXXCPP $CPPFLAGS'
20763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20766
20767    cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h.  */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h.  */
20773 #include <math.h>
20774 int
20775 main ()
20776 {
20777 float f; isnan(f);
20778   ;
20779   return 0;
20780 }
20781 _ACEOF
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786   *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789   (eval "$ac_compile") 2>conftest.er1
20790   ac_status=$?
20791   grep -v '^ *+' conftest.er1 >conftest.err
20792   rm -f conftest.er1
20793   cat conftest.err >&5
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); } &&
20796          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20797   { (case "(($ac_try" in
20798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799   *) ac_try_echo=$ac_try;;
20800 esac
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802   (eval "$ac_try") 2>&5
20803   ac_status=$?
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); }; } &&
20806          { ac_try='test -s conftest.$ac_objext'
20807   { (case "(($ac_try" in
20808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809   *) ac_try_echo=$ac_try;;
20810 esac
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812   (eval "$ac_try") 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); }; }; then
20816   ac_cv_func_isnan_in_math_h=yes
20817 else
20818   echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821         ac_cv_func_isnan_in_math_h=no
20822 fi
20823
20824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20825   ac_ext=c
20826 ac_cpp='$CPP $CPPFLAGS'
20827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20830
20831 fi
20832 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20833 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20834
20835
20836 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20837
20838 cat >>confdefs.h <<\_ACEOF
20839 #define HAVE_ISNAN_IN_MATH_H 1
20840 _ACEOF
20841
20842 fi
20843
20844 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20845 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20846 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20847   echo $ECHO_N "(cached) $ECHO_C" >&6
20848 else
20849   ac_ext=cpp
20850 ac_cpp='$CXXCPP $CPPFLAGS'
20851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20854
20855    cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 #include <cmath>
20862 int
20863 main ()
20864 {
20865 float f; isnan(f);
20866   ;
20867   return 0;
20868 }
20869 _ACEOF
20870 rm -f conftest.$ac_objext
20871 if { (ac_try="$ac_compile"
20872 case "(($ac_try" in
20873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874   *) ac_try_echo=$ac_try;;
20875 esac
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877   (eval "$ac_compile") 2>conftest.er1
20878   ac_status=$?
20879   grep -v '^ *+' conftest.er1 >conftest.err
20880   rm -f conftest.er1
20881   cat conftest.err >&5
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); } &&
20884          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20885   { (case "(($ac_try" in
20886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887   *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890   (eval "$ac_try") 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; } &&
20894          { ac_try='test -s conftest.$ac_objext'
20895   { (case "(($ac_try" in
20896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897   *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900   (eval "$ac_try") 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); }; }; then
20904   ac_cv_func_isnan_in_cmath=yes
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909         ac_cv_func_isnan_in_cmath=no
20910 fi
20911
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913   ac_ext=c
20914 ac_cpp='$CPP $CPPFLAGS'
20915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20918
20919 fi
20920 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20921 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20922
20923 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20924
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_ISNAN_IN_CMATH 1
20927 _ACEOF
20928
20929 fi
20930
20931 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20932 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20933 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20934   echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936   ac_ext=cpp
20937 ac_cpp='$CXXCPP $CPPFLAGS'
20938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20941
20942    cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h.  */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h.  */
20948 #include <cmath>
20949 int
20950 main ()
20951 {
20952 float f; std::isnan(f);
20953   ;
20954   return 0;
20955 }
20956 _ACEOF
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961   *) ac_try_echo=$ac_try;;
20962 esac
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964   (eval "$ac_compile") 2>conftest.er1
20965   ac_status=$?
20966   grep -v '^ *+' conftest.er1 >conftest.err
20967   rm -f conftest.er1
20968   cat conftest.err >&5
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); } &&
20971          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20972   { (case "(($ac_try" in
20973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974   *) ac_try_echo=$ac_try;;
20975 esac
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977   (eval "$ac_try") 2>&5
20978   ac_status=$?
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); }; } &&
20981          { ac_try='test -s conftest.$ac_objext'
20982   { (case "(($ac_try" in
20983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984   *) ac_try_echo=$ac_try;;
20985 esac
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987   (eval "$ac_try") 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; }; then
20991   ac_cv_func_std_isnan_in_cmath=yes
20992 else
20993   echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996         ac_cv_func_std_isnan_in_cmath=no
20997 fi
20998
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000   ac_ext=c
21001 ac_cpp='$CPP $CPPFLAGS'
21002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21005
21006 fi
21007 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21008 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21009
21010 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21011
21012 cat >>confdefs.h <<\_ACEOF
21013 #define HAVE_STD_ISNAN_IN_CMATH 1
21014 _ACEOF
21015
21016 fi
21017
21018
21019 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21020 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21021 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21022   echo $ECHO_N "(cached) $ECHO_C" >&6
21023 else
21024   ac_ext=cpp
21025 ac_cpp='$CXXCPP $CPPFLAGS'
21026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
21030    cat >conftest.$ac_ext <<_ACEOF
21031 /* confdefs.h.  */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h.  */
21036 #include <math.h>
21037 int
21038 main ()
21039 {
21040 float f; isinf(f);
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext
21046 if { (ac_try="$ac_compile"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_compile") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } &&
21059          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21060   { (case "(($ac_try" in
21061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062   *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065   (eval "$ac_try") 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); }; } &&
21069          { ac_try='test -s conftest.$ac_objext'
21070   { (case "(($ac_try" in
21071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072   *) ac_try_echo=$ac_try;;
21073 esac
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075   (eval "$ac_try") 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; }; then
21079   ac_cv_func_isinf_in_math_h=yes
21080 else
21081   echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084         ac_cv_func_isinf_in_math_h=no
21085 fi
21086
21087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21088   ac_ext=c
21089 ac_cpp='$CPP $CPPFLAGS'
21090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21093
21094 fi
21095 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21096 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21097
21098 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21099
21100 cat >>confdefs.h <<\_ACEOF
21101 #define HAVE_ISINF_IN_MATH_H 1
21102 _ACEOF
21103
21104 fi
21105
21106 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21107 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21108 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21109   echo $ECHO_N "(cached) $ECHO_C" >&6
21110 else
21111   ac_ext=cpp
21112 ac_cpp='$CXXCPP $CPPFLAGS'
21113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21116
21117    cat >conftest.$ac_ext <<_ACEOF
21118 /* confdefs.h.  */
21119 _ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h.  */
21123 #include <cmath>
21124 int
21125 main ()
21126 {
21127 float f; isinf(f);
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext
21133 if { (ac_try="$ac_compile"
21134 case "(($ac_try" in
21135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136   *) ac_try_echo=$ac_try;;
21137 esac
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139   (eval "$ac_compile") 2>conftest.er1
21140   ac_status=$?
21141   grep -v '^ *+' conftest.er1 >conftest.err
21142   rm -f conftest.er1
21143   cat conftest.err >&5
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); } &&
21146          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21147   { (case "(($ac_try" in
21148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149   *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152   (eval "$ac_try") 2>&5
21153   ac_status=$?
21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); }; } &&
21156          { ac_try='test -s conftest.$ac_objext'
21157   { (case "(($ac_try" in
21158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159   *) ac_try_echo=$ac_try;;
21160 esac
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162   (eval "$ac_try") 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; }; then
21166   ac_cv_func_isinf_in_cmath=yes
21167 else
21168   echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171         ac_cv_func_isinf_in_cmath=no
21172 fi
21173
21174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175   ac_ext=c
21176 ac_cpp='$CPP $CPPFLAGS'
21177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21180
21181 fi
21182 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21183 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21184
21185 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21186
21187 cat >>confdefs.h <<\_ACEOF
21188 #define HAVE_ISINF_IN_CMATH 1
21189 _ACEOF
21190
21191 fi
21192
21193 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21194 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21195 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21196   echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198   ac_ext=cpp
21199 ac_cpp='$CXXCPP $CPPFLAGS'
21200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21203
21204    cat >conftest.$ac_ext <<_ACEOF
21205 /* confdefs.h.  */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h.  */
21210 #include <cmath>
21211 int
21212 main ()
21213 {
21214 float f; std::isinf(f)}
21215   ;
21216   return 0;
21217 }
21218 _ACEOF
21219 rm -f conftest.$ac_objext
21220 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21227   ac_status=$?
21228   grep -v '^ *+' conftest.er1 >conftest.err
21229   rm -f conftest.er1
21230   cat conftest.err >&5
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); } &&
21233          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21234   { (case "(($ac_try" in
21235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236   *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239   (eval "$ac_try") 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); }; } &&
21243          { ac_try='test -s conftest.$ac_objext'
21244   { (case "(($ac_try" in
21245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246   *) ac_try_echo=$ac_try;;
21247 esac
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249   (eval "$ac_try") 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); }; }; then
21253   ac_cv_func_std_isinf_in_cmath=yes
21254 else
21255   echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21257
21258         ac_cv_func_std_isinf_in_cmath=no
21259 fi
21260
21261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21262   ac_ext=c
21263 ac_cpp='$CPP $CPPFLAGS'
21264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21267
21268 fi
21269 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21270 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21271
21272 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21273
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_STD_ISINF_IN_CMATH 1
21276 _ACEOF
21277
21278 fi
21279
21280 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21281 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21282 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21283   echo $ECHO_N "(cached) $ECHO_C" >&6
21284 else
21285   ac_ext=cpp
21286 ac_cpp='$CXXCPP $CPPFLAGS'
21287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21290
21291    cat >conftest.$ac_ext <<_ACEOF
21292 /* confdefs.h.  */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h.  */
21297 #include <ieeefp.h>
21298 int
21299 main ()
21300 {
21301 float f; finite(f);
21302   ;
21303   return 0;
21304 }
21305 _ACEOF
21306 rm -f conftest.$ac_objext
21307 if { (ac_try="$ac_compile"
21308 case "(($ac_try" in
21309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310   *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313   (eval "$ac_compile") 2>conftest.er1
21314   ac_status=$?
21315   grep -v '^ *+' conftest.er1 >conftest.err
21316   rm -f conftest.er1
21317   cat conftest.err >&5
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); } &&
21320          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21321   { (case "(($ac_try" in
21322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323   *) ac_try_echo=$ac_try;;
21324 esac
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326   (eval "$ac_try") 2>&5
21327   ac_status=$?
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); }; } &&
21330          { ac_try='test -s conftest.$ac_objext'
21331   { (case "(($ac_try" in
21332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333   *) ac_try_echo=$ac_try;;
21334 esac
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336   (eval "$ac_try") 2>&5
21337   ac_status=$?
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); }; }; then
21340   ac_cv_func_finite_in_ieeefp_h=yes
21341 else
21342   echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345         ac_cv_func_finite_in_ieeefp_h=no
21346 fi
21347
21348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21349   ac_ext=c
21350 ac_cpp='$CPP $CPPFLAGS'
21351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21354
21355 fi
21356 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21357 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21358
21359 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21360
21361 cat >>confdefs.h <<\_ACEOF
21362 #define HAVE_FINITE_IN_IEEEFP_H 1
21363 _ACEOF
21364
21365 fi
21366
21367
21368
21369 if test "$llvm_cv_platform_type" = "Unix" ; then
21370
21371
21372 for ac_header in stdlib.h unistd.h
21373 do
21374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21376   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21379   echo $ECHO_N "(cached) $ECHO_C" >&6
21380 fi
21381 ac_res=`eval echo '${'$as_ac_Header'}'`
21382                { echo "$as_me:$LINENO: result: $ac_res" >&5
21383 echo "${ECHO_T}$ac_res" >&6; }
21384 else
21385   # Is the header compilable?
21386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21388 cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h.  */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h.  */
21394 $ac_includes_default
21395 #include <$ac_header>
21396 _ACEOF
21397 rm -f conftest.$ac_objext
21398 if { (ac_try="$ac_compile"
21399 case "(($ac_try" in
21400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401   *) ac_try_echo=$ac_try;;
21402 esac
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404   (eval "$ac_compile") 2>conftest.er1
21405   ac_status=$?
21406   grep -v '^ *+' conftest.er1 >conftest.err
21407   rm -f conftest.er1
21408   cat conftest.err >&5
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); } &&
21411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21412   { (case "(($ac_try" in
21413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414   *) ac_try_echo=$ac_try;;
21415 esac
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417   (eval "$ac_try") 2>&5
21418   ac_status=$?
21419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); }; } &&
21421          { ac_try='test -s conftest.$ac_objext'
21422   { (case "(($ac_try" in
21423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424   *) ac_try_echo=$ac_try;;
21425 esac
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427   (eval "$ac_try") 2>&5
21428   ac_status=$?
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); }; }; then
21431   ac_header_compiler=yes
21432 else
21433   echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21435
21436         ac_header_compiler=no
21437 fi
21438
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21441 echo "${ECHO_T}$ac_header_compiler" >&6; }
21442
21443 # Is the header present?
21444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h.  */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h.  */
21452 #include <$ac_header>
21453 _ACEOF
21454 if { (ac_try="$ac_cpp conftest.$ac_ext"
21455 case "(($ac_try" in
21456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457   *) ac_try_echo=$ac_try;;
21458 esac
21459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21461   ac_status=$?
21462   grep -v '^ *+' conftest.er1 >conftest.err
21463   rm -f conftest.er1
21464   cat conftest.err >&5
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); } >/dev/null; then
21467   if test -s conftest.err; then
21468     ac_cpp_err=$ac_c_preproc_warn_flag
21469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21470   else
21471     ac_cpp_err=
21472   fi
21473 else
21474   ac_cpp_err=yes
21475 fi
21476 if test -z "$ac_cpp_err"; then
21477   ac_header_preproc=yes
21478 else
21479   echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21481
21482   ac_header_preproc=no
21483 fi
21484
21485 rm -f conftest.err conftest.$ac_ext
21486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21487 echo "${ECHO_T}$ac_header_preproc" >&6; }
21488
21489 # So?  What about this header?
21490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21491   yes:no: )
21492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21496     ac_header_preproc=yes
21497     ;;
21498   no:yes:* )
21499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21511     ( cat <<\_ASBOX
21512 ## ----------------------------------- ##
21513 ## Report this to llvmbugs@cs.uiuc.edu ##
21514 ## ----------------------------------- ##
21515 _ASBOX
21516      ) | sed "s/^/$as_me: WARNING:     /" >&2
21517     ;;
21518 esac
21519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21522   echo $ECHO_N "(cached) $ECHO_C" >&6
21523 else
21524   eval "$as_ac_Header=\$ac_header_preproc"
21525 fi
21526 ac_res=`eval echo '${'$as_ac_Header'}'`
21527                { echo "$as_me:$LINENO: result: $ac_res" >&5
21528 echo "${ECHO_T}$ac_res" >&6; }
21529
21530 fi
21531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21532   cat >>confdefs.h <<_ACEOF
21533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21534 _ACEOF
21535
21536 fi
21537
21538 done
21539
21540
21541 for ac_func in getpagesize
21542 do
21543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21547   echo $ECHO_N "(cached) $ECHO_C" >&6
21548 else
21549   cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21557 #define $ac_func innocuous_$ac_func
21558
21559 /* System header to define __stub macros and hopefully few prototypes,
21560     which can conflict with char $ac_func (); below.
21561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21562     <limits.h> exists even on freestanding compilers.  */
21563
21564 #ifdef __STDC__
21565 # include <limits.h>
21566 #else
21567 # include <assert.h>
21568 #endif
21569
21570 #undef $ac_func
21571
21572 /* Override any GCC internal prototype to avoid an error.
21573    Use char because int might match the return type of a GCC
21574    builtin and then its argument prototype would still apply.  */
21575 #ifdef __cplusplus
21576 extern "C"
21577 #endif
21578 char $ac_func ();
21579 /* The GNU C library defines this for functions which it implements
21580     to always fail with ENOSYS.  Some functions are actually named
21581     something starting with __ and the normal name is an alias.  */
21582 #if defined __stub_$ac_func || defined __stub___$ac_func
21583 choke me
21584 #endif
21585
21586 int
21587 main ()
21588 {
21589 return $ac_func ();
21590   ;
21591   return 0;
21592 }
21593 _ACEOF
21594 rm -f conftest.$ac_objext conftest$ac_exeext
21595 if { (ac_try="$ac_link"
21596 case "(($ac_try" in
21597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598   *) ac_try_echo=$ac_try;;
21599 esac
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601   (eval "$ac_link") 2>conftest.er1
21602   ac_status=$?
21603   grep -v '^ *+' conftest.er1 >conftest.err
21604   rm -f conftest.er1
21605   cat conftest.err >&5
21606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607   (exit $ac_status); } &&
21608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21609   { (case "(($ac_try" in
21610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611   *) ac_try_echo=$ac_try;;
21612 esac
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614   (eval "$ac_try") 2>&5
21615   ac_status=$?
21616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); }; } &&
21618          { ac_try='test -s conftest$ac_exeext'
21619   { (case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_try") 2>&5
21625   ac_status=$?
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); }; }; then
21628   eval "$as_ac_var=yes"
21629 else
21630   echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21632
21633         eval "$as_ac_var=no"
21634 fi
21635
21636 rm -f core conftest.err conftest.$ac_objext \
21637       conftest$ac_exeext conftest.$ac_ext
21638 fi
21639 ac_res=`eval echo '${'$as_ac_var'}'`
21640                { echo "$as_me:$LINENO: result: $ac_res" >&5
21641 echo "${ECHO_T}$ac_res" >&6; }
21642 if test `eval echo '${'$as_ac_var'}'` = yes; then
21643   cat >>confdefs.h <<_ACEOF
21644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21645 _ACEOF
21646
21647 fi
21648 done
21649
21650 { echo "$as_me:$LINENO: checking for working mmap" >&5
21651 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21652 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21653   echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655   if test "$cross_compiling" = yes; then
21656   ac_cv_func_mmap_fixed_mapped=no
21657 else
21658   cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h.  */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h.  */
21664 $ac_includes_default
21665 /* malloc might have been renamed as rpl_malloc. */
21666 #undef malloc
21667
21668 /* Thanks to Mike Haertel and Jim Avera for this test.
21669    Here is a matrix of mmap possibilities:
21670         mmap private not fixed
21671         mmap private fixed at somewhere currently unmapped
21672         mmap private fixed at somewhere already mapped
21673         mmap shared not fixed
21674         mmap shared fixed at somewhere currently unmapped
21675         mmap shared fixed at somewhere already mapped
21676    For private mappings, we should verify that changes cannot be read()
21677    back from the file, nor mmap's back from the file at a different
21678    address.  (There have been systems where private was not correctly
21679    implemented like the infamous i386 svr4.0, and systems where the
21680    VM page cache was not coherent with the file system buffer cache
21681    like early versions of FreeBSD and possibly contemporary NetBSD.)
21682    For shared mappings, we should conversely verify that changes get
21683    propagated back to all the places they're supposed to be.
21684
21685    Grep wants private fixed already mapped.
21686    The main things grep needs to know about mmap are:
21687    * does it exist and is it safe to write into the mmap'd area
21688    * how to use it (BSD variants)  */
21689
21690 #include <fcntl.h>
21691 #include <sys/mman.h>
21692
21693 #if !STDC_HEADERS && !HAVE_STDLIB_H
21694 char *malloc ();
21695 #endif
21696
21697 /* This mess was copied from the GNU getpagesize.h.  */
21698 #if !HAVE_GETPAGESIZE
21699 /* Assume that all systems that can run configure have sys/param.h.  */
21700 # if !HAVE_SYS_PARAM_H
21701 #  define HAVE_SYS_PARAM_H 1
21702 # endif
21703
21704 # ifdef _SC_PAGESIZE
21705 #  define getpagesize() sysconf(_SC_PAGESIZE)
21706 # else /* no _SC_PAGESIZE */
21707 #  if HAVE_SYS_PARAM_H
21708 #   include <sys/param.h>
21709 #   ifdef EXEC_PAGESIZE
21710 #    define getpagesize() EXEC_PAGESIZE
21711 #   else /* no EXEC_PAGESIZE */
21712 #    ifdef NBPG
21713 #     define getpagesize() NBPG * CLSIZE
21714 #     ifndef CLSIZE
21715 #      define CLSIZE 1
21716 #     endif /* no CLSIZE */
21717 #    else /* no NBPG */
21718 #     ifdef NBPC
21719 #      define getpagesize() NBPC
21720 #     else /* no NBPC */
21721 #      ifdef PAGESIZE
21722 #       define getpagesize() PAGESIZE
21723 #      endif /* PAGESIZE */
21724 #     endif /* no NBPC */
21725 #    endif /* no NBPG */
21726 #   endif /* no EXEC_PAGESIZE */
21727 #  else /* no HAVE_SYS_PARAM_H */
21728 #   define getpagesize() 8192   /* punt totally */
21729 #  endif /* no HAVE_SYS_PARAM_H */
21730 # endif /* no _SC_PAGESIZE */
21731
21732 #endif /* no HAVE_GETPAGESIZE */
21733
21734 int
21735 main ()
21736 {
21737   char *data, *data2, *data3;
21738   int i, pagesize;
21739   int fd;
21740
21741   pagesize = getpagesize ();
21742
21743   /* First, make a file with some known garbage in it. */
21744   data = (char *) malloc (pagesize);
21745   if (!data)
21746     return 1;
21747   for (i = 0; i < pagesize; ++i)
21748     *(data + i) = rand ();
21749   umask (0);
21750   fd = creat ("conftest.mmap", 0600);
21751   if (fd < 0)
21752     return 1;
21753   if (write (fd, data, pagesize) != pagesize)
21754     return 1;
21755   close (fd);
21756
21757   /* Next, try to mmap the file at a fixed address which already has
21758      something else allocated at it.  If we can, also make sure that
21759      we see the same garbage.  */
21760   fd = open ("conftest.mmap", O_RDWR);
21761   if (fd < 0)
21762     return 1;
21763   data2 = (char *) malloc (2 * pagesize);
21764   if (!data2)
21765     return 1;
21766   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21767   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21768                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21769     return 1;
21770   for (i = 0; i < pagesize; ++i)
21771     if (*(data + i) != *(data2 + i))
21772       return 1;
21773
21774   /* Finally, make sure that changes to the mapped area do not
21775      percolate back to the file as seen by read().  (This is a bug on
21776      some variants of i386 svr4.0.)  */
21777   for (i = 0; i < pagesize; ++i)
21778     *(data2 + i) = *(data2 + i) + 1;
21779   data3 = (char *) malloc (pagesize);
21780   if (!data3)
21781     return 1;
21782   if (read (fd, data3, pagesize) != pagesize)
21783     return 1;
21784   for (i = 0; i < pagesize; ++i)
21785     if (*(data + i) != *(data3 + i))
21786       return 1;
21787   close (fd);
21788   return 0;
21789 }
21790 _ACEOF
21791 rm -f conftest$ac_exeext
21792 if { (ac_try="$ac_link"
21793 case "(($ac_try" in
21794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795   *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798   (eval "$ac_link") 2>&5
21799   ac_status=$?
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21802   { (case "(($ac_try" in
21803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804   *) ac_try_echo=$ac_try;;
21805 esac
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807   (eval "$ac_try") 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; }; then
21811   ac_cv_func_mmap_fixed_mapped=yes
21812 else
21813   echo "$as_me: program exited with status $ac_status" >&5
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21816
21817 ( exit $ac_status )
21818 ac_cv_func_mmap_fixed_mapped=no
21819 fi
21820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21821 fi
21822
21823
21824 fi
21825 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21826 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21828
21829 cat >>confdefs.h <<\_ACEOF
21830 #define HAVE_MMAP 1
21831 _ACEOF
21832
21833 fi
21834 rm -f conftest.mmap
21835
21836   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21837 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21838 if test "${ac_cv_func_mmap_file+set}" = set; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841    ac_ext=c
21842 ac_cpp='$CPP $CPPFLAGS'
21843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21846
21847   if test "$cross_compiling" = yes; then
21848   ac_cv_func_mmap_file=no
21849 else
21850   cat >conftest.$ac_ext <<_ACEOF
21851
21852     /* confdefs.h.  */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h.  */
21857
21858 #include <sys/types.h>
21859 #include <sys/mman.h>
21860 #include <fcntl.h>
21861
21862 int
21863 main ()
21864 {
21865
21866   int fd;
21867   fd = creat ("foo",0777);
21868   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21869   unlink ("foo");
21870   return (fd != (int) MAP_FAILED);
21871   ;
21872   return 0;
21873 }
21874 _ACEOF
21875 rm -f conftest$ac_exeext
21876 if { (ac_try="$ac_link"
21877 case "(($ac_try" in
21878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879   *) ac_try_echo=$ac_try;;
21880 esac
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882   (eval "$ac_link") 2>&5
21883   ac_status=$?
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21886   { (case "(($ac_try" in
21887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888   *) ac_try_echo=$ac_try;;
21889 esac
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891   (eval "$ac_try") 2>&5
21892   ac_status=$?
21893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894   (exit $ac_status); }; }; then
21895   ac_cv_func_mmap_file=yes
21896 else
21897   echo "$as_me: program exited with status $ac_status" >&5
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901 ( exit $ac_status )
21902 ac_cv_func_mmap_file=no
21903 fi
21904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21905 fi
21906
21907
21908   ac_ext=c
21909 ac_cpp='$CPP $CPPFLAGS'
21910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21913
21914
21915 fi
21916 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21917 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21918 if test "$ac_cv_func_mmap_file" = yes; then
21919
21920 cat >>confdefs.h <<\_ACEOF
21921 #define HAVE_MMAP_FILE
21922 _ACEOF
21923
21924    MMAP_FILE=yes
21925
21926 fi
21927
21928   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21929 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21930 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21931   echo $ECHO_N "(cached) $ECHO_C" >&6
21932 else
21933   if test "$llvm_cv_os_type" = "Interix" ; then
21934    ac_cv_need_dev_zero_for_mmap=yes
21935  else
21936    ac_cv_need_dev_zero_for_mmap=no
21937  fi
21938
21939 fi
21940 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21941 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21942 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21943
21944 cat >>confdefs.h <<\_ACEOF
21945 #define NEED_DEV_ZERO_FOR_MMAP 1
21946 _ACEOF
21947
21948 fi
21949
21950   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21951   then
21952     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21953 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21954   fi
21955   if test "$ac_cv_func_mmap_file" = "no"
21956   then
21957     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21958 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21959   fi
21960 fi
21961
21962 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21963 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21964 ac_ext=cpp
21965 ac_cpp='$CXXCPP $CPPFLAGS'
21966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21969
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976 int main() {
21977         volatile unsigned long val = 1;
21978         __sync_synchronize();
21979         __sync_val_compare_and_swap(&val, 1, 0);
21980         __sync_add_and_fetch(&val, 1);
21981         __sync_sub_and_fetch(&val, 1);
21982         return 0;
21983       }
21984
21985 _ACEOF
21986 rm -f conftest.$ac_objext conftest$ac_exeext
21987 if { (ac_try="$ac_link"
21988 case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993   (eval "$ac_link") 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } &&
22000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22001   { (case "(($ac_try" in
22002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003   *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006   (eval "$ac_try") 2>&5
22007   ac_status=$?
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); }; } &&
22010          { ac_try='test -s conftest$ac_exeext'
22011   { (case "(($ac_try" in
22012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013   *) ac_try_echo=$ac_try;;
22014 esac
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016   (eval "$ac_try") 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; }; then
22020   ac_ext=c
22021 ac_cpp='$CPP $CPPFLAGS'
22022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22025
22026   { echo "$as_me:$LINENO: result: yes" >&5
22027 echo "${ECHO_T}yes" >&6; }
22028
22029 cat >>confdefs.h <<\_ACEOF
22030 #define LLVM_MULTITHREADED 1
22031 _ACEOF
22032
22033 else
22034   echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037         { echo "$as_me:$LINENO: result: no" >&5
22038 echo "${ECHO_T}no" >&6; }
22039
22040 cat >>confdefs.h <<\_ACEOF
22041 #define LLVM_MULTITHREADED 0
22042 _ACEOF
22043
22044   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22045 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22046 fi
22047
22048 rm -f core conftest.err conftest.$ac_objext \
22049       conftest$ac_exeext conftest.$ac_ext
22050
22051
22052 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22053   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22054 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22055 if test "${llvm_cv_linux_mixed+set}" = set; then
22056   echo $ECHO_N "(cached) $ECHO_C" >&6
22057 else
22058    ac_ext=c
22059 ac_cpp='$CPP $CPPFLAGS'
22060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22063
22064   cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h.  */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h.  */
22070 #ifndef __x86_64__
22071        error: Not x86-64 even if uname says so!
22072       #endif
22073
22074 int
22075 main ()
22076 {
22077
22078   ;
22079   return 0;
22080 }
22081 _ACEOF
22082 rm -f conftest.$ac_objext
22083 if { (ac_try="$ac_compile"
22084 case "(($ac_try" in
22085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086   *) ac_try_echo=$ac_try;;
22087 esac
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089   (eval "$ac_compile") 2>conftest.er1
22090   ac_status=$?
22091   grep -v '^ *+' conftest.er1 >conftest.err
22092   rm -f conftest.er1
22093   cat conftest.err >&5
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } &&
22096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22097   { (case "(($ac_try" in
22098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099   *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102   (eval "$ac_try") 2>&5
22103   ac_status=$?
22104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105   (exit $ac_status); }; } &&
22106          { ac_try='test -s conftest.$ac_objext'
22107   { (case "(($ac_try" in
22108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109   *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112   (eval "$ac_try") 2>&5
22113   ac_status=$?
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); }; }; then
22116   llvm_cv_linux_mixed=no
22117 else
22118   echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22120
22121         llvm_cv_linux_mixed=yes
22122 fi
22123
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125   ac_ext=c
22126 ac_cpp='$CPP $CPPFLAGS'
22127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22130
22131
22132 fi
22133 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22134 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22135
22136   if test "$llvm_cv_linux_mixed" = "yes"; then
22137     llvm_cv_target_arch="x86"
22138     ARCH="x86"
22139   fi
22140 fi
22141
22142
22143 for ac_func in __dso_handle
22144 do
22145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22149   echo $ECHO_N "(cached) $ECHO_C" >&6
22150 else
22151   cat >conftest.$ac_ext <<_ACEOF
22152 /* confdefs.h.  */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h.  */
22157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22159 #define $ac_func innocuous_$ac_func
22160
22161 /* System header to define __stub macros and hopefully few prototypes,
22162     which can conflict with char $ac_func (); below.
22163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22164     <limits.h> exists even on freestanding compilers.  */
22165
22166 #ifdef __STDC__
22167 # include <limits.h>
22168 #else
22169 # include <assert.h>
22170 #endif
22171
22172 #undef $ac_func
22173
22174 /* Override any GCC internal prototype to avoid an error.
22175    Use char because int might match the return type of a GCC
22176    builtin and then its argument prototype would still apply.  */
22177 #ifdef __cplusplus
22178 extern "C"
22179 #endif
22180 char $ac_func ();
22181 /* The GNU C library defines this for functions which it implements
22182     to always fail with ENOSYS.  Some functions are actually named
22183     something starting with __ and the normal name is an alias.  */
22184 #if defined __stub_$ac_func || defined __stub___$ac_func
22185 choke me
22186 #endif
22187
22188 int
22189 main ()
22190 {
22191 return $ac_func ();
22192   ;
22193   return 0;
22194 }
22195 _ACEOF
22196 rm -f conftest.$ac_objext conftest$ac_exeext
22197 if { (ac_try="$ac_link"
22198 case "(($ac_try" in
22199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200   *) ac_try_echo=$ac_try;;
22201 esac
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203   (eval "$ac_link") 2>conftest.er1
22204   ac_status=$?
22205   grep -v '^ *+' conftest.er1 >conftest.err
22206   rm -f conftest.er1
22207   cat conftest.err >&5
22208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209   (exit $ac_status); } &&
22210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22211   { (case "(($ac_try" in
22212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213   *) ac_try_echo=$ac_try;;
22214 esac
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216   (eval "$ac_try") 2>&5
22217   ac_status=$?
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); }; } &&
22220          { ac_try='test -s conftest$ac_exeext'
22221   { (case "(($ac_try" in
22222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223   *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226   (eval "$ac_try") 2>&5
22227   ac_status=$?
22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); }; }; then
22230   eval "$as_ac_var=yes"
22231 else
22232   echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235         eval "$as_ac_var=no"
22236 fi
22237
22238 rm -f core conftest.err conftest.$ac_objext \
22239       conftest$ac_exeext conftest.$ac_ext
22240 fi
22241 ac_res=`eval echo '${'$as_ac_var'}'`
22242                { echo "$as_me:$LINENO: result: $ac_res" >&5
22243 echo "${ECHO_T}$ac_res" >&6; }
22244 if test `eval echo '${'$as_ac_var'}'` = yes; then
22245   cat >>confdefs.h <<_ACEOF
22246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22247 _ACEOF
22248
22249 fi
22250 done
22251
22252
22253 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22254 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22255 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22256   echo $ECHO_N "(cached) $ECHO_C" >&6
22257 else
22258   llvm_cv_llvmgcc_dragonegg="no"
22259 if test -n "$LLVMGCC" ; then
22260   cp /dev/null conftest.c
22261   $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22262   if test $? -eq 0 ; then
22263     llvm_cv_llvmgcc_dragonegg="yes"
22264   fi
22265   rm conftest.c
22266 fi
22267 fi
22268 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22269 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22270
22271 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22272   LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22273   LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22274 else
22275   LLVMCC_EMITIR_FLAG="-emit-llvm"
22276   LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22277 fi
22278
22279
22280
22281 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22282 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22283 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22284   echo $ECHO_N "(cached) $ECHO_C" >&6
22285 else
22286   llvm_cv_llvmgcc_sanity="no"
22287 if test -n "$LLVMGCC" ; then
22288   cp /dev/null conftest.c
22289   $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22290       grep 'target datalayout =' > /dev/null 2>&1
22291   if test $? -eq 0 ; then
22292     llvm_cv_llvmgcc_sanity="yes"
22293   fi
22294   rm conftest.c
22295 fi
22296 fi
22297 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22298 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22299
22300 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22301   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22302 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22303   llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22304   LLVMCC1=$llvmcc1path
22305
22306   llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22307   LLVMCC1PLUS=$llvmcc1pluspath
22308
22309   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22310   LLVMGCCDIR=$llvmgccdir
22311
22312   llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22313   LLVMGCC_LANGS=$llvmgcclangs
22314
22315   LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22316
22317
22318   { echo "$as_me:$LINENO: result: ok" >&5
22319 echo "${ECHO_T}ok" >&6; }
22320 fi
22321
22322 SHLIBEXT=$libltdl_cv_shlibext
22323
22324
22325 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22326
22327
22328 # Translate the various configuration directories and other basic
22329 # information into substitutions that will end up in Makefile.config.in
22330 # that these configured values can be used by the makefiles
22331 if test "${prefix}" = "NONE" ; then
22332   prefix="/usr/local"
22333 fi
22334 eval LLVM_PREFIX="${prefix}";
22335 eval LLVM_BINDIR="${prefix}/bin";
22336 eval LLVM_LIBDIR="${prefix}/lib";
22337 eval LLVM_DATADIR="${prefix}/share/llvm";
22338 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22339 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22340 eval LLVM_INCLUDEDIR="${prefix}/include";
22341 eval LLVM_INFODIR="${prefix}/info";
22342 eval LLVM_MANDIR="${prefix}/man";
22343 LLVM_CONFIGTIME=`date`
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355 # Place the various directores into the config.h file as #defines so that we
22356 # can know about the installation paths within LLVM.
22357
22358 cat >>confdefs.h <<_ACEOF
22359 #define LLVM_PREFIX "$LLVM_PREFIX"
22360 _ACEOF
22361
22362
22363 cat >>confdefs.h <<_ACEOF
22364 #define LLVM_BINDIR "$LLVM_BINDIR"
22365 _ACEOF
22366
22367
22368 cat >>confdefs.h <<_ACEOF
22369 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22370 _ACEOF
22371
22372
22373 cat >>confdefs.h <<_ACEOF
22374 #define LLVM_DATADIR "$LLVM_DATADIR"
22375 _ACEOF
22376
22377
22378 cat >>confdefs.h <<_ACEOF
22379 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22380 _ACEOF
22381
22382
22383 cat >>confdefs.h <<_ACEOF
22384 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22385 _ACEOF
22386
22387
22388 cat >>confdefs.h <<_ACEOF
22389 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22390 _ACEOF
22391
22392
22393 cat >>confdefs.h <<_ACEOF
22394 #define LLVM_INFODIR "$LLVM_INFODIR"
22395 _ACEOF
22396
22397
22398 cat >>confdefs.h <<_ACEOF
22399 #define LLVM_MANDIR "$LLVM_MANDIR"
22400 _ACEOF
22401
22402
22403 cat >>confdefs.h <<_ACEOF
22404 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22405 _ACEOF
22406
22407
22408 cat >>confdefs.h <<_ACEOF
22409 #define LLVM_HOSTTRIPLE "$host"
22410 _ACEOF
22411
22412
22413 # Determine which bindings to build.
22414 if test "$BINDINGS_TO_BUILD" = auto ; then
22415   BINDINGS_TO_BUILD=""
22416   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22417     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22418   fi
22419 fi
22420 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22421
22422
22423 # This isn't really configurey, but it avoids having to repeat the list in
22424 # other files.
22425 ALL_BINDINGS=ocaml
22426
22427
22428 # Do any work necessary to ensure that bindings have what they need.
22429 binding_prereqs_failed=0
22430 for a_binding in $BINDINGS_TO_BUILD ; do
22431   case "$a_binding" in
22432   ocaml)
22433     if test "x$OCAMLC" = x ; then
22434       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22435 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22436       binding_prereqs_failed=1
22437     fi
22438     if test "x$OCAMLDEP" = x ; then
22439       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22440 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22441       binding_prereqs_failed=1
22442     fi
22443     if test "x$OCAMLOPT" = x ; then
22444       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22445 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22446           fi
22447     if test "x$with_ocaml_libdir" != xauto ; then
22448       OCAML_LIBDIR=$with_ocaml_libdir
22449
22450     else
22451       ocaml_stdlib="`"$OCAMLC" -where`"
22452       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22453       then
22454         # ocaml stdlib is beneath our prefix; use stdlib
22455         OCAML_LIBDIR=$ocaml_stdlib
22456
22457       else
22458         # ocaml stdlib is outside our prefix; use libdir/ocaml
22459         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22460
22461       fi
22462     fi
22463     ;;
22464   esac
22465 done
22466 if test "$binding_prereqs_failed" = 1 ; then
22467   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22468 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22469    { (exit 1); exit 1; }; }
22470 fi
22471
22472 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22473 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22474 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22475   echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477    ac_ext=cpp
22478 ac_cpp='$CXXCPP $CPPFLAGS'
22479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22482
22483   oldcxxflags="$CXXFLAGS"
22484   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22485   cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h.  */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h.  */
22491
22492 int
22493 main ()
22494 {
22495
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 rm -f conftest.$ac_objext
22501 if { (ac_try="$ac_compile"
22502 case "(($ac_try" in
22503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504   *) ac_try_echo=$ac_try;;
22505 esac
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507   (eval "$ac_compile") 2>conftest.er1
22508   ac_status=$?
22509   grep -v '^ *+' conftest.er1 >conftest.err
22510   rm -f conftest.er1
22511   cat conftest.err >&5
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); } &&
22514          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22515   { (case "(($ac_try" in
22516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517   *) ac_try_echo=$ac_try;;
22518 esac
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520   (eval "$ac_try") 2>&5
22521   ac_status=$?
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); }; } &&
22524          { ac_try='test -s conftest.$ac_objext'
22525   { (case "(($ac_try" in
22526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527   *) ac_try_echo=$ac_try;;
22528 esac
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530   (eval "$ac_try") 2>&5
22531   ac_status=$?
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); }; }; then
22534   llvm_cv_cxx_visibility_inlines_hidden=yes
22535 else
22536   echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22538
22539         llvm_cv_cxx_visibility_inlines_hidden=no
22540 fi
22541
22542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22543   CXXFLAGS="$oldcxxflags"
22544   ac_ext=c
22545 ac_cpp='$CPP $CPPFLAGS'
22546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22549
22550
22551 fi
22552 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22553 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22554 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22555   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22556
22557 else
22558   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22559
22560 fi
22561
22562
22563 if test "$llvm_cv_link_use_r" = "yes" ; then
22564   RPATH="-Wl,-R"
22565 else
22566   RPATH="-Wl,-rpath"
22567 fi
22568
22569
22570 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22571   RDYNAMIC="-Wl,-export-dynamic"
22572 else
22573   RDYNAMIC=""
22574 fi
22575
22576
22577
22578 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22579
22580
22581
22582
22583
22584
22585 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22586
22587 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22588
22589 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22590
22591 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22592
22593 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22594
22595
22596 ac_config_files="$ac_config_files Makefile.config"
22597
22598
22599 ac_config_files="$ac_config_files llvm.spec"
22600
22601
22602 ac_config_files="$ac_config_files docs/doxygen.cfg"
22603
22604 if test -f ${srcdir}/tools/clang/README.txt; then
22605   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22606
22607 fi
22608
22609 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22610
22611
22612 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22613
22614
22615 ac_config_commands="$ac_config_commands setup"
22616
22617 ac_config_commands="$ac_config_commands Makefile"
22618
22619
22620 ac_config_commands="$ac_config_commands Makefile.common"
22621
22622
22623 ac_config_commands="$ac_config_commands examples/Makefile"
22624
22625
22626 ac_config_commands="$ac_config_commands lib/Makefile"
22627
22628
22629 ac_config_commands="$ac_config_commands runtime/Makefile"
22630
22631
22632 ac_config_commands="$ac_config_commands test/Makefile"
22633
22634
22635 ac_config_commands="$ac_config_commands test/Makefile.tests"
22636
22637
22638 ac_config_commands="$ac_config_commands unittests/Makefile"
22639
22640
22641 ac_config_commands="$ac_config_commands tools/Makefile"
22642
22643
22644 ac_config_commands="$ac_config_commands utils/Makefile"
22645
22646
22647 ac_config_commands="$ac_config_commands projects/Makefile"
22648
22649
22650 ac_config_commands="$ac_config_commands bindings/Makefile"
22651
22652
22653 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22654
22655
22656
22657 cat >confcache <<\_ACEOF
22658 # This file is a shell script that caches the results of configure
22659 # tests run on this system so they can be shared between configure
22660 # scripts and configure runs, see configure's option --config-cache.
22661 # It is not useful on other systems.  If it contains results you don't
22662 # want to keep, you may remove or edit it.
22663 #
22664 # config.status only pays attention to the cache file if you give it
22665 # the --recheck option to rerun configure.
22666 #
22667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22669 # following values.
22670
22671 _ACEOF
22672
22673 # The following way of writing the cache mishandles newlines in values,
22674 # but we know of no workaround that is simple, portable, and efficient.
22675 # So, we kill variables containing newlines.
22676 # Ultrix sh set writes to stderr and can't be redirected directly,
22677 # and sets the high bit in the cache file unless we assign to the vars.
22678 (
22679   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22680     eval ac_val=\$$ac_var
22681     case $ac_val in #(
22682     *${as_nl}*)
22683       case $ac_var in #(
22684       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22686       esac
22687       case $ac_var in #(
22688       _ | IFS | as_nl) ;; #(
22689       *) $as_unset $ac_var ;;
22690       esac ;;
22691     esac
22692   done
22693
22694   (set) 2>&1 |
22695     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22696     *${as_nl}ac_space=\ *)
22697       # `set' does not quote correctly, so add quotes (double-quote
22698       # substitution turns \\\\ into \\, and sed turns \\ into \).
22699       sed -n \
22700         "s/'/'\\\\''/g;
22701           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22702       ;; #(
22703     *)
22704       # `set' quotes correctly as required by POSIX, so do not add quotes.
22705       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22706       ;;
22707     esac |
22708     sort
22709 ) |
22710   sed '
22711      /^ac_cv_env_/b end
22712      t clear
22713      :clear
22714      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22715      t end
22716      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22717      :end' >>confcache
22718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22719   if test -w "$cache_file"; then
22720     test "x$cache_file" != "x/dev/null" &&
22721       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22722 echo "$as_me: updating cache $cache_file" >&6;}
22723     cat confcache >$cache_file
22724   else
22725     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22726 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22727   fi
22728 fi
22729 rm -f confcache
22730
22731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22732 # Let make expand exec_prefix.
22733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22734
22735 DEFS=-DHAVE_CONFIG_H
22736
22737 ac_libobjs=
22738 ac_ltlibobjs=
22739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22740   # 1. Remove the extension, and $U if already installed.
22741   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22742   ac_i=`echo "$ac_i" | sed "$ac_script"`
22743   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22744   #    will be set to the directory where LIBOBJS objects are built.
22745   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22746   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22747 done
22748 LIBOBJS=$ac_libobjs
22749
22750 LTLIBOBJS=$ac_ltlibobjs
22751
22752
22753 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22754   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22755 Usually this means the macro was only invoked conditionally." >&5
22756 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22757 Usually this means the macro was only invoked conditionally." >&2;}
22758    { (exit 1); exit 1; }; }
22759 fi
22760 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22761   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22762 Usually this means the macro was only invoked conditionally." >&5
22763 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22764 Usually this means the macro was only invoked conditionally." >&2;}
22765    { (exit 1); exit 1; }; }
22766 fi
22767
22768 : ${CONFIG_STATUS=./config.status}
22769 ac_clean_files_save=$ac_clean_files
22770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22771 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22772 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22773 cat >$CONFIG_STATUS <<_ACEOF
22774 #! $SHELL
22775 # Generated by $as_me.
22776 # Run this file to recreate the current configuration.
22777 # Compiler output produced by configure, useful for debugging
22778 # configure, is in config.log if it exists.
22779
22780 debug=false
22781 ac_cs_recheck=false
22782 ac_cs_silent=false
22783 SHELL=\${CONFIG_SHELL-$SHELL}
22784 _ACEOF
22785
22786 cat >>$CONFIG_STATUS <<\_ACEOF
22787 ## --------------------- ##
22788 ## M4sh Initialization.  ##
22789 ## --------------------- ##
22790
22791 # Be Bourne compatible
22792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22793   emulate sh
22794   NULLCMD=:
22795   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22796   # is contrary to our usage.  Disable this feature.
22797   alias -g '${1+"$@"}'='"$@"'
22798   setopt NO_GLOB_SUBST
22799 else
22800   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22801 fi
22802 BIN_SH=xpg4; export BIN_SH # for Tru64
22803 DUALCASE=1; export DUALCASE # for MKS sh
22804
22805
22806 # PATH needs CR
22807 # Avoid depending upon Character Ranges.
22808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22811 as_cr_digits='0123456789'
22812 as_cr_alnum=$as_cr_Letters$as_cr_digits
22813
22814 # The user is always right.
22815 if test "${PATH_SEPARATOR+set}" != set; then
22816   echo "#! /bin/sh" >conf$$.sh
22817   echo  "exit 0"   >>conf$$.sh
22818   chmod +x conf$$.sh
22819   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22820     PATH_SEPARATOR=';'
22821   else
22822     PATH_SEPARATOR=:
22823   fi
22824   rm -f conf$$.sh
22825 fi
22826
22827 # Support unset when possible.
22828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22829   as_unset=unset
22830 else
22831   as_unset=false
22832 fi
22833
22834
22835 # IFS
22836 # We need space, tab and new line, in precisely that order.  Quoting is
22837 # there to prevent editors from complaining about space-tab.
22838 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22839 # splitting by setting IFS to empty value.)
22840 as_nl='
22841 '
22842 IFS=" ""        $as_nl"
22843
22844 # Find who we are.  Look in the path if we contain no directory separator.
22845 case $0 in
22846   *[\\/]* ) as_myself=$0 ;;
22847   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22848 for as_dir in $PATH
22849 do
22850   IFS=$as_save_IFS
22851   test -z "$as_dir" && as_dir=.
22852   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22853 done
22854 IFS=$as_save_IFS
22855
22856      ;;
22857 esac
22858 # We did not find ourselves, most probably we were run as `sh COMMAND'
22859 # in which case we are not to be found in the path.
22860 if test "x$as_myself" = x; then
22861   as_myself=$0
22862 fi
22863 if test ! -f "$as_myself"; then
22864   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22865   { (exit 1); exit 1; }
22866 fi
22867
22868 # Work around bugs in pre-3.0 UWIN ksh.
22869 for as_var in ENV MAIL MAILPATH
22870 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22871 done
22872 PS1='$ '
22873 PS2='> '
22874 PS4='+ '
22875
22876 # NLS nuisances.
22877 for as_var in \
22878   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22879   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22880   LC_TELEPHONE LC_TIME
22881 do
22882   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22883     eval $as_var=C; export $as_var
22884   else
22885     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22886   fi
22887 done
22888
22889 # Required to use basename.
22890 if expr a : '\(a\)' >/dev/null 2>&1 &&
22891    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22892   as_expr=expr
22893 else
22894   as_expr=false
22895 fi
22896
22897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22898   as_basename=basename
22899 else
22900   as_basename=false
22901 fi
22902
22903
22904 # Name of the executable.
22905 as_me=`$as_basename -- "$0" ||
22906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22907          X"$0" : 'X\(//\)$' \| \
22908          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22909 echo X/"$0" |
22910     sed '/^.*\/\([^/][^/]*\)\/*$/{
22911             s//\1/
22912             q
22913           }
22914           /^X\/\(\/\/\)$/{
22915             s//\1/
22916             q
22917           }
22918           /^X\/\(\/\).*/{
22919             s//\1/
22920             q
22921           }
22922           s/.*/./; q'`
22923
22924 # CDPATH.
22925 $as_unset CDPATH
22926
22927
22928
22929   as_lineno_1=$LINENO
22930   as_lineno_2=$LINENO
22931   test "x$as_lineno_1" != "x$as_lineno_2" &&
22932   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22933
22934   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22935   # uniformly replaced by the line number.  The first 'sed' inserts a
22936   # line-number line after each line using $LINENO; the second 'sed'
22937   # does the real work.  The second script uses 'N' to pair each
22938   # line-number line with the line containing $LINENO, and appends
22939   # trailing '-' during substitution so that $LINENO is not a special
22940   # case at line end.
22941   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22942   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22943   # E. McMahon (1931-1989) for sed's syntax.  :-)
22944   sed -n '
22945     p
22946     /[$]LINENO/=
22947   ' <$as_myself |
22948     sed '
22949       s/[$]LINENO.*/&-/
22950       t lineno
22951       b
22952       :lineno
22953       N
22954       :loop
22955       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22956       t loop
22957       s/-\n.*//
22958     ' >$as_me.lineno &&
22959   chmod +x "$as_me.lineno" ||
22960     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22961    { (exit 1); exit 1; }; }
22962
22963   # Don't try to exec as it changes $[0], causing all sort of problems
22964   # (the dirname of $[0] is not the place where we might find the
22965   # original and so on.  Autoconf is especially sensitive to this).
22966   . "./$as_me.lineno"
22967   # Exit status is that of the last command.
22968   exit
22969 }
22970
22971
22972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22973   as_dirname=dirname
22974 else
22975   as_dirname=false
22976 fi
22977
22978 ECHO_C= ECHO_N= ECHO_T=
22979 case `echo -n x` in
22980 -n*)
22981   case `echo 'x\c'` in
22982   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22983   *)   ECHO_C='\c';;
22984   esac;;
22985 *)
22986   ECHO_N='-n';;
22987 esac
22988
22989 if expr a : '\(a\)' >/dev/null 2>&1 &&
22990    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22991   as_expr=expr
22992 else
22993   as_expr=false
22994 fi
22995
22996 rm -f conf$$ conf$$.exe conf$$.file
22997 if test -d conf$$.dir; then
22998   rm -f conf$$.dir/conf$$.file
22999 else
23000   rm -f conf$$.dir
23001   mkdir conf$$.dir
23002 fi
23003 echo >conf$$.file
23004 if ln -s conf$$.file conf$$ 2>/dev/null; then
23005   as_ln_s='ln -s'
23006   # ... but there are two gotchas:
23007   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23008   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23009   # In both cases, we have to default to `cp -p'.
23010   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23011     as_ln_s='cp -p'
23012 elif ln conf$$.file conf$$ 2>/dev/null; then
23013   as_ln_s=ln
23014 else
23015   as_ln_s='cp -p'
23016 fi
23017 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23018 rmdir conf$$.dir 2>/dev/null
23019
23020 if mkdir -p . 2>/dev/null; then
23021   as_mkdir_p=:
23022 else
23023   test -d ./-p && rmdir ./-p
23024   as_mkdir_p=false
23025 fi
23026
23027 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23028 # systems may use methods other than mode bits to determine executability.
23029 cat >conf$$.file <<_ASEOF
23030 #! /bin/sh
23031 exit 0
23032 _ASEOF
23033 chmod +x conf$$.file
23034 if test -x conf$$.file >/dev/null 2>&1; then
23035   as_executable_p="test -x"
23036 else
23037   as_executable_p=:
23038 fi
23039 rm -f conf$$.file
23040
23041 # Sed expression to map a string onto a valid CPP name.
23042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23043
23044 # Sed expression to map a string onto a valid variable name.
23045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23046
23047
23048 exec 6>&1
23049
23050 # Save the log message, to keep $[0] and so on meaningful, and to
23051 # report actual input values of CONFIG_FILES etc. instead of their
23052 # values after options handling.
23053 ac_log="
23054 This file was extended by llvm $as_me 3.0svn, which was
23055 generated by GNU Autoconf 2.60.  Invocation command line was
23056
23057   CONFIG_FILES    = $CONFIG_FILES
23058   CONFIG_HEADERS  = $CONFIG_HEADERS
23059   CONFIG_LINKS    = $CONFIG_LINKS
23060   CONFIG_COMMANDS = $CONFIG_COMMANDS
23061   $ $0 $@
23062
23063 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23064 "
23065
23066 _ACEOF
23067
23068 cat >>$CONFIG_STATUS <<_ACEOF
23069 # Files that config.status was made for.
23070 config_files="$ac_config_files"
23071 config_headers="$ac_config_headers"
23072 config_commands="$ac_config_commands"
23073
23074 _ACEOF
23075
23076 cat >>$CONFIG_STATUS <<\_ACEOF
23077 ac_cs_usage="\
23078 \`$as_me' instantiates files from templates according to the
23079 current configuration.
23080
23081 Usage: $0 [OPTIONS] [FILE]...
23082
23083   -h, --help       print this help, then exit
23084   -V, --version    print version number, then exit
23085   -q, --quiet      do not print progress messages
23086   -d, --debug      don't remove temporary files
23087       --recheck    update $as_me by reconfiguring in the same conditions
23088   --file=FILE[:TEMPLATE]
23089                    instantiate the configuration file FILE
23090   --header=FILE[:TEMPLATE]
23091                    instantiate the configuration header FILE
23092
23093 Configuration files:
23094 $config_files
23095
23096 Configuration headers:
23097 $config_headers
23098
23099 Configuration commands:
23100 $config_commands
23101
23102 Report bugs to <bug-autoconf@gnu.org>."
23103
23104 _ACEOF
23105 cat >>$CONFIG_STATUS <<_ACEOF
23106 ac_cs_version="\\
23107 llvm config.status 3.0svn
23108 configured by $0, generated by GNU Autoconf 2.60,
23109   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23110
23111 Copyright (C) 2006 Free Software Foundation, Inc.
23112 This config.status script is free software; the Free Software Foundation
23113 gives unlimited permission to copy, distribute and modify it."
23114
23115 ac_pwd='$ac_pwd'
23116 srcdir='$srcdir'
23117 INSTALL='$INSTALL'
23118 _ACEOF
23119
23120 cat >>$CONFIG_STATUS <<\_ACEOF
23121 # If no file are specified by the user, then we need to provide default
23122 # value.  By we need to know if files were specified by the user.
23123 ac_need_defaults=:
23124 while test $# != 0
23125 do
23126   case $1 in
23127   --*=*)
23128     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23129     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23130     ac_shift=:
23131     ;;
23132   *)
23133     ac_option=$1
23134     ac_optarg=$2
23135     ac_shift=shift
23136     ;;
23137   esac
23138
23139   case $ac_option in
23140   # Handling of the options.
23141   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23142     ac_cs_recheck=: ;;
23143   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23144     echo "$ac_cs_version"; exit ;;
23145   --debug | --debu | --deb | --de | --d | -d )
23146     debug=: ;;
23147   --file | --fil | --fi | --f )
23148     $ac_shift
23149     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23150     ac_need_defaults=false;;
23151   --header | --heade | --head | --hea )
23152     $ac_shift
23153     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23154     ac_need_defaults=false;;
23155   --he | --h)
23156     # Conflict between --help and --header
23157     { echo "$as_me: error: ambiguous option: $1
23158 Try \`$0 --help' for more information." >&2
23159    { (exit 1); exit 1; }; };;
23160   --help | --hel | -h )
23161     echo "$ac_cs_usage"; exit ;;
23162   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23163   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23164     ac_cs_silent=: ;;
23165
23166   # This is an error.
23167   -*) { echo "$as_me: error: unrecognized option: $1
23168 Try \`$0 --help' for more information." >&2
23169    { (exit 1); exit 1; }; } ;;
23170
23171   *) ac_config_targets="$ac_config_targets $1"
23172      ac_need_defaults=false ;;
23173
23174   esac
23175   shift
23176 done
23177
23178 ac_configure_extra_args=
23179
23180 if $ac_cs_silent; then
23181   exec 6>/dev/null
23182   ac_configure_extra_args="$ac_configure_extra_args --silent"
23183 fi
23184
23185 _ACEOF
23186 cat >>$CONFIG_STATUS <<_ACEOF
23187 if \$ac_cs_recheck; then
23188   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23189   CONFIG_SHELL=$SHELL
23190   export CONFIG_SHELL
23191   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23192 fi
23193
23194 _ACEOF
23195 cat >>$CONFIG_STATUS <<\_ACEOF
23196 exec 5>>config.log
23197 {
23198   echo
23199   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23200 ## Running $as_me. ##
23201 _ASBOX
23202   echo "$ac_log"
23203 } >&5
23204
23205 _ACEOF
23206 cat >>$CONFIG_STATUS <<_ACEOF
23207 #
23208 # INIT-COMMANDS
23209 #
23210 llvm_src="${srcdir}"
23211
23212 _ACEOF
23213
23214 cat >>$CONFIG_STATUS <<\_ACEOF
23215
23216 # Handling of arguments.
23217 for ac_config_target in $ac_config_targets
23218 do
23219   case $ac_config_target in
23220     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23221     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23222     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23223     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23224     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23225     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23226     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23227     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23228     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23229     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23230     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23231     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23232     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23233     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23234     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23235     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23236     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23237     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23238     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23239     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23240     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23241     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23242     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23243     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23244     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23245     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23246     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23247
23248   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23249 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23250    { (exit 1); exit 1; }; };;
23251   esac
23252 done
23253
23254
23255 # If the user did not use the arguments to specify the items to instantiate,
23256 # then the envvar interface is used.  Set only those that are not.
23257 # We use the long form for the default assignment because of an extremely
23258 # bizarre bug on SunOS 4.1.3.
23259 if $ac_need_defaults; then
23260   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23261   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23262   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23263 fi
23264
23265 # Have a temporary directory for convenience.  Make it in the build tree
23266 # simply because there is no reason against having it here, and in addition,
23267 # creating and moving files from /tmp can sometimes cause problems.
23268 # Hook for its removal unless debugging.
23269 # Note that there is a small window in which the directory will not be cleaned:
23270 # after its creation but before its name has been assigned to `$tmp'.
23271 $debug ||
23272 {
23273   tmp=
23274   trap 'exit_status=$?
23275   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23276 ' 0
23277   trap '{ (exit 1); exit 1; }' 1 2 13 15
23278 }
23279 # Create a (secure) tmp directory for tmp files.
23280
23281 {
23282   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23283   test -n "$tmp" && test -d "$tmp"
23284 }  ||
23285 {
23286   tmp=./conf$$-$RANDOM
23287   (umask 077 && mkdir "$tmp")
23288 } ||
23289 {
23290    echo "$me: cannot create a temporary directory in ." >&2
23291    { (exit 1); exit 1; }
23292 }
23293
23294 #
23295 # Set up the sed scripts for CONFIG_FILES section.
23296 #
23297
23298 # No need to generate the scripts if there are no CONFIG_FILES.
23299 # This happens for instance when ./config.status config.h
23300 if test -n "$CONFIG_FILES"; then
23301
23302 _ACEOF
23303
23304
23305
23306 ac_delim='%!_!# '
23307 for ac_last_try in false false false false false :; do
23308   cat >conf$$subs.sed <<_ACEOF
23309 SHELL!$SHELL$ac_delim
23310 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23311 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23312 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23313 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23314 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23315 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23316 exec_prefix!$exec_prefix$ac_delim
23317 prefix!$prefix$ac_delim
23318 program_transform_name!$program_transform_name$ac_delim
23319 bindir!$bindir$ac_delim
23320 sbindir!$sbindir$ac_delim
23321 libexecdir!$libexecdir$ac_delim
23322 datarootdir!$datarootdir$ac_delim
23323 datadir!$datadir$ac_delim
23324 sysconfdir!$sysconfdir$ac_delim
23325 sharedstatedir!$sharedstatedir$ac_delim
23326 localstatedir!$localstatedir$ac_delim
23327 includedir!$includedir$ac_delim
23328 oldincludedir!$oldincludedir$ac_delim
23329 docdir!$docdir$ac_delim
23330 infodir!$infodir$ac_delim
23331 htmldir!$htmldir$ac_delim
23332 dvidir!$dvidir$ac_delim
23333 pdfdir!$pdfdir$ac_delim
23334 psdir!$psdir$ac_delim
23335 libdir!$libdir$ac_delim
23336 localedir!$localedir$ac_delim
23337 mandir!$mandir$ac_delim
23338 DEFS!$DEFS$ac_delim
23339 ECHO_C!$ECHO_C$ac_delim
23340 ECHO_N!$ECHO_N$ac_delim
23341 ECHO_T!$ECHO_T$ac_delim
23342 LIBS!$LIBS$ac_delim
23343 build_alias!$build_alias$ac_delim
23344 host_alias!$host_alias$ac_delim
23345 target_alias!$target_alias$ac_delim
23346 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23347 subdirs!$subdirs$ac_delim
23348 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23349 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23350 build!$build$ac_delim
23351 build_cpu!$build_cpu$ac_delim
23352 build_vendor!$build_vendor$ac_delim
23353 build_os!$build_os$ac_delim
23354 host!$host$ac_delim
23355 host_cpu!$host_cpu$ac_delim
23356 host_vendor!$host_vendor$ac_delim
23357 host_os!$host_os$ac_delim
23358 target!$target$ac_delim
23359 target_cpu!$target_cpu$ac_delim
23360 target_vendor!$target_vendor$ac_delim
23361 target_os!$target_os$ac_delim
23362 OS!$OS$ac_delim
23363 HOST_OS!$HOST_OS$ac_delim
23364 TARGET_OS!$TARGET_OS$ac_delim
23365 LINKALL!$LINKALL$ac_delim
23366 NOLINKALL!$NOLINKALL$ac_delim
23367 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23368 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23369 ARCH!$ARCH$ac_delim
23370 ENDIAN!$ENDIAN$ac_delim
23371 CC!$CC$ac_delim
23372 CFLAGS!$CFLAGS$ac_delim
23373 LDFLAGS!$LDFLAGS$ac_delim
23374 CPPFLAGS!$CPPFLAGS$ac_delim
23375 ac_ct_CC!$ac_ct_CC$ac_delim
23376 EXEEXT!$EXEEXT$ac_delim
23377 OBJEXT!$OBJEXT$ac_delim
23378 CPP!$CPP$ac_delim
23379 GREP!$GREP$ac_delim
23380 EGREP!$EGREP$ac_delim
23381 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23382 BUILD_CC!$BUILD_CC$ac_delim
23383 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23384 BUILD_CXX!$BUILD_CXX$ac_delim
23385 CVSBUILD!$CVSBUILD$ac_delim
23386 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23387 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23388 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23389 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23390 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23391 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23392 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23393 JIT!$JIT$ac_delim
23394 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23395 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23396 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23397 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23398 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23399 ENABLE_PIC!$ENABLE_PIC$ac_delim
23400 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23401 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23402 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23403 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23404 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23405 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23406 _ACEOF
23407
23408   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23409     break
23410   elif $ac_last_try; then
23411     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23412 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23413    { (exit 1); exit 1; }; }
23414   else
23415     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23416   fi
23417 done
23418
23419 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23420 if test -n "$ac_eof"; then
23421   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23422   ac_eof=`expr $ac_eof + 1`
23423 fi
23424
23425 cat >>$CONFIG_STATUS <<_ACEOF
23426 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23428 _ACEOF
23429 sed '
23430 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23431 s/^/s,@/; s/!/@,|#_!!_#|/
23432 :n
23433 t n
23434 s/'"$ac_delim"'$/,g/; t
23435 s/$/\\/; p
23436 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23437 ' >>$CONFIG_STATUS <conf$$subs.sed
23438 rm -f conf$$subs.sed
23439 cat >>$CONFIG_STATUS <<_ACEOF
23440 CEOF$ac_eof
23441 _ACEOF
23442
23443
23444 ac_delim='%!_!# '
23445 for ac_last_try in false false false false false :; do
23446   cat >conf$$subs.sed <<_ACEOF
23447 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23448 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23449 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23450 CLANGPATH!$CLANGPATH$ac_delim
23451 CLANGXXPATH!$CLANGXXPATH$ac_delim
23452 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23453 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23454 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23455 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23456 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23457 CXX!$CXX$ac_delim
23458 CXXFLAGS!$CXXFLAGS$ac_delim
23459 ac_ct_CXX!$ac_ct_CXX$ac_delim
23460 NM!$NM$ac_delim
23461 ifGNUmake!$ifGNUmake$ac_delim
23462 LN_S!$LN_S$ac_delim
23463 CMP!$CMP$ac_delim
23464 CP!$CP$ac_delim
23465 DATE!$DATE$ac_delim
23466 FIND!$FIND$ac_delim
23467 MKDIR!$MKDIR$ac_delim
23468 MV!$MV$ac_delim
23469 RANLIB!$RANLIB$ac_delim
23470 AR!$AR$ac_delim
23471 RM!$RM$ac_delim
23472 SED!$SED$ac_delim
23473 TAR!$TAR$ac_delim
23474 BINPWD!$BINPWD$ac_delim
23475 GRAPHVIZ!$GRAPHVIZ$ac_delim
23476 DOT!$DOT$ac_delim
23477 FDP!$FDP$ac_delim
23478 NEATO!$NEATO$ac_delim
23479 TWOPI!$TWOPI$ac_delim
23480 CIRCO!$CIRCO$ac_delim
23481 GV!$GV$ac_delim
23482 DOTTY!$DOTTY$ac_delim
23483 XDOT_PY!$XDOT_PY$ac_delim
23484 PERL!$PERL$ac_delim
23485 HAVE_PERL!$HAVE_PERL$ac_delim
23486 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23487 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23488 INSTALL_DATA!$INSTALL_DATA$ac_delim
23489 BZIP2!$BZIP2$ac_delim
23490 CAT!$CAT$ac_delim
23491 DOXYGEN!$DOXYGEN$ac_delim
23492 GROFF!$GROFF$ac_delim
23493 GZIPBIN!$GZIPBIN$ac_delim
23494 POD2HTML!$POD2HTML$ac_delim
23495 POD2MAN!$POD2MAN$ac_delim
23496 PDFROFF!$PDFROFF$ac_delim
23497 RUNTEST!$RUNTEST$ac_delim
23498 TCLSH!$TCLSH$ac_delim
23499 ZIP!$ZIP$ac_delim
23500 OCAMLC!$OCAMLC$ac_delim
23501 OCAMLOPT!$OCAMLOPT$ac_delim
23502 OCAMLDEP!$OCAMLDEP$ac_delim
23503 OCAMLDOC!$OCAMLDOC$ac_delim
23504 GAS!$GAS$ac_delim
23505 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23506 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23507 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23508 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23509 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23510 LIBADD_DL!$LIBADD_DL$ac_delim
23511 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23512 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23513 LLVMGCC!$LLVMGCC$ac_delim
23514 LLVMGXX!$LLVMGXX$ac_delim
23515 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23516 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23517 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23518 USE_UDIS86!$USE_UDIS86$ac_delim
23519 USE_OPROFILE!$USE_OPROFILE$ac_delim
23520 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23521 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23522 MMAP_FILE!$MMAP_FILE$ac_delim
23523 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23524 LLVMCC1!$LLVMCC1$ac_delim
23525 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23526 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23527 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23528 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23529 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23530 SHLIBEXT!$SHLIBEXT$ac_delim
23531 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23532 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23533 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23534 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23535 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23536 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23537 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23538 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23539 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23540 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23541 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23542 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23543 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23544 _ACEOF
23545
23546   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23547     break
23548   elif $ac_last_try; then
23549     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23550 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23551    { (exit 1); exit 1; }; }
23552   else
23553     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23554   fi
23555 done
23556
23557 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23558 if test -n "$ac_eof"; then
23559   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23560   ac_eof=`expr $ac_eof + 1`
23561 fi
23562
23563 cat >>$CONFIG_STATUS <<_ACEOF
23564 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23566 _ACEOF
23567 sed '
23568 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23569 s/^/s,@/; s/!/@,|#_!!_#|/
23570 :n
23571 t n
23572 s/'"$ac_delim"'$/,g/; t
23573 s/$/\\/; p
23574 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23575 ' >>$CONFIG_STATUS <conf$$subs.sed
23576 rm -f conf$$subs.sed
23577 cat >>$CONFIG_STATUS <<_ACEOF
23578 CEOF$ac_eof
23579 _ACEOF
23580
23581
23582 ac_delim='%!_!# '
23583 for ac_last_try in false false false false false :; do
23584   cat >conf$$subs.sed <<_ACEOF
23585 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23586 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23587 RPATH!$RPATH$ac_delim
23588 RDYNAMIC!$RDYNAMIC$ac_delim
23589 LIBOBJS!$LIBOBJS$ac_delim
23590 LTLIBOBJS!$LTLIBOBJS$ac_delim
23591 _ACEOF
23592
23593   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23594     break
23595   elif $ac_last_try; then
23596     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23597 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23598    { (exit 1); exit 1; }; }
23599   else
23600     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23601   fi
23602 done
23603
23604 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23605 if test -n "$ac_eof"; then
23606   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23607   ac_eof=`expr $ac_eof + 1`
23608 fi
23609
23610 cat >>$CONFIG_STATUS <<_ACEOF
23611 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23613 _ACEOF
23614 sed '
23615 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23616 s/^/s,@/; s/!/@,|#_!!_#|/
23617 :n
23618 t n
23619 s/'"$ac_delim"'$/,g/; t
23620 s/$/\\/; p
23621 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23622 ' >>$CONFIG_STATUS <conf$$subs.sed
23623 rm -f conf$$subs.sed
23624 cat >>$CONFIG_STATUS <<_ACEOF
23625 :end
23626 s/|#_!!_#|//g
23627 CEOF$ac_eof
23628 _ACEOF
23629
23630
23631 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23633 # trailing colons and then remove the whole line if VPATH becomes empty
23634 # (actually we leave an empty line to preserve line numbers).
23635 if test "x$srcdir" = x.; then
23636   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23637 s/:*\$(srcdir):*/:/
23638 s/:*\${srcdir}:*/:/
23639 s/:*@srcdir@:*/:/
23640 s/^\([^=]*=[     ]*\):*/\1/
23641 s/:*$//
23642 s/^[^=]*=[       ]*$//
23643 }'
23644 fi
23645
23646 cat >>$CONFIG_STATUS <<\_ACEOF
23647 fi # test -n "$CONFIG_FILES"
23648
23649
23650 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23651 do
23652   case $ac_tag in
23653   :[FHLC]) ac_mode=$ac_tag; continue;;
23654   esac
23655   case $ac_mode$ac_tag in
23656   :[FHL]*:*);;
23657   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23658 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23659    { (exit 1); exit 1; }; };;
23660   :[FH]-) ac_tag=-:-;;
23661   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23662   esac
23663   ac_save_IFS=$IFS
23664   IFS=:
23665   set x $ac_tag
23666   IFS=$ac_save_IFS
23667   shift
23668   ac_file=$1
23669   shift
23670
23671   case $ac_mode in
23672   :L) ac_source=$1;;
23673   :[FH])
23674     ac_file_inputs=
23675     for ac_f
23676     do
23677       case $ac_f in
23678       -) ac_f="$tmp/stdin";;
23679       *) # Look for the file first in the build tree, then in the source tree
23680          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23681          # because $ac_f cannot contain `:'.
23682          test -f "$ac_f" ||
23683            case $ac_f in
23684            [\\/$]*) false;;
23685            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23686            esac ||
23687            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23688 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23689    { (exit 1); exit 1; }; };;
23690       esac
23691       ac_file_inputs="$ac_file_inputs $ac_f"
23692     done
23693
23694     # Let's still pretend it is `configure' which instantiates (i.e., don't
23695     # use $as_me), people would be surprised to read:
23696     #    /* config.h.  Generated by config.status.  */
23697     configure_input="Generated from "`IFS=:
23698           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23699     if test x"$ac_file" != x-; then
23700       configure_input="$ac_file.  $configure_input"
23701       { echo "$as_me:$LINENO: creating $ac_file" >&5
23702 echo "$as_me: creating $ac_file" >&6;}
23703     fi
23704
23705     case $ac_tag in
23706     *:-:* | *:-) cat >"$tmp/stdin";;
23707     esac
23708     ;;
23709   esac
23710
23711   ac_dir=`$as_dirname -- "$ac_file" ||
23712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23713          X"$ac_file" : 'X\(//\)[^/]' \| \
23714          X"$ac_file" : 'X\(//\)$' \| \
23715          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23716 echo X"$ac_file" |
23717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23718             s//\1/
23719             q
23720           }
23721           /^X\(\/\/\)[^/].*/{
23722             s//\1/
23723             q
23724           }
23725           /^X\(\/\/\)$/{
23726             s//\1/
23727             q
23728           }
23729           /^X\(\/\).*/{
23730             s//\1/
23731             q
23732           }
23733           s/.*/./; q'`
23734   { as_dir="$ac_dir"
23735   case $as_dir in #(
23736   -*) as_dir=./$as_dir;;
23737   esac
23738   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23739     as_dirs=
23740     while :; do
23741       case $as_dir in #(
23742       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23743       *) as_qdir=$as_dir;;
23744       esac
23745       as_dirs="'$as_qdir' $as_dirs"
23746       as_dir=`$as_dirname -- "$as_dir" ||
23747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23748          X"$as_dir" : 'X\(//\)[^/]' \| \
23749          X"$as_dir" : 'X\(//\)$' \| \
23750          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23751 echo X"$as_dir" |
23752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23753             s//\1/
23754             q
23755           }
23756           /^X\(\/\/\)[^/].*/{
23757             s//\1/
23758             q
23759           }
23760           /^X\(\/\/\)$/{
23761             s//\1/
23762             q
23763           }
23764           /^X\(\/\).*/{
23765             s//\1/
23766             q
23767           }
23768           s/.*/./; q'`
23769       test -d "$as_dir" && break
23770     done
23771     test -z "$as_dirs" || eval "mkdir $as_dirs"
23772   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23773 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23774    { (exit 1); exit 1; }; }; }
23775   ac_builddir=.
23776
23777 case "$ac_dir" in
23778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23779 *)
23780   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23781   # A ".." for each directory in $ac_dir_suffix.
23782   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23783   case $ac_top_builddir_sub in
23784   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23785   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23786   esac ;;
23787 esac
23788 ac_abs_top_builddir=$ac_pwd
23789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23790 # for backward compatibility:
23791 ac_top_builddir=$ac_top_build_prefix
23792
23793 case $srcdir in
23794   .)  # We are building in place.
23795     ac_srcdir=.
23796     ac_top_srcdir=$ac_top_builddir_sub
23797     ac_abs_top_srcdir=$ac_pwd ;;
23798   [\\/]* | ?:[\\/]* )  # Absolute name.
23799     ac_srcdir=$srcdir$ac_dir_suffix;
23800     ac_top_srcdir=$srcdir
23801     ac_abs_top_srcdir=$srcdir ;;
23802   *) # Relative name.
23803     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23804     ac_top_srcdir=$ac_top_build_prefix$srcdir
23805     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23806 esac
23807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23808
23809
23810   case $ac_mode in
23811   :F)
23812   #
23813   # CONFIG_FILE
23814   #
23815
23816   case $INSTALL in
23817   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23818   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23819   esac
23820 _ACEOF
23821
23822 cat >>$CONFIG_STATUS <<\_ACEOF
23823 # If the template does not know about datarootdir, expand it.
23824 # FIXME: This hack should be removed a few years after 2.60.
23825 ac_datarootdir_hack=; ac_datarootdir_seen=
23826
23827 case `sed -n '/datarootdir/ {
23828   p
23829   q
23830 }
23831 /@datadir@/p
23832 /@docdir@/p
23833 /@infodir@/p
23834 /@localedir@/p
23835 /@mandir@/p
23836 ' $ac_file_inputs` in
23837 *datarootdir*) ac_datarootdir_seen=yes;;
23838 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23839   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23840 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23841 _ACEOF
23842 cat >>$CONFIG_STATUS <<_ACEOF
23843   ac_datarootdir_hack='
23844   s&@datadir@&$datadir&g
23845   s&@docdir@&$docdir&g
23846   s&@infodir@&$infodir&g
23847   s&@localedir@&$localedir&g
23848   s&@mandir@&$mandir&g
23849     s&\\\${datarootdir}&$datarootdir&g' ;;
23850 esac
23851 _ACEOF
23852
23853 # Neutralize VPATH when `$srcdir' = `.'.
23854 # Shell code in configure.ac might set extrasub.
23855 # FIXME: do we really want to maintain this feature?
23856 cat >>$CONFIG_STATUS <<_ACEOF
23857   sed "$ac_vpsub
23858 $extrasub
23859 _ACEOF
23860 cat >>$CONFIG_STATUS <<\_ACEOF
23861 :t
23862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23863 s&@configure_input@&$configure_input&;t t
23864 s&@top_builddir@&$ac_top_builddir_sub&;t t
23865 s&@srcdir@&$ac_srcdir&;t t
23866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23867 s&@top_srcdir@&$ac_top_srcdir&;t t
23868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23869 s&@builddir@&$ac_builddir&;t t
23870 s&@abs_builddir@&$ac_abs_builddir&;t t
23871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23872 s&@INSTALL@&$ac_INSTALL&;t t
23873 $ac_datarootdir_hack
23874 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23875
23876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23877   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23878   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23879   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23880 which seems to be undefined.  Please make sure it is defined." >&5
23881 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23882 which seems to be undefined.  Please make sure it is defined." >&2;}
23883
23884   rm -f "$tmp/stdin"
23885   case $ac_file in
23886   -) cat "$tmp/out"; rm -f "$tmp/out";;
23887   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23888   esac
23889  ;;
23890   :H)
23891   #
23892   # CONFIG_HEADER
23893   #
23894 _ACEOF
23895
23896 # Transform confdefs.h into a sed script `conftest.defines', that
23897 # substitutes the proper values into config.h.in to produce config.h.
23898 rm -f conftest.defines conftest.tail
23899 # First, append a space to every undef/define line, to ease matching.
23900 echo 's/$/ /' >conftest.defines
23901 # Then, protect against being on the right side of a sed subst, or in
23902 # an unquoted here document, in config.status.  If some macros were
23903 # called several times there might be several #defines for the same
23904 # symbol, which is useless.  But do not sort them, since the last
23905 # AC_DEFINE must be honored.
23906 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23907 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23908 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23909 # PARAMS is the parameter list in the macro definition--in most cases, it's
23910 # just an empty string.
23911 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23912 ac_dB='\\)[      (].*,\\1define\\2'
23913 ac_dC=' '
23914 ac_dD=' ,'
23915
23916 uniq confdefs.h |
23917   sed -n '
23918         t rset
23919         :rset
23920         s/^[     ]*#[    ]*define[       ][      ]*//
23921         t ok
23922         d
23923         :ok
23924         s/[\\&,]/\\&/g
23925         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23926         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23927   ' >>conftest.defines
23928
23929 # Remove the space that was appended to ease matching.
23930 # Then replace #undef with comments.  This is necessary, for
23931 # example, in the case of _POSIX_SOURCE, which is predefined and required
23932 # on some systems where configure will not decide to define it.
23933 # (The regexp can be short, since the line contains either #define or #undef.)
23934 echo 's/ $//
23935 s,^[     #]*u.*,/* & */,' >>conftest.defines
23936
23937 # Break up conftest.defines:
23938 ac_max_sed_lines=50
23939
23940 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23941 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23942 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23943 # et cetera.
23944 ac_in='$ac_file_inputs'
23945 ac_out='"$tmp/out1"'
23946 ac_nxt='"$tmp/out2"'
23947
23948 while :
23949 do
23950   # Write a here document:
23951     cat >>$CONFIG_STATUS <<_ACEOF
23952     # First, check the format of the line:
23953     cat >"\$tmp/defines.sed" <<\\CEOF
23954 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23955 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23956 b
23957 :def
23958 _ACEOF
23959   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23960   echo 'CEOF
23961     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23962   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23963   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23964   grep . conftest.tail >/dev/null || break
23965   rm -f conftest.defines
23966   mv conftest.tail conftest.defines
23967 done
23968 rm -f conftest.defines conftest.tail
23969
23970 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23971 cat >>$CONFIG_STATUS <<\_ACEOF
23972   if test x"$ac_file" != x-; then
23973     echo "/* $configure_input  */" >"$tmp/config.h"
23974     cat "$ac_result" >>"$tmp/config.h"
23975     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23976       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23977 echo "$as_me: $ac_file is unchanged" >&6;}
23978     else
23979       rm -f $ac_file
23980       mv "$tmp/config.h" $ac_file
23981     fi
23982   else
23983     echo "/* $configure_input  */"
23984     cat "$ac_result"
23985   fi
23986   rm -f "$tmp/out12"
23987  ;;
23988
23989   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23990 echo "$as_me: executing $ac_file commands" >&6;}
23991  ;;
23992   esac
23993
23994
23995   case $ac_file$ac_mode in
23996     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23997    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23998     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23999    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24000     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24001    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24002     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24003    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24004     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24005    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24006     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24007    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24008     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24009    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24010     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24011    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24012     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24013    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24014     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24015    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24016     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24017    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24018     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24019    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24020     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24021    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24022
24023   esac
24024 done # for ac_tag
24025
24026
24027 { (exit 0); exit 0; }
24028 _ACEOF
24029 chmod +x $CONFIG_STATUS
24030 ac_clean_files=$ac_clean_files_save
24031
24032
24033 # configure is writing to config.log, and then calls config.status.
24034 # config.status does its own redirection, appending to config.log.
24035 # Unfortunately, on DOS this fails, as config.log is still kept open
24036 # by configure, so config.status won't be able to write to it; its
24037 # output is simply discarded.  So we exec the FD to /dev/null,
24038 # effectively closing config.log, so it can be properly (re)opened and
24039 # appended to by config.status.  When coming back to configure, we
24040 # need to make the FD available again.
24041 if test "$no_create" != yes; then
24042   ac_cs_success=:
24043   ac_config_status_args=
24044   test "$silent" = yes &&
24045     ac_config_status_args="$ac_config_status_args --quiet"
24046   exec 5>/dev/null
24047   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24048   exec 5>>config.log
24049   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24050   # would make configure fail if this is the last instruction.
24051   $ac_cs_success || { (exit 1); exit 1; }
24052 fi
24053
24054 #
24055 # CONFIG_SUBDIRS section.
24056 #
24057 if test "$no_recursion" != yes; then
24058
24059   # Remove --cache-file and --srcdir arguments so they do not pile up.
24060   ac_sub_configure_args=
24061   ac_prev=
24062   eval "set x $ac_configure_args"
24063   shift
24064   for ac_arg
24065   do
24066     if test -n "$ac_prev"; then
24067       ac_prev=
24068       continue
24069     fi
24070     case $ac_arg in
24071     -cache-file | --cache-file | --cache-fil | --cache-fi \
24072     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24073       ac_prev=cache_file ;;
24074     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24075     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24076     | --c=*)
24077       ;;
24078     --config-cache | -C)
24079       ;;
24080     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24081       ac_prev=srcdir ;;
24082     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24083       ;;
24084     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24085       ac_prev=prefix ;;
24086     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24087       ;;
24088     *)
24089       case $ac_arg in
24090       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24091       esac
24092       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24093     esac
24094   done
24095
24096   # Always prepend --prefix to ensure using the same prefix
24097   # in subdir configurations.
24098   ac_arg="--prefix=$prefix"
24099   case $ac_arg in
24100   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24101   esac
24102   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24103
24104   ac_popdir=`pwd`
24105   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24106
24107     # Do not complain, so a configure script can configure whichever
24108     # parts of a large source tree are present.
24109     test -d "$srcdir/$ac_dir" || continue
24110
24111     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24112     echo "$as_me:$LINENO: $ac_msg" >&5
24113     echo "$ac_msg" >&6
24114     { as_dir="$ac_dir"
24115   case $as_dir in #(
24116   -*) as_dir=./$as_dir;;
24117   esac
24118   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24119     as_dirs=
24120     while :; do
24121       case $as_dir in #(
24122       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24123       *) as_qdir=$as_dir;;
24124       esac
24125       as_dirs="'$as_qdir' $as_dirs"
24126       as_dir=`$as_dirname -- "$as_dir" ||
24127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24128          X"$as_dir" : 'X\(//\)[^/]' \| \
24129          X"$as_dir" : 'X\(//\)$' \| \
24130          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24131 echo X"$as_dir" |
24132     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24133             s//\1/
24134             q
24135           }
24136           /^X\(\/\/\)[^/].*/{
24137             s//\1/
24138             q
24139           }
24140           /^X\(\/\/\)$/{
24141             s//\1/
24142             q
24143           }
24144           /^X\(\/\).*/{
24145             s//\1/
24146             q
24147           }
24148           s/.*/./; q'`
24149       test -d "$as_dir" && break
24150     done
24151     test -z "$as_dirs" || eval "mkdir $as_dirs"
24152   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24153 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24154    { (exit 1); exit 1; }; }; }
24155     ac_builddir=.
24156
24157 case "$ac_dir" in
24158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24159 *)
24160   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24161   # A ".." for each directory in $ac_dir_suffix.
24162   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24163   case $ac_top_builddir_sub in
24164   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24165   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24166   esac ;;
24167 esac
24168 ac_abs_top_builddir=$ac_pwd
24169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24170 # for backward compatibility:
24171 ac_top_builddir=$ac_top_build_prefix
24172
24173 case $srcdir in
24174   .)  # We are building in place.
24175     ac_srcdir=.
24176     ac_top_srcdir=$ac_top_builddir_sub
24177     ac_abs_top_srcdir=$ac_pwd ;;
24178   [\\/]* | ?:[\\/]* )  # Absolute name.
24179     ac_srcdir=$srcdir$ac_dir_suffix;
24180     ac_top_srcdir=$srcdir
24181     ac_abs_top_srcdir=$srcdir ;;
24182   *) # Relative name.
24183     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24184     ac_top_srcdir=$ac_top_build_prefix$srcdir
24185     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24186 esac
24187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24188
24189
24190     cd "$ac_dir"
24191
24192     # Check for guested configure; otherwise get Cygnus style configure.
24193     if test -f "$ac_srcdir/configure.gnu"; then
24194       ac_sub_configure=$ac_srcdir/configure.gnu
24195     elif test -f "$ac_srcdir/configure"; then
24196       ac_sub_configure=$ac_srcdir/configure
24197     elif test -f "$ac_srcdir/configure.in"; then
24198       # This should be Cygnus configure.
24199       ac_sub_configure=$ac_aux_dir/configure
24200     else
24201       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24202 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24203       ac_sub_configure=
24204     fi
24205
24206     # The recursion is here.
24207     if test -n "$ac_sub_configure"; then
24208       # Make the cache file name correct relative to the subdirectory.
24209       case $cache_file in
24210       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24211       *) # Relative name.
24212         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24213       esac
24214
24215       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24216 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24217       # The eval makes quoting arguments work.
24218       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24219            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24220         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24221 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24222    { (exit 1); exit 1; }; }
24223     fi
24224
24225     cd "$ac_popdir"
24226   done
24227 fi
24228