Regenerate configure and friends for Chad.
[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-bug-report-url   Specify the URL where bug reports should be
1475                           submitted (default=http://llvm.org)
1476   --with-tclinclude       directory where tcl headers are
1477   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1478                           clang, or none; default=check)
1479   --with-udis86=<path>    Use udis86 external x86 disassembler library
1480   --with-oprofile=<prefix>
1481                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489               you have headers in a nonstandard directory <include dir>
1490   CPP         C preprocessor
1491   CXX         C++ compiler command
1492   CXXFLAGS    C++ compiler flags
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <llvmbugs@cs.uiuc.edu>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503   # If there are subdirs, report their specific --help.
1504   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505     test -d "$ac_dir" || continue
1506     ac_builddir=.
1507
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *)
1511   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1512   # A ".." for each directory in $ac_dir_suffix.
1513   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1514   case $ac_top_builddir_sub in
1515   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517   esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1523
1524 case $srcdir in
1525   .)  # We are building in place.
1526     ac_srcdir=.
1527     ac_top_srcdir=$ac_top_builddir_sub
1528     ac_abs_top_srcdir=$ac_pwd ;;
1529   [\\/]* | ?:[\\/]* )  # Absolute name.
1530     ac_srcdir=$srcdir$ac_dir_suffix;
1531     ac_top_srcdir=$srcdir
1532     ac_abs_top_srcdir=$srcdir ;;
1533   *) # Relative name.
1534     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535     ac_top_srcdir=$ac_top_build_prefix$srcdir
1536     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539
1540     cd "$ac_dir" || { ac_status=$?; continue; }
1541     # Check for guested configure.
1542     if test -f "$ac_srcdir/configure.gnu"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545     elif test -f "$ac_srcdir/configure"; then
1546       echo &&
1547       $SHELL "$ac_srcdir/configure" --help=recursive
1548     else
1549       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550     fi || ac_status=$?
1551     cd "$ac_pwd" || { ac_status=$?; break; }
1552   done
1553 fi
1554
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557   cat <<\_ACEOF
1558 llvm configure 3.0svn
1559 generated by GNU Autoconf 2.60
1560
1561 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1562 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565
1566 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1567 _ACEOF
1568   exit
1569 fi
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1573
1574 It was created by llvm $as_me 3.0svn, which was
1575 generated by GNU Autoconf 2.60.  Invocation command line was
1576
1577   $ $0 $@
1578
1579 _ACEOF
1580 exec 5>>config.log
1581 {
1582 cat <<_ASUNAME
1583 ## --------- ##
1584 ## Platform. ##
1585 ## --------- ##
1586
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1595
1596 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1597 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1600 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1601 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1602 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1603
1604 _ASUNAME
1605
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   echo "PATH: $as_dir"
1612 done
1613 IFS=$as_save_IFS
1614
1615 } >&5
1616
1617 cat >&5 <<_ACEOF
1618
1619
1620 ## ----------- ##
1621 ## Core tests. ##
1622 ## ----------- ##
1623
1624 _ACEOF
1625
1626
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1632 ac_configure_args=
1633 ac_configure_args0=
1634 ac_configure_args1=
1635 ac_must_keep_next=false
1636 for ac_pass in 1 2
1637 do
1638   for ac_arg
1639   do
1640     case $ac_arg in
1641     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643     | -silent | --silent | --silen | --sile | --sil)
1644       continue ;;
1645     *\'*)
1646       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647     esac
1648     case $ac_pass in
1649     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1650     2)
1651       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652       if test $ac_must_keep_next = true; then
1653         ac_must_keep_next=false # Got value, back to normal.
1654       else
1655         case $ac_arg in
1656           *=* | --config-cache | -C | -disable-* | --disable-* \
1657           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659           | -with-* | --with-* | -without-* | --without-* | --x)
1660             case "$ac_configure_args0 " in
1661               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662             esac
1663             ;;
1664           -* ) ac_must_keep_next=true ;;
1665         esac
1666       fi
1667       ac_configure_args="$ac_configure_args '$ac_arg'"
1668       ;;
1669     esac
1670   done
1671 done
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1674
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log.  We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681   # Save into config.log some information that might help in debugging.
1682   {
1683     echo
1684
1685     cat <<\_ASBOX
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1689 _ASBOX
1690     echo
1691     # The following way of writing the cache mishandles newlines in values,
1692 (
1693   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694     eval ac_val=\$$ac_var
1695     case $ac_val in #(
1696     *${as_nl}*)
1697       case $ac_var in #(
1698       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700       esac
1701       case $ac_var in #(
1702       _ | IFS | as_nl) ;; #(
1703       *) $as_unset $ac_var ;;
1704       esac ;;
1705     esac
1706   done
1707   (set) 2>&1 |
1708     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709     *${as_nl}ac_space=\ *)
1710       sed -n \
1711         "s/'\''/'\''\\\\'\'''\''/g;
1712           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713       ;; #(
1714     *)
1715       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716       ;;
1717     esac |
1718     sort
1719 )
1720     echo
1721
1722     cat <<\_ASBOX
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1726 _ASBOX
1727     echo
1728     for ac_var in $ac_subst_vars
1729     do
1730       eval ac_val=\$$ac_var
1731       case $ac_val in
1732       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733       esac
1734       echo "$ac_var='\''$ac_val'\''"
1735     done | sort
1736     echo
1737
1738     if test -n "$ac_subst_files"; then
1739       cat <<\_ASBOX
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1743 _ASBOX
1744       echo
1745       for ac_var in $ac_subst_files
1746       do
1747         eval ac_val=\$$ac_var
1748         case $ac_val in
1749         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750         esac
1751         echo "$ac_var='\''$ac_val'\''"
1752       done | sort
1753       echo
1754     fi
1755
1756     if test -s confdefs.h; then
1757       cat <<\_ASBOX
1758 ## ----------- ##
1759 ## confdefs.h. ##
1760 ## ----------- ##
1761 _ASBOX
1762       echo
1763       cat confdefs.h
1764       echo
1765     fi
1766     test "$ac_signal" != 0 &&
1767       echo "$as_me: caught signal $ac_signal"
1768     echo "$as_me: exit $exit_status"
1769   } >&5
1770   rm -f core *.core core.conftest.* &&
1771     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772     exit $exit_status
1773 ' 0
1774 for ac_signal in 1 2 13 15; do
1775   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 done
1777 ac_signal=0
1778
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1781
1782 # Predefined preprocessor variables.
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 _ACEOF
1807
1808
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812   set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815 else
1816   set x "$ac_default_prefix/share/config.site" \
1817         "$ac_default_prefix/etc/config.site"
1818 fi
1819 shift
1820 for ac_site_file
1821 do
1822   if test -r "$ac_site_file"; then
1823     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825     sed 's/^/| /' "$ac_site_file" >&5
1826     . "$ac_site_file"
1827   fi
1828 done
1829
1830 if test -r "$cache_file"; then
1831   # Some versions of bash will fail to source /dev/null (special
1832   # files actually), so we avoid doing that.
1833   if test -f "$cache_file"; then
1834     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1836     case $cache_file in
1837       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838       *)                      . "./$cache_file";;
1839     esac
1840   fi
1841 else
1842   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1844   >$cache_file
1845 fi
1846
1847 # Check that the precious variables saved in the cache have kept the same
1848 # value.
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852   eval ac_new_set=\$ac_env_${ac_var}_set
1853   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854   eval ac_new_val=\$ac_env_${ac_var}_value
1855   case $ac_old_set,$ac_new_set in
1856     set,)
1857       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859       ac_cache_corrupted=: ;;
1860     ,set)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,);;
1865     *)
1866       if test "x$ac_old_val" != "x$ac_new_val"; then
1867         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1870 echo "$as_me:   former value:  $ac_old_val" >&2;}
1871         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1872 echo "$as_me:   current value: $ac_new_val" >&2;}
1873         ac_cache_corrupted=:
1874       fi;;
1875   esac
1876   # Pass precious variables to config.status.
1877   if test "$ac_new_set" = set; then
1878     case $ac_new_val in
1879     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880     *) ac_arg=$ac_var=$ac_new_val ;;
1881     esac
1882     case " $ac_configure_args " in
1883       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1884       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885     esac
1886   fi
1887 done
1888 if $ac_cache_corrupted; then
1889   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893    { (exit 1); exit 1; }; }
1894 fi
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920 ac_ext=c
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
1928 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1929
1930
1931
1932
1933
1934
1935
1936 ac_aux_dir=
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938   if test -f "$ac_dir/install-sh"; then
1939     ac_aux_dir=$ac_dir
1940     ac_install_sh="$ac_aux_dir/install-sh -c"
1941     break
1942   elif test -f "$ac_dir/install.sh"; then
1943     ac_aux_dir=$ac_dir
1944     ac_install_sh="$ac_aux_dir/install.sh -c"
1945     break
1946   elif test -f "$ac_dir/shtool"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/shtool install -c"
1949     break
1950   fi
1951 done
1952 if test -z "$ac_aux_dir"; then
1953   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1965
1966
1967
1968 if test ${srcdir} != "." ; then
1969   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1970     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972    { (exit 1); exit 1; }; }
1973   fi
1974 fi
1975
1976
1977
1978 if test -d ${srcdir}/projects/llvm-gcc ; then
1979   subdirs="$subdirs projects/llvm-gcc"
1980
1981 fi
1982
1983 if test -d ${srcdir}/projects/test-suite ; then
1984   subdirs="$subdirs projects/test-suite"
1985
1986 fi
1987
1988 if test -d ${srcdir}/projects/llvm-test ; then
1989   subdirs="$subdirs projects/llvm-test"
1990
1991 fi
1992
1993 if test -d ${srcdir}/projects/poolalloc ; then
1994   subdirs="$subdirs projects/poolalloc"
1995
1996 fi
1997
1998 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1999   subdirs="$subdirs projects/llvm-poolalloc"
2000
2001 fi
2002
2003 for i in `ls ${srcdir}/projects`
2004 do
2005   if test -d ${srcdir}/projects/${i} ; then
2006     case ${i} in
2007       sample)       subdirs="$subdirs projects/sample"
2008     ;;
2009       privbracket)  subdirs="$subdirs projects/privbracket"
2010  ;;
2011       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2012  ;;
2013       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2014 ;;
2015       llvm-java)    subdirs="$subdirs projects/llvm-java"
2016  ;;
2017       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2018    ;;
2019       safecode)     subdirs="$subdirs projects/safecode"
2020  ;;
2021       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2022  ;;
2023       llvm-gcc)       ;;
2024       test-suite)     ;;
2025       llvm-test)      ;;
2026       poolalloc)      ;;
2027       llvm-poolalloc) ;;
2028       *)
2029         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2030 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2031         ;;
2032     esac
2033   fi
2034 done
2035
2036 # Check whether --enable-polly was given.
2037 if test "${enable_polly+set}" = set; then
2038   enableval=$enable_polly;
2039 else
2040   enableval=default
2041 fi
2042
2043 case "$enableval" in
2044   yes) ENABLE_POLLY=1
2045  ;;
2046   no)  ENABLE_POLLY=0
2047  ;;
2048   default) ENABLE_POLLY=1
2049  ;;
2050   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2051 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2052    { (exit 1); exit 1; }; } ;;
2053 esac
2054
2055
2056 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2057   LLVM_HAS_POLLY=1
2058
2059   subdirs="$subdirs tools/polly"
2060
2061 fi
2062
2063
2064 # Make sure we can run config.sub.
2065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2066   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068    { (exit 1); exit 1; }; }
2069
2070 { echo "$as_me:$LINENO: checking build system type" >&5
2071 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2072 if test "${ac_cv_build+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   ac_build_alias=$build_alias
2076 test "x$ac_build_alias" = x &&
2077   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078 test "x$ac_build_alias" = x &&
2079   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081    { (exit 1); exit 1; }; }
2082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2083   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085    { (exit 1); exit 1; }; }
2086
2087 fi
2088 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089 echo "${ECHO_T}$ac_cv_build" >&6; }
2090 case $ac_cv_build in
2091 *-*-*) ;;
2092 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093 echo "$as_me: error: invalid value of canonical build" >&2;}
2094    { (exit 1); exit 1; }; };;
2095 esac
2096 build=$ac_cv_build
2097 ac_save_IFS=$IFS; IFS='-'
2098 set x $ac_cv_build
2099 shift
2100 build_cpu=$1
2101 build_vendor=$2
2102 shift; shift
2103 # Remember, the first character of IFS is used to create $*,
2104 # except with old shells:
2105 build_os=$*
2106 IFS=$ac_save_IFS
2107 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2108
2109
2110 { echo "$as_me:$LINENO: checking host system type" >&5
2111 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2112 if test "${ac_cv_host+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test "x$host_alias" = x; then
2116   ac_cv_host=$ac_cv_build
2117 else
2118   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2119     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121    { (exit 1); exit 1; }; }
2122 fi
2123
2124 fi
2125 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126 echo "${ECHO_T}$ac_cv_host" >&6; }
2127 case $ac_cv_host in
2128 *-*-*) ;;
2129 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130 echo "$as_me: error: invalid value of canonical host" >&2;}
2131    { (exit 1); exit 1; }; };;
2132 esac
2133 host=$ac_cv_host
2134 ac_save_IFS=$IFS; IFS='-'
2135 set x $ac_cv_host
2136 shift
2137 host_cpu=$1
2138 host_vendor=$2
2139 shift; shift
2140 # Remember, the first character of IFS is used to create $*,
2141 # except with old shells:
2142 host_os=$*
2143 IFS=$ac_save_IFS
2144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145
2146
2147 { echo "$as_me:$LINENO: checking target system type" >&5
2148 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_target+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   if test "x$target_alias" = x; then
2153   ac_cv_target=$ac_cv_host
2154 else
2155   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2156     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2157 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2158    { (exit 1); exit 1; }; }
2159 fi
2160
2161 fi
2162 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2163 echo "${ECHO_T}$ac_cv_target" >&6; }
2164 case $ac_cv_target in
2165 *-*-*) ;;
2166 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2167 echo "$as_me: error: invalid value of canonical target" >&2;}
2168    { (exit 1); exit 1; }; };;
2169 esac
2170 target=$ac_cv_target
2171 ac_save_IFS=$IFS; IFS='-'
2172 set x $ac_cv_target
2173 shift
2174 target_cpu=$1
2175 target_vendor=$2
2176 shift; shift
2177 # Remember, the first character of IFS is used to create $*,
2178 # except with old shells:
2179 target_os=$*
2180 IFS=$ac_save_IFS
2181 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2182
2183
2184 # The aliases save the names the user supplied, while $host etc.
2185 # will get canonicalized.
2186 test -n "$target_alias" &&
2187   test "$program_prefix$program_suffix$program_transform_name" = \
2188     NONENONEs,x,x, &&
2189   program_prefix=${target_alias}-
2190
2191 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2192 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2193 if test "${llvm_cv_os_type+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   case $host in
2197   *-*-aix*)
2198     llvm_cv_link_all_option="-Wl,--whole-archive"
2199     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200     llvm_cv_os_type="AIX"
2201     llvm_cv_platform_type="Unix" ;;
2202   *-*-irix*)
2203     llvm_cv_link_all_option="-Wl,--whole-archive"
2204     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205     llvm_cv_os_type="IRIX"
2206     llvm_cv_platform_type="Unix" ;;
2207   *-*-cygwin*)
2208     llvm_cv_link_all_option="-Wl,--whole-archive"
2209     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210     llvm_cv_os_type="Cygwin"
2211     llvm_cv_platform_type="Unix" ;;
2212   *-*-darwin*)
2213     llvm_cv_link_all_option="-Wl,-all_load"
2214     llvm_cv_no_link_all_option="-Wl,-noall_load"
2215     llvm_cv_os_type="Darwin"
2216     llvm_cv_platform_type="Unix" ;;
2217   *-*-minix*)
2218     llvm_cv_link_all_option="-Wl,-all_load"
2219     llvm_cv_no_link_all_option="-Wl,-noall_load"
2220     llvm_cv_os_type="Minix"
2221     llvm_cv_platform_type="Unix" ;;
2222   *-*-freebsd*)
2223     llvm_cv_link_all_option="-Wl,--whole-archive"
2224     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225     llvm_cv_os_type="FreeBSD"
2226     llvm_cv_platform_type="Unix" ;;
2227   *-*-openbsd*)
2228     llvm_cv_link_all_option="-Wl,--whole-archive"
2229     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230     llvm_cv_os_type="OpenBSD"
2231     llvm_cv_platform_type="Unix" ;;
2232   *-*-netbsd*)
2233     llvm_cv_link_all_option="-Wl,--whole-archive"
2234     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235     llvm_cv_os_type="NetBSD"
2236     llvm_cv_platform_type="Unix" ;;
2237   *-*-dragonfly*)
2238     llvm_cv_link_all_option="-Wl,--whole-archive"
2239     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240     llvm_cv_os_type="DragonFly"
2241     llvm_cv_platform_type="Unix" ;;
2242   *-*-hpux*)
2243     llvm_cv_link_all_option="-Wl,--whole-archive"
2244     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245     llvm_cv_os_type="HP-UX"
2246     llvm_cv_platform_type="Unix" ;;
2247   *-*-interix*)
2248     llvm_cv_link_all_option="-Wl,--whole-archive"
2249     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250     llvm_cv_os_type="Interix"
2251     llvm_cv_platform_type="Unix" ;;
2252   *-*-linux*)
2253     llvm_cv_link_all_option="-Wl,--whole-archive"
2254     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255     llvm_cv_os_type="Linux"
2256     llvm_cv_platform_type="Unix" ;;
2257   *-*-solaris*)
2258     llvm_cv_link_all_option="-Wl,-z,allextract"
2259     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2260     llvm_cv_os_type="SunOS"
2261     llvm_cv_platform_type="Unix" ;;
2262   *-*-auroraux*)
2263     llvm_cv_link_all_option="-Wl,-z,allextract"
2264     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2265     llvm_cv_os_type="AuroraUX"
2266     llvm_cv_platform_type="Unix" ;;
2267   *-*-win32*)
2268     llvm_cv_link_all_option="-Wl,--whole-archive"
2269     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270     llvm_cv_os_type="Win32"
2271     llvm_cv_platform_type="Win32" ;;
2272   *-*-mingw*)
2273     llvm_cv_link_all_option="-Wl,--whole-archive"
2274     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275     llvm_cv_os_type="MingW"
2276     llvm_cv_platform_type="Win32" ;;
2277   *-*-haiku*)
2278     llvm_cv_link_all_option="-Wl,--whole-archive"
2279     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280     llvm_cv_os_type="Haiku"
2281     llvm_cv_platform_type="Unix" ;;
2282   *-unknown-eabi*)
2283     llvm_cv_link_all_option="-Wl,--whole-archive"
2284     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285     llvm_cv_os_type="Freestanding"
2286     llvm_cv_platform_type="Unix" ;;
2287   *-unknown-elf*)
2288     llvm_cv_link_all_option="-Wl,--whole-archive"
2289     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290     llvm_cv_os_type="Freestanding"
2291     llvm_cv_platform_type="Unix" ;;
2292   *)
2293     llvm_cv_link_all_option=""
2294     llvm_cv_no_link_all_option=""
2295     llvm_cv_os_type="Unknown"
2296     llvm_cv_platform_type="Unknown" ;;
2297 esac
2298 fi
2299 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2301
2302 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2303 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2304 if test "${llvm_cv_target_os_type+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   case $target in
2308   *-*-aix*)
2309     llvm_cv_target_os_type="AIX" ;;
2310   *-*-irix*)
2311     llvm_cv_target_os_type="IRIX" ;;
2312   *-*-cygwin*)
2313     llvm_cv_target_os_type="Cygwin" ;;
2314   *-*-darwin*)
2315     llvm_cv_target_os_type="Darwin" ;;
2316   *-*-minix*)
2317     llvm_cv_target_os_type="Minix" ;;
2318   *-*-freebsd*)
2319     llvm_cv_target_os_type="FreeBSD" ;;
2320   *-*-openbsd*)
2321     llvm_cv_target_os_type="OpenBSD" ;;
2322   *-*-netbsd*)
2323     llvm_cv_target_os_type="NetBSD" ;;
2324   *-*-dragonfly*)
2325     llvm_cv_target_os_type="DragonFly" ;;
2326   *-*-hpux*)
2327     llvm_cv_target_os_type="HP-UX" ;;
2328   *-*-interix*)
2329     llvm_cv_target_os_type="Interix" ;;
2330   *-*-linux*)
2331     llvm_cv_target_os_type="Linux" ;;
2332   *-*-solaris*)
2333     llvm_cv_target_os_type="SunOS" ;;
2334   *-*-auroraux*)
2335     llvm_cv_target_os_type="AuroraUX" ;;
2336   *-*-win32*)
2337     llvm_cv_target_os_type="Win32" ;;
2338   *-*-mingw*)
2339     llvm_cv_target_os_type="MingW" ;;
2340   *-*-haiku*)
2341     llvm_cv_target_os_type="Haiku" ;;
2342   *-*-rtems*)
2343     llvm_cv_target_os_type="RTEMS" ;;
2344   *-unknown-eabi*)
2345     llvm_cv_target_os_type="Freestanding" ;;
2346   *)
2347     llvm_cv_target_os_type="Unknown" ;;
2348 esac
2349 fi
2350 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2351 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2352
2353 if test "$llvm_cv_os_type" = "Unknown" ; then
2354   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2356    { (exit 1); exit 1; }; }
2357 fi
2358
2359 OS=$llvm_cv_os_type
2360
2361 HOST_OS=$llvm_cv_os_type
2362
2363 TARGET_OS=$llvm_cv_target_os_type
2364
2365
2366 LINKALL=$llvm_cv_link_all_option
2367
2368 NOLINKALL=$llvm_cv_no_link_all_option
2369
2370
2371 case $llvm_cv_platform_type in
2372   Unix)
2373
2374 cat >>confdefs.h <<\_ACEOF
2375 #define LLVM_ON_UNIX 1
2376 _ACEOF
2377
2378     LLVM_ON_UNIX=1
2379
2380     LLVM_ON_WIN32=0
2381
2382     ;;
2383   Win32)
2384
2385 cat >>confdefs.h <<\_ACEOF
2386 #define LLVM_ON_WIN32 1
2387 _ACEOF
2388
2389     LLVM_ON_UNIX=0
2390
2391     LLVM_ON_WIN32=1
2392
2393     ;;
2394 esac
2395
2396 { echo "$as_me:$LINENO: checking target architecture" >&5
2397 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2398 if test "${llvm_cv_target_arch+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   case $target in
2402   i?86-*)                 llvm_cv_target_arch="x86" ;;
2403   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2404   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2405   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2406   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2407   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2408   mips-*)                 llvm_cv_target_arch="Mips" ;;
2409   xcore-*)                llvm_cv_target_arch="XCore" ;;
2410   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2411   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2412   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2413   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2414   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2415   *)                      llvm_cv_target_arch="Unknown" ;;
2416 esac
2417 fi
2418 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2419 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2420
2421 if test "$llvm_cv_target_arch" = "Unknown" ; then
2422   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2423 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2424 fi
2425
2426 # Determine the LLVM native architecture for the target
2427 case "$llvm_cv_target_arch" in
2428     x86)     LLVM_NATIVE_ARCH="X86" ;;
2429     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2430     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2431 esac
2432
2433 ARCH=$llvm_cv_target_arch
2434
2435
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441 if test -n "$ac_tool_prefix"; then
2442   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   if test -n "$CC"; then
2450   ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457   for ac_exec_ext in '' $ac_executable_extensions; do
2458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2459     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464 done
2465 IFS=$as_save_IFS
2466
2467 fi
2468 fi
2469 CC=$ac_cv_prog_CC
2470 if test -n "$CC"; then
2471   { echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6; }
2473 else
2474   { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2476 fi
2477
2478
2479 fi
2480 if test -z "$ac_cv_prog_CC"; then
2481   ac_ct_CC=$CC
2482   # Extract the first word of "gcc", so it can be a program name with args.
2483 set dummy gcc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   if test -n "$ac_ct_CC"; then
2490   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497   for ac_exec_ext in '' $ac_executable_extensions; do
2498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2499     ac_cv_prog_ac_ct_CC="gcc"
2500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501     break 2
2502   fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512 echo "${ECHO_T}$ac_ct_CC" >&6; }
2513 else
2514   { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2516 fi
2517
2518   if test "x$ac_ct_CC" = x; then
2519     CC=""
2520   else
2521     case $cross_compiling:$ac_tool_warned in
2522 yes:)
2523 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet.  If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&5
2526 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet.  If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2529 ac_tool_warned=yes ;;
2530 esac
2531     CC=$ac_ct_CC
2532   fi
2533 else
2534   CC="$ac_cv_prog_CC"
2535 fi
2536
2537 if test -z "$CC"; then
2538           if test -n "$ac_tool_prefix"; then
2539     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}cc; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   if test -n "$CC"; then
2547   ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552   IFS=$as_save_IFS
2553   test -z "$as_dir" && as_dir=.
2554   for ac_exec_ext in '' $ac_executable_extensions; do
2555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2556     ac_cv_prog_CC="${ac_tool_prefix}cc"
2557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558     break 2
2559   fi
2560 done
2561 done
2562 IFS=$as_save_IFS
2563
2564 fi
2565 fi
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568   { echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6; }
2570 else
2571   { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2573 fi
2574
2575
2576   fi
2577 fi
2578 if test -z "$CC"; then
2579   # Extract the first word of "cc", so it can be a program name with args.
2580 set dummy cc; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   if test -n "$CC"; then
2587   ac_cv_prog_CC="$CC" # Let the user override the test.
2588 else
2589   ac_prog_rejected=no
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595   for ac_exec_ext in '' $ac_executable_extensions; do
2596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2597     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2598        ac_prog_rejected=yes
2599        continue
2600      fi
2601     ac_cv_prog_CC="cc"
2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 if test $ac_prog_rejected = yes; then
2610   # We found a bogon in the path, so make sure we never use it.
2611   set dummy $ac_cv_prog_CC
2612   shift
2613   if test $# != 0; then
2614     # We chose a different compiler from the bogus one.
2615     # However, it has the same basename, so the bogon will be chosen
2616     # first if we set CC to just the basename; use the full file name.
2617     shift
2618     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2619   fi
2620 fi
2621 fi
2622 fi
2623 CC=$ac_cv_prog_CC
2624 if test -n "$CC"; then
2625   { echo "$as_me:$LINENO: result: $CC" >&5
2626 echo "${ECHO_T}$CC" >&6; }
2627 else
2628   { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2630 fi
2631
2632
2633 fi
2634 if test -z "$CC"; then
2635   if test -n "$ac_tool_prefix"; then
2636   for ac_prog in cl.exe
2637   do
2638     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   if test -n "$CC"; then
2646   ac_cv_prog_CC="$CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653   for ac_exec_ext in '' $ac_executable_extensions; do
2654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657     break 2
2658   fi
2659 done
2660 done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 CC=$ac_cv_prog_CC
2666 if test -n "$CC"; then
2667   { echo "$as_me:$LINENO: result: $CC" >&5
2668 echo "${ECHO_T}$CC" >&6; }
2669 else
2670   { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2672 fi
2673
2674
2675     test -n "$CC" && break
2676   done
2677 fi
2678 if test -z "$CC"; then
2679   ac_ct_CC=$CC
2680   for ac_prog in cl.exe
2681 do
2682   # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687   echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689   if test -n "$ac_ct_CC"; then
2690   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695   IFS=$as_save_IFS
2696   test -z "$as_dir" && as_dir=.
2697   for ac_exec_ext in '' $ac_executable_extensions; do
2698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2699     ac_cv_prog_ac_ct_CC="$ac_prog"
2700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701     break 2
2702   fi
2703 done
2704 done
2705 IFS=$as_save_IFS
2706
2707 fi
2708 fi
2709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712 echo "${ECHO_T}$ac_ct_CC" >&6; }
2713 else
2714   { echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6; }
2716 fi
2717
2718
2719   test -n "$ac_ct_CC" && break
2720 done
2721
2722   if test "x$ac_ct_CC" = x; then
2723     CC=""
2724   else
2725     case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2728 whose name does not start with the host triplet.  If you think this
2729 configuration is useful to you, please write to autoconf@gnu.org." >&5
2730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2731 whose name does not start with the host triplet.  If you think this
2732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2733 ac_tool_warned=yes ;;
2734 esac
2735     CC=$ac_ct_CC
2736   fi
2737 fi
2738
2739 fi
2740
2741
2742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&5
2744 echo "$as_me: error: no acceptable C compiler found in \$PATH
2745 See \`config.log' for more details." >&2;}
2746    { (exit 1); exit 1; }; }
2747
2748 # Provide some information about the compiler.
2749 echo "$as_me:$LINENO: checking for C compiler version" >&5
2750 ac_compiler=`set X $ac_compile; echo $2`
2751 { (ac_try="$ac_compiler --version >&5"
2752 case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_compiler --version >&5") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }
2761 { (ac_try="$ac_compiler -v >&5"
2762 case "(($ac_try" in
2763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764   *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767   (eval "$ac_compiler -v >&5") 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }
2771 { (ac_try="$ac_compiler -V >&5"
2772 case "(($ac_try" in
2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774   *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777   (eval "$ac_compiler -V >&5") 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }
2781
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h.  */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h.  */
2788
2789 int
2790 main ()
2791 {
2792
2793   ;
2794   return 0;
2795 }
2796 _ACEOF
2797 ac_clean_files_save=$ac_clean_files
2798 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2799 # Try to create an executable without -o first, disregard a.out.
2800 # It will help us diagnose broken compilers, and finding out an intuition
2801 # of exeext.
2802 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2803 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2804 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2805 #
2806 # List of possible output files, starting from the most likely.
2807 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2808 # only as a last resort.  b.out is created by i960 compilers.
2809 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2810 #
2811 # The IRIX 6 linker writes into existing files which may not be
2812 # executable, retaining their permissions.  Remove them first so a
2813 # subsequent execution test works.
2814 ac_rmfiles=
2815 for ac_file in $ac_files
2816 do
2817   case $ac_file in
2818     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2819     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2820   esac
2821 done
2822 rm -f $ac_rmfiles
2823
2824 if { (ac_try="$ac_link_default"
2825 case "(($ac_try" in
2826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827   *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830   (eval "$ac_link_default") 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; then
2834   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2837 # so that the user can short-circuit this test for compilers unknown to
2838 # Autoconf.
2839 for ac_file in $ac_files
2840 do
2841   test -f "$ac_file" || continue
2842   case $ac_file in
2843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2844         ;;
2845     [ab].out )
2846         # We found the default executable, but exeext='' is most
2847         # certainly right.
2848         break;;
2849     *.* )
2850         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2851         then :; else
2852            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853         fi
2854         # We set ac_cv_exeext here because the later test for it is not
2855         # safe: cross compilers may not add the suffix if given an `-o'
2856         # argument, so we may need to know it at that point already.
2857         # Even if this section looks crufty: it has the advantage of
2858         # actually working.
2859         break;;
2860     * )
2861         break;;
2862   esac
2863 done
2864 test "$ac_cv_exeext" = no && ac_cv_exeext=
2865
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&2;}
2874    { (exit 77); exit 77; }; }
2875 fi
2876
2877 ac_exeext=$ac_cv_exeext
2878 { echo "$as_me:$LINENO: result: $ac_file" >&5
2879 echo "${ECHO_T}$ac_file" >&6; }
2880
2881 # Check that the compiler produces executables we can run.  If not, either
2882 # the compiler is broken, or we cross compile.
2883 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2885 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886 # If not cross compiling, check that we can run a simple program.
2887 if test "$cross_compiling" != yes; then
2888   if { ac_try='./$ac_file'
2889   { (case "(($ac_try" in
2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891   *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894   (eval "$ac_try") 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; }; then
2898     cross_compiling=no
2899   else
2900     if test "$cross_compiling" = maybe; then
2901         cross_compiling=yes
2902     else
2903         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot run C compiled programs.
2907 If you meant to cross compile, use \`--host'.
2908 See \`config.log' for more details." >&2;}
2909    { (exit 1); exit 1; }; }
2910     fi
2911   fi
2912 fi
2913 { echo "$as_me:$LINENO: result: yes" >&5
2914 echo "${ECHO_T}yes" >&6; }
2915
2916 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2917 ac_clean_files=$ac_clean_files_save
2918 # Check that the compiler produces executables we can run.  If not, either
2919 # the compiler is broken, or we cross compile.
2920 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2921 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2922 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2923 echo "${ECHO_T}$cross_compiling" >&6; }
2924
2925 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2926 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2927 if { (ac_try="$ac_link"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_link") 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; then
2937   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2938 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2939 # work properly (i.e., refer to `conftest.exe'), while it won't with
2940 # `rm'.
2941 for ac_file in conftest.exe conftest conftest.*; do
2942   test -f "$ac_file" || continue
2943   case $ac_file in
2944     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2945     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946           break;;
2947     * ) break;;
2948   esac
2949 done
2950 else
2951   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2954 See \`config.log' for more details." >&2;}
2955    { (exit 1); exit 1; }; }
2956 fi
2957
2958 rm -f conftest$ac_cv_exeext
2959 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2960 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2961
2962 rm -f conftest.$ac_ext
2963 EXEEXT=$ac_cv_exeext
2964 ac_exeext=$EXEEXT
2965 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2966 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2967 if test "${ac_cv_objext+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976
2977 int
2978 main ()
2979 {
2980
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.o conftest.obj
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compile") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; then
2996   for ac_file in conftest.o conftest.obj conftest.*; do
2997   test -f "$ac_file" || continue;
2998   case $ac_file in
2999     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3000     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3001        break;;
3002   esac
3003 done
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3011 See \`config.log' for more details." >&2;}
3012    { (exit 1); exit 1; }; }
3013 fi
3014
3015 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3016 fi
3017 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3018 echo "${ECHO_T}$ac_cv_objext" >&6; }
3019 OBJEXT=$ac_cv_objext
3020 ac_objext=$OBJEXT
3021 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3023 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024   echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026   cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3032
3033 int
3034 main ()
3035 {
3036 #ifndef __GNUC__
3037        choke me
3038 #endif
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; } &&
3068          { ac_try='test -s conftest.$ac_objext'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   ac_compiler_gnu=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         ac_compiler_gnu=no
3084 fi
3085
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3088
3089 fi
3090 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3091 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3092 GCC=`test $ac_compiler_gnu = yes && echo yes`
3093 ac_test_CFLAGS=${CFLAGS+set}
3094 ac_save_CFLAGS=$CFLAGS
3095 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3096 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3097 if test "${ac_cv_prog_cc_g+set}" = set; then
3098   echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100   ac_save_c_werror_flag=$ac_c_werror_flag
3101    ac_c_werror_flag=yes
3102    ac_cv_prog_cc_g=no
3103    CFLAGS="-g"
3104    cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h.  */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h.  */
3110
3111 int
3112 main ()
3113 {
3114
3115   ;
3116   return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_compile") 2>conftest.er1
3127   ac_status=$?
3128   grep -v '^ *+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); } &&
3133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3134   { (case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_try") 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; } &&
3143          { ac_try='test -s conftest.$ac_objext'
3144   { (case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_try") 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; }; then
3153   ac_cv_prog_cc_g=yes
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158         CFLAGS=""
3159       cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } &&
3188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189   { (case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_try") 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; } &&
3198          { ac_try='test -s conftest.$ac_objext'
3199   { (case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_try") 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; }; then
3208   :
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213         ac_c_werror_flag=$ac_save_c_werror_flag
3214          CFLAGS="-g"
3215          cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225
3226   ;
3227   return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237   (eval "$ac_compile") 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } &&
3244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3245   { (case "(($ac_try" in
3246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247   *) ac_try_echo=$ac_try;;
3248 esac
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250   (eval "$ac_try") 2>&5
3251   ac_status=$?
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }; } &&
3254          { ac_try='test -s conftest.$ac_objext'
3255   { (case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260   (eval "$ac_try") 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }; }; then
3264   ac_cv_prog_cc_g=yes
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269
3270 fi
3271
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 fi
3274
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 fi
3277
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279    ac_c_werror_flag=$ac_save_c_werror_flag
3280 fi
3281 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3282 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3283 if test "$ac_test_CFLAGS" = set; then
3284   CFLAGS=$ac_save_CFLAGS
3285 elif test $ac_cv_prog_cc_g = yes; then
3286   if test "$GCC" = yes; then
3287     CFLAGS="-g -O2"
3288   else
3289     CFLAGS="-g"
3290   fi
3291 else
3292   if test "$GCC" = yes; then
3293     CFLAGS="-O2"
3294   else
3295     CFLAGS=
3296   fi
3297 fi
3298 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3299 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3300 if test "${ac_cv_prog_cc_c89+set}" = set; then
3301   echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303   ac_cv_prog_cc_c89=no
3304 ac_save_CC=$CC
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <stdarg.h>
3312 #include <stdio.h>
3313 #include <sys/types.h>
3314 #include <sys/stat.h>
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3319      char **p;
3320      int i;
3321 {
3322   return p[i];
3323 }
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3325 {
3326   char *s;
3327   va_list v;
3328   va_start (v,p);
3329   s = g (p, va_arg (v,int));
3330   va_end (v);
3331   return s;
3332 }
3333
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3335    function prototypes and stuff, but not '\xHH' hex character constants.
3336    These don't provoke an error unfortunately, instead are silently treated
3337    as 'x'.  The following induces an error, until -std is added to get
3338    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3339    array size at least.  It's necessary to write '\x00'==0 to get something
3340    that's true only with -std.  */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3342
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344    inside strings and character constants.  */
3345 #define FOO(x) 'x'
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3347
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352 int argc;
3353 char **argv;
3354 int
3355 main ()
3356 {
3357 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364 do
3365   CC="$ac_save_CC $ac_arg"
3366   rm -f conftest.$ac_objext
3367 if { (ac_try="$ac_compile"
3368 case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373   (eval "$ac_compile") 2>conftest.er1
3374   ac_status=$?
3375   grep -v '^ *+' conftest.er1 >conftest.err
3376   rm -f conftest.er1
3377   cat conftest.err >&5
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); } &&
3380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3381   { (case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386   (eval "$ac_try") 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }; } &&
3390          { ac_try='test -s conftest.$ac_objext'
3391   { (case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_try") 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400   ac_cv_prog_cc_c89=$ac_arg
3401 else
3402   echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405
3406 fi
3407
3408 rm -f core conftest.err conftest.$ac_objext
3409   test "x$ac_cv_prog_cc_c89" != "xno" && break
3410 done
3411 rm -f conftest.$ac_ext
3412 CC=$ac_save_CC
3413
3414 fi
3415 # AC_CACHE_VAL
3416 case "x$ac_cv_prog_cc_c89" in
3417   x)
3418     { echo "$as_me:$LINENO: result: none needed" >&5
3419 echo "${ECHO_T}none needed" >&6; } ;;
3420   xno)
3421     { echo "$as_me:$LINENO: result: unsupported" >&5
3422 echo "${ECHO_T}unsupported" >&6; } ;;
3423   *)
3424     CC="$CC $ac_cv_prog_cc_c89"
3425     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3426 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3427 esac
3428
3429
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435
3436
3437 ac_ext=c
3438 ac_cpp='$CPP $CPPFLAGS'
3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3443 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3444 # On Suns, sometimes $CPP names a directory.
3445 if test -n "$CPP" && test -d "$CPP"; then
3446   CPP=
3447 fi
3448 if test -z "$CPP"; then
3449   if test "${ac_cv_prog_CPP+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452       # Double quotes because CPP needs to be expanded
3453     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3454     do
3455       ac_preproc_ok=false
3456 for ac_c_preproc_warn_flag in '' yes
3457 do
3458   # Use a header file that comes with gcc, so configuring glibc
3459   # with a fresh cross-compiler works.
3460   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461   # <limits.h> exists even on freestanding compilers.
3462   # On the NeXT, cc -E runs the code through the compiler's parser,
3463   # not just through cpp. "Syntax error" is here to catch this case.
3464   cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h.  */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h.  */
3470 #ifdef __STDC__
3471 # include <limits.h>
3472 #else
3473 # include <assert.h>
3474 #endif
3475                      Syntax error
3476 _ACEOF
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484   ac_status=$?
3485   grep -v '^ *+' conftest.er1 >conftest.err
3486   rm -f conftest.er1
3487   cat conftest.err >&5
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); } >/dev/null; then
3490   if test -s conftest.err; then
3491     ac_cpp_err=$ac_c_preproc_warn_flag
3492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493   else
3494     ac_cpp_err=
3495   fi
3496 else
3497   ac_cpp_err=yes
3498 fi
3499 if test -z "$ac_cpp_err"; then
3500   :
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505   # Broken: fails on valid input.
3506 continue
3507 fi
3508
3509 rm -f conftest.err conftest.$ac_ext
3510
3511   # OK, works on sane cases.  Now check whether nonexistent headers
3512   # can be detected and how.
3513   cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h.  */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h.  */
3519 #include <ac_nonexistent.h>
3520 _ACEOF
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } >/dev/null; then
3534   if test -s conftest.err; then
3535     ac_cpp_err=$ac_c_preproc_warn_flag
3536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3537   else
3538     ac_cpp_err=
3539   fi
3540 else
3541   ac_cpp_err=yes
3542 fi
3543 if test -z "$ac_cpp_err"; then
3544   # Broken: success on invalid input.
3545 continue
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550   # Passes both tests.
3551 ac_preproc_ok=:
3552 break
3553 fi
3554
3555 rm -f conftest.err conftest.$ac_ext
3556
3557 done
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.err conftest.$ac_ext
3560 if $ac_preproc_ok; then
3561   break
3562 fi
3563
3564     done
3565     ac_cv_prog_CPP=$CPP
3566
3567 fi
3568   CPP=$ac_cv_prog_CPP
3569 else
3570   ac_cv_prog_CPP=$CPP
3571 fi
3572 { echo "$as_me:$LINENO: result: $CPP" >&5
3573 echo "${ECHO_T}$CPP" >&6; }
3574 ac_preproc_ok=false
3575 for ac_c_preproc_warn_flag in '' yes
3576 do
3577   # Use a header file that comes with gcc, so configuring glibc
3578   # with a fresh cross-compiler works.
3579   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580   # <limits.h> exists even on freestanding compilers.
3581   # On the NeXT, cc -E runs the code through the compiler's parser,
3582   # not just through cpp. "Syntax error" is here to catch this case.
3583   cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589 #ifdef __STDC__
3590 # include <limits.h>
3591 #else
3592 # include <assert.h>
3593 #endif
3594                      Syntax error
3595 _ACEOF
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603   ac_status=$?
3604   grep -v '^ *+' conftest.er1 >conftest.err
3605   rm -f conftest.er1
3606   cat conftest.err >&5
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } >/dev/null; then
3609   if test -s conftest.err; then
3610     ac_cpp_err=$ac_c_preproc_warn_flag
3611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612   else
3613     ac_cpp_err=
3614   fi
3615 else
3616   ac_cpp_err=yes
3617 fi
3618 if test -z "$ac_cpp_err"; then
3619   :
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624   # Broken: fails on valid input.
3625 continue
3626 fi
3627
3628 rm -f conftest.err conftest.$ac_ext
3629
3630   # OK, works on sane cases.  Now check whether nonexistent headers
3631   # can be detected and how.
3632   cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h.  */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h.  */
3638 #include <ac_nonexistent.h>
3639 _ACEOF
3640 if { (ac_try="$ac_cpp conftest.$ac_ext"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3647   ac_status=$?
3648   grep -v '^ *+' conftest.er1 >conftest.err
3649   rm -f conftest.er1
3650   cat conftest.err >&5
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); } >/dev/null; then
3653   if test -s conftest.err; then
3654     ac_cpp_err=$ac_c_preproc_warn_flag
3655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3656   else
3657     ac_cpp_err=
3658   fi
3659 else
3660   ac_cpp_err=yes
3661 fi
3662 if test -z "$ac_cpp_err"; then
3663   # Broken: success on invalid input.
3664 continue
3665 else
3666   echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669   # Passes both tests.
3670 ac_preproc_ok=:
3671 break
3672 fi
3673
3674 rm -f conftest.err conftest.$ac_ext
3675
3676 done
3677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678 rm -f conftest.err conftest.$ac_ext
3679 if $ac_preproc_ok; then
3680   :
3681 else
3682   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log' for more details." >&5
3684 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3685 See \`config.log' for more details." >&2;}
3686    { (exit 1); exit 1; }; }
3687 fi
3688
3689 ac_ext=c
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694
3695
3696 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3697 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   # Extract the first word of "grep ggrep" to use in msg output
3702 if test -z "$GREP"; then
3703 set dummy grep ggrep; ac_prog_name=$2
3704 if test "${ac_cv_path_GREP+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   ac_path_GREP_found=false
3708 # Loop through the user's path and test for each of PROGNAME-LIST
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711 do
3712   IFS=$as_save_IFS
3713   test -z "$as_dir" && as_dir=.
3714   for ac_prog in grep ggrep; do
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3717     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3718     # Check for GNU ac_path_GREP and select it if it is found.
3719   # Check for GNU $ac_path_GREP
3720 case `"$ac_path_GREP" --version 2>&1` in
3721 *GNU*)
3722   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3723 *)
3724   ac_count=0
3725   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3726   while :
3727   do
3728     cat "conftest.in" "conftest.in" >"conftest.tmp"
3729     mv "conftest.tmp" "conftest.in"
3730     cp "conftest.in" "conftest.nl"
3731     echo 'GREP' >> "conftest.nl"
3732     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3734     ac_count=`expr $ac_count + 1`
3735     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3736       # Best one so far, save it but keep looking for a better one
3737       ac_cv_path_GREP="$ac_path_GREP"
3738       ac_path_GREP_max=$ac_count
3739     fi
3740     # 10*(2^10) chars as input seems more than enough
3741     test $ac_count -gt 10 && break
3742   done
3743   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744 esac
3745
3746
3747     $ac_path_GREP_found && break 3
3748   done
3749 done
3750
3751 done
3752 IFS=$as_save_IFS
3753
3754
3755 fi
3756
3757 GREP="$ac_cv_path_GREP"
3758 if test -z "$GREP"; then
3759   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761    { (exit 1); exit 1; }; }
3762 fi
3763
3764 else
3765   ac_cv_path_GREP=$GREP
3766 fi
3767
3768
3769 fi
3770 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3771 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3772  GREP="$ac_cv_path_GREP"
3773
3774
3775 { echo "$as_me:$LINENO: checking for egrep" >&5
3776 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_EGREP+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3781    then ac_cv_path_EGREP="$GREP -E"
3782    else
3783      # Extract the first word of "egrep" to use in msg output
3784 if test -z "$EGREP"; then
3785 set dummy egrep; ac_prog_name=$2
3786 if test "${ac_cv_path_EGREP+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   ac_path_EGREP_found=false
3790 # Loop through the user's path and test for each of PROGNAME-LIST
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793 do
3794   IFS=$as_save_IFS
3795   test -z "$as_dir" && as_dir=.
3796   for ac_prog in egrep; do
3797   for ac_exec_ext in '' $ac_executable_extensions; do
3798     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3799     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3800     # Check for GNU ac_path_EGREP and select it if it is found.
3801   # Check for GNU $ac_path_EGREP
3802 case `"$ac_path_EGREP" --version 2>&1` in
3803 *GNU*)
3804   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3805 *)
3806   ac_count=0
3807   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3808   while :
3809   do
3810     cat "conftest.in" "conftest.in" >"conftest.tmp"
3811     mv "conftest.tmp" "conftest.in"
3812     cp "conftest.in" "conftest.nl"
3813     echo 'EGREP' >> "conftest.nl"
3814     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3816     ac_count=`expr $ac_count + 1`
3817     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3818       # Best one so far, save it but keep looking for a better one
3819       ac_cv_path_EGREP="$ac_path_EGREP"
3820       ac_path_EGREP_max=$ac_count
3821     fi
3822     # 10*(2^10) chars as input seems more than enough
3823     test $ac_count -gt 10 && break
3824   done
3825   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3826 esac
3827
3828
3829     $ac_path_EGREP_found && break 3
3830   done
3831 done
3832
3833 done
3834 IFS=$as_save_IFS
3835
3836
3837 fi
3838
3839 EGREP="$ac_cv_path_EGREP"
3840 if test -z "$EGREP"; then
3841   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3842 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3843    { (exit 1); exit 1; }; }
3844 fi
3845
3846 else
3847   ac_cv_path_EGREP=$EGREP
3848 fi
3849
3850
3851    fi
3852 fi
3853 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3854 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3855  EGREP="$ac_cv_path_EGREP"
3856
3857
3858 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3859 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3860 if test "${ac_cv_header_stdc+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h.  */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h.  */
3869 #include <stdlib.h>
3870 #include <stdarg.h>
3871 #include <string.h>
3872 #include <float.h>
3873
3874 int
3875 main ()
3876 {
3877
3878   ;
3879   return 0;
3880 }
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3884 case "(($ac_try" in
3885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886   *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889   (eval "$ac_compile") 2>conftest.er1
3890   ac_status=$?
3891   grep -v '^ *+' conftest.er1 >conftest.err
3892   rm -f conftest.er1
3893   cat conftest.err >&5
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); } &&
3896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3897   { (case "(($ac_try" in
3898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899   *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902   (eval "$ac_try") 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; } &&
3906          { ac_try='test -s conftest.$ac_objext'
3907   { (case "(($ac_try" in
3908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909   *) ac_try_echo=$ac_try;;
3910 esac
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912   (eval "$ac_try") 2>&5
3913   ac_status=$?
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); }; }; then
3916   ac_cv_header_stdc=yes
3917 else
3918   echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3920
3921         ac_cv_header_stdc=no
3922 fi
3923
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925
3926 if test $ac_cv_header_stdc = yes; then
3927   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3928   cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h.  */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h.  */
3934 #include <string.h>
3935
3936 _ACEOF
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938   $EGREP "memchr" >/dev/null 2>&1; then
3939   :
3940 else
3941   ac_cv_header_stdc=no
3942 fi
3943 rm -f conftest*
3944
3945 fi
3946
3947 if test $ac_cv_header_stdc = yes; then
3948   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3949   cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955 #include <stdlib.h>
3956
3957 _ACEOF
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959   $EGREP "free" >/dev/null 2>&1; then
3960   :
3961 else
3962   ac_cv_header_stdc=no
3963 fi
3964 rm -f conftest*
3965
3966 fi
3967
3968 if test $ac_cv_header_stdc = yes; then
3969   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3970   if test "$cross_compiling" = yes; then
3971   :
3972 else
3973   cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h.  */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h.  */
3979 #include <ctype.h>
3980 #include <stdlib.h>
3981 #if ((' ' & 0x0FF) == 0x020)
3982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3984 #else
3985 # define ISLOWER(c) \
3986                    (('a' <= (c) && (c) <= 'i') \
3987                      || ('j' <= (c) && (c) <= 'r') \
3988                      || ('s' <= (c) && (c) <= 'z'))
3989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3990 #endif
3991
3992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3993 int
3994 main ()
3995 {
3996   int i;
3997   for (i = 0; i < 256; i++)
3998     if (XOR (islower (i), ISLOWER (i))
3999         || toupper (i) != TOUPPER (i))
4000       return 2;
4001   return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest$ac_exeext
4005 if { (ac_try="$ac_link"
4006 case "(($ac_try" in
4007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008   *) ac_try_echo=$ac_try;;
4009 esac
4010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011   (eval "$ac_link") 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015   { (case "(($ac_try" in
4016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017   *) ac_try_echo=$ac_try;;
4018 esac
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020   (eval "$ac_try") 2>&5
4021   ac_status=$?
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); }; }; then
4024   :
4025 else
4026   echo "$as_me: program exited with status $ac_status" >&5
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 ( exit $ac_status )
4031 ac_cv_header_stdc=no
4032 fi
4033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4034 fi
4035
4036
4037 fi
4038 fi
4039 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4040 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4041 if test $ac_cv_header_stdc = yes; then
4042
4043 cat >>confdefs.h <<\_ACEOF
4044 #define STDC_HEADERS 1
4045 _ACEOF
4046
4047 fi
4048
4049 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4060                   inttypes.h stdint.h unistd.h
4061 do
4062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4066   echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068   cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 $ac_includes_default
4075
4076 #include <$ac_header>
4077 _ACEOF
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4080 case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085   (eval "$ac_compile") 2>conftest.er1
4086   ac_status=$?
4087   grep -v '^ *+' conftest.er1 >conftest.err
4088   rm -f conftest.er1
4089   cat conftest.err >&5
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); } &&
4092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4093   { (case "(($ac_try" in
4094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095   *) ac_try_echo=$ac_try;;
4096 esac
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098   (eval "$ac_try") 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; } &&
4102          { ac_try='test -s conftest.$ac_objext'
4103   { (case "(($ac_try" in
4104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105   *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108   (eval "$ac_try") 2>&5
4109   ac_status=$?
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); }; }; then
4112   eval "$as_ac_Header=yes"
4113 else
4114   echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4116
4117         eval "$as_ac_Header=no"
4118 fi
4119
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 fi
4122 ac_res=`eval echo '${'$as_ac_Header'}'`
4123                { echo "$as_me:$LINENO: result: $ac_res" >&5
4124 echo "${ECHO_T}$ac_res" >&6; }
4125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4126   cat >>confdefs.h <<_ACEOF
4127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4128 _ACEOF
4129
4130 fi
4131
4132 done
4133
4134
4135 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4136 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4137 if test "${ac_cv_c_bigendian+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   # See if sys/param.h defines the BYTE_ORDER macro.
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 #include <sys/types.h>
4148 #include <sys/param.h>
4149
4150 int
4151 main ()
4152 {
4153 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4154  bogus endian macros
4155 #endif
4156
4157   ;
4158   return 0;
4159 }
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4163 case "(($ac_try" in
4164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165   *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168   (eval "$ac_compile") 2>conftest.er1
4169   ac_status=$?
4170   grep -v '^ *+' conftest.er1 >conftest.err
4171   rm -f conftest.er1
4172   cat conftest.err >&5
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); } &&
4175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176   { (case "(($ac_try" in
4177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178   *) ac_try_echo=$ac_try;;
4179 esac
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181   (eval "$ac_try") 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); }; } &&
4185          { ac_try='test -s conftest.$ac_objext'
4186   { (case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191   (eval "$ac_try") 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; }; then
4195   # It does; now see whether it defined to BIG_ENDIAN or not.
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202 #include <sys/types.h>
4203 #include <sys/param.h>
4204
4205 int
4206 main ()
4207 {
4208 #if BYTE_ORDER != BIG_ENDIAN
4209  not big endian
4210 #endif
4211
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
4218 case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223   (eval "$ac_compile") 2>conftest.er1
4224   ac_status=$?
4225   grep -v '^ *+' conftest.er1 >conftest.err
4226   rm -f conftest.er1
4227   cat conftest.err >&5
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); } &&
4230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231   { (case "(($ac_try" in
4232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233   *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236   (eval "$ac_try") 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; } &&
4240          { ac_try='test -s conftest.$ac_objext'
4241   { (case "(($ac_try" in
4242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243   *) ac_try_echo=$ac_try;;
4244 esac
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246   (eval "$ac_try") 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; }; then
4250   ac_cv_c_bigendian=yes
4251 else
4252   echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255         ac_cv_c_bigendian=no
4256 fi
4257
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 else
4260   echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263         # It does not; compile a test program.
4264 if test "$cross_compiling" = yes; then
4265   # try to guess the endianness by grepping values into an object file
4266   ac_cv_c_bigendian=unknown
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4274 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4275 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4276 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4277 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4278 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4279 int
4280 main ()
4281 {
4282  _ascii (); _ebcdic ();
4283   ;
4284   return 0;
4285 }
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (ac_try="$ac_compile"
4289 case "(($ac_try" in
4290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291   *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294   (eval "$ac_compile") 2>conftest.er1
4295   ac_status=$?
4296   grep -v '^ *+' conftest.er1 >conftest.err
4297   rm -f conftest.er1
4298   cat conftest.err >&5
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); } &&
4301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4302   { (case "(($ac_try" in
4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304   *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307   (eval "$ac_try") 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; } &&
4311          { ac_try='test -s conftest.$ac_objext'
4312   { (case "(($ac_try" in
4313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314   *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317   (eval "$ac_try") 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; }; then
4321   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4322   ac_cv_c_bigendian=yes
4323 fi
4324 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4325   if test "$ac_cv_c_bigendian" = unknown; then
4326     ac_cv_c_bigendian=no
4327   else
4328     # finding both strings is unlikely to happen, but who knows?
4329     ac_cv_c_bigendian=unknown
4330   fi
4331 fi
4332 else
4333   echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4335
4336
4337 fi
4338
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 else
4341   cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347 $ac_includes_default
4348 int
4349 main ()
4350 {
4351
4352   /* Are we little or big endian?  From Harbison&Steele.  */
4353   union
4354   {
4355     long int l;
4356     char c[sizeof (long int)];
4357   } u;
4358   u.l = 1;
4359   return u.c[sizeof (long int) - 1] == 1;
4360
4361   ;
4362   return 0;
4363 }
4364 _ACEOF
4365 rm -f conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4367 case "(($ac_try" in
4368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369   *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372   (eval "$ac_link") 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4376   { (case "(($ac_try" in
4377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378   *) ac_try_echo=$ac_try;;
4379 esac
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381   (eval "$ac_try") 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   ac_cv_c_bigendian=no
4386 else
4387   echo "$as_me: program exited with status $ac_status" >&5
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 ( exit $ac_status )
4392 ac_cv_c_bigendian=yes
4393 fi
4394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4395 fi
4396
4397
4398 fi
4399
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 fi
4402 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4403 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4404 case $ac_cv_c_bigendian in
4405   yes)
4406     ENDIAN=big
4407  ;;
4408   no)
4409     ENDIAN=little
4410  ;;
4411   *)
4412     { { echo "$as_me:$LINENO: error: unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4414 echo "$as_me: error: unknown endianness
4415 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4416    { (exit 1); exit 1; }; } ;;
4417 esac
4418
4419
4420 if test "$cross_compiling" = yes; then
4421   LLVM_CROSS_COMPILING=1
4422
4423
4424 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4425 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4426 if test "${ac_cv_build_exeext+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4430   ac_cv_build_exeext=.exe
4431 else
4432   ac_build_prefix=${build_alias}-
4433
4434   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4435 set dummy ${ac_build_prefix}gcc; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   if test -n "$BUILD_CC"; then
4442   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449   for ac_exec_ext in '' $ac_executable_extensions; do
4450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456 done
4457 IFS=$as_save_IFS
4458
4459 fi
4460 fi
4461 BUILD_CC=$ac_cv_prog_BUILD_CC
4462 if test -n "$BUILD_CC"; then
4463   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464 echo "${ECHO_T}$BUILD_CC" >&6; }
4465 else
4466   { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4468 fi
4469
4470
4471   if test -z "$BUILD_CC"; then
4472      # Extract the first word of "gcc", so it can be a program name with args.
4473 set dummy gcc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   if test -n "$BUILD_CC"; then
4480   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485   IFS=$as_save_IFS
4486   test -z "$as_dir" && as_dir=.
4487   for ac_exec_ext in '' $ac_executable_extensions; do
4488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4489     ac_cv_prog_BUILD_CC="gcc"
4490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491     break 2
4492   fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4496
4497 fi
4498 fi
4499 BUILD_CC=$ac_cv_prog_BUILD_CC
4500 if test -n "$BUILD_CC"; then
4501   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4502 echo "${ECHO_T}$BUILD_CC" >&6; }
4503 else
4504   { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506 fi
4507
4508
4509      if test -z "$BUILD_CC"; then
4510        # Extract the first word of "cc", so it can be a program name with args.
4511 set dummy cc; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   if test -n "$BUILD_CC"; then
4518   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4519 else
4520   ac_prog_rejected=no
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4528     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4529        ac_prog_rejected=yes
4530        continue
4531      fi
4532     ac_cv_prog_BUILD_CC="cc"
4533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537 done
4538 IFS=$as_save_IFS
4539
4540 if test $ac_prog_rejected = yes; then
4541   # We found a bogon in the path, so make sure we never use it.
4542   set dummy $ac_cv_prog_BUILD_CC
4543   shift
4544   if test $# != 0; then
4545     # We chose a different compiler from the bogus one.
4546     # However, it has the same basename, so the bogon will be chosen
4547     # first if we set BUILD_CC to just the basename; use the full file name.
4548     shift
4549     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4550   fi
4551 fi
4552 fi
4553 fi
4554 BUILD_CC=$ac_cv_prog_BUILD_CC
4555 if test -n "$BUILD_CC"; then
4556   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4557 echo "${ECHO_T}$BUILD_CC" >&6; }
4558 else
4559   { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4561 fi
4562
4563
4564      fi
4565   fi
4566   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4567 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4568    { (exit 1); exit 1; }; }
4569   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4570   rm -f conftest*
4571   echo 'int main () { return 0; }' > conftest.$ac_ext
4572   ac_cv_build_exeext=
4573   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4574   (eval $ac_build_link) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; then
4578     for file in conftest.*; do
4579       case $file in
4580       *.c | *.o | *.obj | *.dSYM) ;;
4581       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4582       esac
4583     done
4584   else
4585     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4586 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4587    { (exit 1); exit 1; }; }
4588   fi
4589   rm -f conftest*
4590   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4591 fi
4592 fi
4593
4594 BUILD_EXEEXT=""
4595 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4596 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4597 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4598 ac_build_exeext=$BUILD_EXEEXT
4599
4600   ac_build_prefix=${build_alias}-
4601   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4602 set dummy ${ac_build_prefix}g++; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606   echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608   if test -n "$BUILD_CXX"; then
4609   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616   for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 fi
4627 fi
4628 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629 if test -n "$BUILD_CXX"; then
4630   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631 echo "${ECHO_T}$BUILD_CXX" >&6; }
4632 else
4633   { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4635 fi
4636
4637
4638   if test -z "$BUILD_CXX"; then
4639      # Extract the first word of "g++", so it can be a program name with args.
4640 set dummy g++; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644   echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646   if test -n "$BUILD_CXX"; then
4647   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654   for ac_exec_ext in '' $ac_executable_extensions; do
4655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4656     ac_cv_prog_BUILD_CXX="g++"
4657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661 done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4667 if test -n "$BUILD_CXX"; then
4668   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4669 echo "${ECHO_T}$BUILD_CXX" >&6; }
4670 else
4671   { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4673 fi
4674
4675
4676      if test -z "$BUILD_CXX"; then
4677        # Extract the first word of "c++", so it can be a program name with args.
4678 set dummy c++; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4682   echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684   if test -n "$BUILD_CXX"; then
4685   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4686 else
4687   ac_prog_rejected=no
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693   for ac_exec_ext in '' $ac_executable_extensions; do
4694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4695     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4696        ac_prog_rejected=yes
4697        continue
4698      fi
4699     ac_cv_prog_BUILD_CXX="c++"
4700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 if test $ac_prog_rejected = yes; then
4708   # We found a bogon in the path, so make sure we never use it.
4709   set dummy $ac_cv_prog_BUILD_CXX
4710   shift
4711   if test $# != 0; then
4712     # We chose a different compiler from the bogus one.
4713     # However, it has the same basename, so the bogon will be chosen
4714     # first if we set BUILD_CXX to just the basename; use the full file name.
4715     shift
4716     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4717   fi
4718 fi
4719 fi
4720 fi
4721 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4722 if test -n "$BUILD_CXX"; then
4723   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4724 echo "${ECHO_T}$BUILD_CXX" >&6; }
4725 else
4726   { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 fi
4729
4730
4731      fi
4732   fi
4733 else
4734   LLVM_CROSS_COMPILING=0
4735
4736 fi
4737
4738 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4739   cvsbuild="yes"
4740   optimize="no"
4741   CVSBUILD=CVSBUILD=1
4742
4743 else
4744   cvsbuild="no"
4745   optimize="yes"
4746 fi
4747
4748
4749 # Check whether --enable-optimized was given.
4750 if test "${enable_optimized+set}" = set; then
4751   enableval=$enable_optimized;
4752 else
4753   enableval=$optimize
4754 fi
4755
4756 if test ${enableval} = "no" ; then
4757   ENABLE_OPTIMIZED=
4758
4759 else
4760   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4761
4762 fi
4763
4764 # Check whether --enable-profiling was given.
4765 if test "${enable_profiling+set}" = set; then
4766   enableval=$enable_profiling;
4767 else
4768   enableval="no"
4769 fi
4770
4771 if test ${enableval} = "no" ; then
4772   ENABLE_PROFILING=
4773
4774 else
4775   ENABLE_PROFILING=ENABLE_PROFILING=1
4776
4777 fi
4778
4779 # Check whether --enable-assertions was given.
4780 if test "${enable_assertions+set}" = set; then
4781   enableval=$enable_assertions;
4782 else
4783   enableval="yes"
4784 fi
4785
4786 if test ${enableval} = "yes" ; then
4787   DISABLE_ASSERTIONS=
4788
4789 else
4790   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4791
4792 fi
4793
4794 # Check whether --enable-expensive-checks was given.
4795 if test "${enable_expensive_checks+set}" = set; then
4796   enableval=$enable_expensive_checks;
4797 else
4798   enableval="no"
4799 fi
4800
4801 if test ${enableval} = "yes" ; then
4802   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4803
4804   EXPENSIVE_CHECKS=yes
4805
4806 else
4807   ENABLE_EXPENSIVE_CHECKS=
4808
4809   EXPENSIVE_CHECKS=no
4810
4811 fi
4812
4813 # Check whether --enable-debug-runtime was given.
4814 if test "${enable_debug_runtime+set}" = set; then
4815   enableval=$enable_debug_runtime;
4816 else
4817   enableval=no
4818 fi
4819
4820 if test ${enableval} = "no" ; then
4821   DEBUG_RUNTIME=
4822
4823 else
4824   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4825
4826 fi
4827
4828 # Check whether --enable-debug-symbols was given.
4829 if test "${enable_debug_symbols+set}" = set; then
4830   enableval=$enable_debug_symbols;
4831 else
4832   enableval=no
4833 fi
4834
4835 if test ${enableval} = "no" ; then
4836   DEBUG_SYMBOLS=
4837
4838 else
4839   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4840
4841 fi
4842
4843 # Check whether --enable-jit was given.
4844 if test "${enable_jit+set}" = set; then
4845   enableval=$enable_jit;
4846 else
4847   enableval=default
4848 fi
4849
4850 if test ${enableval} = "no"
4851 then
4852   JIT=
4853
4854 else
4855   case "$llvm_cv_target_arch" in
4856     x86)         TARGET_HAS_JIT=1
4857  ;;
4858     Sparc)       TARGET_HAS_JIT=0
4859  ;;
4860     PowerPC)     TARGET_HAS_JIT=1
4861  ;;
4862     x86_64)      TARGET_HAS_JIT=1
4863  ;;
4864     Alpha)       TARGET_HAS_JIT=0
4865  ;;
4866     ARM)         TARGET_HAS_JIT=1
4867  ;;
4868     Mips)        TARGET_HAS_JIT=0
4869  ;;
4870     XCore)       TARGET_HAS_JIT=0
4871  ;;
4872     MSP430)      TARGET_HAS_JIT=0
4873  ;;
4874     SystemZ)     TARGET_HAS_JIT=0
4875  ;;
4876     Blackfin)    TARGET_HAS_JIT=0
4877  ;;
4878     MBlaze)      TARGET_HAS_JIT=0
4879  ;;
4880     PTX)         TARGET_HAS_JIT=0
4881  ;;
4882     *)           TARGET_HAS_JIT=0
4883  ;;
4884   esac
4885 fi
4886
4887 # Check whether --enable-docs was given.
4888 if test "${enable_docs+set}" = set; then
4889   enableval=$enable_docs;
4890 else
4891   enableval=default
4892 fi
4893
4894 case "$enableval" in
4895   yes) ENABLE_DOCS=1
4896  ;;
4897   no)  ENABLE_DOCS=0
4898  ;;
4899   default) ENABLE_DOCS=1
4900  ;;
4901   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4902 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4903    { (exit 1); exit 1; }; } ;;
4904 esac
4905
4906 # Check whether --enable-doxygen was given.
4907 if test "${enable_doxygen+set}" = set; then
4908   enableval=$enable_doxygen;
4909 else
4910   enableval=default
4911 fi
4912
4913 case "$enableval" in
4914   yes) ENABLE_DOXYGEN=1
4915  ;;
4916   no)  ENABLE_DOXYGEN=0
4917  ;;
4918   default) ENABLE_DOXYGEN=0
4919  ;;
4920   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4921 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4922    { (exit 1); exit 1; }; } ;;
4923 esac
4924
4925 # Check whether --enable-threads was given.
4926 if test "${enable_threads+set}" = set; then
4927   enableval=$enable_threads;
4928 else
4929   enableval=default
4930 fi
4931
4932 case "$enableval" in
4933   yes) ENABLE_THREADS=1
4934  ;;
4935   no)  ENABLE_THREADS=0
4936  ;;
4937   default) ENABLE_THREADS=1
4938  ;;
4939   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4940 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4941    { (exit 1); exit 1; }; } ;;
4942 esac
4943
4944 cat >>confdefs.h <<_ACEOF
4945 #define ENABLE_THREADS $ENABLE_THREADS
4946 _ACEOF
4947
4948
4949 # Check whether --enable-pthreads was given.
4950 if test "${enable_pthreads+set}" = set; then
4951   enableval=$enable_pthreads;
4952 else
4953   enableval=default
4954 fi
4955
4956 case "$enableval" in
4957   yes) ENABLE_PTHREADS=1
4958  ;;
4959   no)  ENABLE_PTHREADS=0
4960  ;;
4961   default) ENABLE_PTHREADS=1
4962  ;;
4963   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4965    { (exit 1); exit 1; }; } ;;
4966 esac
4967
4968 # Check whether --enable-pic was given.
4969 if test "${enable_pic+set}" = set; then
4970   enableval=$enable_pic;
4971 else
4972   enableval=default
4973 fi
4974
4975 case "$enableval" in
4976   yes) ENABLE_PIC=1
4977  ;;
4978   no)  ENABLE_PIC=0
4979  ;;
4980   default) ENABLE_PIC=1
4981  ;;
4982   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4983 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4984    { (exit 1); exit 1; }; } ;;
4985 esac
4986
4987 cat >>confdefs.h <<_ACEOF
4988 #define ENABLE_PIC $ENABLE_PIC
4989 _ACEOF
4990
4991
4992 # Check whether --enable-shared was given.
4993 if test "${enable_shared+set}" = set; then
4994   enableval=$enable_shared;
4995 else
4996   enableval=default
4997 fi
4998
4999 case "$enableval" in
5000   yes) ENABLE_SHARED=1
5001  ;;
5002   no)  ENABLE_SHARED=0
5003  ;;
5004   default) ENABLE_SHARED=0
5005  ;;
5006   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5007 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5008    { (exit 1); exit 1; }; } ;;
5009 esac
5010
5011 # Check whether --enable-embed-stdcxx was given.
5012 if test "${enable_embed_stdcxx+set}" = set; then
5013   enableval=$enable_embed_stdcxx;
5014 else
5015   enableval=default
5016 fi
5017
5018 case "$enableval" in
5019   yes) ENABLE_EMBED_STDCXX=1
5020  ;;
5021   no)  ENABLE_EMBED_STDCXX=0
5022  ;;
5023   default) ENABLE_EMBED_STDCXX=1
5024  ;;
5025   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5026 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5027    { (exit 1); exit 1; }; } ;;
5028 esac
5029
5030 # Check whether --enable-timestamps was given.
5031 if test "${enable_timestamps+set}" = set; then
5032   enableval=$enable_timestamps;
5033 else
5034   enableval=default
5035 fi
5036
5037 case "$enableval" in
5038   yes) ENABLE_TIMESTAMPS=1
5039  ;;
5040   no)  ENABLE_TIMESTAMPS=0
5041  ;;
5042   default) ENABLE_TIMESTAMPS=1
5043  ;;
5044   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5045 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5046    { (exit 1); exit 1; }; } ;;
5047 esac
5048
5049 cat >>confdefs.h <<_ACEOF
5050 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5051 _ACEOF
5052
5053
5054 TARGETS_TO_BUILD=""
5055 # Check whether --enable-targets was given.
5056 if test "${enable_targets+set}" = set; then
5057   enableval=$enable_targets;
5058 else
5059   enableval=all
5060 fi
5061
5062 if test "$enableval" = host-only ; then
5063   enableval=host
5064 fi
5065 case "$enableval" in
5066   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5067   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5068       case "$a_target" in
5069         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5070         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5071         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5072         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5073         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5074         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5075         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5076         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5077         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5078         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5079         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5080         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5081         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5082         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5083         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5084         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5085         host) case "$llvm_cv_target_arch" in
5086             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5087             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5088             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5089             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5090             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5091             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5092             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5093             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5094             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5095             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5096             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5097             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5098             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5099             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5100             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5101 echo "$as_me: error: Can not set target to build" >&2;}
5102    { (exit 1); exit 1; }; } ;;
5103           esac ;;
5104         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5105 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5106    { (exit 1); exit 1; }; } ;;
5107       esac
5108   done
5109   ;;
5110 esac
5111 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5112
5113
5114 # Determine whether we are building LLVM support for the native architecture.
5115 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5116 for a_target in $TARGETS_TO_BUILD; do
5117   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5118
5119 cat >>confdefs.h <<_ACEOF
5120 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5121 _ACEOF
5122
5123     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5124     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5125     LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo"
5126     LLVM_NATIVE_MCCODEGENINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCCodeGenInfo"
5127     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5128     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5129       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5130     fi
5131
5132 cat >>confdefs.h <<_ACEOF
5133 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5134 _ACEOF
5135
5136
5137 cat >>confdefs.h <<_ACEOF
5138 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5139 _ACEOF
5140
5141
5142 cat >>confdefs.h <<_ACEOF
5143 #define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO
5144 _ACEOF
5145
5146
5147 cat >>confdefs.h <<_ACEOF
5148 #define LLVM_NATIVE_MCCODEGENINFO $LLVM_NATIVE_MCCODEGENINFO
5149 _ACEOF
5150
5151
5152 cat >>confdefs.h <<_ACEOF
5153 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5154 _ACEOF
5155
5156     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5157
5158 cat >>confdefs.h <<_ACEOF
5159 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5160 _ACEOF
5161
5162     fi
5163   fi
5164 done
5165
5166 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5167 # target feature def files.
5168 LLVM_ENUM_TARGETS=""
5169 LLVM_ENUM_ASM_PRINTERS=""
5170 LLVM_ENUM_ASM_PARSERS=""
5171 LLVM_ENUM_DISASSEMBLERS=""
5172 for target_to_build in $TARGETS_TO_BUILD; do
5173   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5174   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5175     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5176   fi
5177   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5178     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5179   fi
5180   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5181     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5182   fi
5183 done
5184
5185
5186
5187
5188
5189 # Check whether --enable-cbe-printf-a was given.
5190 if test "${enable_cbe_printf_a+set}" = set; then
5191   enableval=$enable_cbe_printf_a;
5192 else
5193   enableval=default
5194 fi
5195
5196 case "$enableval" in
5197   yes) ENABLE_CBE_PRINTF_A=1
5198  ;;
5199   no)  ENABLE_CBE_PRINTF_A=0
5200  ;;
5201   default)  ENABLE_CBE_PRINTF_A=1
5202  ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 cat >>confdefs.h <<_ACEOF
5209 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5210 _ACEOF
5211
5212
5213
5214 # Check whether --with-llvmgccdir was given.
5215 if test "${with_llvmgccdir+set}" = set; then
5216   withval=$with_llvmgccdir;
5217 else
5218   withval=default
5219 fi
5220
5221 case "$withval" in
5222   default) WITH_LLVMGCCDIR=default ;;
5223   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5224   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5225 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5226    { (exit 1); exit 1; }; } ;;
5227 esac
5228
5229
5230 # Check whether --with-llvmgcc was given.
5231 if test "${with_llvmgcc+set}" = set; then
5232   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5233       WITH_LLVMGCCDIR=""
5234 fi
5235
5236
5237
5238 # Check whether --with-llvmgxx was given.
5239 if test "${with_llvmgxx+set}" = set; then
5240   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5241     WITH_LLVMGCCDIR=""
5242 fi
5243
5244
5245 if test -n "$LLVMGCC"; then
5246    LLVMGCCCOMMAND="$LLVMGCC"
5247 fi
5248
5249 if test -n "$LLVMGXX"; then
5250    LLVMGXXCOMMAND="$LLVMGXX"
5251 fi
5252
5253 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5254    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5255 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5256    { (exit 1); exit 1; }; };
5257 fi
5258
5259 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5260    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5261 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5262    { (exit 1); exit 1; }; };
5263 fi
5264
5265
5266 # Check whether --with-clang was given.
5267 if test "${with_clang+set}" = set; then
5268   withval=$with_clang;
5269 else
5270   with_clang=default
5271 fi
5272
5273
5274
5275 # Check whether --with-built-clang was given.
5276 if test "${with_built_clang+set}" = set; then
5277   withval=$with_built_clang;
5278 else
5279   with_built_clang=check
5280 fi
5281
5282
5283 { echo "$as_me:$LINENO: checking clang compiler" >&5
5284 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5285 WITH_CLANGPATH=""
5286 WITH_BUILT_CLANG=0
5287 if test "$with_clang" != "default"; then
5288    WITH_CLANGPATH="$with_clang"
5289    if ! test -x "$WITH_CLANGPATH"; then
5290      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5291 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5292    { (exit 1); exit 1; }; }
5293    fi
5294 elif test "$with_built_clang" = "yes"; then
5295    WITH_BUILT_CLANG=1
5296 elif test "$with_built_clang" = "no"; then
5297    WITH_BUILT_CLANG=0
5298 else
5299    if test "$with_built_clang" != "check"; then
5300       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5301 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5302    { (exit 1); exit 1; }; }
5303    fi
5304
5305    if test -f ${srcdir}/tools/clang/README.txt; then
5306      WITH_BUILT_CLANG=1
5307    fi
5308 fi
5309
5310 if ! test -z "$WITH_CLANGPATH"; then
5311    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5312 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5313    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5314 elif test "$WITH_BUILT_CLANG" = "1"; then
5315    { echo "$as_me:$LINENO: result: built" >&5
5316 echo "${ECHO_T}built" >&6; }
5317 else
5318    { echo "$as_me:$LINENO: result: none" >&5
5319 echo "${ECHO_T}none" >&6; }
5320 fi
5321 CLANGPATH=$WITH_CLANGPATH
5322
5323 CLANGXXPATH=$WITH_CLANGXXPATH
5324
5325 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5326
5327
5328
5329 # Check whether --with-optimize-option was given.
5330 if test "${with_optimize_option+set}" = set; then
5331   withval=$with_optimize_option;
5332 else
5333   withval=default
5334 fi
5335
5336 { echo "$as_me:$LINENO: checking optimization flags" >&5
5337 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5338 case "$withval" in
5339   default)
5340     case "$llvm_cv_os_type" in
5341     FreeBSD) optimize_option=-O2 ;;
5342     MingW) optimize_option=-O2 ;;
5343     *)     optimize_option=-O3 ;;
5344     esac ;;
5345   *) optimize_option="$withval" ;;
5346 esac
5347 OPTIMIZE_OPTION=$optimize_option
5348
5349 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5350 echo "${ECHO_T}$optimize_option" >&6; }
5351
5352
5353 # Check whether --with-extra-options was given.
5354 if test "${with_extra_options+set}" = set; then
5355   withval=$with_extra_options;
5356 else
5357   withval=default
5358 fi
5359
5360 case "$withval" in
5361   default) EXTRA_OPTIONS= ;;
5362   *) EXTRA_OPTIONS=$withval ;;
5363 esac
5364 EXTRA_OPTIONS=$EXTRA_OPTIONS
5365
5366
5367
5368 # Check whether --with-extra-ld-options was given.
5369 if test "${with_extra_ld_options+set}" = set; then
5370   withval=$with_extra_ld_options;
5371 else
5372   withval=default
5373 fi
5374
5375 case "$withval" in
5376   default) EXTRA_LD_OPTIONS= ;;
5377   *) EXTRA_LD_OPTIONS=$withval ;;
5378 esac
5379 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5380
5381
5382 # Check whether --enable-bindings was given.
5383 if test "${enable_bindings+set}" = set; then
5384   enableval=$enable_bindings;
5385 else
5386   enableval=default
5387 fi
5388
5389 BINDINGS_TO_BUILD=""
5390 case "$enableval" in
5391   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5392   all ) BINDINGS_TO_BUILD="ocaml" ;;
5393   none | no) BINDINGS_TO_BUILD="" ;;
5394   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5395       case "$a_binding" in
5396         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5397         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5398 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5399    { (exit 1); exit 1; }; } ;;
5400       esac
5401   done
5402   ;;
5403 esac
5404
5405
5406 # Check whether --with-ocaml-libdir was given.
5407 if test "${with_ocaml_libdir+set}" = set; then
5408   withval=$with_ocaml_libdir;
5409 else
5410   withval=auto
5411 fi
5412
5413 case "$withval" in
5414   auto) with_ocaml_libdir="$withval" ;;
5415   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5416   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5417 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5418    { (exit 1); exit 1; }; } ;;
5419 esac
5420
5421
5422 # Check whether --with-clang-resource-dir was given.
5423 if test "${with_clang_resource_dir+set}" = set; then
5424   withval=$with_clang_resource_dir;
5425 else
5426   withval=""
5427 fi
5428
5429
5430 cat >>confdefs.h <<_ACEOF
5431 #define CLANG_RESOURCE_DIR "$withval"
5432 _ACEOF
5433
5434
5435
5436 # Check whether --with-c-include-dirs was given.
5437 if test "${with_c_include_dirs+set}" = set; then
5438   withval=$with_c_include_dirs;
5439 else
5440   withval=""
5441 fi
5442
5443
5444 cat >>confdefs.h <<_ACEOF
5445 #define C_INCLUDE_DIRS "$withval"
5446 _ACEOF
5447
5448
5449
5450 # Check whether --with-cxx-include-root was given.
5451 if test "${with_cxx_include_root+set}" = set; then
5452   withval=$with_cxx_include_root;
5453 else
5454   withval=""
5455 fi
5456
5457
5458 cat >>confdefs.h <<_ACEOF
5459 #define CXX_INCLUDE_ROOT "$withval"
5460 _ACEOF
5461
5462
5463
5464 # Check whether --with-cxx-include-arch was given.
5465 if test "${with_cxx_include_arch+set}" = set; then
5466   withval=$with_cxx_include_arch;
5467 else
5468   withval=""
5469 fi
5470
5471
5472 cat >>confdefs.h <<_ACEOF
5473 #define CXX_INCLUDE_ARCH "$withval"
5474 _ACEOF
5475
5476
5477
5478 # Check whether --with-cxx-include-32bit-dir was given.
5479 if test "${with_cxx_include_32bit_dir+set}" = set; then
5480   withval=$with_cxx_include_32bit_dir;
5481 else
5482   withval=""
5483 fi
5484
5485
5486 cat >>confdefs.h <<_ACEOF
5487 #define CXX_INCLUDE_32BIT_DIR "$withval"
5488 _ACEOF
5489
5490
5491
5492 # Check whether --with-cxx-include-64bit-dir was given.
5493 if test "${with_cxx_include_64bit_dir+set}" = set; then
5494   withval=$with_cxx_include_64bit_dir;
5495 else
5496   withval=""
5497 fi
5498
5499
5500 cat >>confdefs.h <<_ACEOF
5501 #define CXX_INCLUDE_64BIT_DIR "$withval"
5502 _ACEOF
5503
5504
5505
5506 # Check whether --with-binutils-include was given.
5507 if test "${with_binutils_include+set}" = set; then
5508   withval=$with_binutils_include;
5509 else
5510   withval=default
5511 fi
5512
5513 case "$withval" in
5514   default) WITH_BINUTILS_INCDIR=default ;;
5515   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5516   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5517 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5518    { (exit 1); exit 1; }; } ;;
5519 esac
5520 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5521   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5522
5523   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5524      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5525      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5526 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5527    { (exit 1); exit 1; }; };
5528   fi
5529 fi
5530
5531
5532 # Check whether --with-bug-report-url was given.
5533 if test "${with_bug_report_url+set}" = set; then
5534   withval=$with_bug_report_url;
5535 else
5536   withval="http://llvm.org"
5537 fi
5538
5539
5540 cat >>confdefs.h <<_ACEOF
5541 #define BUG_REPORT_URL "$withval"
5542 _ACEOF
5543
5544
5545 # Check whether --enable-libffi was given.
5546 if test "${enable_libffi+set}" = set; then
5547   enableval=$enable_libffi; case "$enableval" in
5548     yes) llvm_cv_enable_libffi="yes" ;;
5549     no)  llvm_cv_enable_libffi="no"  ;;
5550     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5551 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5552    { (exit 1); exit 1; }; } ;;
5553   esac
5554 else
5555   llvm_cv_enable_libffi=no
5556 fi
5557
5558
5559
5560 ac_ext=c
5561 ac_cpp='$CPP $CPPFLAGS'
5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5566 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5567 # On Suns, sometimes $CPP names a directory.
5568 if test -n "$CPP" && test -d "$CPP"; then
5569   CPP=
5570 fi
5571 if test -z "$CPP"; then
5572   if test "${ac_cv_prog_CPP+set}" = set; then
5573   echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575       # Double quotes because CPP needs to be expanded
5576     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5577     do
5578       ac_preproc_ok=false
5579 for ac_c_preproc_warn_flag in '' yes
5580 do
5581   # Use a header file that comes with gcc, so configuring glibc
5582   # with a fresh cross-compiler works.
5583   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584   # <limits.h> exists even on freestanding compilers.
5585   # On the NeXT, cc -E runs the code through the compiler's parser,
5586   # not just through cpp. "Syntax error" is here to catch this case.
5587   cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593 #ifdef __STDC__
5594 # include <limits.h>
5595 #else
5596 # include <assert.h>
5597 #endif
5598                      Syntax error
5599 _ACEOF
5600 if { (ac_try="$ac_cpp conftest.$ac_ext"
5601 case "(($ac_try" in
5602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603   *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } >/dev/null; then
5613   if test -s conftest.err; then
5614     ac_cpp_err=$ac_c_preproc_warn_flag
5615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5616   else
5617     ac_cpp_err=
5618   fi
5619 else
5620   ac_cpp_err=yes
5621 fi
5622 if test -z "$ac_cpp_err"; then
5623   :
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628   # Broken: fails on valid input.
5629 continue
5630 fi
5631
5632 rm -f conftest.err conftest.$ac_ext
5633
5634   # OK, works on sane cases.  Now check whether nonexistent headers
5635   # can be detected and how.
5636   cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h.  */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h.  */
5642 #include <ac_nonexistent.h>
5643 _ACEOF
5644 if { (ac_try="$ac_cpp conftest.$ac_ext"
5645 case "(($ac_try" in
5646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647   *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5651   ac_status=$?
5652   grep -v '^ *+' conftest.er1 >conftest.err
5653   rm -f conftest.er1
5654   cat conftest.err >&5
5655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656   (exit $ac_status); } >/dev/null; then
5657   if test -s conftest.err; then
5658     ac_cpp_err=$ac_c_preproc_warn_flag
5659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5660   else
5661     ac_cpp_err=
5662   fi
5663 else
5664   ac_cpp_err=yes
5665 fi
5666 if test -z "$ac_cpp_err"; then
5667   # Broken: success on invalid input.
5668 continue
5669 else
5670   echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673   # Passes both tests.
5674 ac_preproc_ok=:
5675 break
5676 fi
5677
5678 rm -f conftest.err conftest.$ac_ext
5679
5680 done
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then
5684   break
5685 fi
5686
5687     done
5688     ac_cv_prog_CPP=$CPP
5689
5690 fi
5691   CPP=$ac_cv_prog_CPP
5692 else
5693   ac_cv_prog_CPP=$CPP
5694 fi
5695 { echo "$as_me:$LINENO: result: $CPP" >&5
5696 echo "${ECHO_T}$CPP" >&6; }
5697 ac_preproc_ok=false
5698 for ac_c_preproc_warn_flag in '' yes
5699 do
5700   # Use a header file that comes with gcc, so configuring glibc
5701   # with a fresh cross-compiler works.
5702   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703   # <limits.h> exists even on freestanding compilers.
5704   # On the NeXT, cc -E runs the code through the compiler's parser,
5705   # not just through cpp. "Syntax error" is here to catch this case.
5706   cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h.  */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h.  */
5712 #ifdef __STDC__
5713 # include <limits.h>
5714 #else
5715 # include <assert.h>
5716 #endif
5717                      Syntax error
5718 _ACEOF
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 case "(($ac_try" in
5721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722   *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726   ac_status=$?
5727   grep -v '^ *+' conftest.er1 >conftest.err
5728   rm -f conftest.er1
5729   cat conftest.err >&5
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } >/dev/null; then
5732   if test -s conftest.err; then
5733     ac_cpp_err=$ac_c_preproc_warn_flag
5734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5735   else
5736     ac_cpp_err=
5737   fi
5738 else
5739   ac_cpp_err=yes
5740 fi
5741 if test -z "$ac_cpp_err"; then
5742   :
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747   # Broken: fails on valid input.
5748 continue
5749 fi
5750
5751 rm -f conftest.err conftest.$ac_ext
5752
5753   # OK, works on sane cases.  Now check whether nonexistent headers
5754   # can be detected and how.
5755   cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h.  */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h.  */
5761 #include <ac_nonexistent.h>
5762 _ACEOF
5763 if { (ac_try="$ac_cpp conftest.$ac_ext"
5764 case "(($ac_try" in
5765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766   *) ac_try_echo=$ac_try;;
5767 esac
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5770   ac_status=$?
5771   grep -v '^ *+' conftest.er1 >conftest.err
5772   rm -f conftest.er1
5773   cat conftest.err >&5
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } >/dev/null; then
5776   if test -s conftest.err; then
5777     ac_cpp_err=$ac_c_preproc_warn_flag
5778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5779   else
5780     ac_cpp_err=
5781   fi
5782 else
5783   ac_cpp_err=yes
5784 fi
5785 if test -z "$ac_cpp_err"; then
5786   # Broken: success on invalid input.
5787 continue
5788 else
5789   echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792   # Passes both tests.
5793 ac_preproc_ok=:
5794 break
5795 fi
5796
5797 rm -f conftest.err conftest.$ac_ext
5798
5799 done
5800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5801 rm -f conftest.err conftest.$ac_ext
5802 if $ac_preproc_ok; then
5803   :
5804 else
5805   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5806 See \`config.log' for more details." >&5
5807 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5808 See \`config.log' for more details." >&2;}
5809    { (exit 1); exit 1; }; }
5810 fi
5811
5812 ac_ext=c
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817
5818 ac_ext=c
5819 ac_cpp='$CPP $CPPFLAGS'
5820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823 if test -n "$ac_tool_prefix"; then
5824   for ac_prog in gcc
5825   do
5826     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830 if test "${ac_cv_prog_CC+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   if test -n "$CC"; then
5834   ac_cv_prog_CC="$CC" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841   for ac_exec_ext in '' $ac_executable_extensions; do
5842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5843     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848 done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 CC=$ac_cv_prog_CC
5854 if test -n "$CC"; then
5855   { echo "$as_me:$LINENO: result: $CC" >&5
5856 echo "${ECHO_T}$CC" >&6; }
5857 else
5858   { echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6; }
5860 fi
5861
5862
5863     test -n "$CC" && break
5864   done
5865 fi
5866 if test -z "$CC"; then
5867   ac_ct_CC=$CC
5868   for ac_prog in gcc
5869 do
5870   # Extract the first word of "$ac_prog", so it can be a program name with args.
5871 set dummy $ac_prog; ac_word=$2
5872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   if test -n "$ac_ct_CC"; then
5878   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5879 else
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885   for ac_exec_ext in '' $ac_executable_extensions; do
5886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5887     ac_cv_prog_ac_ct_CC="$ac_prog"
5888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895 fi
5896 fi
5897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5898 if test -n "$ac_ct_CC"; then
5899   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5900 echo "${ECHO_T}$ac_ct_CC" >&6; }
5901 else
5902   { echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6; }
5904 fi
5905
5906
5907   test -n "$ac_ct_CC" && break
5908 done
5909
5910   if test "x$ac_ct_CC" = x; then
5911     CC=""
5912   else
5913     case $cross_compiling:$ac_tool_warned in
5914 yes:)
5915 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5916 whose name does not start with the host triplet.  If you think this
5917 configuration is useful to you, please write to autoconf@gnu.org." >&5
5918 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5919 whose name does not start with the host triplet.  If you think this
5920 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923     CC=$ac_ct_CC
5924   fi
5925 fi
5926
5927
5928 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5929 See \`config.log' for more details." >&5
5930 echo "$as_me: error: no acceptable C compiler found in \$PATH
5931 See \`config.log' for more details." >&2;}
5932    { (exit 1); exit 1; }; }
5933
5934 # Provide some information about the compiler.
5935 echo "$as_me:$LINENO: checking for C compiler version" >&5
5936 ac_compiler=`set X $ac_compile; echo $2`
5937 { (ac_try="$ac_compiler --version >&5"
5938 case "(($ac_try" in
5939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940   *) ac_try_echo=$ac_try;;
5941 esac
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943   (eval "$ac_compiler --version >&5") 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }
5947 { (ac_try="$ac_compiler -v >&5"
5948 case "(($ac_try" in
5949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950   *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953   (eval "$ac_compiler -v >&5") 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); }
5957 { (ac_try="$ac_compiler -V >&5"
5958 case "(($ac_try" in
5959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960   *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963   (eval "$ac_compiler -V >&5") 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); }
5967
5968 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h.  */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h.  */
5979
5980 int
5981 main ()
5982 {
5983 #ifndef __GNUC__
5984        choke me
5985 #endif
5986
5987   ;
5988   return 0;
5989 }
5990 _ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5993 case "(($ac_try" in
5994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995   *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998   (eval "$ac_compile") 2>conftest.er1
5999   ac_status=$?
6000   grep -v '^ *+' conftest.er1 >conftest.err
6001   rm -f conftest.er1
6002   cat conftest.err >&5
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } &&
6005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6006   { (case "(($ac_try" in
6007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008   *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011   (eval "$ac_try") 2>&5
6012   ac_status=$?
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); }; } &&
6015          { ac_try='test -s conftest.$ac_objext'
6016   { (case "(($ac_try" in
6017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018   *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021   (eval "$ac_try") 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; }; then
6025   ac_compiler_gnu=yes
6026 else
6027   echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030         ac_compiler_gnu=no
6031 fi
6032
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6035
6036 fi
6037 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6038 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6039 GCC=`test $ac_compiler_gnu = yes && echo yes`
6040 ac_test_CFLAGS=${CFLAGS+set}
6041 ac_save_CFLAGS=$CFLAGS
6042 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6043 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_cc_g+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   ac_save_c_werror_flag=$ac_c_werror_flag
6048    ac_c_werror_flag=yes
6049    ac_cv_prog_cc_g=no
6050    CFLAGS="-g"
6051    cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h.  */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h.  */
6057
6058 int
6059 main ()
6060 {
6061
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (ac_try="$ac_compile"
6068 case "(($ac_try" in
6069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070   *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073   (eval "$ac_compile") 2>conftest.er1
6074   ac_status=$?
6075   grep -v '^ *+' conftest.er1 >conftest.err
6076   rm -f conftest.er1
6077   cat conftest.err >&5
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); } &&
6080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6081   { (case "(($ac_try" in
6082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083   *) ac_try_echo=$ac_try;;
6084 esac
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086   (eval "$ac_try") 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; } &&
6090          { ac_try='test -s conftest.$ac_objext'
6091   { (case "(($ac_try" in
6092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093   *) ac_try_echo=$ac_try;;
6094 esac
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096   (eval "$ac_try") 2>&5
6097   ac_status=$?
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); }; }; then
6100   ac_cv_prog_cc_g=yes
6101 else
6102   echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105         CFLAGS=""
6106       cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h.  */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h.  */
6112
6113 int
6114 main ()
6115 {
6116
6117   ;
6118   return 0;
6119 }
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6123 case "(($ac_try" in
6124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125   *) ac_try_echo=$ac_try;;
6126 esac
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128   (eval "$ac_compile") 2>conftest.er1
6129   ac_status=$?
6130   grep -v '^ *+' conftest.er1 >conftest.err
6131   rm -f conftest.er1
6132   cat conftest.err >&5
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); } &&
6135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6136   { (case "(($ac_try" in
6137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138   *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141   (eval "$ac_try") 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; } &&
6145          { ac_try='test -s conftest.$ac_objext'
6146   { (case "(($ac_try" in
6147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148   *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151   (eval "$ac_try") 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }; }; then
6155   :
6156 else
6157   echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160         ac_c_werror_flag=$ac_save_c_werror_flag
6161          CFLAGS="-g"
6162          cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h.  */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h.  */
6168
6169 int
6170 main ()
6171 {
6172
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (ac_try="$ac_compile"
6179 case "(($ac_try" in
6180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181   *) ac_try_echo=$ac_try;;
6182 esac
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184   (eval "$ac_compile") 2>conftest.er1
6185   ac_status=$?
6186   grep -v '^ *+' conftest.er1 >conftest.err
6187   rm -f conftest.er1
6188   cat conftest.err >&5
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } &&
6191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6192   { (case "(($ac_try" in
6193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194   *) ac_try_echo=$ac_try;;
6195 esac
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197   (eval "$ac_try") 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); }; } &&
6201          { ac_try='test -s conftest.$ac_objext'
6202   { (case "(($ac_try" in
6203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204   *) ac_try_echo=$ac_try;;
6205 esac
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207   (eval "$ac_try") 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; }; then
6211   ac_cv_prog_cc_g=yes
6212 else
6213   echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216
6217 fi
6218
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 fi
6221
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 fi
6224
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226    ac_c_werror_flag=$ac_save_c_werror_flag
6227 fi
6228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6229 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6230 if test "$ac_test_CFLAGS" = set; then
6231   CFLAGS=$ac_save_CFLAGS
6232 elif test $ac_cv_prog_cc_g = yes; then
6233   if test "$GCC" = yes; then
6234     CFLAGS="-g -O2"
6235   else
6236     CFLAGS="-g"
6237   fi
6238 else
6239   if test "$GCC" = yes; then
6240     CFLAGS="-O2"
6241   else
6242     CFLAGS=
6243   fi
6244 fi
6245 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6246 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_cc_c89+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   ac_cv_prog_cc_c89=no
6251 ac_save_CC=$CC
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h.  */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h.  */
6258 #include <stdarg.h>
6259 #include <stdio.h>
6260 #include <sys/types.h>
6261 #include <sys/stat.h>
6262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6263 struct buf { int x; };
6264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6265 static char *e (p, i)
6266      char **p;
6267      int i;
6268 {
6269   return p[i];
6270 }
6271 static char *f (char * (*g) (char **, int), char **p, ...)
6272 {
6273   char *s;
6274   va_list v;
6275   va_start (v,p);
6276   s = g (p, va_arg (v,int));
6277   va_end (v);
6278   return s;
6279 }
6280
6281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6282    function prototypes and stuff, but not '\xHH' hex character constants.
6283    These don't provoke an error unfortunately, instead are silently treated
6284    as 'x'.  The following induces an error, until -std is added to get
6285    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6286    array size at least.  It's necessary to write '\x00'==0 to get something
6287    that's true only with -std.  */
6288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6289
6290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6291    inside strings and character constants.  */
6292 #define FOO(x) 'x'
6293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6294
6295 int test (int i, double x);
6296 struct s1 {int (*f) (int a);};
6297 struct s2 {int (*f) (double a);};
6298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6299 int argc;
6300 char **argv;
6301 int
6302 main ()
6303 {
6304 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6310         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6311 do
6312   CC="$ac_save_CC $ac_arg"
6313   rm -f conftest.$ac_objext
6314 if { (ac_try="$ac_compile"
6315 case "(($ac_try" in
6316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317   *) ac_try_echo=$ac_try;;
6318 esac
6319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320   (eval "$ac_compile") 2>conftest.er1
6321   ac_status=$?
6322   grep -v '^ *+' conftest.er1 >conftest.err
6323   rm -f conftest.er1
6324   cat conftest.err >&5
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } &&
6327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6328   { (case "(($ac_try" in
6329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330   *) ac_try_echo=$ac_try;;
6331 esac
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333   (eval "$ac_try") 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); }; } &&
6337          { ac_try='test -s conftest.$ac_objext'
6338   { (case "(($ac_try" in
6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340   *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343   (eval "$ac_try") 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); }; }; then
6347   ac_cv_prog_cc_c89=$ac_arg
6348 else
6349   echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6351
6352
6353 fi
6354
6355 rm -f core conftest.err conftest.$ac_objext
6356   test "x$ac_cv_prog_cc_c89" != "xno" && break
6357 done
6358 rm -f conftest.$ac_ext
6359 CC=$ac_save_CC
6360
6361 fi
6362 # AC_CACHE_VAL
6363 case "x$ac_cv_prog_cc_c89" in
6364   x)
6365     { echo "$as_me:$LINENO: result: none needed" >&5
6366 echo "${ECHO_T}none needed" >&6; } ;;
6367   xno)
6368     { echo "$as_me:$LINENO: result: unsupported" >&5
6369 echo "${ECHO_T}unsupported" >&6; } ;;
6370   *)
6371     CC="$CC $ac_cv_prog_cc_c89"
6372     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6373 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6374 esac
6375
6376
6377 ac_ext=c
6378 ac_cpp='$CPP $CPPFLAGS'
6379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382
6383 ac_ext=cpp
6384 ac_cpp='$CXXCPP $CPPFLAGS'
6385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6388 if test -z "$CXX"; then
6389   if test -n "$CCC"; then
6390     CXX=$CCC
6391   else
6392     if test -n "$ac_tool_prefix"; then
6393   for ac_prog in g++
6394   do
6395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_prog_CXX+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   if test -n "$CXX"; then
6403   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408   IFS=$as_save_IFS
6409   test -z "$as_dir" && as_dir=.
6410   for ac_exec_ext in '' $ac_executable_extensions; do
6411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414     break 2
6415   fi
6416 done
6417 done
6418 IFS=$as_save_IFS
6419
6420 fi
6421 fi
6422 CXX=$ac_cv_prog_CXX
6423 if test -n "$CXX"; then
6424   { echo "$as_me:$LINENO: result: $CXX" >&5
6425 echo "${ECHO_T}$CXX" >&6; }
6426 else
6427   { echo "$as_me:$LINENO: result: no" >&5
6428 echo "${ECHO_T}no" >&6; }
6429 fi
6430
6431
6432     test -n "$CXX" && break
6433   done
6434 fi
6435 if test -z "$CXX"; then
6436   ac_ct_CXX=$CXX
6437   for ac_prog in g++
6438 do
6439   # Extract the first word of "$ac_prog", so it can be a program name with args.
6440 set dummy $ac_prog; ac_word=$2
6441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6444   echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446   if test -n "$ac_ct_CXX"; then
6447   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454   for ac_exec_ext in '' $ac_executable_extensions; do
6455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6456     ac_cv_prog_ac_ct_CXX="$ac_prog"
6457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6467 if test -n "$ac_ct_CXX"; then
6468   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6469 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6470 else
6471   { echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6; }
6473 fi
6474
6475
6476   test -n "$ac_ct_CXX" && break
6477 done
6478
6479   if test "x$ac_ct_CXX" = x; then
6480     CXX="g++"
6481   else
6482     case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6485 whose name does not start with the host triplet.  If you think this
6486 configuration is useful to you, please write to autoconf@gnu.org." >&5
6487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6488 whose name does not start with the host triplet.  If you think this
6489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492     CXX=$ac_ct_CXX
6493   fi
6494 fi
6495
6496   fi
6497 fi
6498 # Provide some information about the compiler.
6499 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6500 ac_compiler=`set X $ac_compile; echo $2`
6501 { (ac_try="$ac_compiler --version >&5"
6502 case "(($ac_try" in
6503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504   *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507   (eval "$ac_compiler --version >&5") 2>&5
6508   ac_status=$?
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); }
6511 { (ac_try="$ac_compiler -v >&5"
6512 case "(($ac_try" in
6513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514   *) ac_try_echo=$ac_try;;
6515 esac
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517   (eval "$ac_compiler -v >&5") 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }
6521 { (ac_try="$ac_compiler -V >&5"
6522 case "(($ac_try" in
6523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524   *) ac_try_echo=$ac_try;;
6525 esac
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527   (eval "$ac_compiler -V >&5") 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }
6531
6532 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6533 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6534 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h.  */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h.  */
6543
6544 int
6545 main ()
6546 {
6547 #ifndef __GNUC__
6548        choke me
6549 #endif
6550
6551   ;
6552   return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (ac_try="$ac_compile"
6557 case "(($ac_try" in
6558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559   *) ac_try_echo=$ac_try;;
6560 esac
6561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562   (eval "$ac_compile") 2>conftest.er1
6563   ac_status=$?
6564   grep -v '^ *+' conftest.er1 >conftest.err
6565   rm -f conftest.er1
6566   cat conftest.err >&5
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); } &&
6569          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6570   { (case "(($ac_try" in
6571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572   *) ac_try_echo=$ac_try;;
6573 esac
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575   (eval "$ac_try") 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); }; } &&
6579          { ac_try='test -s conftest.$ac_objext'
6580   { (case "(($ac_try" in
6581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582   *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585   (eval "$ac_try") 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; }; then
6589   ac_compiler_gnu=yes
6590 else
6591   echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594         ac_compiler_gnu=no
6595 fi
6596
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6599
6600 fi
6601 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6602 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6603 GXX=`test $ac_compiler_gnu = yes && echo yes`
6604 ac_test_CXXFLAGS=${CXXFLAGS+set}
6605 ac_save_CXXFLAGS=$CXXFLAGS
6606 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6607 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_cxx_g+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6612    ac_cxx_werror_flag=yes
6613    ac_cv_prog_cxx_g=no
6614    CXXFLAGS="-g"
6615    cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h.  */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h.  */
6621
6622 int
6623 main ()
6624 {
6625
6626   ;
6627   return 0;
6628 }
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (ac_try="$ac_compile"
6632 case "(($ac_try" in
6633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634   *) ac_try_echo=$ac_try;;
6635 esac
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637   (eval "$ac_compile") 2>conftest.er1
6638   ac_status=$?
6639   grep -v '^ *+' conftest.er1 >conftest.err
6640   rm -f conftest.er1
6641   cat conftest.err >&5
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); } &&
6644          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6645   { (case "(($ac_try" in
6646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647   *) ac_try_echo=$ac_try;;
6648 esac
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650   (eval "$ac_try") 2>&5
6651   ac_status=$?
6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); }; } &&
6654          { ac_try='test -s conftest.$ac_objext'
6655   { (case "(($ac_try" in
6656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657   *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660   (eval "$ac_try") 2>&5
6661   ac_status=$?
6662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663   (exit $ac_status); }; }; then
6664   ac_cv_prog_cxx_g=yes
6665 else
6666   echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6668
6669         CXXFLAGS=""
6670       cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676
6677 int
6678 main ()
6679 {
6680
6681   ;
6682   return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest.$ac_objext
6686 if { (ac_try="$ac_compile"
6687 case "(($ac_try" in
6688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689   *) ac_try_echo=$ac_try;;
6690 esac
6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692   (eval "$ac_compile") 2>conftest.er1
6693   ac_status=$?
6694   grep -v '^ *+' conftest.er1 >conftest.err
6695   rm -f conftest.er1
6696   cat conftest.err >&5
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); } &&
6699          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6700   { (case "(($ac_try" in
6701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702   *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705   (eval "$ac_try") 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); }; } &&
6709          { ac_try='test -s conftest.$ac_objext'
6710   { (case "(($ac_try" in
6711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712   *) ac_try_echo=$ac_try;;
6713 esac
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715   (eval "$ac_try") 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; }; then
6719   :
6720 else
6721   echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6723
6724         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6725          CXXFLAGS="-g"
6726          cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h.  */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h.  */
6732
6733 int
6734 main ()
6735 {
6736
6737   ;
6738   return 0;
6739 }
6740 _ACEOF
6741 rm -f conftest.$ac_objext
6742 if { (ac_try="$ac_compile"
6743 case "(($ac_try" in
6744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745   *) ac_try_echo=$ac_try;;
6746 esac
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748   (eval "$ac_compile") 2>conftest.er1
6749   ac_status=$?
6750   grep -v '^ *+' conftest.er1 >conftest.err
6751   rm -f conftest.er1
6752   cat conftest.err >&5
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); } &&
6755          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6756   { (case "(($ac_try" in
6757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758   *) ac_try_echo=$ac_try;;
6759 esac
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761   (eval "$ac_try") 2>&5
6762   ac_status=$?
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); }; } &&
6765          { ac_try='test -s conftest.$ac_objext'
6766   { (case "(($ac_try" in
6767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768   *) ac_try_echo=$ac_try;;
6769 esac
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771   (eval "$ac_try") 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); }; }; then
6775   ac_cv_prog_cxx_g=yes
6776 else
6777   echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780
6781 fi
6782
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 fi
6785
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 fi
6788
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6791 fi
6792 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6793 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6794 if test "$ac_test_CXXFLAGS" = set; then
6795   CXXFLAGS=$ac_save_CXXFLAGS
6796 elif test $ac_cv_prog_cxx_g = yes; then
6797   if test "$GXX" = yes; then
6798     CXXFLAGS="-g -O2"
6799   else
6800     CXXFLAGS="-g"
6801   fi
6802 else
6803   if test "$GXX" = yes; then
6804     CXXFLAGS="-O2"
6805   else
6806     CXXFLAGS=
6807   fi
6808 fi
6809 ac_ext=c
6810 ac_cpp='$CPP $CPPFLAGS'
6811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6814
6815
6816 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6817 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6818 if test "${lt_cv_path_NM+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   if test -n "$NM"; then
6822   # Let the user override the test.
6823   lt_cv_path_NM="$NM"
6824 else
6825   lt_nm_to_check="${ac_tool_prefix}nm"
6826   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6827     lt_nm_to_check="$lt_nm_to_check nm"
6828   fi
6829   for lt_tmp_nm in $lt_nm_to_check; do
6830     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6831     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6832       IFS="$lt_save_ifs"
6833       test -z "$ac_dir" && ac_dir=.
6834       tmp_nm="$ac_dir/$lt_tmp_nm"
6835       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6836         # Check to see if the nm accepts a BSD-compat flag.
6837         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6838         #   nm: unknown option "B" ignored
6839         # Tru64's nm complains that /dev/null is an invalid object file
6840         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6841         */dev/null* | *'Invalid file or object type'*)
6842           lt_cv_path_NM="$tmp_nm -B"
6843           break
6844           ;;
6845         *)
6846           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6847           */dev/null*)
6848             lt_cv_path_NM="$tmp_nm -p"
6849             break
6850             ;;
6851           *)
6852             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6853             continue # so that we can try to find one that supports BSD flags
6854             ;;
6855           esac
6856           ;;
6857         esac
6858       fi
6859     done
6860     IFS="$lt_save_ifs"
6861   done
6862   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6863 fi
6864 fi
6865 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6866 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6867 NM="$lt_cv_path_NM"
6868
6869
6870
6871 { echo "$as_me:$LINENO: checking for GNU make" >&5
6872 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6873 if test "${llvm_cv_gnu_make_command+set}" = set; then
6874   echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876   llvm_cv_gnu_make_command=''
6877  for a in "$MAKE" make gmake gnumake ; do
6878   if test -z "$a" ; then continue ; fi ;
6879   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6880   then
6881    llvm_cv_gnu_make_command=$a ;
6882    break;
6883   fi
6884  done
6885 fi
6886 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6887 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6888  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6889    ifGNUmake='' ;
6890  else
6891    ifGNUmake='#' ;
6892    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6893 echo "${ECHO_T}\"Not found\"" >&6; };
6894  fi
6895
6896
6897 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6898 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6899 LN_S=$as_ln_s
6900 if test "$LN_S" = "ln -s"; then
6901   { echo "$as_me:$LINENO: result: yes" >&5
6902 echo "${ECHO_T}yes" >&6; }
6903 else
6904   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6905 echo "${ECHO_T}no, using $LN_S" >&6; }
6906 fi
6907
6908 # Extract the first word of "cmp", so it can be a program name with args.
6909 set dummy cmp; ac_word=$2
6910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912 if test "${ac_cv_path_CMP+set}" = set; then
6913   echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915   case $CMP in
6916   [\\/]* | ?:[\\/]*)
6917   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6918   ;;
6919   *)
6920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   test -z "$as_dir" && as_dir=.
6925   for ac_exec_ext in '' $ac_executable_extensions; do
6926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6927     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929     break 2
6930   fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6936   ;;
6937 esac
6938 fi
6939 CMP=$ac_cv_path_CMP
6940 if test -n "$CMP"; then
6941   { echo "$as_me:$LINENO: result: $CMP" >&5
6942 echo "${ECHO_T}$CMP" >&6; }
6943 else
6944   { echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6; }
6946 fi
6947
6948
6949 # Extract the first word of "cp", so it can be a program name with args.
6950 set dummy cp; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_CP+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   case $CP in
6957   [\\/]* | ?:[\\/]*)
6958   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6959   ;;
6960   *)
6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966   for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6977   ;;
6978 esac
6979 fi
6980 CP=$ac_cv_path_CP
6981 if test -n "$CP"; then
6982   { echo "$as_me:$LINENO: result: $CP" >&5
6983 echo "${ECHO_T}$CP" >&6; }
6984 else
6985   { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6987 fi
6988
6989
6990 # Extract the first word of "date", so it can be a program name with args.
6991 set dummy date; ac_word=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_path_DATE+set}" = set; then
6995   echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997   case $DATE in
6998   [\\/]* | ?:[\\/]*)
6999   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7000   ;;
7001   *)
7002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005   IFS=$as_save_IFS
7006   test -z "$as_dir" && as_dir=.
7007   for ac_exec_ext in '' $ac_executable_extensions; do
7008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011     break 2
7012   fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7018   ;;
7019 esac
7020 fi
7021 DATE=$ac_cv_path_DATE
7022 if test -n "$DATE"; then
7023   { echo "$as_me:$LINENO: result: $DATE" >&5
7024 echo "${ECHO_T}$DATE" >&6; }
7025 else
7026   { echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6; }
7028 fi
7029
7030
7031 # Extract the first word of "find", so it can be a program name with args.
7032 set dummy find; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_path_FIND+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   case $FIND in
7039   [\\/]* | ?:[\\/]*)
7040   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7041   ;;
7042   *)
7043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048   for ac_exec_ext in '' $ac_executable_extensions; do
7049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7050     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052     break 2
7053   fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7059   ;;
7060 esac
7061 fi
7062 FIND=$ac_cv_path_FIND
7063 if test -n "$FIND"; then
7064   { echo "$as_me:$LINENO: result: $FIND" >&5
7065 echo "${ECHO_T}$FIND" >&6; }
7066 else
7067   { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7069 fi
7070
7071
7072 # Extract the first word of "grep", so it can be a program name with args.
7073 set dummy grep; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_GREP+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   case $GREP in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7100   ;;
7101 esac
7102 fi
7103 GREP=$ac_cv_path_GREP
7104 if test -n "$GREP"; then
7105   { echo "$as_me:$LINENO: result: $GREP" >&5
7106 echo "${ECHO_T}$GREP" >&6; }
7107 else
7108   { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7110 fi
7111
7112
7113 # Extract the first word of "mkdir", so it can be a program name with args.
7114 set dummy mkdir; ac_word=$2
7115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7117 if test "${ac_cv_path_MKDIR+set}" = set; then
7118   echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120   case $MKDIR in
7121   [\\/]* | ?:[\\/]*)
7122   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7123   ;;
7124   *)
7125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130   for ac_exec_ext in '' $ac_executable_extensions; do
7131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7132     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134     break 2
7135   fi
7136 done
7137 done
7138 IFS=$as_save_IFS
7139
7140   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7141   ;;
7142 esac
7143 fi
7144 MKDIR=$ac_cv_path_MKDIR
7145 if test -n "$MKDIR"; then
7146   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7147 echo "${ECHO_T}$MKDIR" >&6; }
7148 else
7149   { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7151 fi
7152
7153
7154 # Extract the first word of "mv", so it can be a program name with args.
7155 set dummy mv; ac_word=$2
7156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158 if test "${ac_cv_path_MV+set}" = set; then
7159   echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161   case $MV in
7162   [\\/]* | ?:[\\/]*)
7163   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7164   ;;
7165   *)
7166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171   for ac_exec_ext in '' $ac_executable_extensions; do
7172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7173     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178 done
7179 IFS=$as_save_IFS
7180
7181   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7182   ;;
7183 esac
7184 fi
7185 MV=$ac_cv_path_MV
7186 if test -n "$MV"; then
7187   { echo "$as_me:$LINENO: result: $MV" >&5
7188 echo "${ECHO_T}$MV" >&6; }
7189 else
7190   { echo "$as_me:$LINENO: result: no" >&5
7191 echo "${ECHO_T}no" >&6; }
7192 fi
7193
7194
7195 if test -n "$ac_tool_prefix"; then
7196   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7200 if test "${ac_cv_prog_RANLIB+set}" = set; then
7201   echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203   if test -n "$RANLIB"; then
7204   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7208 do
7209   IFS=$as_save_IFS
7210   test -z "$as_dir" && as_dir=.
7211   for ac_exec_ext in '' $ac_executable_extensions; do
7212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7213     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215     break 2
7216   fi
7217 done
7218 done
7219 IFS=$as_save_IFS
7220
7221 fi
7222 fi
7223 RANLIB=$ac_cv_prog_RANLIB
7224 if test -n "$RANLIB"; then
7225   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7226 echo "${ECHO_T}$RANLIB" >&6; }
7227 else
7228   { echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6; }
7230 fi
7231
7232
7233 fi
7234 if test -z "$ac_cv_prog_RANLIB"; then
7235   ac_ct_RANLIB=$RANLIB
7236   # Extract the first word of "ranlib", so it can be a program name with args.
7237 set dummy ranlib; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   if test -n "$ac_ct_RANLIB"; then
7244   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
7250   test -z "$as_dir" && as_dir=.
7251   for ac_exec_ext in '' $ac_executable_extensions; do
7252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7253     ac_cv_prog_ac_ct_RANLIB="ranlib"
7254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255     break 2
7256   fi
7257 done
7258 done
7259 IFS=$as_save_IFS
7260
7261 fi
7262 fi
7263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7264 if test -n "$ac_ct_RANLIB"; then
7265   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7266 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7267 else
7268   { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7270 fi
7271
7272   if test "x$ac_ct_RANLIB" = x; then
7273     RANLIB=":"
7274   else
7275     case $cross_compiling:$ac_tool_warned in
7276 yes:)
7277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7278 whose name does not start with the host triplet.  If you think this
7279 configuration is useful to you, please write to autoconf@gnu.org." >&5
7280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7281 whose name does not start with the host triplet.  If you think this
7282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285     RANLIB=$ac_ct_RANLIB
7286   fi
7287 else
7288   RANLIB="$ac_cv_prog_RANLIB"
7289 fi
7290
7291 if test -n "$ac_tool_prefix"; then
7292   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}ar; ac_word=$2
7294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296 if test "${ac_cv_prog_AR+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   if test -n "$AR"; then
7300   ac_cv_prog_AR="$AR" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305   IFS=$as_save_IFS
7306   test -z "$as_dir" && as_dir=.
7307   for ac_exec_ext in '' $ac_executable_extensions; do
7308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7309     ac_cv_prog_AR="${ac_tool_prefix}ar"
7310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311     break 2
7312   fi
7313 done
7314 done
7315 IFS=$as_save_IFS
7316
7317 fi
7318 fi
7319 AR=$ac_cv_prog_AR
7320 if test -n "$AR"; then
7321   { echo "$as_me:$LINENO: result: $AR" >&5
7322 echo "${ECHO_T}$AR" >&6; }
7323 else
7324   { echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6; }
7326 fi
7327
7328
7329 fi
7330 if test -z "$ac_cv_prog_AR"; then
7331   ac_ct_AR=$AR
7332   # Extract the first word of "ar", so it can be a program name with args.
7333 set dummy ar; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   if test -n "$ac_ct_AR"; then
7340   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347   for ac_exec_ext in '' $ac_executable_extensions; do
7348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7349     ac_cv_prog_ac_ct_AR="ar"
7350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354 done
7355 IFS=$as_save_IFS
7356
7357 fi
7358 fi
7359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7360 if test -n "$ac_ct_AR"; then
7361   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7362 echo "${ECHO_T}$ac_ct_AR" >&6; }
7363 else
7364   { echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6; }
7366 fi
7367
7368   if test "x$ac_ct_AR" = x; then
7369     AR="false"
7370   else
7371     case $cross_compiling:$ac_tool_warned in
7372 yes:)
7373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7374 whose name does not start with the host triplet.  If you think this
7375 configuration is useful to you, please write to autoconf@gnu.org." >&5
7376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7377 whose name does not start with the host triplet.  If you think this
7378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7379 ac_tool_warned=yes ;;
7380 esac
7381     AR=$ac_ct_AR
7382   fi
7383 else
7384   AR="$ac_cv_prog_AR"
7385 fi
7386
7387 # Extract the first word of "rm", so it can be a program name with args.
7388 set dummy rm; ac_word=$2
7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391 if test "${ac_cv_path_RM+set}" = set; then
7392   echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394   case $RM in
7395   [\\/]* | ?:[\\/]*)
7396   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7397   ;;
7398   *)
7399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404   for ac_exec_ext in '' $ac_executable_extensions; do
7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7406     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411 done
7412 IFS=$as_save_IFS
7413
7414   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7415   ;;
7416 esac
7417 fi
7418 RM=$ac_cv_path_RM
7419 if test -n "$RM"; then
7420   { echo "$as_me:$LINENO: result: $RM" >&5
7421 echo "${ECHO_T}$RM" >&6; }
7422 else
7423   { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7425 fi
7426
7427
7428 # Extract the first word of "sed", so it can be a program name with args.
7429 set dummy sed; ac_word=$2
7430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7432 if test "${ac_cv_path_SED+set}" = set; then
7433   echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435   case $SED in
7436   [\\/]* | ?:[\\/]*)
7437   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7438   ;;
7439   *)
7440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443   IFS=$as_save_IFS
7444   test -z "$as_dir" && as_dir=.
7445   for ac_exec_ext in '' $ac_executable_extensions; do
7446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7447     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449     break 2
7450   fi
7451 done
7452 done
7453 IFS=$as_save_IFS
7454
7455   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7456   ;;
7457 esac
7458 fi
7459 SED=$ac_cv_path_SED
7460 if test -n "$SED"; then
7461   { echo "$as_me:$LINENO: result: $SED" >&5
7462 echo "${ECHO_T}$SED" >&6; }
7463 else
7464   { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7466 fi
7467
7468
7469 # Extract the first word of "tar", so it can be a program name with args.
7470 set dummy tar; ac_word=$2
7471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473 if test "${ac_cv_path_TAR+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   case $TAR in
7477   [\\/]* | ?:[\\/]*)
7478   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7479   ;;
7480   *)
7481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484   IFS=$as_save_IFS
7485   test -z "$as_dir" && as_dir=.
7486   for ac_exec_ext in '' $ac_executable_extensions; do
7487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7488     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490     break 2
7491   fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7497   ;;
7498 esac
7499 fi
7500 TAR=$ac_cv_path_TAR
7501 if test -n "$TAR"; then
7502   { echo "$as_me:$LINENO: result: $TAR" >&5
7503 echo "${ECHO_T}$TAR" >&6; }
7504 else
7505   { echo "$as_me:$LINENO: result: no" >&5
7506 echo "${ECHO_T}no" >&6; }
7507 fi
7508
7509
7510 # Extract the first word of "pwd", so it can be a program name with args.
7511 set dummy pwd; ac_word=$2
7512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514 if test "${ac_cv_path_BINPWD+set}" = set; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   case $BINPWD in
7518   [\\/]* | ?:[\\/]*)
7519   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7520   ;;
7521   *)
7522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525   IFS=$as_save_IFS
7526   test -z "$as_dir" && as_dir=.
7527   for ac_exec_ext in '' $ac_executable_extensions; do
7528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7529     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531     break 2
7532   fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7538   ;;
7539 esac
7540 fi
7541 BINPWD=$ac_cv_path_BINPWD
7542 if test -n "$BINPWD"; then
7543   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7544 echo "${ECHO_T}$BINPWD" >&6; }
7545 else
7546   { echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6; }
7548 fi
7549
7550
7551
7552 # Extract the first word of "Graphviz", so it can be a program name with args.
7553 set dummy Graphviz; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   case $GRAPHVIZ in
7560   [\\/]* | ?:[\\/]*)
7561   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7562   ;;
7563   *)
7564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567   IFS=$as_save_IFS
7568   test -z "$as_dir" && as_dir=.
7569   for ac_exec_ext in '' $ac_executable_extensions; do
7570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574   fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7580   ;;
7581 esac
7582 fi
7583 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7584 if test -n "$GRAPHVIZ"; then
7585   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7586 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7587 else
7588   { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7590 fi
7591
7592
7593 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7594
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_GRAPHVIZ 1
7597 _ACEOF
7598
7599     if test "$llvm_cv_os_type" = "MingW" ; then
7600     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7601   fi
7602
7603 cat >>confdefs.h <<_ACEOF
7604 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7605 _ACEOF
7606
7607 fi
7608 # Extract the first word of "dot", so it can be a program name with args.
7609 set dummy dot; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_DOT+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   case $DOT in
7616   [\\/]* | ?:[\\/]*)
7617   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7618   ;;
7619   *)
7620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625   for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632 done
7633 IFS=$as_save_IFS
7634
7635   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7636   ;;
7637 esac
7638 fi
7639 DOT=$ac_cv_path_DOT
7640 if test -n "$DOT"; then
7641   { echo "$as_me:$LINENO: result: $DOT" >&5
7642 echo "${ECHO_T}$DOT" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7646 fi
7647
7648
7649 if test "$DOT" != "echo dot" ; then
7650
7651 cat >>confdefs.h <<\_ACEOF
7652 #define HAVE_DOT 1
7653 _ACEOF
7654
7655     if test "$llvm_cv_os_type" = "MingW" ; then
7656     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7657   fi
7658
7659 cat >>confdefs.h <<_ACEOF
7660 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7661 _ACEOF
7662
7663 fi
7664 # Extract the first word of "fdp", so it can be a program name with args.
7665 set dummy fdp; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_FDP+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   case $FDP in
7672   [\\/]* | ?:[\\/]*)
7673   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7674   ;;
7675   *)
7676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679   IFS=$as_save_IFS
7680   test -z "$as_dir" && as_dir=.
7681   for ac_exec_ext in '' $ac_executable_extensions; do
7682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685     break 2
7686   fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7692   ;;
7693 esac
7694 fi
7695 FDP=$ac_cv_path_FDP
7696 if test -n "$FDP"; then
7697   { echo "$as_me:$LINENO: result: $FDP" >&5
7698 echo "${ECHO_T}$FDP" >&6; }
7699 else
7700   { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7702 fi
7703
7704
7705 if test "$FDP" != "echo fdp" ; then
7706
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_FDP 1
7709 _ACEOF
7710
7711     if test "$llvm_cv_os_type" = "MingW" ; then
7712     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7713   fi
7714
7715 cat >>confdefs.h <<_ACEOF
7716 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7717 _ACEOF
7718
7719 fi
7720 # Extract the first word of "neato", so it can be a program name with args.
7721 set dummy neato; ac_word=$2
7722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7724 if test "${ac_cv_path_NEATO+set}" = set; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   case $NEATO in
7728   [\\/]* | ?:[\\/]*)
7729   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7730   ;;
7731   *)
7732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735   IFS=$as_save_IFS
7736   test -z "$as_dir" && as_dir=.
7737   for ac_exec_ext in '' $ac_executable_extensions; do
7738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7739     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741     break 2
7742   fi
7743 done
7744 done
7745 IFS=$as_save_IFS
7746
7747   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7748   ;;
7749 esac
7750 fi
7751 NEATO=$ac_cv_path_NEATO
7752 if test -n "$NEATO"; then
7753   { echo "$as_me:$LINENO: result: $NEATO" >&5
7754 echo "${ECHO_T}$NEATO" >&6; }
7755 else
7756   { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7758 fi
7759
7760
7761 if test "$NEATO" != "echo neato" ; then
7762
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_NEATO 1
7765 _ACEOF
7766
7767     if test "$llvm_cv_os_type" = "MingW" ; then
7768     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7769   fi
7770
7771 cat >>confdefs.h <<_ACEOF
7772 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7773 _ACEOF
7774
7775 fi
7776 # Extract the first word of "twopi", so it can be a program name with args.
7777 set dummy twopi; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_path_TWOPI+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   case $TWOPI in
7784   [\\/]* | ?:[\\/]*)
7785   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7786   ;;
7787   *)
7788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791   IFS=$as_save_IFS
7792   test -z "$as_dir" && as_dir=.
7793   for ac_exec_ext in '' $ac_executable_extensions; do
7794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7795     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797     break 2
7798   fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7804   ;;
7805 esac
7806 fi
7807 TWOPI=$ac_cv_path_TWOPI
7808 if test -n "$TWOPI"; then
7809   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7810 echo "${ECHO_T}$TWOPI" >&6; }
7811 else
7812   { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7814 fi
7815
7816
7817 if test "$TWOPI" != "echo twopi" ; then
7818
7819 cat >>confdefs.h <<\_ACEOF
7820 #define HAVE_TWOPI 1
7821 _ACEOF
7822
7823     if test "$llvm_cv_os_type" = "MingW" ; then
7824     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7825   fi
7826
7827 cat >>confdefs.h <<_ACEOF
7828 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7829 _ACEOF
7830
7831 fi
7832 # Extract the first word of "circo", so it can be a program name with args.
7833 set dummy circo; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_path_CIRCO+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839   case $CIRCO in
7840   [\\/]* | ?:[\\/]*)
7841   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7842   ;;
7843   *)
7844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849   for ac_exec_ext in '' $ac_executable_extensions; do
7850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856 done
7857 IFS=$as_save_IFS
7858
7859   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7860   ;;
7861 esac
7862 fi
7863 CIRCO=$ac_cv_path_CIRCO
7864 if test -n "$CIRCO"; then
7865   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7866 echo "${ECHO_T}$CIRCO" >&6; }
7867 else
7868   { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7870 fi
7871
7872
7873 if test "$CIRCO" != "echo circo" ; then
7874
7875 cat >>confdefs.h <<\_ACEOF
7876 #define HAVE_CIRCO 1
7877 _ACEOF
7878
7879     if test "$llvm_cv_os_type" = "MingW" ; then
7880     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7881   fi
7882
7883 cat >>confdefs.h <<_ACEOF
7884 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7885 _ACEOF
7886
7887 fi
7888 for ac_prog in gv gsview32
7889 do
7890   # Extract the first word of "$ac_prog", so it can be a program name with args.
7891 set dummy $ac_prog; ac_word=$2
7892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7894 if test "${ac_cv_path_GV+set}" = set; then
7895   echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897   case $GV in
7898   [\\/]* | ?:[\\/]*)
7899   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7900   ;;
7901   *)
7902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905   IFS=$as_save_IFS
7906   test -z "$as_dir" && as_dir=.
7907   for ac_exec_ext in '' $ac_executable_extensions; do
7908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7909     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911     break 2
7912   fi
7913 done
7914 done
7915 IFS=$as_save_IFS
7916
7917   ;;
7918 esac
7919 fi
7920 GV=$ac_cv_path_GV
7921 if test -n "$GV"; then
7922   { echo "$as_me:$LINENO: result: $GV" >&5
7923 echo "${ECHO_T}$GV" >&6; }
7924 else
7925   { echo "$as_me:$LINENO: result: no" >&5
7926 echo "${ECHO_T}no" >&6; }
7927 fi
7928
7929
7930   test -n "$GV" && break
7931 done
7932 test -n "$GV" || GV="echo gv"
7933
7934 if test "$GV" != "echo gv" ; then
7935
7936 cat >>confdefs.h <<\_ACEOF
7937 #define HAVE_GV 1
7938 _ACEOF
7939
7940     if test "$llvm_cv_os_type" = "MingW" ; then
7941     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7942   fi
7943
7944 cat >>confdefs.h <<_ACEOF
7945 #define LLVM_PATH_GV "$GV${EXEEXT}"
7946 _ACEOF
7947
7948 fi
7949 # Extract the first word of "dotty", so it can be a program name with args.
7950 set dummy dotty; ac_word=$2
7951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953 if test "${ac_cv_path_DOTTY+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   case $DOTTY in
7957   [\\/]* | ?:[\\/]*)
7958   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7959   ;;
7960   *)
7961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964   IFS=$as_save_IFS
7965   test -z "$as_dir" && as_dir=.
7966   for ac_exec_ext in '' $ac_executable_extensions; do
7967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7968     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970     break 2
7971   fi
7972 done
7973 done
7974 IFS=$as_save_IFS
7975
7976   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7977   ;;
7978 esac
7979 fi
7980 DOTTY=$ac_cv_path_DOTTY
7981 if test -n "$DOTTY"; then
7982   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7983 echo "${ECHO_T}$DOTTY" >&6; }
7984 else
7985   { echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6; }
7987 fi
7988
7989
7990 if test "$DOTTY" != "echo dotty" ; then
7991
7992 cat >>confdefs.h <<\_ACEOF
7993 #define HAVE_DOTTY 1
7994 _ACEOF
7995
7996     if test "$llvm_cv_os_type" = "MingW" ; then
7997     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7998   fi
7999
8000 cat >>confdefs.h <<_ACEOF
8001 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
8002 _ACEOF
8003
8004 fi
8005 # Extract the first word of "xdot.py", so it can be a program name with args.
8006 set dummy xdot.py; ac_word=$2
8007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8009 if test "${ac_cv_path_XDOT_PY+set}" = set; then
8010   echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012   case $XDOT_PY in
8013   [\\/]* | ?:[\\/]*)
8014   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
8015   ;;
8016   *)
8017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020   IFS=$as_save_IFS
8021   test -z "$as_dir" && as_dir=.
8022   for ac_exec_ext in '' $ac_executable_extensions; do
8023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8024     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026     break 2
8027   fi
8028 done
8029 done
8030 IFS=$as_save_IFS
8031
8032   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8033   ;;
8034 esac
8035 fi
8036 XDOT_PY=$ac_cv_path_XDOT_PY
8037 if test -n "$XDOT_PY"; then
8038   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8039 echo "${ECHO_T}$XDOT_PY" >&6; }
8040 else
8041   { echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6; }
8043 fi
8044
8045
8046 if test "$XDOT_PY" != "echo xdot.py" ; then
8047
8048 cat >>confdefs.h <<\_ACEOF
8049 #define HAVE_XDOT_PY 1
8050 _ACEOF
8051
8052     if test "$llvm_cv_os_type" = "MingW" ; then
8053     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8054   fi
8055
8056 cat >>confdefs.h <<_ACEOF
8057 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8058 _ACEOF
8059
8060 fi
8061
8062
8063 # Extract the first word of "perl", so it can be a program name with args.
8064 set dummy perl; ac_word=$2
8065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8067 if test "${ac_cv_path_PERL+set}" = set; then
8068   echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070   case $PERL in
8071   [\\/]* | ?:[\\/]*)
8072   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8073   ;;
8074   *)
8075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078   IFS=$as_save_IFS
8079   test -z "$as_dir" && as_dir=.
8080   for ac_exec_ext in '' $ac_executable_extensions; do
8081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8082     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8084     break 2
8085   fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8091   ;;
8092 esac
8093 fi
8094 PERL=$ac_cv_path_PERL
8095 if test -n "$PERL"; then
8096   { echo "$as_me:$LINENO: result: $PERL" >&5
8097 echo "${ECHO_T}$PERL" >&6; }
8098 else
8099   { echo "$as_me:$LINENO: result: no" >&5
8100 echo "${ECHO_T}no" >&6; }
8101 fi
8102
8103
8104 if test "$PERL" != "none"; then
8105   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8106 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8107   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8108     { echo "$as_me:$LINENO: result: yes" >&5
8109 echo "${ECHO_T}yes" >&6; }
8110   else
8111     PERL=none
8112     { echo "$as_me:$LINENO: result: not found" >&5
8113 echo "${ECHO_T}not found" >&6; }
8114   fi
8115 fi
8116
8117
8118 if test x"$PERL" = xnone; then
8119    HAVE_PERL=0
8120
8121    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8122 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8123    { (exit 1); exit 1; }; }
8124 else
8125    HAVE_PERL=1
8126
8127 fi
8128
8129 # Find a good install program.  We prefer a C program (faster),
8130 # so one script is as good as another.  But avoid the broken or
8131 # incompatible versions:
8132 # SysV /etc/install, /usr/sbin/install
8133 # SunOS /usr/etc/install
8134 # IRIX /sbin/install
8135 # AIX /bin/install
8136 # AmigaOS /C/install, which installs bootblocks on floppy discs
8137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8140 # OS/2's system install, which has a completely different semantic
8141 # ./install, which can be erroneously created by make from ./install.sh.
8142 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8143 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8144 if test -z "$INSTALL"; then
8145 if test "${ac_cv_path_install+set}" = set; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8150 do
8151   IFS=$as_save_IFS
8152   test -z "$as_dir" && as_dir=.
8153   # Account for people who put trailing slashes in PATH elements.
8154 case $as_dir/ in
8155   ./ | .// | /cC/* | \
8156   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8157   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8158   /usr/ucb/* ) ;;
8159   *)
8160     # OSF1 and SCO ODT 3.0 have their own names for install.
8161     # Don't use installbsd from OSF since it installs stuff as root
8162     # by default.
8163     for ac_prog in ginstall scoinst install; do
8164       for ac_exec_ext in '' $ac_executable_extensions; do
8165         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8166           if test $ac_prog = install &&
8167             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8168             # AIX install.  It has an incompatible calling convention.
8169             :
8170           elif test $ac_prog = install &&
8171             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8172             # program-specific install script used by HP pwplus--don't use.
8173             :
8174           else
8175             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8176             break 3
8177           fi
8178         fi
8179       done
8180     done
8181     ;;
8182 esac
8183 done
8184 IFS=$as_save_IFS
8185
8186
8187 fi
8188   if test "${ac_cv_path_install+set}" = set; then
8189     INSTALL=$ac_cv_path_install
8190   else
8191     # As a last resort, use the slow shell script.  Don't cache a
8192     # value for INSTALL within a source directory, because that will
8193     # break other packages using the cache if that directory is
8194     # removed, or if the value is a relative name.
8195     INSTALL=$ac_install_sh
8196   fi
8197 fi
8198 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8199 echo "${ECHO_T}$INSTALL" >&6; }
8200
8201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8202 # It thinks the first close brace ends the variable substitution.
8203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8204
8205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8206
8207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8208
8209 case "$INSTALL" in
8210  [\\/$]* | ?:[\\/]* ) ;;
8211  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8212 esac
8213
8214 # Extract the first word of "bzip2", so it can be a program name with args.
8215 set dummy bzip2; ac_word=$2
8216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218 if test "${ac_cv_path_BZIP2+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   case $BZIP2 in
8222   [\\/]* | ?:[\\/]*)
8223   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8224   ;;
8225   *)
8226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229   IFS=$as_save_IFS
8230   test -z "$as_dir" && as_dir=.
8231   for ac_exec_ext in '' $ac_executable_extensions; do
8232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8233     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8235     break 2
8236   fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241   ;;
8242 esac
8243 fi
8244 BZIP2=$ac_cv_path_BZIP2
8245 if test -n "$BZIP2"; then
8246   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8247 echo "${ECHO_T}$BZIP2" >&6; }
8248 else
8249   { echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6; }
8251 fi
8252
8253
8254 # Extract the first word of "cat", so it can be a program name with args.
8255 set dummy cat; ac_word=$2
8256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8258 if test "${ac_cv_path_CAT+set}" = set; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   case $CAT in
8262   [\\/]* | ?:[\\/]*)
8263   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8264   ;;
8265   *)
8266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269   IFS=$as_save_IFS
8270   test -z "$as_dir" && as_dir=.
8271   for ac_exec_ext in '' $ac_executable_extensions; do
8272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8273     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8275     break 2
8276   fi
8277 done
8278 done
8279 IFS=$as_save_IFS
8280
8281   ;;
8282 esac
8283 fi
8284 CAT=$ac_cv_path_CAT
8285 if test -n "$CAT"; then
8286   { echo "$as_me:$LINENO: result: $CAT" >&5
8287 echo "${ECHO_T}$CAT" >&6; }
8288 else
8289   { echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6; }
8291 fi
8292
8293
8294 # Extract the first word of "doxygen", so it can be a program name with args.
8295 set dummy doxygen; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   case $DOXYGEN in
8302   [\\/]* | ?:[\\/]*)
8303   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8304   ;;
8305   *)
8306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309   IFS=$as_save_IFS
8310   test -z "$as_dir" && as_dir=.
8311   for ac_exec_ext in '' $ac_executable_extensions; do
8312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8313     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315     break 2
8316   fi
8317 done
8318 done
8319 IFS=$as_save_IFS
8320
8321   ;;
8322 esac
8323 fi
8324 DOXYGEN=$ac_cv_path_DOXYGEN
8325 if test -n "$DOXYGEN"; then
8326   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8327 echo "${ECHO_T}$DOXYGEN" >&6; }
8328 else
8329   { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8331 fi
8332
8333
8334 # Extract the first word of "groff", so it can be a program name with args.
8335 set dummy groff; ac_word=$2
8336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8338 if test "${ac_cv_path_GROFF+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   case $GROFF in
8342   [\\/]* | ?:[\\/]*)
8343   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8344   ;;
8345   *)
8346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349   IFS=$as_save_IFS
8350   test -z "$as_dir" && as_dir=.
8351   for ac_exec_ext in '' $ac_executable_extensions; do
8352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8353     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8355     break 2
8356   fi
8357 done
8358 done
8359 IFS=$as_save_IFS
8360
8361   ;;
8362 esac
8363 fi
8364 GROFF=$ac_cv_path_GROFF
8365 if test -n "$GROFF"; then
8366   { echo "$as_me:$LINENO: result: $GROFF" >&5
8367 echo "${ECHO_T}$GROFF" >&6; }
8368 else
8369   { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8371 fi
8372
8373
8374 # Extract the first word of "gzip", so it can be a program name with args.
8375 set dummy gzip; ac_word=$2
8376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8378 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381   case $GZIPBIN in
8382   [\\/]* | ?:[\\/]*)
8383   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8384   ;;
8385   *)
8386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 for as_dir in $PATH
8388 do
8389   IFS=$as_save_IFS
8390   test -z "$as_dir" && as_dir=.
8391   for ac_exec_ext in '' $ac_executable_extensions; do
8392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8393     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8395     break 2
8396   fi
8397 done
8398 done
8399 IFS=$as_save_IFS
8400
8401   ;;
8402 esac
8403 fi
8404 GZIPBIN=$ac_cv_path_GZIPBIN
8405 if test -n "$GZIPBIN"; then
8406   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8407 echo "${ECHO_T}$GZIPBIN" >&6; }
8408 else
8409   { echo "$as_me:$LINENO: result: no" >&5
8410 echo "${ECHO_T}no" >&6; }
8411 fi
8412
8413
8414 # Extract the first word of "pod2html", so it can be a program name with args.
8415 set dummy pod2html; ac_word=$2
8416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418 if test "${ac_cv_path_POD2HTML+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   case $POD2HTML in
8422   [\\/]* | ?:[\\/]*)
8423   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8424   ;;
8425   *)
8426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429   IFS=$as_save_IFS
8430   test -z "$as_dir" && as_dir=.
8431   for ac_exec_ext in '' $ac_executable_extensions; do
8432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8433     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8435     break 2
8436   fi
8437 done
8438 done
8439 IFS=$as_save_IFS
8440
8441   ;;
8442 esac
8443 fi
8444 POD2HTML=$ac_cv_path_POD2HTML
8445 if test -n "$POD2HTML"; then
8446   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8447 echo "${ECHO_T}$POD2HTML" >&6; }
8448 else
8449   { echo "$as_me:$LINENO: result: no" >&5
8450 echo "${ECHO_T}no" >&6; }
8451 fi
8452
8453
8454 # Extract the first word of "pod2man", so it can be a program name with args.
8455 set dummy pod2man; ac_word=$2
8456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8458 if test "${ac_cv_path_POD2MAN+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461   case $POD2MAN in
8462   [\\/]* | ?:[\\/]*)
8463   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8464   ;;
8465   *)
8466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 for as_dir in $PATH
8468 do
8469   IFS=$as_save_IFS
8470   test -z "$as_dir" && as_dir=.
8471   for ac_exec_ext in '' $ac_executable_extensions; do
8472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8473     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8475     break 2
8476   fi
8477 done
8478 done
8479 IFS=$as_save_IFS
8480
8481   ;;
8482 esac
8483 fi
8484 POD2MAN=$ac_cv_path_POD2MAN
8485 if test -n "$POD2MAN"; then
8486   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8487 echo "${ECHO_T}$POD2MAN" >&6; }
8488 else
8489   { echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6; }
8491 fi
8492
8493
8494 # Extract the first word of "pdfroff", so it can be a program name with args.
8495 set dummy pdfroff; ac_word=$2
8496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8498 if test "${ac_cv_path_PDFROFF+set}" = set; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   case $PDFROFF in
8502   [\\/]* | ?:[\\/]*)
8503   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8504   ;;
8505   *)
8506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8508 do
8509   IFS=$as_save_IFS
8510   test -z "$as_dir" && as_dir=.
8511   for ac_exec_ext in '' $ac_executable_extensions; do
8512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8513     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8515     break 2
8516   fi
8517 done
8518 done
8519 IFS=$as_save_IFS
8520
8521   ;;
8522 esac
8523 fi
8524 PDFROFF=$ac_cv_path_PDFROFF
8525 if test -n "$PDFROFF"; then
8526   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8527 echo "${ECHO_T}$PDFROFF" >&6; }
8528 else
8529   { echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6; }
8531 fi
8532
8533
8534 # Extract the first word of "runtest", so it can be a program name with args.
8535 set dummy runtest; ac_word=$2
8536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8538 if test "${ac_cv_path_RUNTEST+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541   case $RUNTEST in
8542   [\\/]* | ?:[\\/]*)
8543   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8544   ;;
8545   *)
8546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8548 do
8549   IFS=$as_save_IFS
8550   test -z "$as_dir" && as_dir=.
8551   for ac_exec_ext in '' $ac_executable_extensions; do
8552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8553     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8555     break 2
8556   fi
8557 done
8558 done
8559 IFS=$as_save_IFS
8560
8561   ;;
8562 esac
8563 fi
8564 RUNTEST=$ac_cv_path_RUNTEST
8565 if test -n "$RUNTEST"; then
8566   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8567 echo "${ECHO_T}$RUNTEST" >&6; }
8568 else
8569   { echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6; }
8571 fi
8572
8573
8574
8575 no_itcl=true
8576 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8577 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8578
8579 # Check whether --with-tclinclude was given.
8580 if test "${with_tclinclude+set}" = set; then
8581   withval=$with_tclinclude; with_tclinclude=${withval}
8582 else
8583   with_tclinclude=''
8584 fi
8585
8586 if test "${ac_cv_path_tclsh+set}" = set; then
8587   echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589
8590 if test x"${with_tclinclude}" != x ; then
8591   if test -f ${with_tclinclude}/tclsh ; then
8592     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8593   elif test -f ${with_tclinclude}/src/tclsh ; then
8594     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8595   else
8596     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8597 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8598    { (exit 1); exit 1; }; }
8599   fi
8600 fi
8601 fi
8602
8603
8604 if test x"${ac_cv_path_tclsh}" = x ; then
8605   { echo "$as_me:$LINENO: result: none" >&5
8606 echo "${ECHO_T}none" >&6; }
8607   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
8608 do
8609   # Extract the first word of "$ac_prog", so it can be a program name with args.
8610 set dummy $ac_prog; ac_word=$2
8611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8613 if test "${ac_cv_path_TCLSH+set}" = set; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616   case $TCLSH in
8617   [\\/]* | ?:[\\/]*)
8618   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8619   ;;
8620   *)
8621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in $PATH
8623 do
8624   IFS=$as_save_IFS
8625   test -z "$as_dir" && as_dir=.
8626   for ac_exec_ext in '' $ac_executable_extensions; do
8627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8628     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8630     break 2
8631   fi
8632 done
8633 done
8634 IFS=$as_save_IFS
8635
8636   ;;
8637 esac
8638 fi
8639 TCLSH=$ac_cv_path_TCLSH
8640 if test -n "$TCLSH"; then
8641   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8642 echo "${ECHO_T}$TCLSH" >&6; }
8643 else
8644   { echo "$as_me:$LINENO: result: no" >&5
8645 echo "${ECHO_T}no" >&6; }
8646 fi
8647
8648
8649   test -n "$TCLSH" && break
8650 done
8651
8652   if test x"${TCLSH}" = x ; then
8653     ac_cv_path_tclsh='';
8654   else
8655     ac_cv_path_tclsh="${TCLSH}";
8656   fi
8657 else
8658   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8659 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8660   TCLSH="${ac_cv_path_tclsh}"
8661
8662 fi
8663
8664 # Extract the first word of "zip", so it can be a program name with args.
8665 set dummy zip; ac_word=$2
8666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8668 if test "${ac_cv_path_ZIP+set}" = set; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   case $ZIP in
8672   [\\/]* | ?:[\\/]*)
8673   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8674   ;;
8675   *)
8676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 for as_dir in $PATH
8678 do
8679   IFS=$as_save_IFS
8680   test -z "$as_dir" && as_dir=.
8681   for ac_exec_ext in '' $ac_executable_extensions; do
8682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8683     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8685     break 2
8686   fi
8687 done
8688 done
8689 IFS=$as_save_IFS
8690
8691   ;;
8692 esac
8693 fi
8694 ZIP=$ac_cv_path_ZIP
8695 if test -n "$ZIP"; then
8696   { echo "$as_me:$LINENO: result: $ZIP" >&5
8697 echo "${ECHO_T}$ZIP" >&6; }
8698 else
8699   { echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6; }
8701 fi
8702
8703
8704 for ac_prog in ocamlc
8705 do
8706   # Extract the first word of "$ac_prog", so it can be a program name with args.
8707 set dummy $ac_prog; ac_word=$2
8708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8710 if test "${ac_cv_path_OCAMLC+set}" = set; then
8711   echo $ECHO_N "(cached) $ECHO_C" >&6
8712 else
8713   case $OCAMLC in
8714   [\\/]* | ?:[\\/]*)
8715   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8716   ;;
8717   *)
8718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719 for as_dir in $PATH
8720 do
8721   IFS=$as_save_IFS
8722   test -z "$as_dir" && as_dir=.
8723   for ac_exec_ext in '' $ac_executable_extensions; do
8724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8725     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8727     break 2
8728   fi
8729 done
8730 done
8731 IFS=$as_save_IFS
8732
8733   ;;
8734 esac
8735 fi
8736 OCAMLC=$ac_cv_path_OCAMLC
8737 if test -n "$OCAMLC"; then
8738   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8739 echo "${ECHO_T}$OCAMLC" >&6; }
8740 else
8741   { echo "$as_me:$LINENO: result: no" >&5
8742 echo "${ECHO_T}no" >&6; }
8743 fi
8744
8745
8746   test -n "$OCAMLC" && break
8747 done
8748
8749 for ac_prog in ocamlopt
8750 do
8751   # Extract the first word of "$ac_prog", so it can be a program name with args.
8752 set dummy $ac_prog; ac_word=$2
8753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8755 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758   case $OCAMLOPT in
8759   [\\/]* | ?:[\\/]*)
8760   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8761   ;;
8762   *)
8763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764 for as_dir in $PATH
8765 do
8766   IFS=$as_save_IFS
8767   test -z "$as_dir" && as_dir=.
8768   for ac_exec_ext in '' $ac_executable_extensions; do
8769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8770     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8772     break 2
8773   fi
8774 done
8775 done
8776 IFS=$as_save_IFS
8777
8778   ;;
8779 esac
8780 fi
8781 OCAMLOPT=$ac_cv_path_OCAMLOPT
8782 if test -n "$OCAMLOPT"; then
8783   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8784 echo "${ECHO_T}$OCAMLOPT" >&6; }
8785 else
8786   { echo "$as_me:$LINENO: result: no" >&5
8787 echo "${ECHO_T}no" >&6; }
8788 fi
8789
8790
8791   test -n "$OCAMLOPT" && break
8792 done
8793
8794 for ac_prog in ocamldep
8795 do
8796   # Extract the first word of "$ac_prog", so it can be a program name with args.
8797 set dummy $ac_prog; ac_word=$2
8798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8800 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8801   echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803   case $OCAMLDEP in
8804   [\\/]* | ?:[\\/]*)
8805   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8806   ;;
8807   *)
8808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809 for as_dir in $PATH
8810 do
8811   IFS=$as_save_IFS
8812   test -z "$as_dir" && as_dir=.
8813   for ac_exec_ext in '' $ac_executable_extensions; do
8814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8815     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8817     break 2
8818   fi
8819 done
8820 done
8821 IFS=$as_save_IFS
8822
8823   ;;
8824 esac
8825 fi
8826 OCAMLDEP=$ac_cv_path_OCAMLDEP
8827 if test -n "$OCAMLDEP"; then
8828   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8829 echo "${ECHO_T}$OCAMLDEP" >&6; }
8830 else
8831   { echo "$as_me:$LINENO: result: no" >&5
8832 echo "${ECHO_T}no" >&6; }
8833 fi
8834
8835
8836   test -n "$OCAMLDEP" && break
8837 done
8838
8839 for ac_prog in ocamldoc
8840 do
8841   # Extract the first word of "$ac_prog", so it can be a program name with args.
8842 set dummy $ac_prog; ac_word=$2
8843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8845 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8846   echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848   case $OCAMLDOC in
8849   [\\/]* | ?:[\\/]*)
8850   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8851   ;;
8852   *)
8853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854 for as_dir in $PATH
8855 do
8856   IFS=$as_save_IFS
8857   test -z "$as_dir" && as_dir=.
8858   for ac_exec_ext in '' $ac_executable_extensions; do
8859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8860     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8862     break 2
8863   fi
8864 done
8865 done
8866 IFS=$as_save_IFS
8867
8868   ;;
8869 esac
8870 fi
8871 OCAMLDOC=$ac_cv_path_OCAMLDOC
8872 if test -n "$OCAMLDOC"; then
8873   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8874 echo "${ECHO_T}$OCAMLDOC" >&6; }
8875 else
8876   { echo "$as_me:$LINENO: result: no" >&5
8877 echo "${ECHO_T}no" >&6; }
8878 fi
8879
8880
8881   test -n "$OCAMLDOC" && break
8882 done
8883
8884 for ac_prog in gas as
8885 do
8886   # Extract the first word of "$ac_prog", so it can be a program name with args.
8887 set dummy $ac_prog; ac_word=$2
8888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8890 if test "${ac_cv_path_GAS+set}" = set; then
8891   echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893   case $GAS in
8894   [\\/]* | ?:[\\/]*)
8895   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8896   ;;
8897   *)
8898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 for as_dir in $PATH
8900 do
8901   IFS=$as_save_IFS
8902   test -z "$as_dir" && as_dir=.
8903   for ac_exec_ext in '' $ac_executable_extensions; do
8904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8905     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8907     break 2
8908   fi
8909 done
8910 done
8911 IFS=$as_save_IFS
8912
8913   ;;
8914 esac
8915 fi
8916 GAS=$ac_cv_path_GAS
8917 if test -n "$GAS"; then
8918   { echo "$as_me:$LINENO: result: $GAS" >&5
8919 echo "${ECHO_T}$GAS" >&6; }
8920 else
8921   { echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6; }
8923 fi
8924
8925
8926   test -n "$GAS" && break
8927 done
8928
8929
8930 { echo "$as_me:$LINENO: checking for linker version" >&5
8931 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8932 if test "${llvm_cv_link_version+set}" = set; then
8933   echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935
8936    version_string="$(ld -v 2>&1 | head -1)"
8937
8938    # Check for ld64.
8939    if (echo "$version_string" | grep -q "ld64"); then
8940      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8941    else
8942      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8943    fi
8944
8945 fi
8946 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8947 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8948
8949 cat >>confdefs.h <<_ACEOF
8950 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8951 _ACEOF
8952
8953
8954
8955 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8956 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8957 if test "${llvm_cv_link_use_r+set}" = set; then
8958   echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960    ac_ext=c
8961 ac_cpp='$CPP $CPPFLAGS'
8962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8965
8966   oldcflags="$CFLAGS"
8967   CFLAGS="$CFLAGS -Wl,-R."
8968   cat >conftest.$ac_ext <<_ACEOF
8969 /* confdefs.h.  */
8970 _ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h.  */
8974
8975 int
8976 main ()
8977 {
8978
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8985 case "(($ac_try" in
8986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987   *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990   (eval "$ac_link") 2>conftest.er1
8991   ac_status=$?
8992   grep -v '^ *+' conftest.er1 >conftest.err
8993   rm -f conftest.er1
8994   cat conftest.err >&5
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } &&
8997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8998   { (case "(($ac_try" in
8999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000   *) ac_try_echo=$ac_try;;
9001 esac
9002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003   (eval "$ac_try") 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); }; } &&
9007          { ac_try='test -s conftest$ac_exeext'
9008   { (case "(($ac_try" in
9009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010   *) ac_try_echo=$ac_try;;
9011 esac
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013   (eval "$ac_try") 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; }; then
9017   llvm_cv_link_use_r=yes
9018 else
9019   echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9021
9022         llvm_cv_link_use_r=no
9023 fi
9024
9025 rm -f core conftest.err conftest.$ac_objext \
9026       conftest$ac_exeext conftest.$ac_ext
9027   CFLAGS="$oldcflags"
9028   ac_ext=c
9029 ac_cpp='$CPP $CPPFLAGS'
9030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9033
9034
9035 fi
9036 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9037 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9038 if test "$llvm_cv_link_use_r" = yes ; then
9039
9040 cat >>confdefs.h <<\_ACEOF
9041 #define HAVE_LINK_R 1
9042 _ACEOF
9043
9044   fi
9045
9046
9047 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9048 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9049 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052    ac_ext=c
9053 ac_cpp='$CPP $CPPFLAGS'
9054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9057
9058   oldcflags="$CFLAGS"
9059   CFLAGS="$CFLAGS -Wl,-export-dynamic"
9060   cat >conftest.$ac_ext <<_ACEOF
9061 /* confdefs.h.  */
9062 _ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h.  */
9066
9067 int
9068 main ()
9069 {
9070
9071   ;
9072   return 0;
9073 }
9074 _ACEOF
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (ac_try="$ac_link"
9077 case "(($ac_try" in
9078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079   *) ac_try_echo=$ac_try;;
9080 esac
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082   (eval "$ac_link") 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } &&
9089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9090   { (case "(($ac_try" in
9091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092   *) ac_try_echo=$ac_try;;
9093 esac
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095   (eval "$ac_try") 2>&5
9096   ac_status=$?
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); }; } &&
9099          { ac_try='test -s conftest$ac_exeext'
9100   { (case "(($ac_try" in
9101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102   *) ac_try_echo=$ac_try;;
9103 esac
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105   (eval "$ac_try") 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; }; then
9109   llvm_cv_link_use_export_dynamic=yes
9110 else
9111   echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114         llvm_cv_link_use_export_dynamic=no
9115 fi
9116
9117 rm -f core conftest.err conftest.$ac_objext \
9118       conftest$ac_exeext conftest.$ac_ext
9119   CFLAGS="$oldcflags"
9120   ac_ext=c
9121 ac_cpp='$CPP $CPPFLAGS'
9122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9125
9126
9127 fi
9128 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9129 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9130 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9131
9132 cat >>confdefs.h <<\_ACEOF
9133 #define HAVE_LINK_EXPORT_DYNAMIC 1
9134 _ACEOF
9135
9136   fi
9137
9138
9139 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9140 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9141 if test "${llvm_cv_link_use_version_script+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144    ac_ext=c
9145 ac_cpp='$CPP $CPPFLAGS'
9146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9149
9150   oldcflags="$CFLAGS"
9151
9152   # The following code is from the autoconf manual,
9153   # "11.13: Limitations of Usual Tools".
9154   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9155   # Use mktemp if possible; otherwise fall back on mkdir,
9156   # with $RANDOM to make collisions less likely.
9157   : ${TMPDIR=/tmp}
9158   {
9159     tmp=`
9160       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9161     ` &&
9162     test -n "$tmp" && test -d "$tmp"
9163   } || {
9164     tmp=$TMPDIR/foo$$-$RANDOM
9165     (umask 077 && mkdir "$tmp")
9166   } || exit $?
9167
9168   echo "{" > "$tmp/export.map"
9169   echo "  global: main;" >> "$tmp/export.map"
9170   echo "  local: *;" >> "$tmp/export.map"
9171   echo "};" >> "$tmp/export.map"
9172
9173   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9174   cat >conftest.$ac_ext <<_ACEOF
9175 /* confdefs.h.  */
9176 _ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h.  */
9180
9181 int
9182 main ()
9183 {
9184
9185   ;
9186   return 0;
9187 }
9188 _ACEOF
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (ac_try="$ac_link"
9191 case "(($ac_try" in
9192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193   *) ac_try_echo=$ac_try;;
9194 esac
9195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196   (eval "$ac_link") 2>conftest.er1
9197   ac_status=$?
9198   grep -v '^ *+' conftest.er1 >conftest.err
9199   rm -f conftest.er1
9200   cat conftest.err >&5
9201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); } &&
9203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9204   { (case "(($ac_try" in
9205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206   *) ac_try_echo=$ac_try;;
9207 esac
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209   (eval "$ac_try") 2>&5
9210   ac_status=$?
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); }; } &&
9213          { ac_try='test -s conftest$ac_exeext'
9214   { (case "(($ac_try" in
9215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216   *) ac_try_echo=$ac_try;;
9217 esac
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219   (eval "$ac_try") 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); }; }; then
9223   llvm_cv_link_use_version_script=yes
9224 else
9225   echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9227
9228         llvm_cv_link_use_version_script=no
9229 fi
9230
9231 rm -f core conftest.err conftest.$ac_objext \
9232       conftest$ac_exeext conftest.$ac_ext
9233   rm "$tmp/export.map"
9234   rmdir "$tmp"
9235   CFLAGS="$oldcflags"
9236   ac_ext=c
9237 ac_cpp='$CPP $CPPFLAGS'
9238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9241
9242
9243 fi
9244 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9245 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9246 if test "$llvm_cv_link_use_version_script" = yes ; then
9247   HAVE_LINK_VERSION_SCRIPT=1
9248
9249   fi
9250
9251
9252
9253
9254 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9255 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9256 if test "${ac_cv_c_const+set}" = set; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259   cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h.  */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h.  */
9265
9266 int
9267 main ()
9268 {
9269 /* FIXME: Include the comments suggested by Paul. */
9270 #ifndef __cplusplus
9271   /* Ultrix mips cc rejects this.  */
9272   typedef int charset[2];
9273   const charset x;
9274   /* SunOS 4.1.1 cc rejects this.  */
9275   char const *const *ccp;
9276   char **p;
9277   /* NEC SVR4.0.2 mips cc rejects this.  */
9278   struct point {int x, y;};
9279   static struct point const zero = {0,0};
9280   /* AIX XL C 1.02.0.0 rejects this.
9281      It does not let you subtract one const X* pointer from another in
9282      an arm of an if-expression whose if-part is not a constant
9283      expression */
9284   const char *g = "string";
9285   ccp = &g + (g ? g-g : 0);
9286   /* HPUX 7.0 cc rejects these. */
9287   ++ccp;
9288   p = (char**) ccp;
9289   ccp = (char const *const *) p;
9290   { /* SCO 3.2v4 cc rejects this.  */
9291     char *t;
9292     char const *s = 0 ? (char *) 0 : (char const *) 0;
9293
9294     *t++ = 0;
9295     if (s) return 0;
9296   }
9297   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9298     int x[] = {25, 17};
9299     const int *foo = &x[0];
9300     ++foo;
9301   }
9302   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9303     typedef const int *iptr;
9304     iptr p = 0;
9305     ++p;
9306   }
9307   { /* AIX XL C 1.02.0.0 rejects this saying
9308        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9309     struct s { int j; const int *ap[3]; };
9310     struct s *b; b->j = 5;
9311   }
9312   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9313     const int foo = 10;
9314     if (!foo) return 0;
9315   }
9316   return !x[0] && !zero.x;
9317 #endif
9318
9319   ;
9320   return 0;
9321 }
9322 _ACEOF
9323 rm -f conftest.$ac_objext
9324 if { (ac_try="$ac_compile"
9325 case "(($ac_try" in
9326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327   *) ac_try_echo=$ac_try;;
9328 esac
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330   (eval "$ac_compile") 2>conftest.er1
9331   ac_status=$?
9332   grep -v '^ *+' conftest.er1 >conftest.err
9333   rm -f conftest.er1
9334   cat conftest.err >&5
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); } &&
9337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9338   { (case "(($ac_try" in
9339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340   *) ac_try_echo=$ac_try;;
9341 esac
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343   (eval "$ac_try") 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); }; } &&
9347          { ac_try='test -s conftest.$ac_objext'
9348   { (case "(($ac_try" in
9349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350   *) ac_try_echo=$ac_try;;
9351 esac
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353   (eval "$ac_try") 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; }; then
9357   ac_cv_c_const=yes
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362         ac_cv_c_const=no
9363 fi
9364
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366 fi
9367 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9368 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9369 if test $ac_cv_c_const = no; then
9370
9371 cat >>confdefs.h <<\_ACEOF
9372 #define const
9373 _ACEOF
9374
9375 fi
9376
9377
9378
9379
9380
9381
9382 ac_header_dirent=no
9383 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9384   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9385 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9386 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396 #include <sys/types.h>
9397 #include <$ac_hdr>
9398
9399 int
9400 main ()
9401 {
9402 if ((DIR *) 0)
9403 return 0;
9404   ;
9405   return 0;
9406 }
9407 _ACEOF
9408 rm -f conftest.$ac_objext
9409 if { (ac_try="$ac_compile"
9410 case "(($ac_try" in
9411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412   *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415   (eval "$ac_compile") 2>conftest.er1
9416   ac_status=$?
9417   grep -v '^ *+' conftest.er1 >conftest.err
9418   rm -f conftest.er1
9419   cat conftest.err >&5
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); } &&
9422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9423   { (case "(($ac_try" in
9424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425   *) ac_try_echo=$ac_try;;
9426 esac
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428   (eval "$ac_try") 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; } &&
9432          { ac_try='test -s conftest.$ac_objext'
9433   { (case "(($ac_try" in
9434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435   *) ac_try_echo=$ac_try;;
9436 esac
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438   (eval "$ac_try") 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); }; }; then
9442   eval "$as_ac_Header=yes"
9443 else
9444   echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447         eval "$as_ac_Header=no"
9448 fi
9449
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 fi
9452 ac_res=`eval echo '${'$as_ac_Header'}'`
9453                { echo "$as_me:$LINENO: result: $ac_res" >&5
9454 echo "${ECHO_T}$ac_res" >&6; }
9455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9456   cat >>confdefs.h <<_ACEOF
9457 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9458 _ACEOF
9459
9460 ac_header_dirent=$ac_hdr; break
9461 fi
9462
9463 done
9464 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9465 if test $ac_header_dirent = dirent.h; then
9466   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9467 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9468 if test "${ac_cv_search_opendir+set}" = set; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   ac_func_search_save_LIBS=$LIBS
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478
9479 /* Override any GCC internal prototype to avoid an error.
9480    Use char because int might match the return type of a GCC
9481    builtin and then its argument prototype would still apply.  */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 char opendir ();
9486 int
9487 main ()
9488 {
9489 return opendir ();
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 for ac_lib in '' dir; do
9495   if test -z "$ac_lib"; then
9496     ac_res="none required"
9497   else
9498     ac_res=-l$ac_lib
9499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9500   fi
9501   rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (ac_try="$ac_link"
9503 case "(($ac_try" in
9504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505   *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508   (eval "$ac_link") 2>conftest.er1
9509   ac_status=$?
9510   grep -v '^ *+' conftest.er1 >conftest.err
9511   rm -f conftest.er1
9512   cat conftest.err >&5
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); } &&
9515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9516   { (case "(($ac_try" in
9517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518   *) ac_try_echo=$ac_try;;
9519 esac
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521   (eval "$ac_try") 2>&5
9522   ac_status=$?
9523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); }; } &&
9525          { ac_try='test -s conftest$ac_exeext'
9526   { (case "(($ac_try" in
9527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528   *) ac_try_echo=$ac_try;;
9529 esac
9530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531   (eval "$ac_try") 2>&5
9532   ac_status=$?
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); }; }; then
9535   ac_cv_search_opendir=$ac_res
9536 else
9537   echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9539
9540
9541 fi
9542
9543 rm -f core conftest.err conftest.$ac_objext \
9544       conftest$ac_exeext
9545   if test "${ac_cv_search_opendir+set}" = set; then
9546   break
9547 fi
9548 done
9549 if test "${ac_cv_search_opendir+set}" = set; then
9550   :
9551 else
9552   ac_cv_search_opendir=no
9553 fi
9554 rm conftest.$ac_ext
9555 LIBS=$ac_func_search_save_LIBS
9556 fi
9557 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9558 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9559 ac_res=$ac_cv_search_opendir
9560 if test "$ac_res" != no; then
9561   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9562
9563 fi
9564
9565 else
9566   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9567 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9568 if test "${ac_cv_search_opendir+set}" = set; then
9569   echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571   ac_func_search_save_LIBS=$LIBS
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h.  */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h.  */
9578
9579 /* Override any GCC internal prototype to avoid an error.
9580    Use char because int might match the return type of a GCC
9581    builtin and then its argument prototype would still apply.  */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char opendir ();
9586 int
9587 main ()
9588 {
9589 return opendir ();
9590   ;
9591   return 0;
9592 }
9593 _ACEOF
9594 for ac_lib in '' x; do
9595   if test -z "$ac_lib"; then
9596     ac_res="none required"
9597   else
9598     ac_res=-l$ac_lib
9599     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9600   fi
9601   rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605   *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608   (eval "$ac_link") 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } &&
9615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616   { (case "(($ac_try" in
9617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618   *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621   (eval "$ac_try") 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; } &&
9625          { ac_try='test -s conftest$ac_exeext'
9626   { (case "(($ac_try" in
9627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628   *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631   (eval "$ac_try") 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); }; }; then
9635   ac_cv_search_opendir=$ac_res
9636 else
9637   echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640
9641 fi
9642
9643 rm -f core conftest.err conftest.$ac_objext \
9644       conftest$ac_exeext
9645   if test "${ac_cv_search_opendir+set}" = set; then
9646   break
9647 fi
9648 done
9649 if test "${ac_cv_search_opendir+set}" = set; then
9650   :
9651 else
9652   ac_cv_search_opendir=no
9653 fi
9654 rm conftest.$ac_ext
9655 LIBS=$ac_func_search_save_LIBS
9656 fi
9657 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9658 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9659 ac_res=$ac_cv_search_opendir
9660 if test "$ac_res" != no; then
9661   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9662
9663 fi
9664
9665 fi
9666
9667
9668 for ac_header in dlfcn.h
9669 do
9670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9672   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 fi
9677 ac_res=`eval echo '${'$as_ac_Header'}'`
9678                { echo "$as_me:$LINENO: result: $ac_res" >&5
9679 echo "${ECHO_T}$ac_res" >&6; }
9680 else
9681   # Is the header compilable?
9682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 $ac_includes_default
9691 #include <$ac_header>
9692 _ACEOF
9693 rm -f conftest.$ac_objext
9694 if { (ac_try="$ac_compile"
9695 case "(($ac_try" in
9696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697   *) ac_try_echo=$ac_try;;
9698 esac
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700   (eval "$ac_compile") 2>conftest.er1
9701   ac_status=$?
9702   grep -v '^ *+' conftest.er1 >conftest.err
9703   rm -f conftest.er1
9704   cat conftest.err >&5
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } &&
9707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9708   { (case "(($ac_try" in
9709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710   *) ac_try_echo=$ac_try;;
9711 esac
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713   (eval "$ac_try") 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; } &&
9717          { ac_try='test -s conftest.$ac_objext'
9718   { (case "(($ac_try" in
9719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720   *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723   (eval "$ac_try") 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; }; then
9727   ac_header_compiler=yes
9728 else
9729   echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732         ac_header_compiler=no
9733 fi
9734
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9737 echo "${ECHO_T}$ac_header_compiler" >&6; }
9738
9739 # Is the header present?
9740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h.  */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h.  */
9748 #include <$ac_header>
9749 _ACEOF
9750 if { (ac_try="$ac_cpp conftest.$ac_ext"
9751 case "(($ac_try" in
9752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753   *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } >/dev/null; then
9763   if test -s conftest.err; then
9764     ac_cpp_err=$ac_c_preproc_warn_flag
9765     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9766   else
9767     ac_cpp_err=
9768   fi
9769 else
9770   ac_cpp_err=yes
9771 fi
9772 if test -z "$ac_cpp_err"; then
9773   ac_header_preproc=yes
9774 else
9775   echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778   ac_header_preproc=no
9779 fi
9780
9781 rm -f conftest.err conftest.$ac_ext
9782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 echo "${ECHO_T}$ac_header_preproc" >&6; }
9784
9785 # So?  What about this header?
9786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9787   yes:no: )
9788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9792     ac_header_preproc=yes
9793     ;;
9794   no:yes:* )
9795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9807     ( cat <<\_ASBOX
9808 ## ----------------------------------- ##
9809 ## Report this to llvmbugs@cs.uiuc.edu ##
9810 ## ----------------------------------- ##
9811 _ASBOX
9812      ) | sed "s/^/$as_me: WARNING:     /" >&2
9813     ;;
9814 esac
9815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   eval "$as_ac_Header=\$ac_header_preproc"
9821 fi
9822 ac_res=`eval echo '${'$as_ac_Header'}'`
9823                { echo "$as_me:$LINENO: result: $ac_res" >&5
9824 echo "${ECHO_T}$ac_res" >&6; }
9825
9826 fi
9827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9828   cat >>confdefs.h <<_ACEOF
9829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9830 _ACEOF
9831
9832 fi
9833
9834 done
9835
9836 # Check whether --enable-ltdl-install was given.
9837 if test "${enable_ltdl_install+set}" = set; then
9838   enableval=$enable_ltdl_install;
9839 fi
9840
9841
9842
9843
9844 if test x"${enable_ltdl_install-no}" != xno; then
9845   INSTALL_LTDL_TRUE=
9846   INSTALL_LTDL_FALSE='#'
9847 else
9848   INSTALL_LTDL_TRUE='#'
9849   INSTALL_LTDL_FALSE=
9850 fi
9851
9852
9853
9854 if test x"${enable_ltdl_convenience-no}" != xno; then
9855   CONVENIENCE_LTDL_TRUE=
9856   CONVENIENCE_LTDL_FALSE='#'
9857 else
9858   CONVENIENCE_LTDL_TRUE='#'
9859   CONVENIENCE_LTDL_FALSE=
9860 fi
9861
9862
9863 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9864 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9865 library_names_spec=
9866 libname_spec='lib$name'
9867 soname_spec=
9868 shrext_cmds=".so"
9869 postinstall_cmds=
9870 postuninstall_cmds=
9871 finish_cmds=
9872 finish_eval=
9873 shlibpath_var=
9874 shlibpath_overrides_runpath=unknown
9875 version_type=none
9876 dynamic_linker="$host_os ld.so"
9877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9878 if test "$GCC" = yes; then
9879   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9880   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9881     # if the path contains ";" then we assume it to be the separator
9882     # otherwise default to the standard path separator (i.e. ":") - it is
9883     # assumed that no part of a normal pathname contains ";" but that should
9884     # okay in the real world where ";" in dirpaths is itself problematic.
9885     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9886   else
9887     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9888   fi
9889 else
9890   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9891 fi
9892 need_lib_prefix=unknown
9893 hardcode_into_libs=no
9894
9895 # when you set need_version to no, make sure it does not cause -set_version
9896 # flags to be left without arguments
9897 need_version=unknown
9898
9899 case $host_os in
9900 aix3*)
9901   version_type=linux
9902   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9903   shlibpath_var=LIBPATH
9904
9905   # AIX 3 has no versioning support, so we append a major version to the name.
9906   soname_spec='${libname}${release}${shared_ext}$major'
9907   ;;
9908
9909 aix4* | aix5*)
9910   version_type=linux
9911   need_lib_prefix=no
9912   need_version=no
9913   hardcode_into_libs=yes
9914   if test "$host_cpu" = ia64; then
9915     # AIX 5 supports IA64
9916     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9917     shlibpath_var=LD_LIBRARY_PATH
9918   else
9919     # With GCC up to 2.95.x, collect2 would create an import file
9920     # for dependence libraries.  The import file would start with
9921     # the line `#! .'.  This would cause the generated library to
9922     # depend on `.', always an invalid library.  This was fixed in
9923     # development snapshots of GCC prior to 3.0.
9924     case $host_os in
9925       aix4 | aix4.[01] | aix4.[01].*)
9926       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9927            echo ' yes '
9928            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9929         :
9930       else
9931         can_build_shared=no
9932       fi
9933       ;;
9934     esac
9935     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9936     # soname into executable. Probably we can add versioning support to
9937     # collect2, so additional links can be useful in future.
9938     if test "$aix_use_runtimelinking" = yes; then
9939       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9940       # instead of lib<name>.a to let people know that these are not
9941       # typical AIX shared libraries.
9942       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943     else
9944       # We preserve .a as extension for shared libraries through AIX4.2
9945       # and later when we are not doing run time linking.
9946       library_names_spec='${libname}${release}.a $libname.a'
9947       soname_spec='${libname}${release}${shared_ext}$major'
9948     fi
9949     shlibpath_var=LIBPATH
9950   fi
9951   ;;
9952
9953 amigaos*)
9954   library_names_spec='$libname.ixlibrary $libname.a'
9955   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9956   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'
9957   ;;
9958
9959 beos*)
9960   library_names_spec='${libname}${shared_ext}'
9961   dynamic_linker="$host_os ld.so"
9962   shlibpath_var=LIBRARY_PATH
9963   ;;
9964
9965 bsdi[45]*)
9966   version_type=linux
9967   need_version=no
9968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969   soname_spec='${libname}${release}${shared_ext}$major'
9970   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9971   shlibpath_var=LD_LIBRARY_PATH
9972   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9973   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9974   # the default ld.so.conf also contains /usr/contrib/lib and
9975   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9976   # libtool to hard-code these into programs
9977   ;;
9978
9979 cygwin* | mingw* | pw32*)
9980   version_type=windows
9981   shrext_cmds=".dll"
9982   need_version=no
9983   need_lib_prefix=no
9984
9985   case $GCC,$host_os in
9986   yes,cygwin* | yes,mingw* | yes,pw32*)
9987     library_names_spec='$libname.dll.a'
9988     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9989     postinstall_cmds='base_file=`basename \${file}`~
9990       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9991       dldir=$destdir/`dirname \$dlpath`~
9992       test -d \$dldir || mkdir -p \$dldir~
9993       $install_prog $dir/$dlname \$dldir/$dlname~
9994       chmod a+x \$dldir/$dlname'
9995     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9996       dlpath=$dir/\$dldll~
9997        $rm \$dlpath'
9998     shlibpath_overrides_runpath=yes
9999
10000     case $host_os in
10001     cygwin*)
10002       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10003       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10004       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10005       ;;
10006     mingw*)
10007       # MinGW DLLs use traditional 'lib' prefix
10008       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10010       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10011         # It is most probably a Windows format PATH printed by
10012         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10013         # path with ; separators, and with drive letters. We can handle the
10014         # drive letters (cygwin fileutils understands them), so leave them,
10015         # especially as we might pass files found there to a mingw objdump,
10016         # which wouldn't understand a cygwinified path. Ahh.
10017         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10018       else
10019         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10020       fi
10021       ;;
10022     pw32*)
10023       # pw32 DLLs use 'pw' prefix rather than 'lib'
10024       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10025       ;;
10026     esac
10027     ;;
10028
10029   *)
10030     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10031     ;;
10032   esac
10033   dynamic_linker='Win32 ld.exe'
10034   # FIXME: first we should search . and the directory the executable is in
10035   shlibpath_var=PATH
10036   ;;
10037
10038 darwin* | rhapsody*)
10039   dynamic_linker="$host_os dyld"
10040   version_type=darwin
10041   need_lib_prefix=no
10042   need_version=no
10043   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10044   soname_spec='${libname}${release}${major}$shared_ext'
10045   shlibpath_overrides_runpath=yes
10046   shlibpath_var=DYLD_LIBRARY_PATH
10047   shrext_cmds='.dylib'
10048   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10049   if test "$GCC" = yes; then
10050     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"`
10051   else
10052     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10053   fi
10054   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10055   ;;
10056
10057 dgux*)
10058   version_type=linux
10059   need_lib_prefix=no
10060   need_version=no
10061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10062   soname_spec='${libname}${release}${shared_ext}$major'
10063   shlibpath_var=LD_LIBRARY_PATH
10064   ;;
10065
10066 freebsd1*)
10067   dynamic_linker=no
10068   ;;
10069
10070 kfreebsd*-gnu)
10071   version_type=linux
10072   need_lib_prefix=no
10073   need_version=no
10074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10075   soname_spec='${libname}${release}${shared_ext}$major'
10076   shlibpath_var=LD_LIBRARY_PATH
10077   shlibpath_overrides_runpath=no
10078   hardcode_into_libs=yes
10079   dynamic_linker='GNU ld.so'
10080   ;;
10081
10082 freebsd* | dragonfly*)
10083   # DragonFly does not have aout.  When/if they implement a new
10084   # versioning mechanism, adjust this.
10085   if test -x /usr/bin/objformat; then
10086     objformat=`/usr/bin/objformat`
10087   else
10088     case $host_os in
10089     freebsd[123]*) objformat=aout ;;
10090     *) objformat=elf ;;
10091     esac
10092   fi
10093   version_type=freebsd-$objformat
10094   case $version_type in
10095     freebsd-elf*)
10096       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10097       need_version=no
10098       need_lib_prefix=no
10099       ;;
10100     freebsd-*)
10101       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10102       need_version=yes
10103       ;;
10104   esac
10105   shlibpath_var=LD_LIBRARY_PATH
10106   case $host_os in
10107   freebsd2*)
10108     shlibpath_overrides_runpath=yes
10109     ;;
10110   freebsd3.[01]* | freebsdelf3.[01]*)
10111     shlibpath_overrides_runpath=yes
10112     hardcode_into_libs=yes
10113     ;;
10114   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10115   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10116     shlibpath_overrides_runpath=no
10117     hardcode_into_libs=yes
10118     ;;
10119   freebsd*) # from 4.6 on
10120     shlibpath_overrides_runpath=yes
10121     hardcode_into_libs=yes
10122     ;;
10123   esac
10124   ;;
10125
10126 gnu*)
10127   version_type=linux
10128   need_lib_prefix=no
10129   need_version=no
10130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10131   soname_spec='${libname}${release}${shared_ext}$major'
10132   shlibpath_var=LD_LIBRARY_PATH
10133   hardcode_into_libs=yes
10134   ;;
10135
10136 hpux9* | hpux10* | hpux11*)
10137   # Give a soname corresponding to the major version so that dld.sl refuses to
10138   # link against other versions.
10139   version_type=sunos
10140   need_lib_prefix=no
10141   need_version=no
10142   case $host_cpu in
10143   ia64*)
10144     shrext_cmds='.so'
10145     hardcode_into_libs=yes
10146     dynamic_linker="$host_os dld.so"
10147     shlibpath_var=LD_LIBRARY_PATH
10148     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10149     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150     soname_spec='${libname}${release}${shared_ext}$major'
10151     if test "X$HPUX_IA64_MODE" = X32; then
10152       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10153     else
10154       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10155     fi
10156     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10157     ;;
10158    hppa*64*)
10159      shrext_cmds='.sl'
10160      hardcode_into_libs=yes
10161      dynamic_linker="$host_os dld.sl"
10162      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10163      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10167      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10168      ;;
10169    *)
10170     shrext_cmds='.sl'
10171     dynamic_linker="$host_os dld.sl"
10172     shlibpath_var=SHLIB_PATH
10173     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175     soname_spec='${libname}${release}${shared_ext}$major'
10176     ;;
10177   esac
10178   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10179   postinstall_cmds='chmod 555 $lib'
10180   ;;
10181
10182 interix3*)
10183   version_type=linux
10184   need_lib_prefix=no
10185   need_version=no
10186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10187   soname_spec='${libname}${release}${shared_ext}$major'
10188   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10189   shlibpath_var=LD_LIBRARY_PATH
10190   shlibpath_overrides_runpath=no
10191   hardcode_into_libs=yes
10192   ;;
10193
10194 irix5* | irix6* | nonstopux*)
10195   case $host_os in
10196     nonstopux*) version_type=nonstopux ;;
10197     *)
10198         if test "$lt_cv_prog_gnu_ld" = yes; then
10199                 version_type=linux
10200         else
10201                 version_type=irix
10202         fi ;;
10203   esac
10204   need_lib_prefix=no
10205   need_version=no
10206   soname_spec='${libname}${release}${shared_ext}$major'
10207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10208   case $host_os in
10209   irix5* | nonstopux*)
10210     libsuff= shlibsuff=
10211     ;;
10212   *)
10213     case $LD in # libtool.m4 will add one of these switches to LD
10214     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10215       libsuff= shlibsuff= libmagic=32-bit;;
10216     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10217       libsuff=32 shlibsuff=N32 libmagic=N32;;
10218     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10219       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10220     *) libsuff= shlibsuff= libmagic=never-match;;
10221     esac
10222     ;;
10223   esac
10224   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10225   shlibpath_overrides_runpath=no
10226   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10227   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10228   hardcode_into_libs=yes
10229   ;;
10230
10231 # No shared lib support for Linux oldld, aout, or coff.
10232 linux*oldld* | linux*aout* | linux*coff*)
10233   dynamic_linker=no
10234   ;;
10235
10236 # This must be Linux ELF.
10237 linux*)
10238   version_type=linux
10239   need_lib_prefix=no
10240   need_version=no
10241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242   soname_spec='${libname}${release}${shared_ext}$major'
10243   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10244   shlibpath_var=LD_LIBRARY_PATH
10245   shlibpath_overrides_runpath=no
10246   # This implies no fast_install, which is unacceptable.
10247   # Some rework will be needed to allow for fast_install
10248   # before this can be enabled.
10249   hardcode_into_libs=yes
10250
10251   # Append ld.so.conf contents to the search path
10252   if test -f /etc/ld.so.conf; then
10253     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' ' '`
10254     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10255   fi
10256
10257   # We used to test for /lib/ld.so.1 and disable shared libraries on
10258   # powerpc, because MkLinux only supported shared libraries with the
10259   # GNU dynamic linker.  Since this was broken with cross compilers,
10260   # most powerpc-linux boxes support dynamic linking these days and
10261   # people can always --disable-shared, the test was removed, and we
10262   # assume the GNU/Linux dynamic linker is in use.
10263   dynamic_linker='GNU/Linux ld.so'
10264   ;;
10265
10266 knetbsd*-gnu)
10267   version_type=linux
10268   need_lib_prefix=no
10269   need_version=no
10270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10271   soname_spec='${libname}${release}${shared_ext}$major'
10272   shlibpath_var=LD_LIBRARY_PATH
10273   shlibpath_overrides_runpath=no
10274   hardcode_into_libs=yes
10275   dynamic_linker='GNU ld.so'
10276   ;;
10277
10278 netbsd*)
10279   version_type=sunos
10280   need_lib_prefix=no
10281   need_version=no
10282   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10285     dynamic_linker='NetBSD (a.out) ld.so'
10286   else
10287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10288     soname_spec='${libname}${release}${shared_ext}$major'
10289     dynamic_linker='NetBSD ld.elf_so'
10290   fi
10291   shlibpath_var=LD_LIBRARY_PATH
10292   shlibpath_overrides_runpath=yes
10293   hardcode_into_libs=yes
10294   ;;
10295
10296 newsos6)
10297   version_type=linux
10298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299   shlibpath_var=LD_LIBRARY_PATH
10300   shlibpath_overrides_runpath=yes
10301   ;;
10302
10303 nto-qnx*)
10304   version_type=linux
10305   need_lib_prefix=no
10306   need_version=no
10307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308   soname_spec='${libname}${release}${shared_ext}$major'
10309   shlibpath_var=LD_LIBRARY_PATH
10310   shlibpath_overrides_runpath=yes
10311   ;;
10312
10313 openbsd*)
10314   version_type=sunos
10315   sys_lib_dlsearch_path_spec="/usr/lib"
10316   need_lib_prefix=no
10317   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10318   case $host_os in
10319     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10320     *)                         need_version=no  ;;
10321   esac
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10324   shlibpath_var=LD_LIBRARY_PATH
10325   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10326     case $host_os in
10327       openbsd2.[89] | openbsd2.[89].*)
10328         shlibpath_overrides_runpath=no
10329         ;;
10330       *)
10331         shlibpath_overrides_runpath=yes
10332         ;;
10333       esac
10334   else
10335     shlibpath_overrides_runpath=yes
10336   fi
10337   ;;
10338
10339 os2*)
10340   libname_spec='$name'
10341   shrext_cmds=".dll"
10342   need_lib_prefix=no
10343   library_names_spec='$libname${shared_ext} $libname.a'
10344   dynamic_linker='OS/2 ld.exe'
10345   shlibpath_var=LIBPATH
10346   ;;
10347
10348 osf3* | osf4* | osf5*)
10349   version_type=osf
10350   need_lib_prefix=no
10351   need_version=no
10352   soname_spec='${libname}${release}${shared_ext}$major'
10353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354   shlibpath_var=LD_LIBRARY_PATH
10355   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10356   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357   ;;
10358
10359 solaris*)
10360   version_type=linux
10361   need_lib_prefix=no
10362   need_version=no
10363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364   soname_spec='${libname}${release}${shared_ext}$major'
10365   shlibpath_var=LD_LIBRARY_PATH
10366   shlibpath_overrides_runpath=yes
10367   hardcode_into_libs=yes
10368   # ldd complains unless libraries are executable
10369   postinstall_cmds='chmod +x $lib'
10370   ;;
10371
10372 sunos4*)
10373   version_type=sunos
10374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10375   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10376   shlibpath_var=LD_LIBRARY_PATH
10377   shlibpath_overrides_runpath=yes
10378   if test "$with_gnu_ld" = yes; then
10379     need_lib_prefix=no
10380   fi
10381   need_version=yes
10382   ;;
10383
10384 sysv4 | sysv4.3*)
10385   version_type=linux
10386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387   soname_spec='${libname}${release}${shared_ext}$major'
10388   shlibpath_var=LD_LIBRARY_PATH
10389   case $host_vendor in
10390     sni)
10391       shlibpath_overrides_runpath=no
10392       need_lib_prefix=no
10393       export_dynamic_flag_spec='${wl}-Blargedynsym'
10394       runpath_var=LD_RUN_PATH
10395       ;;
10396     siemens)
10397       need_lib_prefix=no
10398       ;;
10399     motorola)
10400       need_lib_prefix=no
10401       need_version=no
10402       shlibpath_overrides_runpath=no
10403       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10404       ;;
10405   esac
10406   ;;
10407
10408 sysv4*MP*)
10409   if test -d /usr/nec ;then
10410     version_type=linux
10411     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10412     soname_spec='$libname${shared_ext}.$major'
10413     shlibpath_var=LD_LIBRARY_PATH
10414   fi
10415   ;;
10416
10417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10418   version_type=freebsd-elf
10419   need_lib_prefix=no
10420   need_version=no
10421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422   soname_spec='${libname}${release}${shared_ext}$major'
10423   shlibpath_var=LD_LIBRARY_PATH
10424   hardcode_into_libs=yes
10425   if test "$with_gnu_ld" = yes; then
10426     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10427     shlibpath_overrides_runpath=no
10428   else
10429     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10430     shlibpath_overrides_runpath=yes
10431     case $host_os in
10432       sco3.2v5*)
10433         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10434         ;;
10435     esac
10436   fi
10437   sys_lib_dlsearch_path_spec='/usr/lib'
10438   ;;
10439
10440 uts4*)
10441   version_type=linux
10442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443   soname_spec='${libname}${release}${shared_ext}$major'
10444   shlibpath_var=LD_LIBRARY_PATH
10445   ;;
10446
10447 *)
10448   dynamic_linker=no
10449   ;;
10450 esac
10451 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10452 echo "${ECHO_T}$dynamic_linker" >&6; }
10453 test "$dynamic_linker" = no && can_build_shared=no
10454
10455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10456 if test "$GCC" = yes; then
10457   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10458 fi
10459
10460
10461 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10462 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10463 if test "${libltdl_cv_shlibext+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466
10467 module=yes
10468 eval libltdl_cv_shlibext=$shrext_cmds
10469
10470 fi
10471 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10472 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10473 if test -n "$libltdl_cv_shlibext"; then
10474
10475 cat >>confdefs.h <<_ACEOF
10476 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10477 _ACEOF
10478
10479 fi
10480
10481
10482 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10483 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10484 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10485   echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487   libltdl_cv_shlibpath_var="$shlibpath_var"
10488 fi
10489 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10490 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10491 if test -n "$libltdl_cv_shlibpath_var"; then
10492
10493 cat >>confdefs.h <<_ACEOF
10494 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10495 _ACEOF
10496
10497 fi
10498
10499
10500 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10501 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10502 if test "${libltdl_cv_sys_search_path+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10506 fi
10507 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10508 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10509 if test -n "$libltdl_cv_sys_search_path"; then
10510   sys_search_path=
10511   for dir in $libltdl_cv_sys_search_path; do
10512     if test -z "$sys_search_path"; then
10513       sys_search_path="$dir"
10514     else
10515       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10516     fi
10517   done
10518
10519 cat >>confdefs.h <<_ACEOF
10520 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10521 _ACEOF
10522
10523 fi
10524
10525 { echo "$as_me:$LINENO: checking for objdir" >&5
10526 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10527 if test "${libltdl_cv_objdir+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   libltdl_cv_objdir="$objdir"
10531   if test -n "$objdir"; then
10532     :
10533   else
10534     rm -f .libs 2>/dev/null
10535     mkdir .libs 2>/dev/null
10536     if test -d .libs; then
10537       libltdl_cv_objdir=.libs
10538     else
10539       # MS-DOS does not allow filenames that begin with a dot.
10540       libltdl_cv_objdir=_libs
10541     fi
10542   rmdir .libs 2>/dev/null
10543   fi
10544
10545 fi
10546 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10547 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10548
10549 cat >>confdefs.h <<_ACEOF
10550 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10551 _ACEOF
10552
10553
10554
10555
10556
10557
10558 # Check for command to grab the raw symbol name followed by C symbol from nm.
10559 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10560 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10561 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10562   echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564
10565 # These are sane defaults that work on at least a few old systems.
10566 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10567
10568 # Character class describing NM global symbol codes.
10569 symcode='[BCDEGRST]'
10570
10571 # Regexp to match symbols that can be accessed directly from C.
10572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10573
10574 # Transform an extracted symbol line into a proper C declaration
10575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10576
10577 # Transform an extracted symbol line into symbol name and symbol address
10578 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'"
10579
10580 # Define system-specific variables.
10581 case $host_os in
10582 aix*)
10583   symcode='[BCDT]'
10584   ;;
10585 cygwin* | mingw* | pw32*)
10586   symcode='[ABCDGISTW]'
10587   ;;
10588 hpux*) # Its linker distinguishes data from code symbols
10589   if test "$host_cpu" = ia64; then
10590     symcode='[ABCDEGRST]'
10591   fi
10592   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10593   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'"
10594   ;;
10595 linux*)
10596   if test "$host_cpu" = ia64; then
10597     symcode='[ABCDGIRSTW]'
10598     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10599     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'"
10600   fi
10601   ;;
10602 irix* | nonstopux*)
10603   symcode='[BCDEGRST]'
10604   ;;
10605 osf*)
10606   symcode='[BCDEGQRST]'
10607   ;;
10608 solaris*)
10609   symcode='[BDRT]'
10610   ;;
10611 sco3.2v5*)
10612   symcode='[DT]'
10613   ;;
10614 sysv4.2uw2*)
10615   symcode='[DT]'
10616   ;;
10617 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10618   symcode='[ABDT]'
10619   ;;
10620 sysv4)
10621   symcode='[DFNSTU]'
10622   ;;
10623 esac
10624
10625 # Handle CRLF in mingw tool chain
10626 opt_cr=
10627 case $build_os in
10628 mingw*)
10629   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10630   ;;
10631 esac
10632
10633 # If we're using GNU nm, then use its standard symbol codes.
10634 case `$NM -V 2>&1` in
10635 *GNU* | *'with BFD'*)
10636   symcode='[ABCDGIRSTW]' ;;
10637 esac
10638
10639 # Try without a prefix undercore, then with it.
10640 for ac_symprfx in "" "_"; do
10641
10642   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10643   symxfrm="\\1 $ac_symprfx\\2 \\2"
10644
10645   # Write the raw and C identifiers.
10646   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10647
10648   # Check to see that the pipe works correctly.
10649   pipe_works=no
10650
10651   rm -f conftest*
10652   cat > conftest.$ac_ext <<EOF
10653 #ifdef __cplusplus
10654 extern "C" {
10655 #endif
10656 char nm_test_var;
10657 void nm_test_func(){}
10658 #ifdef __cplusplus
10659 }
10660 #endif
10661 int main(){nm_test_var='a';nm_test_func();return(0);}
10662 EOF
10663
10664   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10665   (eval $ac_compile) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; then
10669     # Now try to grab the symbols.
10670     nlist=conftest.nm
10671     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10672   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); } && test -s "$nlist"; then
10676       # Try sorting and uniquifying the output.
10677       if sort "$nlist" | uniq > "$nlist"T; then
10678         mv -f "$nlist"T "$nlist"
10679       else
10680         rm -f "$nlist"T
10681       fi
10682
10683       # Make sure that we snagged all the symbols we need.
10684       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10685         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10686           cat <<EOF > conftest.$ac_ext
10687 #ifdef __cplusplus
10688 extern "C" {
10689 #endif
10690
10691 EOF
10692           # Now generate the symbol file.
10693           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10694
10695           cat <<EOF >> conftest.$ac_ext
10696 #if defined (__STDC__) && __STDC__
10697 # define lt_ptr_t void *
10698 #else
10699 # define lt_ptr_t char *
10700 # define const
10701 #endif
10702
10703 /* The mapping between symbol names and symbols. */
10704 const struct {
10705   const char *name;
10706   lt_ptr_t address;
10707 }
10708 lt_preloaded_symbols[] =
10709 {
10710 EOF
10711           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10712           cat <<\EOF >> conftest.$ac_ext
10713   {0, (lt_ptr_t) 0}
10714 };
10715
10716 #ifdef __cplusplus
10717 }
10718 #endif
10719 EOF
10720           # Now try linking the two files.
10721           mv conftest.$ac_objext conftstm.$ac_objext
10722           lt_save_LIBS="$LIBS"
10723           lt_save_CFLAGS="$CFLAGS"
10724           LIBS="conftstm.$ac_objext"
10725           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10726           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727   (eval $ac_link) 2>&5
10728   ac_status=$?
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10731             pipe_works=yes
10732           fi
10733           LIBS="$lt_save_LIBS"
10734           CFLAGS="$lt_save_CFLAGS"
10735         else
10736           echo "cannot find nm_test_func in $nlist" >&5
10737         fi
10738       else
10739         echo "cannot find nm_test_var in $nlist" >&5
10740       fi
10741     else
10742       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10743     fi
10744   else
10745     echo "$progname: failed program was:" >&5
10746     cat conftest.$ac_ext >&5
10747   fi
10748   rm -f conftest* conftst*
10749
10750   # Do not use the global_symbol_pipe unless it works.
10751   if test "$pipe_works" = yes; then
10752     break
10753   else
10754     lt_cv_sys_global_symbol_pipe=
10755   fi
10756 done
10757
10758 fi
10759
10760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10761   lt_cv_sys_global_symbol_to_cdecl=
10762 fi
10763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10764   { echo "$as_me:$LINENO: result: failed" >&5
10765 echo "${ECHO_T}failed" >&6; }
10766 else
10767   { echo "$as_me:$LINENO: result: ok" >&5
10768 echo "${ECHO_T}ok" >&6; }
10769 fi
10770
10771
10772 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10773 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10774 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10778     libltdl_cv_preloaded_symbols=yes
10779   else
10780     libltdl_cv_preloaded_symbols=no
10781   fi
10782
10783 fi
10784 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10785 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10786 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10787
10788 cat >>confdefs.h <<\_ACEOF
10789 #define HAVE_PRELOADED_SYMBOLS 1
10790 _ACEOF
10791
10792 fi
10793
10794 LIBADD_DL=
10795
10796 ac_ext=c
10797 ac_cpp='$CPP $CPPFLAGS'
10798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10801
10802
10803 { echo "$as_me:$LINENO: checking for shl_load" >&5
10804 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10805 if test "${ac_cv_func_shl_load+set}" = set; then
10806   echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808   cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10816 #define shl_load innocuous_shl_load
10817
10818 /* System header to define __stub macros and hopefully few prototypes,
10819     which can conflict with char shl_load (); below.
10820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821     <limits.h> exists even on freestanding compilers.  */
10822
10823 #ifdef __STDC__
10824 # include <limits.h>
10825 #else
10826 # include <assert.h>
10827 #endif
10828
10829 #undef shl_load
10830
10831 /* Override any GCC internal prototype to avoid an error.
10832    Use char because int might match the return type of a GCC
10833    builtin and then its argument prototype would still apply.  */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 char shl_load ();
10838 /* The GNU C library defines this for functions which it implements
10839     to always fail with ENOSYS.  Some functions are actually named
10840     something starting with __ and the normal name is an alias.  */
10841 #if defined __stub_shl_load || defined __stub___shl_load
10842 choke me
10843 #endif
10844
10845 int
10846 main ()
10847 {
10848 return shl_load ();
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext conftest$ac_exeext
10854 if { (ac_try="$ac_link"
10855 case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_link") 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } &&
10867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868   { (case "(($ac_try" in
10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870   *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873   (eval "$ac_try") 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; } &&
10877          { ac_try='test -s conftest$ac_exeext'
10878   { (case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_try") 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   ac_cv_func_shl_load=yes
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892         ac_cv_func_shl_load=no
10893 fi
10894
10895 rm -f core conftest.err conftest.$ac_objext \
10896       conftest$ac_exeext conftest.$ac_ext
10897 fi
10898 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10899 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10900 if test $ac_cv_func_shl_load = yes; then
10901
10902 cat >>confdefs.h <<\_ACEOF
10903 #define HAVE_SHL_LOAD 1
10904 _ACEOF
10905
10906 else
10907   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10908 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10909 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10910   echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912   ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-ldld  $LIBS"
10914 cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h.  */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h.  */
10920
10921 /* Override any GCC internal prototype to avoid an error.
10922    Use char because int might match the return type of a GCC
10923    builtin and then its argument prototype would still apply.  */
10924 #ifdef __cplusplus
10925 extern "C"
10926 #endif
10927 char shl_load ();
10928 int
10929 main ()
10930 {
10931 return shl_load ();
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (ac_try="$ac_link"
10938 case "(($ac_try" in
10939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940   *) ac_try_echo=$ac_try;;
10941 esac
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943   (eval "$ac_link") 2>conftest.er1
10944   ac_status=$?
10945   grep -v '^ *+' conftest.er1 >conftest.err
10946   rm -f conftest.er1
10947   cat conftest.err >&5
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } &&
10950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951   { (case "(($ac_try" in
10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953   *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956   (eval "$ac_try") 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; } &&
10960          { ac_try='test -s conftest$ac_exeext'
10961   { (case "(($ac_try" in
10962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963   *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966   (eval "$ac_try") 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; }; then
10970   ac_cv_lib_dld_shl_load=yes
10971 else
10972   echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975         ac_cv_lib_dld_shl_load=no
10976 fi
10977
10978 rm -f core conftest.err conftest.$ac_objext \
10979       conftest$ac_exeext conftest.$ac_ext
10980 LIBS=$ac_check_lib_save_LIBS
10981 fi
10982 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10983 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10984 if test $ac_cv_lib_dld_shl_load = yes; then
10985
10986 cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_SHL_LOAD 1
10988 _ACEOF
10989
10990         LIBADD_DL="$LIBADD_DL -ldld"
10991 else
10992   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10993 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10994 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10995   echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997   ac_check_lib_save_LIBS=$LIBS
10998 LIBS="-ldl  $LIBS"
10999 cat >conftest.$ac_ext <<_ACEOF
11000 /* confdefs.h.  */
11001 _ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h.  */
11005
11006 /* Override any GCC internal prototype to avoid an error.
11007    Use char because int might match the return type of a GCC
11008    builtin and then its argument prototype would still apply.  */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char dlopen ();
11013 int
11014 main ()
11015 {
11016 return dlopen ();
11017   ;
11018   return 0;
11019 }
11020 _ACEOF
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (ac_try="$ac_link"
11023 case "(($ac_try" in
11024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025   *) ac_try_echo=$ac_try;;
11026 esac
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028   (eval "$ac_link") 2>conftest.er1
11029   ac_status=$?
11030   grep -v '^ *+' conftest.er1 >conftest.err
11031   rm -f conftest.er1
11032   cat conftest.err >&5
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); } &&
11035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036   { (case "(($ac_try" in
11037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038   *) ac_try_echo=$ac_try;;
11039 esac
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041   (eval "$ac_try") 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); }; } &&
11045          { ac_try='test -s conftest$ac_exeext'
11046   { (case "(($ac_try" in
11047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048   *) ac_try_echo=$ac_try;;
11049 esac
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051   (eval "$ac_try") 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); }; }; then
11055   ac_cv_lib_dl_dlopen=yes
11056 else
11057   echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060         ac_cv_lib_dl_dlopen=no
11061 fi
11062
11063 rm -f core conftest.err conftest.$ac_objext \
11064       conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11066 fi
11067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11068 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11069 if test $ac_cv_lib_dl_dlopen = yes; then
11070
11071 cat >>confdefs.h <<\_ACEOF
11072 #define HAVE_LIBDL 1
11073 _ACEOF
11074
11075                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11076 else
11077   cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h.  */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h.  */
11083 #if HAVE_DLFCN_H
11084 #  include <dlfcn.h>
11085 #endif
11086
11087 int
11088 main ()
11089 {
11090 dlopen(0, 0);
11091   ;
11092   return 0;
11093 }
11094 _ACEOF
11095 rm -f conftest.$ac_objext conftest$ac_exeext
11096 if { (ac_try="$ac_link"
11097 case "(($ac_try" in
11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099   *) ac_try_echo=$ac_try;;
11100 esac
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102   (eval "$ac_link") 2>conftest.er1
11103   ac_status=$?
11104   grep -v '^ *+' conftest.er1 >conftest.err
11105   rm -f conftest.er1
11106   cat conftest.err >&5
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } &&
11109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11110   { (case "(($ac_try" in
11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112   *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115   (eval "$ac_try") 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; } &&
11119          { ac_try='test -s conftest$ac_exeext'
11120   { (case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_try") 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; }; then
11129
11130 cat >>confdefs.h <<\_ACEOF
11131 #define HAVE_LIBDL 1
11132 _ACEOF
11133  libltdl_cv_func_dlopen="yes"
11134 else
11135   echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11137
11138         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11139 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11140 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   ac_check_lib_save_LIBS=$LIBS
11144 LIBS="-lsvld  $LIBS"
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h.  */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h.  */
11151
11152 /* Override any GCC internal prototype to avoid an error.
11153    Use char because int might match the return type of a GCC
11154    builtin and then its argument prototype would still apply.  */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char dlopen ();
11159 int
11160 main ()
11161 {
11162 return dlopen ();
11163   ;
11164   return 0;
11165 }
11166 _ACEOF
11167 rm -f conftest.$ac_objext conftest$ac_exeext
11168 if { (ac_try="$ac_link"
11169 case "(($ac_try" in
11170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171   *) ac_try_echo=$ac_try;;
11172 esac
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174   (eval "$ac_link") 2>conftest.er1
11175   ac_status=$?
11176   grep -v '^ *+' conftest.er1 >conftest.err
11177   rm -f conftest.er1
11178   cat conftest.err >&5
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11182   { (case "(($ac_try" in
11183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184   *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187   (eval "$ac_try") 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); }; } &&
11191          { ac_try='test -s conftest$ac_exeext'
11192   { (case "(($ac_try" in
11193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194   *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197   (eval "$ac_try") 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); }; }; then
11201   ac_cv_lib_svld_dlopen=yes
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206         ac_cv_lib_svld_dlopen=no
11207 fi
11208
11209 rm -f core conftest.err conftest.$ac_objext \
11210       conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11212 fi
11213 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11214 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11215 if test $ac_cv_lib_svld_dlopen = yes; then
11216
11217 cat >>confdefs.h <<\_ACEOF
11218 #define HAVE_LIBDL 1
11219 _ACEOF
11220
11221                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11222 else
11223   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11224 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11225 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228   ac_check_lib_save_LIBS=$LIBS
11229 LIBS="-ldld  $LIBS"
11230 cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h.  */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h.  */
11236
11237 /* Override any GCC internal prototype to avoid an error.
11238    Use char because int might match the return type of a GCC
11239    builtin and then its argument prototype would still apply.  */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char dld_link ();
11244 int
11245 main ()
11246 {
11247 return dld_link ();
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (ac_try="$ac_link"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_link") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } &&
11266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest$ac_exeext'
11277   { (case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_try") 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_cv_lib_dld_dld_link=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291         ac_cv_lib_dld_dld_link=no
11292 fi
11293
11294 rm -f core conftest.err conftest.$ac_objext \
11295       conftest$ac_exeext conftest.$ac_ext
11296 LIBS=$ac_check_lib_save_LIBS
11297 fi
11298 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11299 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11300 if test $ac_cv_lib_dld_dld_link = yes; then
11301
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_DLD 1
11304 _ACEOF
11305
11306                 LIBADD_DL="$LIBADD_DL -ldld"
11307 else
11308   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11309 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11310 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11311   echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313   cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h.  */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h.  */
11319 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11321 #define _dyld_func_lookup innocuous__dyld_func_lookup
11322
11323 /* System header to define __stub macros and hopefully few prototypes,
11324     which can conflict with char _dyld_func_lookup (); below.
11325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11326     <limits.h> exists even on freestanding compilers.  */
11327
11328 #ifdef __STDC__
11329 # include <limits.h>
11330 #else
11331 # include <assert.h>
11332 #endif
11333
11334 #undef _dyld_func_lookup
11335
11336 /* Override any GCC internal prototype to avoid an error.
11337    Use char because int might match the return type of a GCC
11338    builtin and then its argument prototype would still apply.  */
11339 #ifdef __cplusplus
11340 extern "C"
11341 #endif
11342 char _dyld_func_lookup ();
11343 /* The GNU C library defines this for functions which it implements
11344     to always fail with ENOSYS.  Some functions are actually named
11345     something starting with __ and the normal name is an alias.  */
11346 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11347 choke me
11348 #endif
11349
11350 int
11351 main ()
11352 {
11353 return _dyld_func_lookup ();
11354   ;
11355   return 0;
11356 }
11357 _ACEOF
11358 rm -f conftest.$ac_objext conftest$ac_exeext
11359 if { (ac_try="$ac_link"
11360 case "(($ac_try" in
11361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362   *) ac_try_echo=$ac_try;;
11363 esac
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365   (eval "$ac_link") 2>conftest.er1
11366   ac_status=$?
11367   grep -v '^ *+' conftest.er1 >conftest.err
11368   rm -f conftest.er1
11369   cat conftest.err >&5
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } &&
11372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11373   { (case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_try") 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); }; } &&
11382          { ac_try='test -s conftest$ac_exeext'
11383   { (case "(($ac_try" in
11384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385   *) ac_try_echo=$ac_try;;
11386 esac
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388   (eval "$ac_try") 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; }; then
11392   ac_cv_func__dyld_func_lookup=yes
11393 else
11394   echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397         ac_cv_func__dyld_func_lookup=no
11398 fi
11399
11400 rm -f core conftest.err conftest.$ac_objext \
11401       conftest$ac_exeext conftest.$ac_ext
11402 fi
11403 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11404 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11405 if test $ac_cv_func__dyld_func_lookup = yes; then
11406
11407 cat >>confdefs.h <<\_ACEOF
11408 #define HAVE_DYLD 1
11409 _ACEOF
11410
11411 fi
11412
11413
11414 fi
11415
11416
11417 fi
11418
11419
11420 fi
11421
11422 rm -f core conftest.err conftest.$ac_objext \
11423       conftest$ac_exeext conftest.$ac_ext
11424
11425 fi
11426
11427
11428 fi
11429
11430
11431 fi
11432
11433
11434 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11435 then
11436   lt_save_LIBS="$LIBS"
11437   LIBS="$LIBS $LIBADD_DL"
11438
11439 for ac_func in dlerror
11440 do
11441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11445   echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447   cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h.  */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h.  */
11453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11455 #define $ac_func innocuous_$ac_func
11456
11457 /* System header to define __stub macros and hopefully few prototypes,
11458     which can conflict with char $ac_func (); below.
11459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11460     <limits.h> exists even on freestanding compilers.  */
11461
11462 #ifdef __STDC__
11463 # include <limits.h>
11464 #else
11465 # include <assert.h>
11466 #endif
11467
11468 #undef $ac_func
11469
11470 /* Override any GCC internal prototype to avoid an error.
11471    Use char because int might match the return type of a GCC
11472    builtin and then its argument prototype would still apply.  */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 char $ac_func ();
11477 /* The GNU C library defines this for functions which it implements
11478     to always fail with ENOSYS.  Some functions are actually named
11479     something starting with __ and the normal name is an alias.  */
11480 #if defined __stub_$ac_func || defined __stub___$ac_func
11481 choke me
11482 #endif
11483
11484 int
11485 main ()
11486 {
11487 return $ac_func ();
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 rm -f conftest.$ac_objext conftest$ac_exeext
11493 if { (ac_try="$ac_link"
11494 case "(($ac_try" in
11495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496   *) ac_try_echo=$ac_try;;
11497 esac
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499   (eval "$ac_link") 2>conftest.er1
11500   ac_status=$?
11501   grep -v '^ *+' conftest.er1 >conftest.err
11502   rm -f conftest.er1
11503   cat conftest.err >&5
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); } &&
11506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11507   { (case "(($ac_try" in
11508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509   *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512   (eval "$ac_try") 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; } &&
11516          { ac_try='test -s conftest$ac_exeext'
11517   { (case "(($ac_try" in
11518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519   *) ac_try_echo=$ac_try;;
11520 esac
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522   (eval "$ac_try") 2>&5
11523   ac_status=$?
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); }; }; then
11526   eval "$as_ac_var=yes"
11527 else
11528   echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531         eval "$as_ac_var=no"
11532 fi
11533
11534 rm -f core conftest.err conftest.$ac_objext \
11535       conftest$ac_exeext conftest.$ac_ext
11536 fi
11537 ac_res=`eval echo '${'$as_ac_var'}'`
11538                { echo "$as_me:$LINENO: result: $ac_res" >&5
11539 echo "${ECHO_T}$ac_res" >&6; }
11540 if test `eval echo '${'$as_ac_var'}'` = yes; then
11541   cat >>confdefs.h <<_ACEOF
11542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11543 _ACEOF
11544
11545 fi
11546 done
11547
11548   LIBS="$lt_save_LIBS"
11549 fi
11550 ac_ext=c
11551 ac_cpp='$CPP $CPPFLAGS'
11552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11555
11556
11557
11558 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11559 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11560 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11561   echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563   ac_cv_sys_symbol_underscore=no
11564   cat > conftest.$ac_ext <<EOF
11565 void nm_test_func(){}
11566 int main(){nm_test_func;return 0;}
11567 EOF
11568   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11569   (eval $ac_compile) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; then
11573     # Now try to grab the symbols.
11574     ac_nlist=conftest.nm
11575     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11576   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } && test -s "$ac_nlist"; then
11580       # See whether the symbols have a leading underscore.
11581       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11582         ac_cv_sys_symbol_underscore=yes
11583       else
11584         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11585           :
11586         else
11587           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11588         fi
11589       fi
11590     else
11591       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11592     fi
11593   else
11594     echo "configure: failed program was:" >&5
11595     cat conftest.c >&5
11596   fi
11597   rm -rf conftest*
11598
11599 fi
11600 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11601 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11602
11603
11604 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11605   if test x"$libltdl_cv_func_dlopen" = xyes ||
11606      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11607         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11608 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11609 if test "${libltdl_cv_need_uscore+set}" = set; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   libltdl_cv_need_uscore=unknown
11613           save_LIBS="$LIBS"
11614           LIBS="$LIBS $LIBADD_DL"
11615           if test "$cross_compiling" = yes; then :
11616   libltdl_cv_need_uscore=cross
11617 else
11618   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11619   lt_status=$lt_dlunknown
11620   cat > conftest.$ac_ext <<EOF
11621 #line 11621 "configure"
11622 #include "confdefs.h"
11623
11624 #if HAVE_DLFCN_H
11625 #include <dlfcn.h>
11626 #endif
11627
11628 #include <stdio.h>
11629
11630 #ifdef RTLD_GLOBAL
11631 #  define LT_DLGLOBAL           RTLD_GLOBAL
11632 #else
11633 #  ifdef DL_GLOBAL
11634 #    define LT_DLGLOBAL         DL_GLOBAL
11635 #  else
11636 #    define LT_DLGLOBAL         0
11637 #  endif
11638 #endif
11639
11640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11641    find out it does not work in some platform. */
11642 #ifndef LT_DLLAZY_OR_NOW
11643 #  ifdef RTLD_LAZY
11644 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11645 #  else
11646 #    ifdef DL_LAZY
11647 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11648 #    else
11649 #      ifdef RTLD_NOW
11650 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11651 #      else
11652 #        ifdef DL_NOW
11653 #          define LT_DLLAZY_OR_NOW      DL_NOW
11654 #        else
11655 #          define LT_DLLAZY_OR_NOW      0
11656 #        endif
11657 #      endif
11658 #    endif
11659 #  endif
11660 #endif
11661
11662 #ifdef __cplusplus
11663 extern "C" void exit (int);
11664 #endif
11665
11666 void fnord() { int i=42;}
11667 int main ()
11668 {
11669   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11670   int status = $lt_dlunknown;
11671
11672   if (self)
11673     {
11674       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11675       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11676       /* dlclose (self); */
11677     }
11678   else
11679     puts (dlerror ());
11680
11681     exit (status);
11682 }
11683 EOF
11684   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685   (eval $ac_link) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11689     (./conftest; exit; ) >&5 2>/dev/null
11690     lt_status=$?
11691     case x$lt_status in
11692       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11693       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11694       x$lt_dlunknown|x*)  ;;
11695     esac
11696   else :
11697     # compilation failed
11698
11699   fi
11700 fi
11701 rm -fr conftest*
11702
11703           LIBS="$save_LIBS"
11704
11705 fi
11706 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11707 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11708   fi
11709 fi
11710
11711 if test x"$libltdl_cv_need_uscore" = xyes; then
11712
11713 cat >>confdefs.h <<\_ACEOF
11714 #define NEED_USCORE 1
11715 _ACEOF
11716
11717 fi
11718
11719
11720 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11721 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11722 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725   # PORTME does your system automatically load deplibs for dlopen?
11726   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11727   # For now, we just catch OSes we know something about -- in the
11728   # future, we'll try test this programmatically.
11729   libltdl_cv_sys_dlopen_deplibs=unknown
11730   case "$host_os" in
11731   aix3*|aix4.1.*|aix4.2.*)
11732     # Unknown whether this is true for these versions of AIX, but
11733     # we want this `case' here to explicitly catch those versions.
11734     libltdl_cv_sys_dlopen_deplibs=unknown
11735     ;;
11736   aix[45]*)
11737     libltdl_cv_sys_dlopen_deplibs=yes
11738     ;;
11739   darwin*)
11740     # Assuming the user has installed a libdl from somewhere, this is true
11741     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11742     libltdl_cv_sys_dlopen_deplibs=yes
11743     ;;
11744   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11745     # GNU and its variants, using gnu ld.so (Glibc)
11746     libltdl_cv_sys_dlopen_deplibs=yes
11747     ;;
11748   hpux10*|hpux11*)
11749     libltdl_cv_sys_dlopen_deplibs=yes
11750     ;;
11751   interix*)
11752     libltdl_cv_sys_dlopen_deplibs=yes
11753     ;;
11754   irix[12345]*|irix6.[01]*)
11755     # Catch all versions of IRIX before 6.2, and indicate that we don't
11756     # know how it worked for any of those versions.
11757     libltdl_cv_sys_dlopen_deplibs=unknown
11758     ;;
11759   irix*)
11760     # The case above catches anything before 6.2, and it's known that
11761     # at 6.2 and later dlopen does load deplibs.
11762     libltdl_cv_sys_dlopen_deplibs=yes
11763     ;;
11764   netbsd*)
11765     libltdl_cv_sys_dlopen_deplibs=yes
11766     ;;
11767   openbsd*)
11768     libltdl_cv_sys_dlopen_deplibs=yes
11769     ;;
11770   osf[1234]*)
11771     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11772     # it did *not* use an RPATH in a shared library to find objects the
11773     # library depends on, so we explicitly say `no'.
11774     libltdl_cv_sys_dlopen_deplibs=no
11775     ;;
11776   osf5.0|osf5.0a|osf5.1)
11777     # dlopen *does* load deplibs and with the right loader patch applied
11778     # it even uses RPATH in a shared library to search for shared objects
11779     # that the library depends on, but there's no easy way to know if that
11780     # patch is installed.  Since this is the case, all we can really
11781     # say is unknown -- it depends on the patch being installed.  If
11782     # it is, this changes to `yes'.  Without it, it would be `no'.
11783     libltdl_cv_sys_dlopen_deplibs=unknown
11784     ;;
11785   osf*)
11786     # the two cases above should catch all versions of osf <= 5.1.  Read
11787     # the comments above for what we know about them.
11788     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11789     # is used to find them so we can finally say `yes'.
11790     libltdl_cv_sys_dlopen_deplibs=yes
11791     ;;
11792   solaris*)
11793     libltdl_cv_sys_dlopen_deplibs=yes
11794     ;;
11795   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11796     libltdl_cv_sys_dlopen_deplibs=yes
11797     ;;
11798   esac
11799
11800 fi
11801 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11802 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11803 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11804
11805 cat >>confdefs.h <<\_ACEOF
11806 #define LTDL_DLOPEN_DEPLIBS 1
11807 _ACEOF
11808
11809 fi
11810
11811
11812 for ac_header in argz.h
11813 do
11814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11816   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 fi
11821 ac_res=`eval echo '${'$as_ac_Header'}'`
11822                { echo "$as_me:$LINENO: result: $ac_res" >&5
11823 echo "${ECHO_T}$ac_res" >&6; }
11824 else
11825   # Is the header compilable?
11826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834 $ac_includes_default
11835 #include <$ac_header>
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (ac_try="$ac_compile"
11839 case "(($ac_try" in
11840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841   *) ac_try_echo=$ac_try;;
11842 esac
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844   (eval "$ac_compile") 2>conftest.er1
11845   ac_status=$?
11846   grep -v '^ *+' conftest.er1 >conftest.err
11847   rm -f conftest.er1
11848   cat conftest.err >&5
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); } &&
11851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11852   { (case "(($ac_try" in
11853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854   *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857   (eval "$ac_try") 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; } &&
11861          { ac_try='test -s conftest.$ac_objext'
11862   { (case "(($ac_try" in
11863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864   *) ac_try_echo=$ac_try;;
11865 esac
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867   (eval "$ac_try") 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }; }; then
11871   ac_header_compiler=yes
11872 else
11873   echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876         ac_header_compiler=no
11877 fi
11878
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11881 echo "${ECHO_T}$ac_header_compiler" >&6; }
11882
11883 # Is the header present?
11884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 #include <$ac_header>
11893 _ACEOF
11894 if { (ac_try="$ac_cpp conftest.$ac_ext"
11895 case "(($ac_try" in
11896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897   *) ac_try_echo=$ac_try;;
11898 esac
11899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11901   ac_status=$?
11902   grep -v '^ *+' conftest.er1 >conftest.err
11903   rm -f conftest.er1
11904   cat conftest.err >&5
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); } >/dev/null; then
11907   if test -s conftest.err; then
11908     ac_cpp_err=$ac_c_preproc_warn_flag
11909     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11910   else
11911     ac_cpp_err=
11912   fi
11913 else
11914   ac_cpp_err=yes
11915 fi
11916 if test -z "$ac_cpp_err"; then
11917   ac_header_preproc=yes
11918 else
11919   echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922   ac_header_preproc=no
11923 fi
11924
11925 rm -f conftest.err conftest.$ac_ext
11926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 echo "${ECHO_T}$ac_header_preproc" >&6; }
11928
11929 # So?  What about this header?
11930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11931   yes:no: )
11932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11936     ac_header_preproc=yes
11937     ;;
11938   no:yes:* )
11939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11951     ( cat <<\_ASBOX
11952 ## ----------------------------------- ##
11953 ## Report this to llvmbugs@cs.uiuc.edu ##
11954 ## ----------------------------------- ##
11955 _ASBOX
11956      ) | sed "s/^/$as_me: WARNING:     /" >&2
11957     ;;
11958 esac
11959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962   echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964   eval "$as_ac_Header=\$ac_header_preproc"
11965 fi
11966 ac_res=`eval echo '${'$as_ac_Header'}'`
11967                { echo "$as_me:$LINENO: result: $ac_res" >&5
11968 echo "${ECHO_T}$ac_res" >&6; }
11969
11970 fi
11971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11972   cat >>confdefs.h <<_ACEOF
11973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11974 _ACEOF
11975
11976 fi
11977
11978 done
11979
11980
11981 { echo "$as_me:$LINENO: checking for error_t" >&5
11982 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11983 if test "${ac_cv_type_error_t+set}" = set; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986   cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h.  */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h.  */
11992 #if HAVE_ARGZ_H
11993 #  include <argz.h>
11994 #endif
11995
11996 typedef error_t ac__type_new_;
11997 int
11998 main ()
11999 {
12000 if ((ac__type_new_ *) 0)
12001   return 0;
12002 if (sizeof (ac__type_new_))
12003   return 0;
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext
12009 if { (ac_try="$ac_compile"
12010 case "(($ac_try" in
12011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012   *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015   (eval "$ac_compile") 2>conftest.er1
12016   ac_status=$?
12017   grep -v '^ *+' conftest.er1 >conftest.err
12018   rm -f conftest.er1
12019   cat conftest.err >&5
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); } &&
12022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023   { (case "(($ac_try" in
12024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025   *) ac_try_echo=$ac_try;;
12026 esac
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028   (eval "$ac_try") 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); }; } &&
12032          { ac_try='test -s conftest.$ac_objext'
12033   { (case "(($ac_try" in
12034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035   *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038   (eval "$ac_try") 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   ac_cv_type_error_t=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047         ac_cv_type_error_t=no
12048 fi
12049
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 fi
12052 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12053 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12054 if test $ac_cv_type_error_t = yes; then
12055
12056 cat >>confdefs.h <<_ACEOF
12057 #define HAVE_ERROR_T 1
12058 _ACEOF
12059
12060
12061 else
12062
12063 cat >>confdefs.h <<\_ACEOF
12064 #define error_t int
12065 _ACEOF
12066
12067 fi
12068
12069
12070
12071
12072
12073
12074
12075 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12076 do
12077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12081   echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083   cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h.  */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h.  */
12089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12091 #define $ac_func innocuous_$ac_func
12092
12093 /* System header to define __stub macros and hopefully few prototypes,
12094     which can conflict with char $ac_func (); below.
12095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096     <limits.h> exists even on freestanding compilers.  */
12097
12098 #ifdef __STDC__
12099 # include <limits.h>
12100 #else
12101 # include <assert.h>
12102 #endif
12103
12104 #undef $ac_func
12105
12106 /* Override any GCC internal prototype to avoid an error.
12107    Use char because int might match the return type of a GCC
12108    builtin and then its argument prototype would still apply.  */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char $ac_func ();
12113 /* The GNU C library defines this for functions which it implements
12114     to always fail with ENOSYS.  Some functions are actually named
12115     something starting with __ and the normal name is an alias.  */
12116 #if defined __stub_$ac_func || defined __stub___$ac_func
12117 choke me
12118 #endif
12119
12120 int
12121 main ()
12122 {
12123 return $ac_func ();
12124   ;
12125   return 0;
12126 }
12127 _ACEOF
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132   *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135   (eval "$ac_link") 2>conftest.er1
12136   ac_status=$?
12137   grep -v '^ *+' conftest.er1 >conftest.err
12138   rm -f conftest.er1
12139   cat conftest.err >&5
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); } &&
12142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12143   { (case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148   (eval "$ac_try") 2>&5
12149   ac_status=$?
12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); }; } &&
12152          { ac_try='test -s conftest$ac_exeext'
12153   { (case "(($ac_try" in
12154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155   *) ac_try_echo=$ac_try;;
12156 esac
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158   (eval "$ac_try") 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); }; }; then
12162   eval "$as_ac_var=yes"
12163 else
12164   echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12166
12167         eval "$as_ac_var=no"
12168 fi
12169
12170 rm -f core conftest.err conftest.$ac_objext \
12171       conftest$ac_exeext conftest.$ac_ext
12172 fi
12173 ac_res=`eval echo '${'$as_ac_var'}'`
12174                { echo "$as_me:$LINENO: result: $ac_res" >&5
12175 echo "${ECHO_T}$ac_res" >&6; }
12176 if test `eval echo '${'$as_ac_var'}'` = yes; then
12177   cat >>confdefs.h <<_ACEOF
12178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12179 _ACEOF
12180
12181 fi
12182 done
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12212                   stdio.h unistd.h
12213 do
12214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12216   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12219   echo $ECHO_N "(cached) $ECHO_C" >&6
12220 fi
12221 ac_res=`eval echo '${'$as_ac_Header'}'`
12222                { echo "$as_me:$LINENO: result: $ac_res" >&5
12223 echo "${ECHO_T}$ac_res" >&6; }
12224 else
12225   # Is the header compilable?
12226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h.  */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h.  */
12234 $ac_includes_default
12235 #include <$ac_header>
12236 _ACEOF
12237 rm -f conftest.$ac_objext
12238 if { (ac_try="$ac_compile"
12239 case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244   (eval "$ac_compile") 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } &&
12251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12252   { (case "(($ac_try" in
12253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254   *) ac_try_echo=$ac_try;;
12255 esac
12256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257   (eval "$ac_try") 2>&5
12258   ac_status=$?
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); }; } &&
12261          { ac_try='test -s conftest.$ac_objext'
12262   { (case "(($ac_try" in
12263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264   *) ac_try_echo=$ac_try;;
12265 esac
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267   (eval "$ac_try") 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); }; }; then
12271   ac_header_compiler=yes
12272 else
12273   echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12275
12276         ac_header_compiler=no
12277 fi
12278
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12281 echo "${ECHO_T}$ac_header_compiler" >&6; }
12282
12283 # Is the header present?
12284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292 #include <$ac_header>
12293 _ACEOF
12294 if { (ac_try="$ac_cpp conftest.$ac_ext"
12295 case "(($ac_try" in
12296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297   *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12301   ac_status=$?
12302   grep -v '^ *+' conftest.er1 >conftest.err
12303   rm -f conftest.er1
12304   cat conftest.err >&5
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } >/dev/null; then
12307   if test -s conftest.err; then
12308     ac_cpp_err=$ac_c_preproc_warn_flag
12309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12310   else
12311     ac_cpp_err=
12312   fi
12313 else
12314   ac_cpp_err=yes
12315 fi
12316 if test -z "$ac_cpp_err"; then
12317   ac_header_preproc=yes
12318 else
12319   echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12321
12322   ac_header_preproc=no
12323 fi
12324
12325 rm -f conftest.err conftest.$ac_ext
12326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12327 echo "${ECHO_T}$ac_header_preproc" >&6; }
12328
12329 # So?  What about this header?
12330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12331   yes:no: )
12332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12336     ac_header_preproc=yes
12337     ;;
12338   no:yes:* )
12339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12351     ( cat <<\_ASBOX
12352 ## ----------------------------------- ##
12353 ## Report this to llvmbugs@cs.uiuc.edu ##
12354 ## ----------------------------------- ##
12355 _ASBOX
12356      ) | sed "s/^/$as_me: WARNING:     /" >&2
12357     ;;
12358 esac
12359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12362   echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364   eval "$as_ac_Header=\$ac_header_preproc"
12365 fi
12366 ac_res=`eval echo '${'$as_ac_Header'}'`
12367                { echo "$as_me:$LINENO: result: $ac_res" >&5
12368 echo "${ECHO_T}$ac_res" >&6; }
12369
12370 fi
12371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12372   cat >>confdefs.h <<_ACEOF
12373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12374 _ACEOF
12375
12376 fi
12377
12378 done
12379
12380
12381
12382
12383
12384 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12385 do
12386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12388   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391   echo $ECHO_N "(cached) $ECHO_C" >&6
12392 fi
12393 ac_res=`eval echo '${'$as_ac_Header'}'`
12394                { echo "$as_me:$LINENO: result: $ac_res" >&5
12395 echo "${ECHO_T}$ac_res" >&6; }
12396 else
12397   # Is the header compilable?
12398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h.  */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h.  */
12406 $ac_includes_default
12407 #include <$ac_header>
12408 _ACEOF
12409 rm -f conftest.$ac_objext
12410 if { (ac_try="$ac_compile"
12411 case "(($ac_try" in
12412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413   *) ac_try_echo=$ac_try;;
12414 esac
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416   (eval "$ac_compile") 2>conftest.er1
12417   ac_status=$?
12418   grep -v '^ *+' conftest.er1 >conftest.err
12419   rm -f conftest.er1
12420   cat conftest.err >&5
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); } &&
12423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12424   { (case "(($ac_try" in
12425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426   *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429   (eval "$ac_try") 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; } &&
12433          { ac_try='test -s conftest.$ac_objext'
12434   { (case "(($ac_try" in
12435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436   *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439   (eval "$ac_try") 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; }; then
12443   ac_header_compiler=yes
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448         ac_header_compiler=no
12449 fi
12450
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12453 echo "${ECHO_T}$ac_header_compiler" >&6; }
12454
12455 # Is the header present?
12456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12458 cat >conftest.$ac_ext <<_ACEOF
12459 /* confdefs.h.  */
12460 _ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h.  */
12464 #include <$ac_header>
12465 _ACEOF
12466 if { (ac_try="$ac_cpp conftest.$ac_ext"
12467 case "(($ac_try" in
12468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469   *) ac_try_echo=$ac_try;;
12470 esac
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12473   ac_status=$?
12474   grep -v '^ *+' conftest.er1 >conftest.err
12475   rm -f conftest.er1
12476   cat conftest.err >&5
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); } >/dev/null; then
12479   if test -s conftest.err; then
12480     ac_cpp_err=$ac_c_preproc_warn_flag
12481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12482   else
12483     ac_cpp_err=
12484   fi
12485 else
12486   ac_cpp_err=yes
12487 fi
12488 if test -z "$ac_cpp_err"; then
12489   ac_header_preproc=yes
12490 else
12491   echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12493
12494   ac_header_preproc=no
12495 fi
12496
12497 rm -f conftest.err conftest.$ac_ext
12498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12499 echo "${ECHO_T}$ac_header_preproc" >&6; }
12500
12501 # So?  What about this header?
12502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12503   yes:no: )
12504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12508     ac_header_preproc=yes
12509     ;;
12510   no:yes:* )
12511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12523     ( cat <<\_ASBOX
12524 ## ----------------------------------- ##
12525 ## Report this to llvmbugs@cs.uiuc.edu ##
12526 ## ----------------------------------- ##
12527 _ASBOX
12528      ) | sed "s/^/$as_me: WARNING:     /" >&2
12529     ;;
12530 esac
12531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12534   echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536   eval "$as_ac_Header=\$ac_header_preproc"
12537 fi
12538 ac_res=`eval echo '${'$as_ac_Header'}'`
12539                { echo "$as_me:$LINENO: result: $ac_res" >&5
12540 echo "${ECHO_T}$ac_res" >&6; }
12541
12542 fi
12543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12544   cat >>confdefs.h <<_ACEOF
12545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12546 _ACEOF
12547
12548 fi
12549
12550 done
12551
12552
12553
12554 for ac_header in string.h strings.h
12555 do
12556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12558   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12561   echo $ECHO_N "(cached) $ECHO_C" >&6
12562 fi
12563 ac_res=`eval echo '${'$as_ac_Header'}'`
12564                { echo "$as_me:$LINENO: result: $ac_res" >&5
12565 echo "${ECHO_T}$ac_res" >&6; }
12566 else
12567   # Is the header compilable?
12568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12570 cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h.  */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h.  */
12576 $ac_includes_default
12577 #include <$ac_header>
12578 _ACEOF
12579 rm -f conftest.$ac_objext
12580 if { (ac_try="$ac_compile"
12581 case "(($ac_try" in
12582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583   *) ac_try_echo=$ac_try;;
12584 esac
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586   (eval "$ac_compile") 2>conftest.er1
12587   ac_status=$?
12588   grep -v '^ *+' conftest.er1 >conftest.err
12589   rm -f conftest.er1
12590   cat conftest.err >&5
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); } &&
12593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12594   { (case "(($ac_try" in
12595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596   *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599   (eval "$ac_try") 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; } &&
12603          { ac_try='test -s conftest.$ac_objext'
12604   { (case "(($ac_try" in
12605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606   *) ac_try_echo=$ac_try;;
12607 esac
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609   (eval "$ac_try") 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; }; then
12613   ac_header_compiler=yes
12614 else
12615   echo "$as_me: failed program was:" >&5
12616 sed 's/^/| /' conftest.$ac_ext >&5
12617
12618         ac_header_compiler=no
12619 fi
12620
12621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12623 echo "${ECHO_T}$ac_header_compiler" >&6; }
12624
12625 # Is the header present?
12626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12628 cat >conftest.$ac_ext <<_ACEOF
12629 /* confdefs.h.  */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h.  */
12634 #include <$ac_header>
12635 _ACEOF
12636 if { (ac_try="$ac_cpp conftest.$ac_ext"
12637 case "(($ac_try" in
12638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639   *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } >/dev/null; then
12649   if test -s conftest.err; then
12650     ac_cpp_err=$ac_c_preproc_warn_flag
12651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12652   else
12653     ac_cpp_err=
12654   fi
12655 else
12656   ac_cpp_err=yes
12657 fi
12658 if test -z "$ac_cpp_err"; then
12659   ac_header_preproc=yes
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664   ac_header_preproc=no
12665 fi
12666
12667 rm -f conftest.err conftest.$ac_ext
12668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12669 echo "${ECHO_T}$ac_header_preproc" >&6; }
12670
12671 # So?  What about this header?
12672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12673   yes:no: )
12674     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12678     ac_header_preproc=yes
12679     ;;
12680   no:yes:* )
12681     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12683     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12684 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12685     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12687     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12688 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12691     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12693     ( cat <<\_ASBOX
12694 ## ----------------------------------- ##
12695 ## Report this to llvmbugs@cs.uiuc.edu ##
12696 ## ----------------------------------- ##
12697 _ASBOX
12698      ) | sed "s/^/$as_me: WARNING:     /" >&2
12699     ;;
12700 esac
12701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706   eval "$as_ac_Header=\$ac_header_preproc"
12707 fi
12708 ac_res=`eval echo '${'$as_ac_Header'}'`
12709                { echo "$as_me:$LINENO: result: $ac_res" >&5
12710 echo "${ECHO_T}$ac_res" >&6; }
12711
12712 fi
12713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12714   cat >>confdefs.h <<_ACEOF
12715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12716 _ACEOF
12717  break
12718 fi
12719
12720 done
12721
12722
12723
12724
12725 for ac_func in strchr index
12726 do
12727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12731   echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733   cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h.  */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h.  */
12739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12741 #define $ac_func innocuous_$ac_func
12742
12743 /* System header to define __stub macros and hopefully few prototypes,
12744     which can conflict with char $ac_func (); below.
12745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12746     <limits.h> exists even on freestanding compilers.  */
12747
12748 #ifdef __STDC__
12749 # include <limits.h>
12750 #else
12751 # include <assert.h>
12752 #endif
12753
12754 #undef $ac_func
12755
12756 /* Override any GCC internal prototype to avoid an error.
12757    Use char because int might match the return type of a GCC
12758    builtin and then its argument prototype would still apply.  */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char $ac_func ();
12763 /* The GNU C library defines this for functions which it implements
12764     to always fail with ENOSYS.  Some functions are actually named
12765     something starting with __ and the normal name is an alias.  */
12766 #if defined __stub_$ac_func || defined __stub___$ac_func
12767 choke me
12768 #endif
12769
12770 int
12771 main ()
12772 {
12773 return $ac_func ();
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_link") 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } &&
12792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793   { (case "(($ac_try" in
12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795   *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798   (eval "$ac_try") 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; } &&
12802          { ac_try='test -s conftest$ac_exeext'
12803   { (case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_try") 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; }; then
12812   eval "$as_ac_var=yes"
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817         eval "$as_ac_var=no"
12818 fi
12819
12820 rm -f core conftest.err conftest.$ac_objext \
12821       conftest$ac_exeext conftest.$ac_ext
12822 fi
12823 ac_res=`eval echo '${'$as_ac_var'}'`
12824                { echo "$as_me:$LINENO: result: $ac_res" >&5
12825 echo "${ECHO_T}$ac_res" >&6; }
12826 if test `eval echo '${'$as_ac_var'}'` = yes; then
12827   cat >>confdefs.h <<_ACEOF
12828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12829 _ACEOF
12830  break
12831 fi
12832 done
12833
12834
12835
12836 for ac_func in strrchr rindex
12837 do
12838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12842   echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844   cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h.  */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h.  */
12850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12852 #define $ac_func innocuous_$ac_func
12853
12854 /* System header to define __stub macros and hopefully few prototypes,
12855     which can conflict with char $ac_func (); below.
12856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12857     <limits.h> exists even on freestanding compilers.  */
12858
12859 #ifdef __STDC__
12860 # include <limits.h>
12861 #else
12862 # include <assert.h>
12863 #endif
12864
12865 #undef $ac_func
12866
12867 /* Override any GCC internal prototype to avoid an error.
12868    Use char because int might match the return type of a GCC
12869    builtin and then its argument prototype would still apply.  */
12870 #ifdef __cplusplus
12871 extern "C"
12872 #endif
12873 char $ac_func ();
12874 /* The GNU C library defines this for functions which it implements
12875     to always fail with ENOSYS.  Some functions are actually named
12876     something starting with __ and the normal name is an alias.  */
12877 #if defined __stub_$ac_func || defined __stub___$ac_func
12878 choke me
12879 #endif
12880
12881 int
12882 main ()
12883 {
12884 return $ac_func ();
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (ac_try="$ac_link"
12891 case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_link") 2>conftest.er1
12897   ac_status=$?
12898   grep -v '^ *+' conftest.er1 >conftest.err
12899   rm -f conftest.er1
12900   cat conftest.err >&5
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); } &&
12903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904   { (case "(($ac_try" in
12905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906   *) ac_try_echo=$ac_try;;
12907 esac
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909   (eval "$ac_try") 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; } &&
12913          { ac_try='test -s conftest$ac_exeext'
12914   { (case "(($ac_try" in
12915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916   *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919   (eval "$ac_try") 2>&5
12920   ac_status=$?
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); }; }; then
12923   eval "$as_ac_var=yes"
12924 else
12925   echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12927
12928         eval "$as_ac_var=no"
12929 fi
12930
12931 rm -f core conftest.err conftest.$ac_objext \
12932       conftest$ac_exeext conftest.$ac_ext
12933 fi
12934 ac_res=`eval echo '${'$as_ac_var'}'`
12935                { echo "$as_me:$LINENO: result: $ac_res" >&5
12936 echo "${ECHO_T}$ac_res" >&6; }
12937 if test `eval echo '${'$as_ac_var'}'` = yes; then
12938   cat >>confdefs.h <<_ACEOF
12939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12940 _ACEOF
12941  break
12942 fi
12943 done
12944
12945
12946
12947 for ac_func in memcpy bcopy
12948 do
12949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h.  */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h.  */
12961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12963 #define $ac_func innocuous_$ac_func
12964
12965 /* System header to define __stub macros and hopefully few prototypes,
12966     which can conflict with char $ac_func (); below.
12967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12968     <limits.h> exists even on freestanding compilers.  */
12969
12970 #ifdef __STDC__
12971 # include <limits.h>
12972 #else
12973 # include <assert.h>
12974 #endif
12975
12976 #undef $ac_func
12977
12978 /* Override any GCC internal prototype to avoid an error.
12979    Use char because int might match the return type of a GCC
12980    builtin and then its argument prototype would still apply.  */
12981 #ifdef __cplusplus
12982 extern "C"
12983 #endif
12984 char $ac_func ();
12985 /* The GNU C library defines this for functions which it implements
12986     to always fail with ENOSYS.  Some functions are actually named
12987     something starting with __ and the normal name is an alias.  */
12988 #if defined __stub_$ac_func || defined __stub___$ac_func
12989 choke me
12990 #endif
12991
12992 int
12993 main ()
12994 {
12995 return $ac_func ();
12996   ;
12997   return 0;
12998 }
12999 _ACEOF
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (ac_try="$ac_link"
13002 case "(($ac_try" in
13003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004   *) ac_try_echo=$ac_try;;
13005 esac
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007   (eval "$ac_link") 2>conftest.er1
13008   ac_status=$?
13009   grep -v '^ *+' conftest.er1 >conftest.err
13010   rm -f conftest.er1
13011   cat conftest.err >&5
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); } &&
13014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13015   { (case "(($ac_try" in
13016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017   *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020   (eval "$ac_try") 2>&5
13021   ac_status=$?
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); }; } &&
13024          { ac_try='test -s conftest$ac_exeext'
13025   { (case "(($ac_try" in
13026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027   *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030   (eval "$ac_try") 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); }; }; then
13034   eval "$as_ac_var=yes"
13035 else
13036   echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039         eval "$as_ac_var=no"
13040 fi
13041
13042 rm -f core conftest.err conftest.$ac_objext \
13043       conftest$ac_exeext conftest.$ac_ext
13044 fi
13045 ac_res=`eval echo '${'$as_ac_var'}'`
13046                { echo "$as_me:$LINENO: result: $ac_res" >&5
13047 echo "${ECHO_T}$ac_res" >&6; }
13048 if test `eval echo '${'$as_ac_var'}'` = yes; then
13049   cat >>confdefs.h <<_ACEOF
13050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13051 _ACEOF
13052  break
13053 fi
13054 done
13055
13056
13057
13058 for ac_func in memmove strcmp
13059 do
13060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13064   echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066   cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h.  */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h.  */
13072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13074 #define $ac_func innocuous_$ac_func
13075
13076 /* System header to define __stub macros and hopefully few prototypes,
13077     which can conflict with char $ac_func (); below.
13078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13079     <limits.h> exists even on freestanding compilers.  */
13080
13081 #ifdef __STDC__
13082 # include <limits.h>
13083 #else
13084 # include <assert.h>
13085 #endif
13086
13087 #undef $ac_func
13088
13089 /* Override any GCC internal prototype to avoid an error.
13090    Use char because int might match the return type of a GCC
13091    builtin and then its argument prototype would still apply.  */
13092 #ifdef __cplusplus
13093 extern "C"
13094 #endif
13095 char $ac_func ();
13096 /* The GNU C library defines this for functions which it implements
13097     to always fail with ENOSYS.  Some functions are actually named
13098     something starting with __ and the normal name is an alias.  */
13099 #if defined __stub_$ac_func || defined __stub___$ac_func
13100 choke me
13101 #endif
13102
13103 int
13104 main ()
13105 {
13106 return $ac_func ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (ac_try="$ac_link"
13113 case "(($ac_try" in
13114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115   *) ac_try_echo=$ac_try;;
13116 esac
13117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118   (eval "$ac_link") 2>conftest.er1
13119   ac_status=$?
13120   grep -v '^ *+' conftest.er1 >conftest.err
13121   rm -f conftest.er1
13122   cat conftest.err >&5
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); } &&
13125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13126   { (case "(($ac_try" in
13127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128   *) ac_try_echo=$ac_try;;
13129 esac
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131   (eval "$ac_try") 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }; } &&
13135          { ac_try='test -s conftest$ac_exeext'
13136   { (case "(($ac_try" in
13137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138   *) ac_try_echo=$ac_try;;
13139 esac
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141   (eval "$ac_try") 2>&5
13142   ac_status=$?
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); }; }; then
13145   eval "$as_ac_var=yes"
13146 else
13147   echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13149
13150         eval "$as_ac_var=no"
13151 fi
13152
13153 rm -f core conftest.err conftest.$ac_objext \
13154       conftest$ac_exeext conftest.$ac_ext
13155 fi
13156 ac_res=`eval echo '${'$as_ac_var'}'`
13157                { echo "$as_me:$LINENO: result: $ac_res" >&5
13158 echo "${ECHO_T}$ac_res" >&6; }
13159 if test `eval echo '${'$as_ac_var'}'` = yes; then
13160   cat >>confdefs.h <<_ACEOF
13161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13162 _ACEOF
13163
13164 fi
13165 done
13166
13167
13168
13169
13170 for ac_func in closedir opendir readdir
13171 do
13172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13176   echo $ECHO_N "(cached) $ECHO_C" >&6
13177 else
13178   cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h.  */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h.  */
13184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13186 #define $ac_func innocuous_$ac_func
13187
13188 /* System header to define __stub macros and hopefully few prototypes,
13189     which can conflict with char $ac_func (); below.
13190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13191     <limits.h> exists even on freestanding compilers.  */
13192
13193 #ifdef __STDC__
13194 # include <limits.h>
13195 #else
13196 # include <assert.h>
13197 #endif
13198
13199 #undef $ac_func
13200
13201 /* Override any GCC internal prototype to avoid an error.
13202    Use char because int might match the return type of a GCC
13203    builtin and then its argument prototype would still apply.  */
13204 #ifdef __cplusplus
13205 extern "C"
13206 #endif
13207 char $ac_func ();
13208 /* The GNU C library defines this for functions which it implements
13209     to always fail with ENOSYS.  Some functions are actually named
13210     something starting with __ and the normal name is an alias.  */
13211 #if defined __stub_$ac_func || defined __stub___$ac_func
13212 choke me
13213 #endif
13214
13215 int
13216 main ()
13217 {
13218 return $ac_func ();
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227   *) ac_try_echo=$ac_try;;
13228 esac
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230   (eval "$ac_link") 2>conftest.er1
13231   ac_status=$?
13232   grep -v '^ *+' conftest.er1 >conftest.err
13233   rm -f conftest.er1
13234   cat conftest.err >&5
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); } &&
13237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238   { (case "(($ac_try" in
13239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240   *) ac_try_echo=$ac_try;;
13241 esac
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243   (eval "$ac_try") 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); }; } &&
13247          { ac_try='test -s conftest$ac_exeext'
13248   { (case "(($ac_try" in
13249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250   *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253   (eval "$ac_try") 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   eval "$as_ac_var=yes"
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262         eval "$as_ac_var=no"
13263 fi
13264
13265 rm -f core conftest.err conftest.$ac_objext \
13266       conftest$ac_exeext conftest.$ac_ext
13267 fi
13268 ac_res=`eval echo '${'$as_ac_var'}'`
13269                { echo "$as_me:$LINENO: result: $ac_res" >&5
13270 echo "${ECHO_T}$ac_res" >&6; }
13271 if test `eval echo '${'$as_ac_var'}'` = yes; then
13272   cat >>confdefs.h <<_ACEOF
13273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13274 _ACEOF
13275
13276 fi
13277 done
13278
13279
13280
13281 if test "$WITH_LLVMGCCDIR" = "default" ; then
13282   LLVMGCC="llvm-gcc${EXEEXT}"
13283   LLVMGXX="llvm-g++${EXEEXT}"
13284   LLVMGCCCOMMAND="$LLVMGCC"
13285   LLVMGXXCOMMAND="$LLVMGXX"
13286   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13287
13288   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13289
13290   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13291 set dummy $LLVMGCC; ac_word=$2
13292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13294 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13295   echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297   case $LLVMGCC in
13298   [\\/]* | ?:[\\/]*)
13299   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13300   ;;
13301   *)
13302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13304 do
13305   IFS=$as_save_IFS
13306   test -z "$as_dir" && as_dir=.
13307   for ac_exec_ext in '' $ac_executable_extensions; do
13308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13309     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13311     break 2
13312   fi
13313 done
13314 done
13315 IFS=$as_save_IFS
13316
13317   ;;
13318 esac
13319 fi
13320 LLVMGCC=$ac_cv_path_LLVMGCC
13321 if test -n "$LLVMGCC"; then
13322   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13323 echo "${ECHO_T}$LLVMGCC" >&6; }
13324 else
13325   { echo "$as_me:$LINENO: result: no" >&5
13326 echo "${ECHO_T}no" >&6; }
13327 fi
13328
13329
13330   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13331 set dummy $LLVMGXX; ac_word=$2
13332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13334 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13335   echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337   case $LLVMGXX in
13338   [\\/]* | ?:[\\/]*)
13339   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13340   ;;
13341   *)
13342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13344 do
13345   IFS=$as_save_IFS
13346   test -z "$as_dir" && as_dir=.
13347   for ac_exec_ext in '' $ac_executable_extensions; do
13348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13349     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13351     break 2
13352   fi
13353 done
13354 done
13355 IFS=$as_save_IFS
13356
13357   ;;
13358 esac
13359 fi
13360 LLVMGXX=$ac_cv_path_LLVMGXX
13361 if test -n "$LLVMGXX"; then
13362   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13363 echo "${ECHO_T}$LLVMGXX" >&6; }
13364 else
13365   { echo "$as_me:$LINENO: result: no" >&5
13366 echo "${ECHO_T}no" >&6; }
13367 fi
13368
13369
13370 else
13371   if test -z "$LLVMGCC"; then
13372     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13373     LLVMGCCCOMMAND="$LLVMGCC"
13374   fi
13375   if test -z "$LLVMGXX"; then
13376     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13377     LLVMGXXCOMMAND="$LLVMGXX"
13378   fi
13379
13380   LLVMGCC=$LLVMGCC
13381
13382   LLVMGXX=$LLVMGXX
13383
13384   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13385
13386   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13387
13388 fi
13389
13390
13391 # Check whether --with-llvmcc was given.
13392 if test "${with_llvmcc+set}" = set; then
13393   withval=$with_llvmcc;
13394 else
13395   with_llvmcc=check
13396 fi
13397
13398 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13399 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13400 if test "$with_llvmcc" != "check"; then
13401    if (test "$with_llvmcc" != "llvm-gcc" &&
13402        test "$with_llvmcc" != "clang" &&
13403        test "$with_llvmcc" != "none"); then
13404       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13405 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13406    { (exit 1); exit 1; }; }
13407    fi
13408    WITH_LLVMCC="$with_llvmcc"
13409 elif test -n "$LLVMGCC"; then
13410    WITH_LLVMCC=llvm-gcc
13411 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13412    WITH_LLVMCC=clang
13413 else
13414    WITH_LLVMCC=none
13415 fi
13416 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13417 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13418 LLVMCC_OPTION=$WITH_LLVMCC
13419
13420
13421 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13422 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13423
13424 ICC=no
13425 IXX=no
13426 case $CC in
13427   icc*|icpc*)
13428     ICC=yes
13429     IXX=yes
13430     ;;
13431    *)
13432     ;;
13433 esac
13434
13435 if test "$GCC" != "yes" && test "$ICC" != "yes"
13436 then
13437   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13438 echo "$as_me: error: gcc|icc required but not found" >&2;}
13439    { (exit 1); exit 1; }; }
13440 fi
13441
13442 if test "$GXX" != "yes" && test "$IXX" != "yes"
13443 then
13444   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13445 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13446    { (exit 1); exit 1; }; }
13447 fi
13448
13449 if test "$GCC" = "yes"
13450 then
13451   cat >conftest.$ac_ext <<_ACEOF
13452 #if !defined(__GNUC__) || __GNUC__ < 3
13453 #error Unsupported GCC version
13454 #endif
13455
13456 _ACEOF
13457 rm -f conftest.$ac_objext
13458 if { (ac_try="$ac_compile"
13459 case "(($ac_try" in
13460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461   *) ac_try_echo=$ac_try;;
13462 esac
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464   (eval "$ac_compile") 2>conftest.er1
13465   ac_status=$?
13466   grep -v '^ *+' conftest.er1 >conftest.err
13467   rm -f conftest.er1
13468   cat conftest.err >&5
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } &&
13471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472   { (case "(($ac_try" in
13473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474   *) ac_try_echo=$ac_try;;
13475 esac
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477   (eval "$ac_try") 2>&5
13478   ac_status=$?
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); }; } &&
13481          { ac_try='test -s conftest.$ac_objext'
13482   { (case "(($ac_try" in
13483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484   *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487   (eval "$ac_try") 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; }; then
13491   :
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13497 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13498    { (exit 1); exit 1; }; }
13499 fi
13500
13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502 fi
13503
13504 if test -z "$llvm_cv_gnu_make_command"
13505 then
13506   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13507 echo "$as_me: error: GNU Make required but not found" >&2;}
13508    { (exit 1); exit 1; }; }
13509 fi
13510
13511 { echo "$as_me:$LINENO: result: ok" >&5
13512 echo "${ECHO_T}ok" >&6; }
13513
13514 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13515 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13516 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13517
13518 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13519
13520 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13521 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13522
13523
13524
13525 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13526 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13527 if test "${ac_cv_lib_m_sin+set}" = set; then
13528   echo $ECHO_N "(cached) $ECHO_C" >&6
13529 else
13530   ac_check_lib_save_LIBS=$LIBS
13531 LIBS="-lm  $LIBS"
13532 cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h.  */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h.  */
13538
13539 /* Override any GCC internal prototype to avoid an error.
13540    Use char because int might match the return type of a GCC
13541    builtin and then its argument prototype would still apply.  */
13542 #ifdef __cplusplus
13543 extern "C"
13544 #endif
13545 char sin ();
13546 int
13547 main ()
13548 {
13549 return sin ();
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 rm -f conftest.$ac_objext conftest$ac_exeext
13555 if { (ac_try="$ac_link"
13556 case "(($ac_try" in
13557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558   *) ac_try_echo=$ac_try;;
13559 esac
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561   (eval "$ac_link") 2>conftest.er1
13562   ac_status=$?
13563   grep -v '^ *+' conftest.er1 >conftest.err
13564   rm -f conftest.er1
13565   cat conftest.err >&5
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); } &&
13568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13569   { (case "(($ac_try" in
13570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571   *) ac_try_echo=$ac_try;;
13572 esac
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574   (eval "$ac_try") 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; } &&
13578          { ac_try='test -s conftest$ac_exeext'
13579   { (case "(($ac_try" in
13580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581   *) ac_try_echo=$ac_try;;
13582 esac
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584   (eval "$ac_try") 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; }; then
13588   ac_cv_lib_m_sin=yes
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593         ac_cv_lib_m_sin=no
13594 fi
13595
13596 rm -f core conftest.err conftest.$ac_objext \
13597       conftest$ac_exeext conftest.$ac_ext
13598 LIBS=$ac_check_lib_save_LIBS
13599 fi
13600 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13601 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13602 if test $ac_cv_lib_m_sin = yes; then
13603   cat >>confdefs.h <<_ACEOF
13604 #define HAVE_LIBM 1
13605 _ACEOF
13606
13607   LIBS="-lm $LIBS"
13608
13609 fi
13610
13611 if test "$llvm_cv_os_type" = "MingW" ; then
13612
13613 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13614 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13615 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13616   echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618   ac_check_lib_save_LIBS=$LIBS
13619 LIBS="-limagehlp  $LIBS"
13620 cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h.  */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h.  */
13626
13627
13628 int
13629 main ()
13630 {
13631 return main ();
13632   ;
13633   return 0;
13634 }
13635 _ACEOF
13636 rm -f conftest.$ac_objext conftest$ac_exeext
13637 if { (ac_try="$ac_link"
13638 case "(($ac_try" in
13639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640   *) ac_try_echo=$ac_try;;
13641 esac
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643   (eval "$ac_link") 2>conftest.er1
13644   ac_status=$?
13645   grep -v '^ *+' conftest.er1 >conftest.err
13646   rm -f conftest.er1
13647   cat conftest.err >&5
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); } &&
13650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13651   { (case "(($ac_try" in
13652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653   *) ac_try_echo=$ac_try;;
13654 esac
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656   (eval "$ac_try") 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); }; } &&
13660          { ac_try='test -s conftest$ac_exeext'
13661   { (case "(($ac_try" in
13662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663   *) ac_try_echo=$ac_try;;
13664 esac
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666   (eval "$ac_try") 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; }; then
13670   ac_cv_lib_imagehlp_main=yes
13671 else
13672   echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675         ac_cv_lib_imagehlp_main=no
13676 fi
13677
13678 rm -f core conftest.err conftest.$ac_objext \
13679       conftest$ac_exeext conftest.$ac_ext
13680 LIBS=$ac_check_lib_save_LIBS
13681 fi
13682 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13683 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13684 if test $ac_cv_lib_imagehlp_main = yes; then
13685   cat >>confdefs.h <<_ACEOF
13686 #define HAVE_LIBIMAGEHLP 1
13687 _ACEOF
13688
13689   LIBS="-limagehlp $LIBS"
13690
13691 fi
13692
13693
13694 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13695 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13696 if test "${ac_cv_lib_psapi_main+set}" = set; then
13697   echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699   ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-lpsapi  $LIBS"
13701 cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h.  */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h.  */
13707
13708
13709 int
13710 main ()
13711 {
13712 return main ();
13713   ;
13714   return 0;
13715 }
13716 _ACEOF
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (ac_try="$ac_link"
13719 case "(($ac_try" in
13720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721   *) ac_try_echo=$ac_try;;
13722 esac
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724   (eval "$ac_link") 2>conftest.er1
13725   ac_status=$?
13726   grep -v '^ *+' conftest.er1 >conftest.err
13727   rm -f conftest.er1
13728   cat conftest.err >&5
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); } &&
13731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13732   { (case "(($ac_try" in
13733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734   *) ac_try_echo=$ac_try;;
13735 esac
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737   (eval "$ac_try") 2>&5
13738   ac_status=$?
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); }; } &&
13741          { ac_try='test -s conftest$ac_exeext'
13742   { (case "(($ac_try" in
13743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744   *) ac_try_echo=$ac_try;;
13745 esac
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747   (eval "$ac_try") 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); }; }; then
13751   ac_cv_lib_psapi_main=yes
13752 else
13753   echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13755
13756         ac_cv_lib_psapi_main=no
13757 fi
13758
13759 rm -f core conftest.err conftest.$ac_objext \
13760       conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13762 fi
13763 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13764 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13765 if test $ac_cv_lib_psapi_main = yes; then
13766   cat >>confdefs.h <<_ACEOF
13767 #define HAVE_LIBPSAPI 1
13768 _ACEOF
13769
13770   LIBS="-lpsapi $LIBS"
13771
13772 fi
13773
13774 fi
13775
13776 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13777 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13778 if test "${ac_cv_search_dlopen+set}" = set; then
13779   echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781   ac_func_search_save_LIBS=$LIBS
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788
13789 /* Override any GCC internal prototype to avoid an error.
13790    Use char because int might match the return type of a GCC
13791    builtin and then its argument prototype would still apply.  */
13792 #ifdef __cplusplus
13793 extern "C"
13794 #endif
13795 char dlopen ();
13796 int
13797 main ()
13798 {
13799 return dlopen ();
13800   ;
13801   return 0;
13802 }
13803 _ACEOF
13804 for ac_lib in '' dl; do
13805   if test -z "$ac_lib"; then
13806     ac_res="none required"
13807   else
13808     ac_res=-l$ac_lib
13809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13810   fi
13811   rm -f conftest.$ac_objext conftest$ac_exeext
13812 if { (ac_try="$ac_link"
13813 case "(($ac_try" in
13814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815   *) ac_try_echo=$ac_try;;
13816 esac
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818   (eval "$ac_link") 2>conftest.er1
13819   ac_status=$?
13820   grep -v '^ *+' conftest.er1 >conftest.err
13821   rm -f conftest.er1
13822   cat conftest.err >&5
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); } &&
13825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13826   { (case "(($ac_try" in
13827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828   *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831   (eval "$ac_try") 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; } &&
13835          { ac_try='test -s conftest$ac_exeext'
13836   { (case "(($ac_try" in
13837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838   *) ac_try_echo=$ac_try;;
13839 esac
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841   (eval "$ac_try") 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; }; then
13845   ac_cv_search_dlopen=$ac_res
13846 else
13847   echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850
13851 fi
13852
13853 rm -f core conftest.err conftest.$ac_objext \
13854       conftest$ac_exeext
13855   if test "${ac_cv_search_dlopen+set}" = set; then
13856   break
13857 fi
13858 done
13859 if test "${ac_cv_search_dlopen+set}" = set; then
13860   :
13861 else
13862   ac_cv_search_dlopen=no
13863 fi
13864 rm conftest.$ac_ext
13865 LIBS=$ac_func_search_save_LIBS
13866 fi
13867 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13868 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13869 ac_res=$ac_cv_search_dlopen
13870 if test "$ac_res" != no; then
13871   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13872
13873 cat >>confdefs.h <<\_ACEOF
13874 #define HAVE_DLOPEN 1
13875 _ACEOF
13876
13877 else
13878   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13879 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13880 fi
13881
13882
13883 if test "$llvm_cv_enable_libffi" = "yes" ; then
13884   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13885 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13886 if test "${ac_cv_search_ffi_call+set}" = set; then
13887   echo $ECHO_N "(cached) $ECHO_C" >&6
13888 else
13889   ac_func_search_save_LIBS=$LIBS
13890 cat >conftest.$ac_ext <<_ACEOF
13891 /* confdefs.h.  */
13892 _ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h.  */
13896
13897 /* Override any GCC internal prototype to avoid an error.
13898    Use char because int might match the return type of a GCC
13899    builtin and then its argument prototype would still apply.  */
13900 #ifdef __cplusplus
13901 extern "C"
13902 #endif
13903 char ffi_call ();
13904 int
13905 main ()
13906 {
13907 return ffi_call ();
13908   ;
13909   return 0;
13910 }
13911 _ACEOF
13912 for ac_lib in '' ffi; do
13913   if test -z "$ac_lib"; then
13914     ac_res="none required"
13915   else
13916     ac_res=-l$ac_lib
13917     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13918   fi
13919   rm -f conftest.$ac_objext conftest$ac_exeext
13920 if { (ac_try="$ac_link"
13921 case "(($ac_try" in
13922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923   *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926   (eval "$ac_link") 2>conftest.er1
13927   ac_status=$?
13928   grep -v '^ *+' conftest.er1 >conftest.err
13929   rm -f conftest.er1
13930   cat conftest.err >&5
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } &&
13933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13934   { (case "(($ac_try" in
13935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936   *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939   (eval "$ac_try") 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; } &&
13943          { ac_try='test -s conftest$ac_exeext'
13944   { (case "(($ac_try" in
13945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946   *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949   (eval "$ac_try") 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; }; then
13953   ac_cv_search_ffi_call=$ac_res
13954 else
13955   echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958
13959 fi
13960
13961 rm -f core conftest.err conftest.$ac_objext \
13962       conftest$ac_exeext
13963   if test "${ac_cv_search_ffi_call+set}" = set; then
13964   break
13965 fi
13966 done
13967 if test "${ac_cv_search_ffi_call+set}" = set; then
13968   :
13969 else
13970   ac_cv_search_ffi_call=no
13971 fi
13972 rm conftest.$ac_ext
13973 LIBS=$ac_func_search_save_LIBS
13974 fi
13975 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13976 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13977 ac_res=$ac_cv_search_ffi_call
13978 if test "$ac_res" != no; then
13979   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13980
13981 cat >>confdefs.h <<\_ACEOF
13982 #define HAVE_FFI_CALL 1
13983 _ACEOF
13984
13985 else
13986   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13987 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13988    { (exit 1); exit 1; }; }
13989 fi
13990
13991 fi
13992
13993 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13994 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13995 if test "${ac_cv_search_mallinfo+set}" = set; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   ac_func_search_save_LIBS=$LIBS
13999 cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h.  */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h.  */
14005
14006 /* Override any GCC internal prototype to avoid an error.
14007    Use char because int might match the return type of a GCC
14008    builtin and then its argument prototype would still apply.  */
14009 #ifdef __cplusplus
14010 extern "C"
14011 #endif
14012 char mallinfo ();
14013 int
14014 main ()
14015 {
14016 return mallinfo ();
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 for ac_lib in '' malloc; do
14022   if test -z "$ac_lib"; then
14023     ac_res="none required"
14024   else
14025     ac_res=-l$ac_lib
14026     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14027   fi
14028   rm -f conftest.$ac_objext conftest$ac_exeext
14029 if { (ac_try="$ac_link"
14030 case "(($ac_try" in
14031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032   *) ac_try_echo=$ac_try;;
14033 esac
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035   (eval "$ac_link") 2>conftest.er1
14036   ac_status=$?
14037   grep -v '^ *+' conftest.er1 >conftest.err
14038   rm -f conftest.er1
14039   cat conftest.err >&5
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); } &&
14042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14043   { (case "(($ac_try" in
14044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045   *) ac_try_echo=$ac_try;;
14046 esac
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048   (eval "$ac_try") 2>&5
14049   ac_status=$?
14050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); }; } &&
14052          { ac_try='test -s conftest$ac_exeext'
14053   { (case "(($ac_try" in
14054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055   *) ac_try_echo=$ac_try;;
14056 esac
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058   (eval "$ac_try") 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); }; }; then
14062   ac_cv_search_mallinfo=$ac_res
14063 else
14064   echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067
14068 fi
14069
14070 rm -f core conftest.err conftest.$ac_objext \
14071       conftest$ac_exeext
14072   if test "${ac_cv_search_mallinfo+set}" = set; then
14073   break
14074 fi
14075 done
14076 if test "${ac_cv_search_mallinfo+set}" = set; then
14077   :
14078 else
14079   ac_cv_search_mallinfo=no
14080 fi
14081 rm conftest.$ac_ext
14082 LIBS=$ac_func_search_save_LIBS
14083 fi
14084 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14085 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14086 ac_res=$ac_cv_search_mallinfo
14087 if test "$ac_res" != no; then
14088   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14089
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_MALLINFO 1
14092 _ACEOF
14093
14094 fi
14095
14096
14097 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14098
14099 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14100 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14101 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   ac_check_lib_save_LIBS=$LIBS
14105 LIBS="-lpthread  $LIBS"
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h.  */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h.  */
14112
14113 /* Override any GCC internal prototype to avoid an error.
14114    Use char because int might match the return type of a GCC
14115    builtin and then its argument prototype would still apply.  */
14116 #ifdef __cplusplus
14117 extern "C"
14118 #endif
14119 char pthread_mutex_init ();
14120 int
14121 main ()
14122 {
14123 return pthread_mutex_init ();
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (ac_try="$ac_link"
14130 case "(($ac_try" in
14131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132   *) ac_try_echo=$ac_try;;
14133 esac
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135   (eval "$ac_link") 2>conftest.er1
14136   ac_status=$?
14137   grep -v '^ *+' conftest.er1 >conftest.err
14138   rm -f conftest.er1
14139   cat conftest.err >&5
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } &&
14142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143   { (case "(($ac_try" in
14144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145   *) ac_try_echo=$ac_try;;
14146 esac
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148   (eval "$ac_try") 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; } &&
14152          { ac_try='test -s conftest$ac_exeext'
14153   { (case "(($ac_try" in
14154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155   *) ac_try_echo=$ac_try;;
14156 esac
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158   (eval "$ac_try") 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; }; then
14162   ac_cv_lib_pthread_pthread_mutex_init=yes
14163 else
14164   echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167         ac_cv_lib_pthread_pthread_mutex_init=no
14168 fi
14169
14170 rm -f core conftest.err conftest.$ac_objext \
14171       conftest$ac_exeext conftest.$ac_ext
14172 LIBS=$ac_check_lib_save_LIBS
14173 fi
14174 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14175 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14176 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14177   cat >>confdefs.h <<_ACEOF
14178 #define HAVE_LIBPTHREAD 1
14179 _ACEOF
14180
14181   LIBS="-lpthread $LIBS"
14182
14183 fi
14184
14185   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14186 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14187 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14188   echo $ECHO_N "(cached) $ECHO_C" >&6
14189 else
14190   ac_func_search_save_LIBS=$LIBS
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197
14198 /* Override any GCC internal prototype to avoid an error.
14199    Use char because int might match the return type of a GCC
14200    builtin and then its argument prototype would still apply.  */
14201 #ifdef __cplusplus
14202 extern "C"
14203 #endif
14204 char pthread_mutex_lock ();
14205 int
14206 main ()
14207 {
14208 return pthread_mutex_lock ();
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 for ac_lib in '' pthread; do
14214   if test -z "$ac_lib"; then
14215     ac_res="none required"
14216   else
14217     ac_res=-l$ac_lib
14218     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14219   fi
14220   rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (ac_try="$ac_link"
14222 case "(($ac_try" in
14223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224   *) ac_try_echo=$ac_try;;
14225 esac
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227   (eval "$ac_link") 2>conftest.er1
14228   ac_status=$?
14229   grep -v '^ *+' conftest.er1 >conftest.err
14230   rm -f conftest.er1
14231   cat conftest.err >&5
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); } &&
14234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14235   { (case "(($ac_try" in
14236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237   *) ac_try_echo=$ac_try;;
14238 esac
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240   (eval "$ac_try") 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; } &&
14244          { ac_try='test -s conftest$ac_exeext'
14245   { (case "(($ac_try" in
14246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247   *) ac_try_echo=$ac_try;;
14248 esac
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250   (eval "$ac_try") 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); }; }; then
14254   ac_cv_search_pthread_mutex_lock=$ac_res
14255 else
14256   echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14258
14259
14260 fi
14261
14262 rm -f core conftest.err conftest.$ac_objext \
14263       conftest$ac_exeext
14264   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14265   break
14266 fi
14267 done
14268 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14269   :
14270 else
14271   ac_cv_search_pthread_mutex_lock=no
14272 fi
14273 rm conftest.$ac_ext
14274 LIBS=$ac_func_search_save_LIBS
14275 fi
14276 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14277 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14278 ac_res=$ac_cv_search_pthread_mutex_lock
14279 if test "$ac_res" != no; then
14280   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14281
14282 cat >>confdefs.h <<\_ACEOF
14283 #define HAVE_PTHREAD_MUTEX_LOCK 1
14284 _ACEOF
14285
14286 fi
14287
14288   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14289 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14290 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14291   echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293   ac_func_search_save_LIBS=$LIBS
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300
14301 /* Override any GCC internal prototype to avoid an error.
14302    Use char because int might match the return type of a GCC
14303    builtin and then its argument prototype would still apply.  */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char pthread_rwlock_init ();
14308 int
14309 main ()
14310 {
14311 return pthread_rwlock_init ();
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 for ac_lib in '' pthread; do
14317   if test -z "$ac_lib"; then
14318     ac_res="none required"
14319   else
14320     ac_res=-l$ac_lib
14321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14322   fi
14323   rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327   *) ac_try_echo=$ac_try;;
14328 esac
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330   (eval "$ac_link") 2>conftest.er1
14331   ac_status=$?
14332   grep -v '^ *+' conftest.er1 >conftest.err
14333   rm -f conftest.er1
14334   cat conftest.err >&5
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } &&
14337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14338   { (case "(($ac_try" in
14339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340   *) ac_try_echo=$ac_try;;
14341 esac
14342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343   (eval "$ac_try") 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); }; } &&
14347          { ac_try='test -s conftest$ac_exeext'
14348   { (case "(($ac_try" in
14349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350   *) ac_try_echo=$ac_try;;
14351 esac
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353   (eval "$ac_try") 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); }; }; then
14357   ac_cv_search_pthread_rwlock_init=$ac_res
14358 else
14359   echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362
14363 fi
14364
14365 rm -f core conftest.err conftest.$ac_objext \
14366       conftest$ac_exeext
14367   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14368   break
14369 fi
14370 done
14371 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14372   :
14373 else
14374   ac_cv_search_pthread_rwlock_init=no
14375 fi
14376 rm conftest.$ac_ext
14377 LIBS=$ac_func_search_save_LIBS
14378 fi
14379 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14380 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14381 ac_res=$ac_cv_search_pthread_rwlock_init
14382 if test "$ac_res" != no; then
14383   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14384
14385 cat >>confdefs.h <<\_ACEOF
14386 #define HAVE_PTHREAD_RWLOCK_INIT 1
14387 _ACEOF
14388
14389 fi
14390
14391   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14392 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14393 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14394   echo $ECHO_N "(cached) $ECHO_C" >&6
14395 else
14396   ac_func_search_save_LIBS=$LIBS
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h.  */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h.  */
14403
14404 /* Override any GCC internal prototype to avoid an error.
14405    Use char because int might match the return type of a GCC
14406    builtin and then its argument prototype would still apply.  */
14407 #ifdef __cplusplus
14408 extern "C"
14409 #endif
14410 char pthread_getspecific ();
14411 int
14412 main ()
14413 {
14414 return pthread_getspecific ();
14415   ;
14416   return 0;
14417 }
14418 _ACEOF
14419 for ac_lib in '' pthread; do
14420   if test -z "$ac_lib"; then
14421     ac_res="none required"
14422   else
14423     ac_res=-l$ac_lib
14424     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14425   fi
14426   rm -f conftest.$ac_objext conftest$ac_exeext
14427 if { (ac_try="$ac_link"
14428 case "(($ac_try" in
14429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430   *) ac_try_echo=$ac_try;;
14431 esac
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433   (eval "$ac_link") 2>conftest.er1
14434   ac_status=$?
14435   grep -v '^ *+' conftest.er1 >conftest.err
14436   rm -f conftest.er1
14437   cat conftest.err >&5
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } &&
14440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14441   { (case "(($ac_try" in
14442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443   *) ac_try_echo=$ac_try;;
14444 esac
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446   (eval "$ac_try") 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); }; } &&
14450          { ac_try='test -s conftest$ac_exeext'
14451   { (case "(($ac_try" in
14452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453   *) ac_try_echo=$ac_try;;
14454 esac
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456   (eval "$ac_try") 2>&5
14457   ac_status=$?
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); }; }; then
14460   ac_cv_search_pthread_getspecific=$ac_res
14461 else
14462   echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465
14466 fi
14467
14468 rm -f core conftest.err conftest.$ac_objext \
14469       conftest$ac_exeext
14470   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14471   break
14472 fi
14473 done
14474 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14475   :
14476 else
14477   ac_cv_search_pthread_getspecific=no
14478 fi
14479 rm conftest.$ac_ext
14480 LIBS=$ac_func_search_save_LIBS
14481 fi
14482 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14483 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14484 ac_res=$ac_cv_search_pthread_getspecific
14485 if test "$ac_res" != no; then
14486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14487
14488 cat >>confdefs.h <<\_ACEOF
14489 #define HAVE_PTHREAD_GETSPECIFIC 1
14490 _ACEOF
14491
14492 fi
14493
14494 fi
14495
14496
14497 # Check whether --with-udis86 was given.
14498 if test "${with_udis86+set}" = set; then
14499   withval=$with_udis86;
14500       USE_UDIS86=1
14501
14502       case "$withval" in
14503         /usr/lib|yes) ;;
14504         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14505       esac
14506
14507 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14508 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14509 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14510   echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512   ac_check_lib_save_LIBS=$LIBS
14513 LIBS="-ludis86  $LIBS"
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h.  */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h.  */
14520
14521 /* Override any GCC internal prototype to avoid an error.
14522    Use char because int might match the return type of a GCC
14523    builtin and then its argument prototype would still apply.  */
14524 #ifdef __cplusplus
14525 extern "C"
14526 #endif
14527 char ud_init ();
14528 int
14529 main ()
14530 {
14531 return ud_init ();
14532   ;
14533   return 0;
14534 }
14535 _ACEOF
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540   *) ac_try_echo=$ac_try;;
14541 esac
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543   (eval "$ac_link") 2>conftest.er1
14544   ac_status=$?
14545   grep -v '^ *+' conftest.er1 >conftest.err
14546   rm -f conftest.er1
14547   cat conftest.err >&5
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); } &&
14550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551   { (case "(($ac_try" in
14552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553   *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556   (eval "$ac_try") 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; } &&
14560          { ac_try='test -s conftest$ac_exeext'
14561   { (case "(($ac_try" in
14562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563   *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566   (eval "$ac_try") 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; }; then
14570   ac_cv_lib_udis86_ud_init=yes
14571 else
14572   echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14574
14575         ac_cv_lib_udis86_ud_init=no
14576 fi
14577
14578 rm -f core conftest.err conftest.$ac_objext \
14579       conftest$ac_exeext conftest.$ac_ext
14580 LIBS=$ac_check_lib_save_LIBS
14581 fi
14582 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14583 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14584 if test $ac_cv_lib_udis86_ud_init = yes; then
14585   cat >>confdefs.h <<_ACEOF
14586 #define HAVE_LIBUDIS86 1
14587 _ACEOF
14588
14589   LIBS="-ludis86 $LIBS"
14590
14591 else
14592
14593         echo "Error! You need to have libudis86 around."
14594         exit -1
14595
14596 fi
14597
14598
14599 else
14600   USE_UDIS86=0
14601
14602 fi
14603
14604
14605 cat >>confdefs.h <<_ACEOF
14606 #define USE_UDIS86 $USE_UDIS86
14607 _ACEOF
14608
14609
14610
14611 # Check whether --with-oprofile was given.
14612 if test "${with_oprofile+set}" = set; then
14613   withval=$with_oprofile;
14614       USE_OPROFILE=1
14615
14616       case "$withval" in
14617         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14618         no) llvm_cv_oppath=
14619             USE_OPROFILE=0
14620  ;;
14621         *) llvm_cv_oppath="${withval}/lib/oprofile"
14622            CPPFLAGS="-I${withval}/include";;
14623       esac
14624       if test -n "$llvm_cv_oppath" ; then
14625         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14626                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14627 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14628 if test "${ac_cv_search_bfd_init+set}" = set; then
14629   echo $ECHO_N "(cached) $ECHO_C" >&6
14630 else
14631   ac_func_search_save_LIBS=$LIBS
14632 cat >conftest.$ac_ext <<_ACEOF
14633 /* confdefs.h.  */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h.  */
14638
14639 /* Override any GCC internal prototype to avoid an error.
14640    Use char because int might match the return type of a GCC
14641    builtin and then its argument prototype would still apply.  */
14642 #ifdef __cplusplus
14643 extern "C"
14644 #endif
14645 char bfd_init ();
14646 int
14647 main ()
14648 {
14649 return bfd_init ();
14650   ;
14651   return 0;
14652 }
14653 _ACEOF
14654 for ac_lib in '' bfd; do
14655   if test -z "$ac_lib"; then
14656     ac_res="none required"
14657   else
14658     ac_res=-l$ac_lib
14659     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14660   fi
14661   rm -f conftest.$ac_objext conftest$ac_exeext
14662 if { (ac_try="$ac_link"
14663 case "(($ac_try" in
14664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665   *) ac_try_echo=$ac_try;;
14666 esac
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668   (eval "$ac_link") 2>conftest.er1
14669   ac_status=$?
14670   grep -v '^ *+' conftest.er1 >conftest.err
14671   rm -f conftest.er1
14672   cat conftest.err >&5
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); } &&
14675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14676   { (case "(($ac_try" in
14677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678   *) ac_try_echo=$ac_try;;
14679 esac
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681   (eval "$ac_try") 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; } &&
14685          { ac_try='test -s conftest$ac_exeext'
14686   { (case "(($ac_try" in
14687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688   *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691   (eval "$ac_try") 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); }; }; then
14695   ac_cv_search_bfd_init=$ac_res
14696 else
14697   echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14699
14700
14701 fi
14702
14703 rm -f core conftest.err conftest.$ac_objext \
14704       conftest$ac_exeext
14705   if test "${ac_cv_search_bfd_init+set}" = set; then
14706   break
14707 fi
14708 done
14709 if test "${ac_cv_search_bfd_init+set}" = set; then
14710   :
14711 else
14712   ac_cv_search_bfd_init=no
14713 fi
14714 rm conftest.$ac_ext
14715 LIBS=$ac_func_search_save_LIBS
14716 fi
14717 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14718 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14719 ac_res=$ac_cv_search_bfd_init
14720 if test "$ac_res" != no; then
14721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14722
14723 fi
14724
14725         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14726 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14727 if test "${ac_cv_search_op_open_agent+set}" = set; then
14728   echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730   ac_func_search_save_LIBS=$LIBS
14731 cat >conftest.$ac_ext <<_ACEOF
14732 /* confdefs.h.  */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h.  */
14737
14738 /* Override any GCC internal prototype to avoid an error.
14739    Use char because int might match the return type of a GCC
14740    builtin and then its argument prototype would still apply.  */
14741 #ifdef __cplusplus
14742 extern "C"
14743 #endif
14744 char op_open_agent ();
14745 int
14746 main ()
14747 {
14748 return op_open_agent ();
14749   ;
14750   return 0;
14751 }
14752 _ACEOF
14753 for ac_lib in '' opagent; do
14754   if test -z "$ac_lib"; then
14755     ac_res="none required"
14756   else
14757     ac_res=-l$ac_lib
14758     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14759   fi
14760   rm -f conftest.$ac_objext conftest$ac_exeext
14761 if { (ac_try="$ac_link"
14762 case "(($ac_try" in
14763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764   *) ac_try_echo=$ac_try;;
14765 esac
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767   (eval "$ac_link") 2>conftest.er1
14768   ac_status=$?
14769   grep -v '^ *+' conftest.er1 >conftest.err
14770   rm -f conftest.er1
14771   cat conftest.err >&5
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); } &&
14774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14775   { (case "(($ac_try" in
14776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777   *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780   (eval "$ac_try") 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; } &&
14784          { ac_try='test -s conftest$ac_exeext'
14785   { (case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790   (eval "$ac_try") 2>&5
14791   ac_status=$?
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); }; }; then
14794   ac_cv_search_op_open_agent=$ac_res
14795 else
14796   echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799
14800 fi
14801
14802 rm -f core conftest.err conftest.$ac_objext \
14803       conftest$ac_exeext
14804   if test "${ac_cv_search_op_open_agent+set}" = set; then
14805   break
14806 fi
14807 done
14808 if test "${ac_cv_search_op_open_agent+set}" = set; then
14809   :
14810 else
14811   ac_cv_search_op_open_agent=no
14812 fi
14813 rm conftest.$ac_ext
14814 LIBS=$ac_func_search_save_LIBS
14815 fi
14816 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14817 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14818 ac_res=$ac_cv_search_op_open_agent
14819 if test "$ac_res" != no; then
14820   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14821
14822 else
14823
14824           echo "Error! You need to have libopagent around."
14825           exit -1
14826
14827 fi
14828
14829         if test "${ac_cv_header_opagent_h+set}" = set; then
14830   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14831 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14832 if test "${ac_cv_header_opagent_h+set}" = set; then
14833   echo $ECHO_N "(cached) $ECHO_C" >&6
14834 fi
14835 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14836 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14837 else
14838   # Is the header compilable?
14839 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14840 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14841 cat >conftest.$ac_ext <<_ACEOF
14842 /* confdefs.h.  */
14843 _ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h.  */
14847 $ac_includes_default
14848 #include <opagent.h>
14849 _ACEOF
14850 rm -f conftest.$ac_objext
14851 if { (ac_try="$ac_compile"
14852 case "(($ac_try" in
14853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854   *) ac_try_echo=$ac_try;;
14855 esac
14856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857   (eval "$ac_compile") 2>conftest.er1
14858   ac_status=$?
14859   grep -v '^ *+' conftest.er1 >conftest.err
14860   rm -f conftest.er1
14861   cat conftest.err >&5
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); } &&
14864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14865   { (case "(($ac_try" in
14866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867   *) ac_try_echo=$ac_try;;
14868 esac
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870   (eval "$ac_try") 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; } &&
14874          { ac_try='test -s conftest.$ac_objext'
14875   { (case "(($ac_try" in
14876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877   *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880   (eval "$ac_try") 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); }; }; then
14884   ac_header_compiler=yes
14885 else
14886   echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14888
14889         ac_header_compiler=no
14890 fi
14891
14892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14894 echo "${ECHO_T}$ac_header_compiler" >&6; }
14895
14896 # Is the header present?
14897 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14898 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14899 cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h.  */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h.  */
14905 #include <opagent.h>
14906 _ACEOF
14907 if { (ac_try="$ac_cpp conftest.$ac_ext"
14908 case "(($ac_try" in
14909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910   *) ac_try_echo=$ac_try;;
14911 esac
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14914   ac_status=$?
14915   grep -v '^ *+' conftest.er1 >conftest.err
14916   rm -f conftest.er1
14917   cat conftest.err >&5
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); } >/dev/null; then
14920   if test -s conftest.err; then
14921     ac_cpp_err=$ac_c_preproc_warn_flag
14922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14923   else
14924     ac_cpp_err=
14925   fi
14926 else
14927   ac_cpp_err=yes
14928 fi
14929 if test -z "$ac_cpp_err"; then
14930   ac_header_preproc=yes
14931 else
14932   echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14934
14935   ac_header_preproc=no
14936 fi
14937
14938 rm -f conftest.err conftest.$ac_ext
14939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14940 echo "${ECHO_T}$ac_header_preproc" >&6; }
14941
14942 # So?  What about this header?
14943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14944   yes:no: )
14945     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14946 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14947     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14948 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14949     ac_header_preproc=yes
14950     ;;
14951   no:yes:* )
14952     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14953 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14954     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14955 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14956     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14957 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14958     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14959 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14960     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14961 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14962     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14963 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14964     ( cat <<\_ASBOX
14965 ## ----------------------------------- ##
14966 ## Report this to llvmbugs@cs.uiuc.edu ##
14967 ## ----------------------------------- ##
14968 _ASBOX
14969      ) | sed "s/^/$as_me: WARNING:     /" >&2
14970     ;;
14971 esac
14972 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14973 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14974 if test "${ac_cv_header_opagent_h+set}" = set; then
14975   echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977   ac_cv_header_opagent_h=$ac_header_preproc
14978 fi
14979 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14980 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14981
14982 fi
14983 if test $ac_cv_header_opagent_h = yes; then
14984   :
14985 else
14986
14987           echo "Error! You need to have opagent.h around."
14988           exit -1
14989
14990 fi
14991
14992
14993       fi
14994
14995 else
14996
14997       USE_OPROFILE=0
14998
14999
15000 fi
15001
15002
15003 cat >>confdefs.h <<_ACEOF
15004 #define USE_OPROFILE $USE_OPROFILE
15005 _ACEOF
15006
15007
15008
15009
15010
15011
15012
15013
15014 ac_header_dirent=no
15015 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15016   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15017 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15018 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15020   echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022   cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h.  */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h.  */
15028 #include <sys/types.h>
15029 #include <$ac_hdr>
15030
15031 int
15032 main ()
15033 {
15034 if ((DIR *) 0)
15035 return 0;
15036   ;
15037   return 0;
15038 }
15039 _ACEOF
15040 rm -f conftest.$ac_objext
15041 if { (ac_try="$ac_compile"
15042 case "(($ac_try" in
15043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15044   *) ac_try_echo=$ac_try;;
15045 esac
15046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15047   (eval "$ac_compile") 2>conftest.er1
15048   ac_status=$?
15049   grep -v '^ *+' conftest.er1 >conftest.err
15050   rm -f conftest.er1
15051   cat conftest.err >&5
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); } &&
15054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15055   { (case "(($ac_try" in
15056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057   *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060   (eval "$ac_try") 2>&5
15061   ac_status=$?
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); }; } &&
15064          { ac_try='test -s conftest.$ac_objext'
15065   { (case "(($ac_try" in
15066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067   *) ac_try_echo=$ac_try;;
15068 esac
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070   (eval "$ac_try") 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); }; }; then
15074   eval "$as_ac_Header=yes"
15075 else
15076   echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15078
15079         eval "$as_ac_Header=no"
15080 fi
15081
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083 fi
15084 ac_res=`eval echo '${'$as_ac_Header'}'`
15085                { echo "$as_me:$LINENO: result: $ac_res" >&5
15086 echo "${ECHO_T}$ac_res" >&6; }
15087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15088   cat >>confdefs.h <<_ACEOF
15089 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15090 _ACEOF
15091
15092 ac_header_dirent=$ac_hdr; break
15093 fi
15094
15095 done
15096 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15097 if test $ac_header_dirent = dirent.h; then
15098   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15099 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15100 if test "${ac_cv_search_opendir+set}" = set; then
15101   echo $ECHO_N "(cached) $ECHO_C" >&6
15102 else
15103   ac_func_search_save_LIBS=$LIBS
15104 cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h.  */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h.  */
15110
15111 /* Override any GCC internal prototype to avoid an error.
15112    Use char because int might match the return type of a GCC
15113    builtin and then its argument prototype would still apply.  */
15114 #ifdef __cplusplus
15115 extern "C"
15116 #endif
15117 char opendir ();
15118 int
15119 main ()
15120 {
15121 return opendir ();
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 for ac_lib in '' dir; do
15127   if test -z "$ac_lib"; then
15128     ac_res="none required"
15129   else
15130     ac_res=-l$ac_lib
15131     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15132   fi
15133   rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (ac_try="$ac_link"
15135 case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_link") 2>conftest.er1
15141   ac_status=$?
15142   grep -v '^ *+' conftest.er1 >conftest.err
15143   rm -f conftest.er1
15144   cat conftest.err >&5
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } &&
15147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148   { (case "(($ac_try" in
15149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150   *) ac_try_echo=$ac_try;;
15151 esac
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153   (eval "$ac_try") 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; } &&
15157          { ac_try='test -s conftest$ac_exeext'
15158   { (case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_try") 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; }; then
15167   ac_cv_search_opendir=$ac_res
15168 else
15169   echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172
15173 fi
15174
15175 rm -f core conftest.err conftest.$ac_objext \
15176       conftest$ac_exeext
15177   if test "${ac_cv_search_opendir+set}" = set; then
15178   break
15179 fi
15180 done
15181 if test "${ac_cv_search_opendir+set}" = set; then
15182   :
15183 else
15184   ac_cv_search_opendir=no
15185 fi
15186 rm conftest.$ac_ext
15187 LIBS=$ac_func_search_save_LIBS
15188 fi
15189 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15190 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15191 ac_res=$ac_cv_search_opendir
15192 if test "$ac_res" != no; then
15193   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15194
15195 fi
15196
15197 else
15198   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15199 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15200 if test "${ac_cv_search_opendir+set}" = set; then
15201   echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203   ac_func_search_save_LIBS=$LIBS
15204 cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h.  */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h.  */
15210
15211 /* Override any GCC internal prototype to avoid an error.
15212    Use char because int might match the return type of a GCC
15213    builtin and then its argument prototype would still apply.  */
15214 #ifdef __cplusplus
15215 extern "C"
15216 #endif
15217 char opendir ();
15218 int
15219 main ()
15220 {
15221 return opendir ();
15222   ;
15223   return 0;
15224 }
15225 _ACEOF
15226 for ac_lib in '' x; do
15227   if test -z "$ac_lib"; then
15228     ac_res="none required"
15229   else
15230     ac_res=-l$ac_lib
15231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15232   fi
15233   rm -f conftest.$ac_objext conftest$ac_exeext
15234 if { (ac_try="$ac_link"
15235 case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240   (eval "$ac_link") 2>conftest.er1
15241   ac_status=$?
15242   grep -v '^ *+' conftest.er1 >conftest.err
15243   rm -f conftest.er1
15244   cat conftest.err >&5
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); } &&
15247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15248   { (case "(($ac_try" in
15249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250   *) ac_try_echo=$ac_try;;
15251 esac
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253   (eval "$ac_try") 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; } &&
15257          { ac_try='test -s conftest$ac_exeext'
15258   { (case "(($ac_try" in
15259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260   *) ac_try_echo=$ac_try;;
15261 esac
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263   (eval "$ac_try") 2>&5
15264   ac_status=$?
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); }; }; then
15267   ac_cv_search_opendir=$ac_res
15268 else
15269   echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15271
15272
15273 fi
15274
15275 rm -f core conftest.err conftest.$ac_objext \
15276       conftest$ac_exeext
15277   if test "${ac_cv_search_opendir+set}" = set; then
15278   break
15279 fi
15280 done
15281 if test "${ac_cv_search_opendir+set}" = set; then
15282   :
15283 else
15284   ac_cv_search_opendir=no
15285 fi
15286 rm conftest.$ac_ext
15287 LIBS=$ac_func_search_save_LIBS
15288 fi
15289 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15290 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15291 ac_res=$ac_cv_search_opendir
15292 if test "$ac_res" != no; then
15293   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15294
15295 fi
15296
15297 fi
15298
15299 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15300 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15301 if test "${ac_cv_header_mmap_anon+set}" = set; then
15302   echo $ECHO_N "(cached) $ECHO_C" >&6
15303 else
15304    ac_ext=c
15305 ac_cpp='$CPP $CPPFLAGS'
15306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15309
15310   cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h.  */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h.  */
15316 #include <sys/mman.h>
15317 #include <unistd.h>
15318 #include <fcntl.h>
15319 int
15320 main ()
15321 {
15322 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15323   ;
15324   return 0;
15325 }
15326 _ACEOF
15327 rm -f conftest.$ac_objext
15328 if { (ac_try="$ac_compile"
15329 case "(($ac_try" in
15330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331   *) ac_try_echo=$ac_try;;
15332 esac
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334   (eval "$ac_compile") 2>conftest.er1
15335   ac_status=$?
15336   grep -v '^ *+' conftest.er1 >conftest.err
15337   rm -f conftest.er1
15338   cat conftest.err >&5
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); } &&
15341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15342   { (case "(($ac_try" in
15343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344   *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347   (eval "$ac_try") 2>&5
15348   ac_status=$?
15349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350   (exit $ac_status); }; } &&
15351          { ac_try='test -s conftest.$ac_objext'
15352   { (case "(($ac_try" in
15353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354   *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357   (eval "$ac_try") 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); }; }; then
15361   ac_cv_header_mmap_anon=yes
15362 else
15363   echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366         ac_cv_header_mmap_anon=no
15367 fi
15368
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370   ac_ext=c
15371 ac_cpp='$CPP $CPPFLAGS'
15372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15375
15376
15377 fi
15378 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15379 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15380 if test "$ac_cv_header_mmap_anon" = yes; then
15381
15382 cat >>confdefs.h <<\_ACEOF
15383 #define HAVE_MMAP_ANONYMOUS 1
15384 _ACEOF
15385
15386 fi
15387
15388 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15389 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15390 if test "${ac_cv_header_stat_broken+set}" = set; then
15391   echo $ECHO_N "(cached) $ECHO_C" >&6
15392 else
15393   cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h.  */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h.  */
15399 #include <sys/types.h>
15400 #include <sys/stat.h>
15401
15402 #if defined S_ISBLK && defined S_IFDIR
15403 # if S_ISBLK (S_IFDIR)
15404 You lose.
15405 # endif
15406 #endif
15407
15408 #if defined S_ISBLK && defined S_IFCHR
15409 # if S_ISBLK (S_IFCHR)
15410 You lose.
15411 # endif
15412 #endif
15413
15414 #if defined S_ISLNK && defined S_IFREG
15415 # if S_ISLNK (S_IFREG)
15416 You lose.
15417 # endif
15418 #endif
15419
15420 #if defined S_ISSOCK && defined S_IFREG
15421 # if S_ISSOCK (S_IFREG)
15422 You lose.
15423 # endif
15424 #endif
15425
15426 _ACEOF
15427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15428   $EGREP "You lose" >/dev/null 2>&1; then
15429   ac_cv_header_stat_broken=yes
15430 else
15431   ac_cv_header_stat_broken=no
15432 fi
15433 rm -f conftest*
15434
15435 fi
15436 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15437 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15438 if test $ac_cv_header_stat_broken = yes; then
15439
15440 cat >>confdefs.h <<\_ACEOF
15441 #define STAT_MACROS_BROKEN 1
15442 _ACEOF
15443
15444 fi
15445
15446 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15447 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15448 if test "${ac_cv_header_stdc+set}" = set; then
15449   echo $ECHO_N "(cached) $ECHO_C" >&6
15450 else
15451   cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h.  */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h.  */
15457 #include <stdlib.h>
15458 #include <stdarg.h>
15459 #include <string.h>
15460 #include <float.h>
15461
15462 int
15463 main ()
15464 {
15465
15466   ;
15467   return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext
15471 if { (ac_try="$ac_compile"
15472 case "(($ac_try" in
15473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474   *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477   (eval "$ac_compile") 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } &&
15484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485   { (case "(($ac_try" in
15486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487   *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490   (eval "$ac_try") 2>&5
15491   ac_status=$?
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); }; } &&
15494          { ac_try='test -s conftest.$ac_objext'
15495   { (case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500   (eval "$ac_try") 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; }; then
15504   ac_cv_header_stdc=yes
15505 else
15506   echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508
15509         ac_cv_header_stdc=no
15510 fi
15511
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513
15514 if test $ac_cv_header_stdc = yes; then
15515   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15516   cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h.  */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h.  */
15522 #include <string.h>
15523
15524 _ACEOF
15525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15526   $EGREP "memchr" >/dev/null 2>&1; then
15527   :
15528 else
15529   ac_cv_header_stdc=no
15530 fi
15531 rm -f conftest*
15532
15533 fi
15534
15535 if test $ac_cv_header_stdc = yes; then
15536   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15537   cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h.  */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h.  */
15543 #include <stdlib.h>
15544
15545 _ACEOF
15546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15547   $EGREP "free" >/dev/null 2>&1; then
15548   :
15549 else
15550   ac_cv_header_stdc=no
15551 fi
15552 rm -f conftest*
15553
15554 fi
15555
15556 if test $ac_cv_header_stdc = yes; then
15557   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15558   if test "$cross_compiling" = yes; then
15559   :
15560 else
15561   cat >conftest.$ac_ext <<_ACEOF
15562 /* confdefs.h.  */
15563 _ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h.  */
15567 #include <ctype.h>
15568 #include <stdlib.h>
15569 #if ((' ' & 0x0FF) == 0x020)
15570 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15571 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15572 #else
15573 # define ISLOWER(c) \
15574                    (('a' <= (c) && (c) <= 'i') \
15575                      || ('j' <= (c) && (c) <= 'r') \
15576                      || ('s' <= (c) && (c) <= 'z'))
15577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15578 #endif
15579
15580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15581 int
15582 main ()
15583 {
15584   int i;
15585   for (i = 0; i < 256; i++)
15586     if (XOR (islower (i), ISLOWER (i))
15587         || toupper (i) != TOUPPER (i))
15588       return 2;
15589   return 0;
15590 }
15591 _ACEOF
15592 rm -f conftest$ac_exeext
15593 if { (ac_try="$ac_link"
15594 case "(($ac_try" in
15595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596   *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599   (eval "$ac_link") 2>&5
15600   ac_status=$?
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15603   { (case "(($ac_try" in
15604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605   *) ac_try_echo=$ac_try;;
15606 esac
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608   (eval "$ac_try") 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; }; then
15612   :
15613 else
15614   echo "$as_me: program exited with status $ac_status" >&5
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 ( exit $ac_status )
15619 ac_cv_header_stdc=no
15620 fi
15621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15622 fi
15623
15624
15625 fi
15626 fi
15627 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15628 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15629 if test $ac_cv_header_stdc = yes; then
15630
15631 cat >>confdefs.h <<\_ACEOF
15632 #define STDC_HEADERS 1
15633 _ACEOF
15634
15635 fi
15636
15637 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15638 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15639 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15640   echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642   cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h.  */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h.  */
15648 #include <sys/types.h>
15649 #include <sys/wait.h>
15650 #ifndef WEXITSTATUS
15651 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15652 #endif
15653 #ifndef WIFEXITED
15654 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15655 #endif
15656
15657 int
15658 main ()
15659 {
15660   int s;
15661   wait (&s);
15662   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15663   ;
15664   return 0;
15665 }
15666 _ACEOF
15667 rm -f conftest.$ac_objext
15668 if { (ac_try="$ac_compile"
15669 case "(($ac_try" in
15670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671   *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674   (eval "$ac_compile") 2>conftest.er1
15675   ac_status=$?
15676   grep -v '^ *+' conftest.er1 >conftest.err
15677   rm -f conftest.er1
15678   cat conftest.err >&5
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); } &&
15681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15682   { (case "(($ac_try" in
15683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684   *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687   (eval "$ac_try") 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; } &&
15691          { ac_try='test -s conftest.$ac_objext'
15692   { (case "(($ac_try" in
15693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694   *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697   (eval "$ac_try") 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; }; then
15701   ac_cv_header_sys_wait_h=yes
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706         ac_cv_header_sys_wait_h=no
15707 fi
15708
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 fi
15711 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15712 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15713 if test $ac_cv_header_sys_wait_h = yes; then
15714
15715 cat >>confdefs.h <<\_ACEOF
15716 #define HAVE_SYS_WAIT_H 1
15717 _ACEOF
15718
15719 fi
15720
15721 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15722 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15723 if test "${ac_cv_header_time+set}" = set; then
15724   echo $ECHO_N "(cached) $ECHO_C" >&6
15725 else
15726   cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h.  */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h.  */
15732 #include <sys/types.h>
15733 #include <sys/time.h>
15734 #include <time.h>
15735
15736 int
15737 main ()
15738 {
15739 if ((struct tm *) 0)
15740 return 0;
15741   ;
15742   return 0;
15743 }
15744 _ACEOF
15745 rm -f conftest.$ac_objext
15746 if { (ac_try="$ac_compile"
15747 case "(($ac_try" in
15748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749   *) ac_try_echo=$ac_try;;
15750 esac
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752   (eval "$ac_compile") 2>conftest.er1
15753   ac_status=$?
15754   grep -v '^ *+' conftest.er1 >conftest.err
15755   rm -f conftest.er1
15756   cat conftest.err >&5
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); } &&
15759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15760   { (case "(($ac_try" in
15761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762   *) ac_try_echo=$ac_try;;
15763 esac
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765   (eval "$ac_try") 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; } &&
15769          { ac_try='test -s conftest.$ac_objext'
15770   { (case "(($ac_try" in
15771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772   *) ac_try_echo=$ac_try;;
15773 esac
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775   (eval "$ac_try") 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779   ac_cv_header_time=yes
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784         ac_cv_header_time=no
15785 fi
15786
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 fi
15789 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15790 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15791 if test $ac_cv_header_time = yes; then
15792
15793 cat >>confdefs.h <<\_ACEOF
15794 #define TIME_WITH_SYS_TIME 1
15795 _ACEOF
15796
15797 fi
15798
15799
15800
15801
15802
15803
15804
15805
15806 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15807 do
15808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15810   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813   echo $ECHO_N "(cached) $ECHO_C" >&6
15814 fi
15815 ac_res=`eval echo '${'$as_ac_Header'}'`
15816                { echo "$as_me:$LINENO: result: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15818 else
15819   # Is the header compilable?
15820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828 $ac_includes_default
15829 #include <$ac_header>
15830 _ACEOF
15831 rm -f conftest.$ac_objext
15832 if { (ac_try="$ac_compile"
15833 case "(($ac_try" in
15834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835   *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838   (eval "$ac_compile") 2>conftest.er1
15839   ac_status=$?
15840   grep -v '^ *+' conftest.er1 >conftest.err
15841   rm -f conftest.er1
15842   cat conftest.err >&5
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } &&
15845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846   { (case "(($ac_try" in
15847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848   *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851   (eval "$ac_try") 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; } &&
15855          { ac_try='test -s conftest.$ac_objext'
15856   { (case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_try") 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; }; then
15865   ac_header_compiler=yes
15866 else
15867   echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870         ac_header_compiler=no
15871 fi
15872
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15875 echo "${ECHO_T}$ac_header_compiler" >&6; }
15876
15877 # Is the header present?
15878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15880 cat >conftest.$ac_ext <<_ACEOF
15881 /* confdefs.h.  */
15882 _ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h.  */
15886 #include <$ac_header>
15887 _ACEOF
15888 if { (ac_try="$ac_cpp conftest.$ac_ext"
15889 case "(($ac_try" in
15890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891   *) ac_try_echo=$ac_try;;
15892 esac
15893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15895   ac_status=$?
15896   grep -v '^ *+' conftest.er1 >conftest.err
15897   rm -f conftest.er1
15898   cat conftest.err >&5
15899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   (exit $ac_status); } >/dev/null; then
15901   if test -s conftest.err; then
15902     ac_cpp_err=$ac_c_preproc_warn_flag
15903     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15904   else
15905     ac_cpp_err=
15906   fi
15907 else
15908   ac_cpp_err=yes
15909 fi
15910 if test -z "$ac_cpp_err"; then
15911   ac_header_preproc=yes
15912 else
15913   echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916   ac_header_preproc=no
15917 fi
15918
15919 rm -f conftest.err conftest.$ac_ext
15920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15921 echo "${ECHO_T}$ac_header_preproc" >&6; }
15922
15923 # So?  What about this header?
15924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15925   yes:no: )
15926     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15930     ac_header_preproc=yes
15931     ;;
15932   no:yes:* )
15933     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15935     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15936 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15937     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15939     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15940 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15943     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15945     ( cat <<\_ASBOX
15946 ## ----------------------------------- ##
15947 ## Report this to llvmbugs@cs.uiuc.edu ##
15948 ## ----------------------------------- ##
15949 _ASBOX
15950      ) | sed "s/^/$as_me: WARNING:     /" >&2
15951     ;;
15952 esac
15953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956   echo $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958   eval "$as_ac_Header=\$ac_header_preproc"
15959 fi
15960 ac_res=`eval echo '${'$as_ac_Header'}'`
15961                { echo "$as_me:$LINENO: result: $ac_res" >&5
15962 echo "${ECHO_T}$ac_res" >&6; }
15963
15964 fi
15965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15966   cat >>confdefs.h <<_ACEOF
15967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15968 _ACEOF
15969
15970 fi
15971
15972 done
15973
15974
15975
15976
15977
15978
15979
15980 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15981 do
15982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987   echo $ECHO_N "(cached) $ECHO_C" >&6
15988 fi
15989 ac_res=`eval echo '${'$as_ac_Header'}'`
15990                { echo "$as_me:$LINENO: result: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15992 else
15993   # Is the header compilable?
15994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15996 cat >conftest.$ac_ext <<_ACEOF
15997 /* confdefs.h.  */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h.  */
16002 $ac_includes_default
16003 #include <$ac_header>
16004 _ACEOF
16005 rm -f conftest.$ac_objext
16006 if { (ac_try="$ac_compile"
16007 case "(($ac_try" in
16008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009   *) ac_try_echo=$ac_try;;
16010 esac
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012   (eval "$ac_compile") 2>conftest.er1
16013   ac_status=$?
16014   grep -v '^ *+' conftest.er1 >conftest.err
16015   rm -f conftest.er1
16016   cat conftest.err >&5
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); } &&
16019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020   { (case "(($ac_try" in
16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022   *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025   (eval "$ac_try") 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; } &&
16029          { ac_try='test -s conftest.$ac_objext'
16030   { (case "(($ac_try" in
16031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032   *) ac_try_echo=$ac_try;;
16033 esac
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035   (eval "$ac_try") 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; }; then
16039   ac_header_compiler=yes
16040 else
16041   echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044         ac_header_compiler=no
16045 fi
16046
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6; }
16050
16051 # Is the header present?
16052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060 #include <$ac_header>
16061 _ACEOF
16062 if { (ac_try="$ac_cpp conftest.$ac_ext"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16069   ac_status=$?
16070   grep -v '^ *+' conftest.er1 >conftest.err
16071   rm -f conftest.er1
16072   cat conftest.err >&5
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } >/dev/null; then
16075   if test -s conftest.err; then
16076     ac_cpp_err=$ac_c_preproc_warn_flag
16077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16078   else
16079     ac_cpp_err=
16080   fi
16081 else
16082   ac_cpp_err=yes
16083 fi
16084 if test -z "$ac_cpp_err"; then
16085   ac_header_preproc=yes
16086 else
16087   echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090   ac_header_preproc=no
16091 fi
16092
16093 rm -f conftest.err conftest.$ac_ext
16094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6; }
16096
16097 # So?  What about this header?
16098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099   yes:no: )
16100     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104     ac_header_preproc=yes
16105     ;;
16106   no:yes:* )
16107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16110 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16111     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16114 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16119     ( cat <<\_ASBOX
16120 ## ----------------------------------- ##
16121 ## Report this to llvmbugs@cs.uiuc.edu ##
16122 ## ----------------------------------- ##
16123 _ASBOX
16124      ) | sed "s/^/$as_me: WARNING:     /" >&2
16125     ;;
16126 esac
16127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16130   echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132   eval "$as_ac_Header=\$ac_header_preproc"
16133 fi
16134 ac_res=`eval echo '${'$as_ac_Header'}'`
16135                { echo "$as_me:$LINENO: result: $ac_res" >&5
16136 echo "${ECHO_T}$ac_res" >&6; }
16137
16138 fi
16139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16140   cat >>confdefs.h <<_ACEOF
16141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16142 _ACEOF
16143
16144 fi
16145
16146 done
16147
16148
16149
16150 for ac_header in utime.h windows.h
16151 do
16152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157   echo $ECHO_N "(cached) $ECHO_C" >&6
16158 fi
16159 ac_res=`eval echo '${'$as_ac_Header'}'`
16160                { echo "$as_me:$LINENO: result: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16162 else
16163   # Is the header compilable?
16164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16166 cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h.  */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h.  */
16172 $ac_includes_default
16173 #include <$ac_header>
16174 _ACEOF
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179   *) ac_try_echo=$ac_try;;
16180 esac
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182   (eval "$ac_compile") 2>conftest.er1
16183   ac_status=$?
16184   grep -v '^ *+' conftest.er1 >conftest.err
16185   rm -f conftest.er1
16186   cat conftest.err >&5
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); } &&
16189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16190   { (case "(($ac_try" in
16191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192   *) ac_try_echo=$ac_try;;
16193 esac
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195   (eval "$ac_try") 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); }; } &&
16199          { ac_try='test -s conftest.$ac_objext'
16200   { (case "(($ac_try" in
16201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202   *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205   (eval "$ac_try") 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; }; then
16209   ac_header_compiler=yes
16210 else
16211   echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214         ac_header_compiler=no
16215 fi
16216
16217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16219 echo "${ECHO_T}$ac_header_compiler" >&6; }
16220
16221 # Is the header present?
16222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16224 cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h.  */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h.  */
16230 #include <$ac_header>
16231 _ACEOF
16232 if { (ac_try="$ac_cpp conftest.$ac_ext"
16233 case "(($ac_try" in
16234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235   *) ac_try_echo=$ac_try;;
16236 esac
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16239   ac_status=$?
16240   grep -v '^ *+' conftest.er1 >conftest.err
16241   rm -f conftest.er1
16242   cat conftest.err >&5
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); } >/dev/null; then
16245   if test -s conftest.err; then
16246     ac_cpp_err=$ac_c_preproc_warn_flag
16247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16248   else
16249     ac_cpp_err=
16250   fi
16251 else
16252   ac_cpp_err=yes
16253 fi
16254 if test -z "$ac_cpp_err"; then
16255   ac_header_preproc=yes
16256 else
16257   echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16259
16260   ac_header_preproc=no
16261 fi
16262
16263 rm -f conftest.err conftest.$ac_ext
16264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16265 echo "${ECHO_T}$ac_header_preproc" >&6; }
16266
16267 # So?  What about this header?
16268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16269   yes:no: )
16270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16274     ac_header_preproc=yes
16275     ;;
16276   no:yes:* )
16277     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16279     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16280 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16281     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16283     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16284 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16287     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16289     ( cat <<\_ASBOX
16290 ## ----------------------------------- ##
16291 ## Report this to llvmbugs@cs.uiuc.edu ##
16292 ## ----------------------------------- ##
16293 _ASBOX
16294      ) | sed "s/^/$as_me: WARNING:     /" >&2
16295     ;;
16296 esac
16297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300   echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302   eval "$as_ac_Header=\$ac_header_preproc"
16303 fi
16304 ac_res=`eval echo '${'$as_ac_Header'}'`
16305                { echo "$as_me:$LINENO: result: $ac_res" >&5
16306 echo "${ECHO_T}$ac_res" >&6; }
16307
16308 fi
16309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16310   cat >>confdefs.h <<_ACEOF
16311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16312 _ACEOF
16313
16314 fi
16315
16316 done
16317
16318
16319
16320
16321
16322
16323 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16324 do
16325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16327   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16330   echo $ECHO_N "(cached) $ECHO_C" >&6
16331 fi
16332 ac_res=`eval echo '${'$as_ac_Header'}'`
16333                { echo "$as_me:$LINENO: result: $ac_res" >&5
16334 echo "${ECHO_T}$ac_res" >&6; }
16335 else
16336   # Is the header compilable?
16337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h.  */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h.  */
16345 $ac_includes_default
16346 #include <$ac_header>
16347 _ACEOF
16348 rm -f conftest.$ac_objext
16349 if { (ac_try="$ac_compile"
16350 case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_compile") 2>conftest.er1
16356   ac_status=$?
16357   grep -v '^ *+' conftest.er1 >conftest.err
16358   rm -f conftest.er1
16359   cat conftest.err >&5
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); } &&
16362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16363   { (case "(($ac_try" in
16364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365   *) ac_try_echo=$ac_try;;
16366 esac
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368   (eval "$ac_try") 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; } &&
16372          { ac_try='test -s conftest.$ac_objext'
16373   { (case "(($ac_try" in
16374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375   *) ac_try_echo=$ac_try;;
16376 esac
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378   (eval "$ac_try") 2>&5
16379   ac_status=$?
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); }; }; then
16382   ac_header_compiler=yes
16383 else
16384   echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16386
16387         ac_header_compiler=no
16388 fi
16389
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16392 echo "${ECHO_T}$ac_header_compiler" >&6; }
16393
16394 # Is the header present?
16395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16397 cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h.  */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h.  */
16403 #include <$ac_header>
16404 _ACEOF
16405 if { (ac_try="$ac_cpp conftest.$ac_ext"
16406 case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16412   ac_status=$?
16413   grep -v '^ *+' conftest.er1 >conftest.err
16414   rm -f conftest.er1
16415   cat conftest.err >&5
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); } >/dev/null; then
16418   if test -s conftest.err; then
16419     ac_cpp_err=$ac_c_preproc_warn_flag
16420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16421   else
16422     ac_cpp_err=
16423   fi
16424 else
16425   ac_cpp_err=yes
16426 fi
16427 if test -z "$ac_cpp_err"; then
16428   ac_header_preproc=yes
16429 else
16430   echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433   ac_header_preproc=no
16434 fi
16435
16436 rm -f conftest.err conftest.$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6; }
16439
16440 # So?  What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16442   yes:no: )
16443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16447     ac_header_preproc=yes
16448     ;;
16449   no:yes:* )
16450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16462     ( cat <<\_ASBOX
16463 ## ----------------------------------- ##
16464 ## Report this to llvmbugs@cs.uiuc.edu ##
16465 ## ----------------------------------- ##
16466 _ASBOX
16467      ) | sed "s/^/$as_me: WARNING:     /" >&2
16468     ;;
16469 esac
16470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16473   echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475   eval "$as_ac_Header=\$ac_header_preproc"
16476 fi
16477 ac_res=`eval echo '${'$as_ac_Header'}'`
16478                { echo "$as_me:$LINENO: result: $ac_res" >&5
16479 echo "${ECHO_T}$ac_res" >&6; }
16480
16481 fi
16482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16483   cat >>confdefs.h <<_ACEOF
16484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16485 _ACEOF
16486
16487 fi
16488
16489 done
16490
16491
16492
16493
16494
16495 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16496 do
16497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16499   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502   echo $ECHO_N "(cached) $ECHO_C" >&6
16503 fi
16504 ac_res=`eval echo '${'$as_ac_Header'}'`
16505                { echo "$as_me:$LINENO: result: $ac_res" >&5
16506 echo "${ECHO_T}$ac_res" >&6; }
16507 else
16508   # Is the header compilable?
16509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16511 cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h.  */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h.  */
16517 $ac_includes_default
16518 #include <$ac_header>
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (ac_try="$ac_compile"
16522 case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_compile") 2>conftest.er1
16528   ac_status=$?
16529   grep -v '^ *+' conftest.er1 >conftest.err
16530   rm -f conftest.er1
16531   cat conftest.err >&5
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); } &&
16534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16535   { (case "(($ac_try" in
16536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537   *) ac_try_echo=$ac_try;;
16538 esac
16539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540   (eval "$ac_try") 2>&5
16541   ac_status=$?
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); }; } &&
16544          { ac_try='test -s conftest.$ac_objext'
16545   { (case "(($ac_try" in
16546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547   *) ac_try_echo=$ac_try;;
16548 esac
16549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550   (eval "$ac_try") 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); }; }; then
16554   ac_header_compiler=yes
16555 else
16556   echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559         ac_header_compiler=no
16560 fi
16561
16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16564 echo "${ECHO_T}$ac_header_compiler" >&6; }
16565
16566 # Is the header present?
16567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16569 cat >conftest.$ac_ext <<_ACEOF
16570 /* confdefs.h.  */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h.  */
16575 #include <$ac_header>
16576 _ACEOF
16577 if { (ac_try="$ac_cpp conftest.$ac_ext"
16578 case "(($ac_try" in
16579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580   *) ac_try_echo=$ac_try;;
16581 esac
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16584   ac_status=$?
16585   grep -v '^ *+' conftest.er1 >conftest.err
16586   rm -f conftest.er1
16587   cat conftest.err >&5
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); } >/dev/null; then
16590   if test -s conftest.err; then
16591     ac_cpp_err=$ac_c_preproc_warn_flag
16592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16593   else
16594     ac_cpp_err=
16595   fi
16596 else
16597   ac_cpp_err=yes
16598 fi
16599 if test -z "$ac_cpp_err"; then
16600   ac_header_preproc=yes
16601 else
16602   echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16604
16605   ac_header_preproc=no
16606 fi
16607
16608 rm -f conftest.err conftest.$ac_ext
16609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16610 echo "${ECHO_T}$ac_header_preproc" >&6; }
16611
16612 # So?  What about this header?
16613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16614   yes:no: )
16615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16619     ac_header_preproc=yes
16620     ;;
16621   no:yes:* )
16622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16634     ( cat <<\_ASBOX
16635 ## ----------------------------------- ##
16636 ## Report this to llvmbugs@cs.uiuc.edu ##
16637 ## ----------------------------------- ##
16638 _ASBOX
16639      ) | sed "s/^/$as_me: WARNING:     /" >&2
16640     ;;
16641 esac
16642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16645   echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647   eval "$as_ac_Header=\$ac_header_preproc"
16648 fi
16649 ac_res=`eval echo '${'$as_ac_Header'}'`
16650                { echo "$as_me:$LINENO: result: $ac_res" >&5
16651 echo "${ECHO_T}$ac_res" >&6; }
16652
16653 fi
16654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16655   cat >>confdefs.h <<_ACEOF
16656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16657 _ACEOF
16658
16659 fi
16660
16661 done
16662
16663
16664 for ac_header in valgrind/valgrind.h
16665 do
16666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16668   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16671   echo $ECHO_N "(cached) $ECHO_C" >&6
16672 fi
16673 ac_res=`eval echo '${'$as_ac_Header'}'`
16674                { echo "$as_me:$LINENO: result: $ac_res" >&5
16675 echo "${ECHO_T}$ac_res" >&6; }
16676 else
16677   # Is the header compilable?
16678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686 $ac_includes_default
16687 #include <$ac_header>
16688 _ACEOF
16689 rm -f conftest.$ac_objext
16690 if { (ac_try="$ac_compile"
16691 case "(($ac_try" in
16692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693   *) ac_try_echo=$ac_try;;
16694 esac
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696   (eval "$ac_compile") 2>conftest.er1
16697   ac_status=$?
16698   grep -v '^ *+' conftest.er1 >conftest.err
16699   rm -f conftest.er1
16700   cat conftest.err >&5
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); } &&
16703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704   { (case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_try") 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; } &&
16713          { ac_try='test -s conftest.$ac_objext'
16714   { (case "(($ac_try" in
16715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716   *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719   (eval "$ac_try") 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }; }; then
16723   ac_header_compiler=yes
16724 else
16725   echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16727
16728         ac_header_compiler=no
16729 fi
16730
16731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16733 echo "${ECHO_T}$ac_header_compiler" >&6; }
16734
16735 # Is the header present?
16736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h.  */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h.  */
16744 #include <$ac_header>
16745 _ACEOF
16746 if { (ac_try="$ac_cpp conftest.$ac_ext"
16747 case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16753   ac_status=$?
16754   grep -v '^ *+' conftest.er1 >conftest.err
16755   rm -f conftest.er1
16756   cat conftest.err >&5
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); } >/dev/null; then
16759   if test -s conftest.err; then
16760     ac_cpp_err=$ac_c_preproc_warn_flag
16761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16762   else
16763     ac_cpp_err=
16764   fi
16765 else
16766   ac_cpp_err=yes
16767 fi
16768 if test -z "$ac_cpp_err"; then
16769   ac_header_preproc=yes
16770 else
16771   echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16773
16774   ac_header_preproc=no
16775 fi
16776
16777 rm -f conftest.err conftest.$ac_ext
16778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16779 echo "${ECHO_T}$ac_header_preproc" >&6; }
16780
16781 # So?  What about this header?
16782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16783   yes:no: )
16784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16788     ac_header_preproc=yes
16789     ;;
16790   no:yes:* )
16791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16803     ( cat <<\_ASBOX
16804 ## ----------------------------------- ##
16805 ## Report this to llvmbugs@cs.uiuc.edu ##
16806 ## ----------------------------------- ##
16807 _ASBOX
16808      ) | sed "s/^/$as_me: WARNING:     /" >&2
16809     ;;
16810 esac
16811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16814   echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816   eval "$as_ac_Header=\$ac_header_preproc"
16817 fi
16818 ac_res=`eval echo '${'$as_ac_Header'}'`
16819                { echo "$as_me:$LINENO: result: $ac_res" >&5
16820 echo "${ECHO_T}$ac_res" >&6; }
16821
16822 fi
16823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16824   cat >>confdefs.h <<_ACEOF
16825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16826 _ACEOF
16827
16828 fi
16829
16830 done
16831
16832
16833 for ac_header in fenv.h
16834 do
16835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16837   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16840   echo $ECHO_N "(cached) $ECHO_C" >&6
16841 fi
16842 ac_res=`eval echo '${'$as_ac_Header'}'`
16843                { echo "$as_me:$LINENO: result: $ac_res" >&5
16844 echo "${ECHO_T}$ac_res" >&6; }
16845 else
16846   # Is the header compilable?
16847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h.  */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h.  */
16855 $ac_includes_default
16856 #include <$ac_header>
16857 _ACEOF
16858 rm -f conftest.$ac_objext
16859 if { (ac_try="$ac_compile"
16860 case "(($ac_try" in
16861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862   *) ac_try_echo=$ac_try;;
16863 esac
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865   (eval "$ac_compile") 2>conftest.er1
16866   ac_status=$?
16867   grep -v '^ *+' conftest.er1 >conftest.err
16868   rm -f conftest.er1
16869   cat conftest.err >&5
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); } &&
16872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16873   { (case "(($ac_try" in
16874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875   *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878   (eval "$ac_try") 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); }; } &&
16882          { ac_try='test -s conftest.$ac_objext'
16883   { (case "(($ac_try" in
16884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885   *) ac_try_echo=$ac_try;;
16886 esac
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888   (eval "$ac_try") 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; }; then
16892   ac_header_compiler=yes
16893 else
16894   echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897         ac_header_compiler=no
16898 fi
16899
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16902 echo "${ECHO_T}$ac_header_compiler" >&6; }
16903
16904 # Is the header present?
16905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16907 cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h.  */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h.  */
16913 #include <$ac_header>
16914 _ACEOF
16915 if { (ac_try="$ac_cpp conftest.$ac_ext"
16916 case "(($ac_try" in
16917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918   *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16922   ac_status=$?
16923   grep -v '^ *+' conftest.er1 >conftest.err
16924   rm -f conftest.er1
16925   cat conftest.err >&5
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); } >/dev/null; then
16928   if test -s conftest.err; then
16929     ac_cpp_err=$ac_c_preproc_warn_flag
16930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16931   else
16932     ac_cpp_err=
16933   fi
16934 else
16935   ac_cpp_err=yes
16936 fi
16937 if test -z "$ac_cpp_err"; then
16938   ac_header_preproc=yes
16939 else
16940   echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16942
16943   ac_header_preproc=no
16944 fi
16945
16946 rm -f conftest.err conftest.$ac_ext
16947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16948 echo "${ECHO_T}$ac_header_preproc" >&6; }
16949
16950 # So?  What about this header?
16951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16952   yes:no: )
16953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16957     ac_header_preproc=yes
16958     ;;
16959   no:yes:* )
16960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16962     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16963 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16964     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16966     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16967 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16970     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16972     ( cat <<\_ASBOX
16973 ## ----------------------------------- ##
16974 ## Report this to llvmbugs@cs.uiuc.edu ##
16975 ## ----------------------------------- ##
16976 _ASBOX
16977      ) | sed "s/^/$as_me: WARNING:     /" >&2
16978     ;;
16979 esac
16980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16983   echo $ECHO_N "(cached) $ECHO_C" >&6
16984 else
16985   eval "$as_ac_Header=\$ac_header_preproc"
16986 fi
16987 ac_res=`eval echo '${'$as_ac_Header'}'`
16988                { echo "$as_me:$LINENO: result: $ac_res" >&5
16989 echo "${ECHO_T}$ac_res" >&6; }
16990
16991 fi
16992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16993   cat >>confdefs.h <<_ACEOF
16994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16995 _ACEOF
16996
16997 fi
16998
16999 done
17000
17001 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
17002
17003 for ac_header in pthread.h
17004 do
17005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 fi
17012 ac_res=`eval echo '${'$as_ac_Header'}'`
17013                { echo "$as_me:$LINENO: result: $ac_res" >&5
17014 echo "${ECHO_T}$ac_res" >&6; }
17015 else
17016   # Is the header compilable?
17017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025 $ac_includes_default
17026 #include <$ac_header>
17027 _ACEOF
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035   (eval "$ac_compile") 2>conftest.er1
17036   ac_status=$?
17037   grep -v '^ *+' conftest.er1 >conftest.err
17038   rm -f conftest.er1
17039   cat conftest.err >&5
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); } &&
17042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043   { (case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_try") 2>&5
17049   ac_status=$?
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); }; } &&
17052          { ac_try='test -s conftest.$ac_objext'
17053   { (case "(($ac_try" in
17054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055   *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058   (eval "$ac_try") 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062   ac_header_compiler=yes
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067         ac_header_compiler=no
17068 fi
17069
17070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17072 echo "${ECHO_T}$ac_header_compiler" >&6; }
17073
17074 # Is the header present?
17075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17077 cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h.  */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h.  */
17083 #include <$ac_header>
17084 _ACEOF
17085 if { (ac_try="$ac_cpp conftest.$ac_ext"
17086 case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17092   ac_status=$?
17093   grep -v '^ *+' conftest.er1 >conftest.err
17094   rm -f conftest.er1
17095   cat conftest.err >&5
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); } >/dev/null; then
17098   if test -s conftest.err; then
17099     ac_cpp_err=$ac_c_preproc_warn_flag
17100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17101   else
17102     ac_cpp_err=
17103   fi
17104 else
17105   ac_cpp_err=yes
17106 fi
17107 if test -z "$ac_cpp_err"; then
17108   ac_header_preproc=yes
17109 else
17110   echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17112
17113   ac_header_preproc=no
17114 fi
17115
17116 rm -f conftest.err conftest.$ac_ext
17117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17118 echo "${ECHO_T}$ac_header_preproc" >&6; }
17119
17120 # So?  What about this header?
17121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17122   yes:no: )
17123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17127     ac_header_preproc=yes
17128     ;;
17129   no:yes:* )
17130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17142     ( cat <<\_ASBOX
17143 ## ----------------------------------- ##
17144 ## Report this to llvmbugs@cs.uiuc.edu ##
17145 ## ----------------------------------- ##
17146 _ASBOX
17147      ) | sed "s/^/$as_me: WARNING:     /" >&2
17148     ;;
17149 esac
17150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17153   echo $ECHO_N "(cached) $ECHO_C" >&6
17154 else
17155   eval "$as_ac_Header=\$ac_header_preproc"
17156 fi
17157 ac_res=`eval echo '${'$as_ac_Header'}'`
17158                { echo "$as_me:$LINENO: result: $ac_res" >&5
17159 echo "${ECHO_T}$ac_res" >&6; }
17160
17161 fi
17162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17163   cat >>confdefs.h <<_ACEOF
17164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17165 _ACEOF
17166  HAVE_PTHREAD=1
17167
17168 else
17169   HAVE_PTHREAD=0
17170
17171 fi
17172
17173 done
17174
17175 else
17176   HAVE_PTHREAD=0
17177
17178 fi
17179
17180 if test "$llvm_cv_enable_libffi" = "yes" ; then
17181
17182
17183 for ac_header in ffi.h ffi/ffi.h
17184 do
17185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17187   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17190   echo $ECHO_N "(cached) $ECHO_C" >&6
17191 fi
17192 ac_res=`eval echo '${'$as_ac_Header'}'`
17193                { echo "$as_me:$LINENO: result: $ac_res" >&5
17194 echo "${ECHO_T}$ac_res" >&6; }
17195 else
17196   # Is the header compilable?
17197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h.  */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h.  */
17205 $ac_includes_default
17206 #include <$ac_header>
17207 _ACEOF
17208 rm -f conftest.$ac_objext
17209 if { (ac_try="$ac_compile"
17210 case "(($ac_try" in
17211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212   *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215   (eval "$ac_compile") 2>conftest.er1
17216   ac_status=$?
17217   grep -v '^ *+' conftest.er1 >conftest.err
17218   rm -f conftest.er1
17219   cat conftest.err >&5
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); } &&
17222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223   { (case "(($ac_try" in
17224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225   *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228   (eval "$ac_try") 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; } &&
17232          { ac_try='test -s conftest.$ac_objext'
17233   { (case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_try") 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ac_header_compiler=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247         ac_header_compiler=no
17248 fi
17249
17250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17252 echo "${ECHO_T}$ac_header_compiler" >&6; }
17253
17254 # Is the header present?
17255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17257 cat >conftest.$ac_ext <<_ACEOF
17258 /* confdefs.h.  */
17259 _ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h.  */
17263 #include <$ac_header>
17264 _ACEOF
17265 if { (ac_try="$ac_cpp conftest.$ac_ext"
17266 case "(($ac_try" in
17267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268   *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17272   ac_status=$?
17273   grep -v '^ *+' conftest.er1 >conftest.err
17274   rm -f conftest.er1
17275   cat conftest.err >&5
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); } >/dev/null; then
17278   if test -s conftest.err; then
17279     ac_cpp_err=$ac_c_preproc_warn_flag
17280     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17281   else
17282     ac_cpp_err=
17283   fi
17284 else
17285   ac_cpp_err=yes
17286 fi
17287 if test -z "$ac_cpp_err"; then
17288   ac_header_preproc=yes
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293   ac_header_preproc=no
17294 fi
17295
17296 rm -f conftest.err conftest.$ac_ext
17297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17298 echo "${ECHO_T}$ac_header_preproc" >&6; }
17299
17300 # So?  What about this header?
17301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17302   yes:no: )
17303     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17307     ac_header_preproc=yes
17308     ;;
17309   no:yes:* )
17310     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17312     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17313 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17314     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17316     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17317 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17320     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17322     ( cat <<\_ASBOX
17323 ## ----------------------------------- ##
17324 ## Report this to llvmbugs@cs.uiuc.edu ##
17325 ## ----------------------------------- ##
17326 _ASBOX
17327      ) | sed "s/^/$as_me: WARNING:     /" >&2
17328     ;;
17329 esac
17330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17333   echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335   eval "$as_ac_Header=\$ac_header_preproc"
17336 fi
17337 ac_res=`eval echo '${'$as_ac_Header'}'`
17338                { echo "$as_me:$LINENO: result: $ac_res" >&5
17339 echo "${ECHO_T}$ac_res" >&6; }
17340
17341 fi
17342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17343   cat >>confdefs.h <<_ACEOF
17344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17345 _ACEOF
17346
17347 fi
17348
17349 done
17350
17351 fi
17352
17353
17354 for ac_header in CrashReporterClient.h
17355 do
17356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17358   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17361   echo $ECHO_N "(cached) $ECHO_C" >&6
17362 fi
17363 ac_res=`eval echo '${'$as_ac_Header'}'`
17364                { echo "$as_me:$LINENO: result: $ac_res" >&5
17365 echo "${ECHO_T}$ac_res" >&6; }
17366 else
17367   # Is the header compilable?
17368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h.  */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h.  */
17376 $ac_includes_default
17377 #include <$ac_header>
17378 _ACEOF
17379 rm -f conftest.$ac_objext
17380 if { (ac_try="$ac_compile"
17381 case "(($ac_try" in
17382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383   *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386   (eval "$ac_compile") 2>conftest.er1
17387   ac_status=$?
17388   grep -v '^ *+' conftest.er1 >conftest.err
17389   rm -f conftest.er1
17390   cat conftest.err >&5
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); } &&
17393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17394   { (case "(($ac_try" in
17395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396   *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399   (eval "$ac_try") 2>&5
17400   ac_status=$?
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); }; } &&
17403          { ac_try='test -s conftest.$ac_objext'
17404   { (case "(($ac_try" in
17405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406   *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409   (eval "$ac_try") 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); }; }; then
17413   ac_header_compiler=yes
17414 else
17415   echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17417
17418         ac_header_compiler=no
17419 fi
17420
17421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17423 echo "${ECHO_T}$ac_header_compiler" >&6; }
17424
17425 # Is the header present?
17426 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17428 cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h.  */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h.  */
17434 #include <$ac_header>
17435 _ACEOF
17436 if { (ac_try="$ac_cpp conftest.$ac_ext"
17437 case "(($ac_try" in
17438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439   *) ac_try_echo=$ac_try;;
17440 esac
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17443   ac_status=$?
17444   grep -v '^ *+' conftest.er1 >conftest.err
17445   rm -f conftest.er1
17446   cat conftest.err >&5
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); } >/dev/null; then
17449   if test -s conftest.err; then
17450     ac_cpp_err=$ac_c_preproc_warn_flag
17451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17452   else
17453     ac_cpp_err=
17454   fi
17455 else
17456   ac_cpp_err=yes
17457 fi
17458 if test -z "$ac_cpp_err"; then
17459   ac_header_preproc=yes
17460 else
17461   echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464   ac_header_preproc=no
17465 fi
17466
17467 rm -f conftest.err conftest.$ac_ext
17468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17469 echo "${ECHO_T}$ac_header_preproc" >&6; }
17470
17471 # So?  What about this header?
17472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17473   yes:no: )
17474     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17478     ac_header_preproc=yes
17479     ;;
17480   no:yes:* )
17481     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17483     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17484 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17485     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17487     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17488 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17491     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17493     ( cat <<\_ASBOX
17494 ## ----------------------------------- ##
17495 ## Report this to llvmbugs@cs.uiuc.edu ##
17496 ## ----------------------------------- ##
17497 _ASBOX
17498      ) | sed "s/^/$as_me: WARNING:     /" >&2
17499     ;;
17500 esac
17501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17504   echo $ECHO_N "(cached) $ECHO_C" >&6
17505 else
17506   eval "$as_ac_Header=\$ac_header_preproc"
17507 fi
17508 ac_res=`eval echo '${'$as_ac_Header'}'`
17509                { echo "$as_me:$LINENO: result: $ac_res" >&5
17510 echo "${ECHO_T}$ac_res" >&6; }
17511
17512 fi
17513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17514   cat >>confdefs.h <<_ACEOF
17515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17516 _ACEOF
17517
17518 fi
17519
17520 done
17521
17522
17523 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17524 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h.  */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h.  */
17531 extern const char *__crashreporter_info__;
17532       int main() {
17533         __crashreporter_info__ = "test";
17534         return 0;
17535       }
17536
17537 _ACEOF
17538 rm -f conftest.$ac_objext conftest$ac_exeext
17539 if { (ac_try="$ac_link"
17540 case "(($ac_try" in
17541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542   *) ac_try_echo=$ac_try;;
17543 esac
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545   (eval "$ac_link") 2>conftest.er1
17546   ac_status=$?
17547   grep -v '^ *+' conftest.er1 >conftest.err
17548   rm -f conftest.er1
17549   cat conftest.err >&5
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); } &&
17552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553   { (case "(($ac_try" in
17554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555   *) ac_try_echo=$ac_try;;
17556 esac
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558   (eval "$ac_try") 2>&5
17559   ac_status=$?
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); }; } &&
17562          { ac_try='test -s conftest$ac_exeext'
17563   { (case "(($ac_try" in
17564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565   *) ac_try_echo=$ac_try;;
17566 esac
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568   (eval "$ac_try") 2>&5
17569   ac_status=$?
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); }; }; then
17572   { echo "$as_me:$LINENO: result: yes" >&5
17573 echo "${ECHO_T}yes" >&6; }
17574
17575 cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_CRASHREPORTER_INFO 1
17577 _ACEOF
17578
17579 else
17580   echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17582
17583         { echo "$as_me:$LINENO: result: no" >&5
17584 echo "${ECHO_T}no" >&6; }
17585
17586 cat >>confdefs.h <<\_ACEOF
17587 #define HAVE_CRASHREPORTER_INFO 0
17588 _ACEOF
17589
17590 fi
17591
17592 rm -f core conftest.err conftest.$ac_objext \
17593       conftest$ac_exeext conftest.$ac_ext
17594
17595
17596
17597
17598   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17599 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17600 if test "${ac_cv_huge_val_sanity+set}" = set; then
17601   echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603
17604     ac_ext=cpp
17605 ac_cpp='$CXXCPP $CPPFLAGS'
17606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17609
17610     ac_save_CXXFLAGS=$CXXFLAGS
17611     CXXFLAGS=-pedantic
17612     if test "$cross_compiling" = yes; then
17613   ac_cv_huge_val_sanity=yes
17614 else
17615   cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h.  */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h.  */
17621 #include <math.h>
17622 int
17623 main ()
17624 {
17625 double x = HUGE_VAL; return x != x;
17626   ;
17627   return 0;
17628 }
17629 _ACEOF
17630 rm -f conftest$ac_exeext
17631 if { (ac_try="$ac_link"
17632 case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_link") 2>&5
17638   ac_status=$?
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17641   { (case "(($ac_try" in
17642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643   *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646   (eval "$ac_try") 2>&5
17647   ac_status=$?
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); }; }; then
17650   ac_cv_huge_val_sanity=yes
17651 else
17652   echo "$as_me: program exited with status $ac_status" >&5
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17655
17656 ( exit $ac_status )
17657 ac_cv_huge_val_sanity=no
17658 fi
17659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17660 fi
17661
17662
17663     CXXFLAGS=$ac_save_CXXFLAGS
17664     ac_ext=c
17665 ac_cpp='$CPP $CPPFLAGS'
17666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17669
17670
17671 fi
17672 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17673 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17674   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17675
17676
17677 { echo "$as_me:$LINENO: checking for pid_t" >&5
17678 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17679 if test "${ac_cv_type_pid_t+set}" = set; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682   cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 $ac_includes_default
17689 typedef pid_t ac__type_new_;
17690 int
17691 main ()
17692 {
17693 if ((ac__type_new_ *) 0)
17694   return 0;
17695 if (sizeof (ac__type_new_))
17696   return 0;
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_compile") 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716   { (case "(($ac_try" in
17717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718   *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721   (eval "$ac_try") 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; } &&
17725          { ac_try='test -s conftest.$ac_objext'
17726   { (case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_try") 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; }; then
17735   ac_cv_type_pid_t=yes
17736 else
17737   echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740         ac_cv_type_pid_t=no
17741 fi
17742
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744 fi
17745 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17746 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17747 if test $ac_cv_type_pid_t = yes; then
17748   :
17749 else
17750
17751 cat >>confdefs.h <<_ACEOF
17752 #define pid_t int
17753 _ACEOF
17754
17755 fi
17756
17757 { echo "$as_me:$LINENO: checking for size_t" >&5
17758 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17759 if test "${ac_cv_type_size_t+set}" = set; then
17760   echo $ECHO_N "(cached) $ECHO_C" >&6
17761 else
17762   cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h.  */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h.  */
17768 $ac_includes_default
17769 typedef size_t ac__type_new_;
17770 int
17771 main ()
17772 {
17773 if ((ac__type_new_ *) 0)
17774   return 0;
17775 if (sizeof (ac__type_new_))
17776   return 0;
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 rm -f conftest.$ac_objext
17782 if { (ac_try="$ac_compile"
17783 case "(($ac_try" in
17784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785   *) ac_try_echo=$ac_try;;
17786 esac
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788   (eval "$ac_compile") 2>conftest.er1
17789   ac_status=$?
17790   grep -v '^ *+' conftest.er1 >conftest.err
17791   rm -f conftest.er1
17792   cat conftest.err >&5
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); } &&
17795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17796   { (case "(($ac_try" in
17797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798   *) ac_try_echo=$ac_try;;
17799 esac
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801   (eval "$ac_try") 2>&5
17802   ac_status=$?
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); }; } &&
17805          { ac_try='test -s conftest.$ac_objext'
17806   { (case "(($ac_try" in
17807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808   *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811   (eval "$ac_try") 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); }; }; then
17815   ac_cv_type_size_t=yes
17816 else
17817   echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17819
17820         ac_cv_type_size_t=no
17821 fi
17822
17823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17824 fi
17825 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17826 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17827 if test $ac_cv_type_size_t = yes; then
17828   :
17829 else
17830
17831 cat >>confdefs.h <<_ACEOF
17832 #define size_t unsigned int
17833 _ACEOF
17834
17835 fi
17836
17837
17838 cat >>confdefs.h <<_ACEOF
17839 #define RETSIGTYPE void
17840 _ACEOF
17841
17842 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17843 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17844 if test "${ac_cv_struct_tm+set}" = set; then
17845   echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847   cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h.  */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h.  */
17853 #include <sys/types.h>
17854 #include <time.h>
17855
17856 int
17857 main ()
17858 {
17859 struct tm *tp; tp->tm_sec;
17860   ;
17861   return 0;
17862 }
17863 _ACEOF
17864 rm -f conftest.$ac_objext
17865 if { (ac_try="$ac_compile"
17866 case "(($ac_try" in
17867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868   *) ac_try_echo=$ac_try;;
17869 esac
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871   (eval "$ac_compile") 2>conftest.er1
17872   ac_status=$?
17873   grep -v '^ *+' conftest.er1 >conftest.err
17874   rm -f conftest.er1
17875   cat conftest.err >&5
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); } &&
17878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17879   { (case "(($ac_try" in
17880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881   *) ac_try_echo=$ac_try;;
17882 esac
17883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17884   (eval "$ac_try") 2>&5
17885   ac_status=$?
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); }; } &&
17888          { ac_try='test -s conftest.$ac_objext'
17889   { (case "(($ac_try" in
17890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891   *) ac_try_echo=$ac_try;;
17892 esac
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894   (eval "$ac_try") 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); }; }; then
17898   ac_cv_struct_tm=time.h
17899 else
17900   echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17902
17903         ac_cv_struct_tm=sys/time.h
17904 fi
17905
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17907 fi
17908 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17909 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17910 if test $ac_cv_struct_tm = sys/time.h; then
17911
17912 cat >>confdefs.h <<\_ACEOF
17913 #define TM_IN_SYS_TIME 1
17914 _ACEOF
17915
17916 fi
17917
17918 { echo "$as_me:$LINENO: checking for int64_t" >&5
17919 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17920 if test "${ac_cv_type_int64_t+set}" = set; then
17921   echo $ECHO_N "(cached) $ECHO_C" >&6
17922 else
17923   cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h.  */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h.  */
17929 $ac_includes_default
17930 typedef int64_t ac__type_new_;
17931 int
17932 main ()
17933 {
17934 if ((ac__type_new_ *) 0)
17935   return 0;
17936 if (sizeof (ac__type_new_))
17937   return 0;
17938   ;
17939   return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest.$ac_objext
17943 if { (ac_try="$ac_compile"
17944 case "(($ac_try" in
17945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946   *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949   (eval "$ac_compile") 2>conftest.er1
17950   ac_status=$?
17951   grep -v '^ *+' conftest.er1 >conftest.err
17952   rm -f conftest.er1
17953   cat conftest.err >&5
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); } &&
17956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17957   { (case "(($ac_try" in
17958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959   *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962   (eval "$ac_try") 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; } &&
17966          { ac_try='test -s conftest.$ac_objext'
17967   { (case "(($ac_try" in
17968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969   *) ac_try_echo=$ac_try;;
17970 esac
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972   (eval "$ac_try") 2>&5
17973   ac_status=$?
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; }; then
17976   ac_cv_type_int64_t=yes
17977 else
17978   echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17980
17981         ac_cv_type_int64_t=no
17982 fi
17983
17984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17985 fi
17986 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17987 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17988 if test $ac_cv_type_int64_t = yes; then
17989
17990 cat >>confdefs.h <<_ACEOF
17991 #define HAVE_INT64_T 1
17992 _ACEOF
17993
17994
17995 else
17996   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17997 echo "$as_me: error: Type int64_t required but not found" >&2;}
17998    { (exit 1); exit 1; }; }
17999 fi
18000
18001 { echo "$as_me:$LINENO: checking for uint64_t" >&5
18002 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
18003 if test "${ac_cv_type_uint64_t+set}" = set; then
18004   echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006   cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012 $ac_includes_default
18013 typedef uint64_t ac__type_new_;
18014 int
18015 main ()
18016 {
18017 if ((ac__type_new_ *) 0)
18018   return 0;
18019 if (sizeof (ac__type_new_))
18020   return 0;
18021   ;
18022   return 0;
18023 }
18024 _ACEOF
18025 rm -f conftest.$ac_objext
18026 if { (ac_try="$ac_compile"
18027 case "(($ac_try" in
18028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029   *) ac_try_echo=$ac_try;;
18030 esac
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032   (eval "$ac_compile") 2>conftest.er1
18033   ac_status=$?
18034   grep -v '^ *+' conftest.er1 >conftest.err
18035   rm -f conftest.er1
18036   cat conftest.err >&5
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); } &&
18039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18040   { (case "(($ac_try" in
18041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042   *) ac_try_echo=$ac_try;;
18043 esac
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045   (eval "$ac_try") 2>&5
18046   ac_status=$?
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); }; } &&
18049          { ac_try='test -s conftest.$ac_objext'
18050   { (case "(($ac_try" in
18051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052   *) ac_try_echo=$ac_try;;
18053 esac
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055   (eval "$ac_try") 2>&5
18056   ac_status=$?
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); }; }; then
18059   ac_cv_type_uint64_t=yes
18060 else
18061   echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18063
18064         ac_cv_type_uint64_t=no
18065 fi
18066
18067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18068 fi
18069 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18070 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18071 if test $ac_cv_type_uint64_t = yes; then
18072
18073 cat >>confdefs.h <<_ACEOF
18074 #define HAVE_UINT64_T 1
18075 _ACEOF
18076
18077
18078 else
18079   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18080 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18081 if test "${ac_cv_type_u_int64_t+set}" = set; then
18082   echo $ECHO_N "(cached) $ECHO_C" >&6
18083 else
18084   cat >conftest.$ac_ext <<_ACEOF
18085 /* confdefs.h.  */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h.  */
18090 $ac_includes_default
18091 typedef u_int64_t ac__type_new_;
18092 int
18093 main ()
18094 {
18095 if ((ac__type_new_ *) 0)
18096   return 0;
18097 if (sizeof (ac__type_new_))
18098   return 0;
18099   ;
18100   return 0;
18101 }
18102 _ACEOF
18103 rm -f conftest.$ac_objext
18104 if { (ac_try="$ac_compile"
18105 case "(($ac_try" in
18106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107   *) ac_try_echo=$ac_try;;
18108 esac
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110   (eval "$ac_compile") 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } &&
18117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18118   { (case "(($ac_try" in
18119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120   *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123   (eval "$ac_try") 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; } &&
18127          { ac_try='test -s conftest.$ac_objext'
18128   { (case "(($ac_try" in
18129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130   *) ac_try_echo=$ac_try;;
18131 esac
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133   (eval "$ac_try") 2>&5
18134   ac_status=$?
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); }; }; then
18137   ac_cv_type_u_int64_t=yes
18138 else
18139   echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142         ac_cv_type_u_int64_t=no
18143 fi
18144
18145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18146 fi
18147 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18148 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18149 if test $ac_cv_type_u_int64_t = yes; then
18150
18151 cat >>confdefs.h <<_ACEOF
18152 #define HAVE_U_INT64_T 1
18153 _ACEOF
18154
18155
18156 else
18157   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18158 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18159    { (exit 1); exit 1; }; }
18160 fi
18161
18162 fi
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18174 do
18175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18179   echo $ECHO_N "(cached) $ECHO_C" >&6
18180 else
18181   cat >conftest.$ac_ext <<_ACEOF
18182 /* confdefs.h.  */
18183 _ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h.  */
18187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18189 #define $ac_func innocuous_$ac_func
18190
18191 /* System header to define __stub macros and hopefully few prototypes,
18192     which can conflict with char $ac_func (); below.
18193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18194     <limits.h> exists even on freestanding compilers.  */
18195
18196 #ifdef __STDC__
18197 # include <limits.h>
18198 #else
18199 # include <assert.h>
18200 #endif
18201
18202 #undef $ac_func
18203
18204 /* Override any GCC internal prototype to avoid an error.
18205    Use char because int might match the return type of a GCC
18206    builtin and then its argument prototype would still apply.  */
18207 #ifdef __cplusplus
18208 extern "C"
18209 #endif
18210 char $ac_func ();
18211 /* The GNU C library defines this for functions which it implements
18212     to always fail with ENOSYS.  Some functions are actually named
18213     something starting with __ and the normal name is an alias.  */
18214 #if defined __stub_$ac_func || defined __stub___$ac_func
18215 choke me
18216 #endif
18217
18218 int
18219 main ()
18220 {
18221 return $ac_func ();
18222   ;
18223   return 0;
18224 }
18225 _ACEOF
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (ac_try="$ac_link"
18228 case "(($ac_try" in
18229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230   *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233   (eval "$ac_link") 2>conftest.er1
18234   ac_status=$?
18235   grep -v '^ *+' conftest.er1 >conftest.err
18236   rm -f conftest.er1
18237   cat conftest.err >&5
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); } &&
18240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18241   { (case "(($ac_try" in
18242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243   *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246   (eval "$ac_try") 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; } &&
18250          { ac_try='test -s conftest$ac_exeext'
18251   { (case "(($ac_try" in
18252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253   *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256   (eval "$ac_try") 2>&5
18257   ac_status=$?
18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259   (exit $ac_status); }; }; then
18260   eval "$as_ac_var=yes"
18261 else
18262   echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265         eval "$as_ac_var=no"
18266 fi
18267
18268 rm -f core conftest.err conftest.$ac_objext \
18269       conftest$ac_exeext conftest.$ac_ext
18270 fi
18271 ac_res=`eval echo '${'$as_ac_var'}'`
18272                { echo "$as_me:$LINENO: result: $ac_res" >&5
18273 echo "${ECHO_T}$ac_res" >&6; }
18274 if test `eval echo '${'$as_ac_var'}'` = yes; then
18275   cat >>confdefs.h <<_ACEOF
18276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18277 _ACEOF
18278
18279 fi
18280 done
18281
18282
18283
18284
18285
18286 for ac_func in powf fmodf strtof round
18287 do
18288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18292   echo $ECHO_N "(cached) $ECHO_C" >&6
18293 else
18294   cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h.  */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h.  */
18300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18302 #define $ac_func innocuous_$ac_func
18303
18304 /* System header to define __stub macros and hopefully few prototypes,
18305     which can conflict with char $ac_func (); below.
18306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18307     <limits.h> exists even on freestanding compilers.  */
18308
18309 #ifdef __STDC__
18310 # include <limits.h>
18311 #else
18312 # include <assert.h>
18313 #endif
18314
18315 #undef $ac_func
18316
18317 /* Override any GCC internal prototype to avoid an error.
18318    Use char because int might match the return type of a GCC
18319    builtin and then its argument prototype would still apply.  */
18320 #ifdef __cplusplus
18321 extern "C"
18322 #endif
18323 char $ac_func ();
18324 /* The GNU C library defines this for functions which it implements
18325     to always fail with ENOSYS.  Some functions are actually named
18326     something starting with __ and the normal name is an alias.  */
18327 #if defined __stub_$ac_func || defined __stub___$ac_func
18328 choke me
18329 #endif
18330
18331 int
18332 main ()
18333 {
18334 return $ac_func ();
18335   ;
18336   return 0;
18337 }
18338 _ACEOF
18339 rm -f conftest.$ac_objext conftest$ac_exeext
18340 if { (ac_try="$ac_link"
18341 case "(($ac_try" in
18342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343   *) ac_try_echo=$ac_try;;
18344 esac
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346   (eval "$ac_link") 2>conftest.er1
18347   ac_status=$?
18348   grep -v '^ *+' conftest.er1 >conftest.err
18349   rm -f conftest.er1
18350   cat conftest.err >&5
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); } &&
18353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18354   { (case "(($ac_try" in
18355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356   *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359   (eval "$ac_try") 2>&5
18360   ac_status=$?
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); }; } &&
18363          { ac_try='test -s conftest$ac_exeext'
18364   { (case "(($ac_try" in
18365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366   *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369   (eval "$ac_try") 2>&5
18370   ac_status=$?
18371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372   (exit $ac_status); }; }; then
18373   eval "$as_ac_var=yes"
18374 else
18375   echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18377
18378         eval "$as_ac_var=no"
18379 fi
18380
18381 rm -f core conftest.err conftest.$ac_objext \
18382       conftest$ac_exeext conftest.$ac_ext
18383 fi
18384 ac_res=`eval echo '${'$as_ac_var'}'`
18385                { echo "$as_me:$LINENO: result: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18387 if test `eval echo '${'$as_ac_var'}'` = yes; then
18388   cat >>confdefs.h <<_ACEOF
18389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18390 _ACEOF
18391
18392 fi
18393 done
18394
18395
18396
18397
18398
18399
18400 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18401 do
18402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18406   echo $ECHO_N "(cached) $ECHO_C" >&6
18407 else
18408   cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h.  */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h.  */
18414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18416 #define $ac_func innocuous_$ac_func
18417
18418 /* System header to define __stub macros and hopefully few prototypes,
18419     which can conflict with char $ac_func (); below.
18420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421     <limits.h> exists even on freestanding compilers.  */
18422
18423 #ifdef __STDC__
18424 # include <limits.h>
18425 #else
18426 # include <assert.h>
18427 #endif
18428
18429 #undef $ac_func
18430
18431 /* Override any GCC internal prototype to avoid an error.
18432    Use char because int might match the return type of a GCC
18433    builtin and then its argument prototype would still apply.  */
18434 #ifdef __cplusplus
18435 extern "C"
18436 #endif
18437 char $ac_func ();
18438 /* The GNU C library defines this for functions which it implements
18439     to always fail with ENOSYS.  Some functions are actually named
18440     something starting with __ and the normal name is an alias.  */
18441 #if defined __stub_$ac_func || defined __stub___$ac_func
18442 choke me
18443 #endif
18444
18445 int
18446 main ()
18447 {
18448 return $ac_func ();
18449   ;
18450   return 0;
18451 }
18452 _ACEOF
18453 rm -f conftest.$ac_objext conftest$ac_exeext
18454 if { (ac_try="$ac_link"
18455 case "(($ac_try" in
18456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457   *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460   (eval "$ac_link") 2>conftest.er1
18461   ac_status=$?
18462   grep -v '^ *+' conftest.er1 >conftest.err
18463   rm -f conftest.er1
18464   cat conftest.err >&5
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); } &&
18467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18468   { (case "(($ac_try" in
18469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470   *) ac_try_echo=$ac_try;;
18471 esac
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473   (eval "$ac_try") 2>&5
18474   ac_status=$?
18475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); }; } &&
18477          { ac_try='test -s conftest$ac_exeext'
18478   { (case "(($ac_try" in
18479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480   *) ac_try_echo=$ac_try;;
18481 esac
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483   (eval "$ac_try") 2>&5
18484   ac_status=$?
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); }; }; then
18487   eval "$as_ac_var=yes"
18488 else
18489   echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18491
18492         eval "$as_ac_var=no"
18493 fi
18494
18495 rm -f core conftest.err conftest.$ac_objext \
18496       conftest$ac_exeext conftest.$ac_ext
18497 fi
18498 ac_res=`eval echo '${'$as_ac_var'}'`
18499                { echo "$as_me:$LINENO: result: $ac_res" >&5
18500 echo "${ECHO_T}$ac_res" >&6; }
18501 if test `eval echo '${'$as_ac_var'}'` = yes; then
18502   cat >>confdefs.h <<_ACEOF
18503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18504 _ACEOF
18505
18506 fi
18507 done
18508
18509
18510
18511
18512 for ac_func in isatty mkdtemp mkstemp
18513 do
18514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18518   echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520   cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h.  */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h.  */
18526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18528 #define $ac_func innocuous_$ac_func
18529
18530 /* System header to define __stub macros and hopefully few prototypes,
18531     which can conflict with char $ac_func (); below.
18532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18533     <limits.h> exists even on freestanding compilers.  */
18534
18535 #ifdef __STDC__
18536 # include <limits.h>
18537 #else
18538 # include <assert.h>
18539 #endif
18540
18541 #undef $ac_func
18542
18543 /* Override any GCC internal prototype to avoid an error.
18544    Use char because int might match the return type of a GCC
18545    builtin and then its argument prototype would still apply.  */
18546 #ifdef __cplusplus
18547 extern "C"
18548 #endif
18549 char $ac_func ();
18550 /* The GNU C library defines this for functions which it implements
18551     to always fail with ENOSYS.  Some functions are actually named
18552     something starting with __ and the normal name is an alias.  */
18553 #if defined __stub_$ac_func || defined __stub___$ac_func
18554 choke me
18555 #endif
18556
18557 int
18558 main ()
18559 {
18560 return $ac_func ();
18561   ;
18562   return 0;
18563 }
18564 _ACEOF
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (ac_try="$ac_link"
18567 case "(($ac_try" in
18568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569   *) ac_try_echo=$ac_try;;
18570 esac
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572   (eval "$ac_link") 2>conftest.er1
18573   ac_status=$?
18574   grep -v '^ *+' conftest.er1 >conftest.err
18575   rm -f conftest.er1
18576   cat conftest.err >&5
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); } &&
18579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18580   { (case "(($ac_try" in
18581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582   *) ac_try_echo=$ac_try;;
18583 esac
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585   (eval "$ac_try") 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; } &&
18589          { ac_try='test -s conftest$ac_exeext'
18590   { (case "(($ac_try" in
18591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592   *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595   (eval "$ac_try") 2>&5
18596   ac_status=$?
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); }; }; then
18599   eval "$as_ac_var=yes"
18600 else
18601   echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18603
18604         eval "$as_ac_var=no"
18605 fi
18606
18607 rm -f core conftest.err conftest.$ac_objext \
18608       conftest$ac_exeext conftest.$ac_ext
18609 fi
18610 ac_res=`eval echo '${'$as_ac_var'}'`
18611                { echo "$as_me:$LINENO: result: $ac_res" >&5
18612 echo "${ECHO_T}$ac_res" >&6; }
18613 if test `eval echo '${'$as_ac_var'}'` = yes; then
18614   cat >>confdefs.h <<_ACEOF
18615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18616 _ACEOF
18617
18618 fi
18619 done
18620
18621
18622
18623
18624
18625
18626
18627 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18628 do
18629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18633   echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635   cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h.  */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h.  */
18641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18643 #define $ac_func innocuous_$ac_func
18644
18645 /* System header to define __stub macros and hopefully few prototypes,
18646     which can conflict with char $ac_func (); below.
18647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18648     <limits.h> exists even on freestanding compilers.  */
18649
18650 #ifdef __STDC__
18651 # include <limits.h>
18652 #else
18653 # include <assert.h>
18654 #endif
18655
18656 #undef $ac_func
18657
18658 /* Override any GCC internal prototype to avoid an error.
18659    Use char because int might match the return type of a GCC
18660    builtin and then its argument prototype would still apply.  */
18661 #ifdef __cplusplus
18662 extern "C"
18663 #endif
18664 char $ac_func ();
18665 /* The GNU C library defines this for functions which it implements
18666     to always fail with ENOSYS.  Some functions are actually named
18667     something starting with __ and the normal name is an alias.  */
18668 #if defined __stub_$ac_func || defined __stub___$ac_func
18669 choke me
18670 #endif
18671
18672 int
18673 main ()
18674 {
18675 return $ac_func ();
18676   ;
18677   return 0;
18678 }
18679 _ACEOF
18680 rm -f conftest.$ac_objext conftest$ac_exeext
18681 if { (ac_try="$ac_link"
18682 case "(($ac_try" in
18683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684   *) ac_try_echo=$ac_try;;
18685 esac
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687   (eval "$ac_link") 2>conftest.er1
18688   ac_status=$?
18689   grep -v '^ *+' conftest.er1 >conftest.err
18690   rm -f conftest.er1
18691   cat conftest.err >&5
18692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); } &&
18694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18695   { (case "(($ac_try" in
18696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697   *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700   (eval "$ac_try") 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; } &&
18704          { ac_try='test -s conftest$ac_exeext'
18705   { (case "(($ac_try" in
18706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707   *) ac_try_echo=$ac_try;;
18708 esac
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710   (eval "$ac_try") 2>&5
18711   ac_status=$?
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); }; }; then
18714   eval "$as_ac_var=yes"
18715 else
18716   echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18718
18719         eval "$as_ac_var=no"
18720 fi
18721
18722 rm -f core conftest.err conftest.$ac_objext \
18723       conftest$ac_exeext conftest.$ac_ext
18724 fi
18725 ac_res=`eval echo '${'$as_ac_var'}'`
18726                { echo "$as_me:$LINENO: result: $ac_res" >&5
18727 echo "${ECHO_T}$ac_res" >&6; }
18728 if test `eval echo '${'$as_ac_var'}'` = yes; then
18729   cat >>confdefs.h <<_ACEOF
18730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18731 _ACEOF
18732
18733 fi
18734 done
18735
18736
18737
18738
18739 for ac_func in strerror strerror_r setenv
18740 do
18741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18745   echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747   cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h.  */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h.  */
18753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18755 #define $ac_func innocuous_$ac_func
18756
18757 /* System header to define __stub macros and hopefully few prototypes,
18758     which can conflict with char $ac_func (); below.
18759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18760     <limits.h> exists even on freestanding compilers.  */
18761
18762 #ifdef __STDC__
18763 # include <limits.h>
18764 #else
18765 # include <assert.h>
18766 #endif
18767
18768 #undef $ac_func
18769
18770 /* Override any GCC internal prototype to avoid an error.
18771    Use char because int might match the return type of a GCC
18772    builtin and then its argument prototype would still apply.  */
18773 #ifdef __cplusplus
18774 extern "C"
18775 #endif
18776 char $ac_func ();
18777 /* The GNU C library defines this for functions which it implements
18778     to always fail with ENOSYS.  Some functions are actually named
18779     something starting with __ and the normal name is an alias.  */
18780 #if defined __stub_$ac_func || defined __stub___$ac_func
18781 choke me
18782 #endif
18783
18784 int
18785 main ()
18786 {
18787 return $ac_func ();
18788   ;
18789   return 0;
18790 }
18791 _ACEOF
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (ac_try="$ac_link"
18794 case "(($ac_try" in
18795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796   *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799   (eval "$ac_link") 2>conftest.er1
18800   ac_status=$?
18801   grep -v '^ *+' conftest.er1 >conftest.err
18802   rm -f conftest.er1
18803   cat conftest.err >&5
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } &&
18806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18807   { (case "(($ac_try" in
18808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809   *) ac_try_echo=$ac_try;;
18810 esac
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812   (eval "$ac_try") 2>&5
18813   ac_status=$?
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); }; } &&
18816          { ac_try='test -s conftest$ac_exeext'
18817   { (case "(($ac_try" in
18818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819   *) ac_try_echo=$ac_try;;
18820 esac
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822   (eval "$ac_try") 2>&5
18823   ac_status=$?
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); }; }; then
18826   eval "$as_ac_var=yes"
18827 else
18828   echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18830
18831         eval "$as_ac_var=no"
18832 fi
18833
18834 rm -f core conftest.err conftest.$ac_objext \
18835       conftest$ac_exeext conftest.$ac_ext
18836 fi
18837 ac_res=`eval echo '${'$as_ac_var'}'`
18838                { echo "$as_me:$LINENO: result: $ac_res" >&5
18839 echo "${ECHO_T}$ac_res" >&6; }
18840 if test `eval echo '${'$as_ac_var'}'` = yes; then
18841   cat >>confdefs.h <<_ACEOF
18842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18843 _ACEOF
18844
18845 fi
18846 done
18847
18848
18849
18850
18851
18852 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18853 do
18854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18858   echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860   cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h.  */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h.  */
18866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18868 #define $ac_func innocuous_$ac_func
18869
18870 /* System header to define __stub macros and hopefully few prototypes,
18871     which can conflict with char $ac_func (); below.
18872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18873     <limits.h> exists even on freestanding compilers.  */
18874
18875 #ifdef __STDC__
18876 # include <limits.h>
18877 #else
18878 # include <assert.h>
18879 #endif
18880
18881 #undef $ac_func
18882
18883 /* Override any GCC internal prototype to avoid an error.
18884    Use char because int might match the return type of a GCC
18885    builtin and then its argument prototype would still apply.  */
18886 #ifdef __cplusplus
18887 extern "C"
18888 #endif
18889 char $ac_func ();
18890 /* The GNU C library defines this for functions which it implements
18891     to always fail with ENOSYS.  Some functions are actually named
18892     something starting with __ and the normal name is an alias.  */
18893 #if defined __stub_$ac_func || defined __stub___$ac_func
18894 choke me
18895 #endif
18896
18897 int
18898 main ()
18899 {
18900 return $ac_func ();
18901   ;
18902   return 0;
18903 }
18904 _ACEOF
18905 rm -f conftest.$ac_objext conftest$ac_exeext
18906 if { (ac_try="$ac_link"
18907 case "(($ac_try" in
18908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909   *) ac_try_echo=$ac_try;;
18910 esac
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912   (eval "$ac_link") 2>conftest.er1
18913   ac_status=$?
18914   grep -v '^ *+' conftest.er1 >conftest.err
18915   rm -f conftest.er1
18916   cat conftest.err >&5
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); } &&
18919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18920   { (case "(($ac_try" in
18921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922   *) ac_try_echo=$ac_try;;
18923 esac
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925   (eval "$ac_try") 2>&5
18926   ac_status=$?
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); }; } &&
18929          { ac_try='test -s conftest$ac_exeext'
18930   { (case "(($ac_try" in
18931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932   *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935   (eval "$ac_try") 2>&5
18936   ac_status=$?
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); }; }; then
18939   eval "$as_ac_var=yes"
18940 else
18941   echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944         eval "$as_ac_var=no"
18945 fi
18946
18947 rm -f core conftest.err conftest.$ac_objext \
18948       conftest$ac_exeext conftest.$ac_ext
18949 fi
18950 ac_res=`eval echo '${'$as_ac_var'}'`
18951                { echo "$as_me:$LINENO: result: $ac_res" >&5
18952 echo "${ECHO_T}$ac_res" >&6; }
18953 if test `eval echo '${'$as_ac_var'}'` = yes; then
18954   cat >>confdefs.h <<_ACEOF
18955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18956 _ACEOF
18957
18958 fi
18959 done
18960
18961
18962
18963
18964
18965
18966 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18967 do
18968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18972   echo $ECHO_N "(cached) $ECHO_C" >&6
18973 else
18974   cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h.  */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h.  */
18980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18982 #define $ac_func innocuous_$ac_func
18983
18984 /* System header to define __stub macros and hopefully few prototypes,
18985     which can conflict with char $ac_func (); below.
18986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18987     <limits.h> exists even on freestanding compilers.  */
18988
18989 #ifdef __STDC__
18990 # include <limits.h>
18991 #else
18992 # include <assert.h>
18993 #endif
18994
18995 #undef $ac_func
18996
18997 /* Override any GCC internal prototype to avoid an error.
18998    Use char because int might match the return type of a GCC
18999    builtin and then its argument prototype would still apply.  */
19000 #ifdef __cplusplus
19001 extern "C"
19002 #endif
19003 char $ac_func ();
19004 /* The GNU C library defines this for functions which it implements
19005     to always fail with ENOSYS.  Some functions are actually named
19006     something starting with __ and the normal name is an alias.  */
19007 #if defined __stub_$ac_func || defined __stub___$ac_func
19008 choke me
19009 #endif
19010
19011 int
19012 main ()
19013 {
19014 return $ac_func ();
19015   ;
19016   return 0;
19017 }
19018 _ACEOF
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (ac_try="$ac_link"
19021 case "(($ac_try" in
19022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023   *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026   (eval "$ac_link") 2>conftest.er1
19027   ac_status=$?
19028   grep -v '^ *+' conftest.er1 >conftest.err
19029   rm -f conftest.er1
19030   cat conftest.err >&5
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); } &&
19033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19034   { (case "(($ac_try" in
19035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036   *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039   (eval "$ac_try") 2>&5
19040   ac_status=$?
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); }; } &&
19043          { ac_try='test -s conftest$ac_exeext'
19044   { (case "(($ac_try" in
19045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046   *) ac_try_echo=$ac_try;;
19047 esac
19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049   (eval "$ac_try") 2>&5
19050   ac_status=$?
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); }; }; then
19053   eval "$as_ac_var=yes"
19054 else
19055   echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19057
19058         eval "$as_ac_var=no"
19059 fi
19060
19061 rm -f core conftest.err conftest.$ac_objext \
19062       conftest$ac_exeext conftest.$ac_ext
19063 fi
19064 ac_res=`eval echo '${'$as_ac_var'}'`
19065                { echo "$as_me:$LINENO: result: $ac_res" >&5
19066 echo "${ECHO_T}$ac_res" >&6; }
19067 if test `eval echo '${'$as_ac_var'}'` = yes; then
19068   cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19070 _ACEOF
19071
19072 fi
19073 done
19074
19075 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19076 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19077 if test "${llvm_cv_c_printf_a+set}" = set; then
19078   echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080   ac_ext=c
19081 ac_cpp='$CPP $CPPFLAGS'
19082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19085
19086  if test "$cross_compiling" = yes; then
19087   llvmac_cv_c_printf_a=no
19088 else
19089   cat >conftest.$ac_ext <<_ACEOF
19090
19091   /* confdefs.h.  */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h.  */
19096
19097 #include <stdio.h>
19098 #include <stdlib.h>
19099
19100 int
19101 main ()
19102 {
19103
19104 volatile double A, B;
19105 char Buffer[100];
19106 A = 1;
19107 A /= 10.0;
19108 sprintf(Buffer, "%a", A);
19109 B = atof(Buffer);
19110 if (A != B)
19111   return (1);
19112 if (A != 0x1.999999999999ap-4)
19113   return (1);
19114 return (0);
19115   ;
19116   return 0;
19117 }
19118 _ACEOF
19119 rm -f conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123   *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126   (eval "$ac_link") 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19130   { (case "(($ac_try" in
19131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132   *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135   (eval "$ac_try") 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); }; }; then
19139   llvm_cv_c_printf_a=yes
19140 else
19141   echo "$as_me: program exited with status $ac_status" >&5
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19144
19145 ( exit $ac_status )
19146 llvmac_cv_c_printf_a=no
19147 fi
19148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19149 fi
19150
19151
19152  ac_ext=c
19153 ac_cpp='$CPP $CPPFLAGS'
19154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19157
19158 fi
19159 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19160 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19161  if test "$llvm_cv_c_printf_a" = "yes"; then
19162
19163 cat >>confdefs.h <<\_ACEOF
19164 #define HAVE_PRINTF_A 1
19165 _ACEOF
19166
19167  fi
19168
19169
19170 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19171 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19172 if test "${ac_cv_func_rand48+set}" = set; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175   ac_ext=cpp
19176 ac_cpp='$CXXCPP $CPPFLAGS'
19177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19180
19181    cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187 #include <stdlib.h>
19188 int
19189 main ()
19190 {
19191 srand48(0);lrand48();drand48();
19192   ;
19193   return 0;
19194 }
19195 _ACEOF
19196 rm -f conftest.$ac_objext
19197 if { (ac_try="$ac_compile"
19198 case "(($ac_try" in
19199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200   *) ac_try_echo=$ac_try;;
19201 esac
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203   (eval "$ac_compile") 2>conftest.er1
19204   ac_status=$?
19205   grep -v '^ *+' conftest.er1 >conftest.err
19206   rm -f conftest.er1
19207   cat conftest.err >&5
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); } &&
19210          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19211   { (case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216   (eval "$ac_try") 2>&5
19217   ac_status=$?
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); }; } &&
19220          { ac_try='test -s conftest.$ac_objext'
19221   { (case "(($ac_try" in
19222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223   *) ac_try_echo=$ac_try;;
19224 esac
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226   (eval "$ac_try") 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; }; then
19230   ac_cv_func_rand48=yes
19231 else
19232   echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19234
19235         ac_cv_func_rand48=no
19236 fi
19237
19238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19239   ac_ext=c
19240 ac_cpp='$CPP $CPPFLAGS'
19241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19244
19245 fi
19246 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19247 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19248
19249 if test "$ac_cv_func_rand48" = "yes" ; then
19250
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_RAND48 1
19253 _ACEOF
19254
19255 fi
19256
19257
19258 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19259 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19260 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19261   echo $ECHO_N "(cached) $ECHO_C" >&6
19262 else
19263   cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h.  */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h.  */
19269 $ac_includes_default
19270 int
19271 main ()
19272 {
19273 #ifndef strerror_s
19274   char *p = (char *) strerror_s;
19275   return !p;
19276 #endif
19277
19278   ;
19279   return 0;
19280 }
19281 _ACEOF
19282 rm -f conftest.$ac_objext
19283 if { (ac_try="$ac_compile"
19284 case "(($ac_try" in
19285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286   *) ac_try_echo=$ac_try;;
19287 esac
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289   (eval "$ac_compile") 2>conftest.er1
19290   ac_status=$?
19291   grep -v '^ *+' conftest.er1 >conftest.err
19292   rm -f conftest.er1
19293   cat conftest.err >&5
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } &&
19296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19297   { (case "(($ac_try" in
19298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299   *) ac_try_echo=$ac_try;;
19300 esac
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302   (eval "$ac_try") 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; } &&
19306          { ac_try='test -s conftest.$ac_objext'
19307   { (case "(($ac_try" in
19308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309   *) ac_try_echo=$ac_try;;
19310 esac
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312   (eval "$ac_try") 2>&5
19313   ac_status=$?
19314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315   (exit $ac_status); }; }; then
19316   ac_cv_have_decl_strerror_s=yes
19317 else
19318   echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321         ac_cv_have_decl_strerror_s=no
19322 fi
19323
19324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19325 fi
19326 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19327 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19328 if test $ac_cv_have_decl_strerror_s = yes; then
19329
19330 cat >>confdefs.h <<_ACEOF
19331 #define HAVE_DECL_STRERROR_S 1
19332 _ACEOF
19333
19334
19335 else
19336   cat >>confdefs.h <<_ACEOF
19337 #define HAVE_DECL_STRERROR_S 0
19338 _ACEOF
19339
19340
19341 fi
19342
19343
19344
19345 if test "$llvm_cv_os_type" = "MingW" ; then
19346   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19347 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19348 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19349   echo $ECHO_N "(cached) $ECHO_C" >&6
19350 else
19351   ac_check_lib_save_LIBS=$LIBS
19352 LIBS="-lgcc  $LIBS"
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h.  */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h.  */
19359
19360 /* Override any GCC internal prototype to avoid an error.
19361    Use char because int might match the return type of a GCC
19362    builtin and then its argument prototype would still apply.  */
19363 #ifdef __cplusplus
19364 extern "C"
19365 #endif
19366 char _alloca ();
19367 int
19368 main ()
19369 {
19370 return _alloca ();
19371   ;
19372   return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (ac_try="$ac_link"
19377 case "(($ac_try" in
19378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379   *) ac_try_echo=$ac_try;;
19380 esac
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382   (eval "$ac_link") 2>conftest.er1
19383   ac_status=$?
19384   grep -v '^ *+' conftest.er1 >conftest.err
19385   rm -f conftest.er1
19386   cat conftest.err >&5
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); } &&
19389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19390   { (case "(($ac_try" in
19391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392   *) ac_try_echo=$ac_try;;
19393 esac
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395   (eval "$ac_try") 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); }; } &&
19399          { ac_try='test -s conftest$ac_exeext'
19400   { (case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_try") 2>&5
19406   ac_status=$?
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); }; }; then
19409   ac_cv_lib_gcc__alloca=yes
19410 else
19411   echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414         ac_cv_lib_gcc__alloca=no
19415 fi
19416
19417 rm -f core conftest.err conftest.$ac_objext \
19418       conftest$ac_exeext conftest.$ac_ext
19419 LIBS=$ac_check_lib_save_LIBS
19420 fi
19421 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19422 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19423 if test $ac_cv_lib_gcc__alloca = yes; then
19424
19425 cat >>confdefs.h <<\_ACEOF
19426 #define HAVE__ALLOCA 1
19427 _ACEOF
19428
19429 fi
19430
19431   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19432 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19433 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19434   echo $ECHO_N "(cached) $ECHO_C" >&6
19435 else
19436   ac_check_lib_save_LIBS=$LIBS
19437 LIBS="-lgcc  $LIBS"
19438 cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h.  */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h.  */
19444
19445 /* Override any GCC internal prototype to avoid an error.
19446    Use char because int might match the return type of a GCC
19447    builtin and then its argument prototype would still apply.  */
19448 #ifdef __cplusplus
19449 extern "C"
19450 #endif
19451 char __alloca ();
19452 int
19453 main ()
19454 {
19455 return __alloca ();
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (ac_try="$ac_link"
19462 case "(($ac_try" in
19463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464   *) ac_try_echo=$ac_try;;
19465 esac
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467   (eval "$ac_link") 2>conftest.er1
19468   ac_status=$?
19469   grep -v '^ *+' conftest.er1 >conftest.err
19470   rm -f conftest.er1
19471   cat conftest.err >&5
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); } &&
19474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19475   { (case "(($ac_try" in
19476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477   *) ac_try_echo=$ac_try;;
19478 esac
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480   (eval "$ac_try") 2>&5
19481   ac_status=$?
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); }; } &&
19484          { ac_try='test -s conftest$ac_exeext'
19485   { (case "(($ac_try" in
19486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487   *) ac_try_echo=$ac_try;;
19488 esac
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490   (eval "$ac_try") 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); }; }; then
19494   ac_cv_lib_gcc___alloca=yes
19495 else
19496   echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499         ac_cv_lib_gcc___alloca=no
19500 fi
19501
19502 rm -f core conftest.err conftest.$ac_objext \
19503       conftest$ac_exeext conftest.$ac_ext
19504 LIBS=$ac_check_lib_save_LIBS
19505 fi
19506 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19507 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19508 if test $ac_cv_lib_gcc___alloca = yes; then
19509
19510 cat >>confdefs.h <<\_ACEOF
19511 #define HAVE___ALLOCA 1
19512 _ACEOF
19513
19514 fi
19515
19516   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19517 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19518 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521   ac_check_lib_save_LIBS=$LIBS
19522 LIBS="-lgcc  $LIBS"
19523 cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529
19530 /* Override any GCC internal prototype to avoid an error.
19531    Use char because int might match the return type of a GCC
19532    builtin and then its argument prototype would still apply.  */
19533 #ifdef __cplusplus
19534 extern "C"
19535 #endif
19536 char __chkstk ();
19537 int
19538 main ()
19539 {
19540 return __chkstk ();
19541   ;
19542   return 0;
19543 }
19544 _ACEOF
19545 rm -f conftest.$ac_objext conftest$ac_exeext
19546 if { (ac_try="$ac_link"
19547 case "(($ac_try" in
19548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549   *) ac_try_echo=$ac_try;;
19550 esac
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552   (eval "$ac_link") 2>conftest.er1
19553   ac_status=$?
19554   grep -v '^ *+' conftest.er1 >conftest.err
19555   rm -f conftest.er1
19556   cat conftest.err >&5
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); } &&
19559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19560   { (case "(($ac_try" in
19561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562   *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565   (eval "$ac_try") 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); }; } &&
19569          { ac_try='test -s conftest$ac_exeext'
19570   { (case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_try") 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; }; then
19579   ac_cv_lib_gcc___chkstk=yes
19580 else
19581   echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584         ac_cv_lib_gcc___chkstk=no
19585 fi
19586
19587 rm -f core conftest.err conftest.$ac_objext \
19588       conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19590 fi
19591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19592 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19593 if test $ac_cv_lib_gcc___chkstk = yes; then
19594
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE___CHKSTK 1
19597 _ACEOF
19598
19599 fi
19600
19601   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19602 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19603 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   ac_check_lib_save_LIBS=$LIBS
19607 LIBS="-lgcc  $LIBS"
19608 cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614
19615 /* Override any GCC internal prototype to avoid an error.
19616    Use char because int might match the return type of a GCC
19617    builtin and then its argument prototype would still apply.  */
19618 #ifdef __cplusplus
19619 extern "C"
19620 #endif
19621 char ___chkstk ();
19622 int
19623 main ()
19624 {
19625 return ___chkstk ();
19626   ;
19627   return 0;
19628 }
19629 _ACEOF
19630 rm -f conftest.$ac_objext conftest$ac_exeext
19631 if { (ac_try="$ac_link"
19632 case "(($ac_try" in
19633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634   *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637   (eval "$ac_link") 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } &&
19644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19645   { (case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650   (eval "$ac_try") 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; } &&
19654          { ac_try='test -s conftest$ac_exeext'
19655   { (case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660   (eval "$ac_try") 2>&5
19661   ac_status=$?
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); }; }; then
19664   ac_cv_lib_gcc____chkstk=yes
19665 else
19666   echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669         ac_cv_lib_gcc____chkstk=no
19670 fi
19671
19672 rm -f core conftest.err conftest.$ac_objext \
19673       conftest$ac_exeext conftest.$ac_ext
19674 LIBS=$ac_check_lib_save_LIBS
19675 fi
19676 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19677 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19678 if test $ac_cv_lib_gcc____chkstk = yes; then
19679
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE____CHKSTK 1
19682 _ACEOF
19683
19684 fi
19685
19686
19687   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19688 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19689 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   ac_check_lib_save_LIBS=$LIBS
19693 LIBS="-lgcc  $LIBS"
19694 cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h.  */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h.  */
19700
19701 /* Override any GCC internal prototype to avoid an error.
19702    Use char because int might match the return type of a GCC
19703    builtin and then its argument prototype would still apply.  */
19704 #ifdef __cplusplus
19705 extern "C"
19706 #endif
19707 char __ashldi3 ();
19708 int
19709 main ()
19710 {
19711 return __ashldi3 ();
19712   ;
19713   return 0;
19714 }
19715 _ACEOF
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720   *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723   (eval "$ac_link") 2>conftest.er1
19724   ac_status=$?
19725   grep -v '^ *+' conftest.er1 >conftest.err
19726   rm -f conftest.er1
19727   cat conftest.err >&5
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); } &&
19730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19731   { (case "(($ac_try" in
19732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733   *) ac_try_echo=$ac_try;;
19734 esac
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736   (eval "$ac_try") 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); }; } &&
19740          { ac_try='test -s conftest$ac_exeext'
19741   { (case "(($ac_try" in
19742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743   *) ac_try_echo=$ac_try;;
19744 esac
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746   (eval "$ac_try") 2>&5
19747   ac_status=$?
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); }; }; then
19750   ac_cv_lib_gcc___ashldi3=yes
19751 else
19752   echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755         ac_cv_lib_gcc___ashldi3=no
19756 fi
19757
19758 rm -f core conftest.err conftest.$ac_objext \
19759       conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_check_lib_save_LIBS
19761 fi
19762 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19763 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19764 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19765
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE___ASHLDI3 1
19768 _ACEOF
19769
19770 fi
19771
19772   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19773 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19774 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19775   echo $ECHO_N "(cached) $ECHO_C" >&6
19776 else
19777   ac_check_lib_save_LIBS=$LIBS
19778 LIBS="-lgcc  $LIBS"
19779 cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785
19786 /* Override any GCC internal prototype to avoid an error.
19787    Use char because int might match the return type of a GCC
19788    builtin and then its argument prototype would still apply.  */
19789 #ifdef __cplusplus
19790 extern "C"
19791 #endif
19792 char __ashrdi3 ();
19793 int
19794 main ()
19795 {
19796 return __ashrdi3 ();
19797   ;
19798   return 0;
19799 }
19800 _ACEOF
19801 rm -f conftest.$ac_objext conftest$ac_exeext
19802 if { (ac_try="$ac_link"
19803 case "(($ac_try" in
19804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805   *) ac_try_echo=$ac_try;;
19806 esac
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808   (eval "$ac_link") 2>conftest.er1
19809   ac_status=$?
19810   grep -v '^ *+' conftest.er1 >conftest.err
19811   rm -f conftest.er1
19812   cat conftest.err >&5
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); } &&
19815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19816   { (case "(($ac_try" in
19817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818   *) ac_try_echo=$ac_try;;
19819 esac
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821   (eval "$ac_try") 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; } &&
19825          { ac_try='test -s conftest$ac_exeext'
19826   { (case "(($ac_try" in
19827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828   *) ac_try_echo=$ac_try;;
19829 esac
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831   (eval "$ac_try") 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }; }; then
19835   ac_cv_lib_gcc___ashrdi3=yes
19836 else
19837   echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840         ac_cv_lib_gcc___ashrdi3=no
19841 fi
19842
19843 rm -f core conftest.err conftest.$ac_objext \
19844       conftest$ac_exeext conftest.$ac_ext
19845 LIBS=$ac_check_lib_save_LIBS
19846 fi
19847 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19848 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19849 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19850
19851 cat >>confdefs.h <<\_ACEOF
19852 #define HAVE___ASHRDI3 1
19853 _ACEOF
19854
19855 fi
19856
19857   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19858 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19859 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19860   echo $ECHO_N "(cached) $ECHO_C" >&6
19861 else
19862   ac_check_lib_save_LIBS=$LIBS
19863 LIBS="-lgcc  $LIBS"
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h.  */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h.  */
19870
19871 /* Override any GCC internal prototype to avoid an error.
19872    Use char because int might match the return type of a GCC
19873    builtin and then its argument prototype would still apply.  */
19874 #ifdef __cplusplus
19875 extern "C"
19876 #endif
19877 char __divdi3 ();
19878 int
19879 main ()
19880 {
19881 return __divdi3 ();
19882   ;
19883   return 0;
19884 }
19885 _ACEOF
19886 rm -f conftest.$ac_objext conftest$ac_exeext
19887 if { (ac_try="$ac_link"
19888 case "(($ac_try" in
19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890   *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893   (eval "$ac_link") 2>conftest.er1
19894   ac_status=$?
19895   grep -v '^ *+' conftest.er1 >conftest.err
19896   rm -f conftest.er1
19897   cat conftest.err >&5
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); } &&
19900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19901   { (case "(($ac_try" in
19902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903   *) ac_try_echo=$ac_try;;
19904 esac
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906   (eval "$ac_try") 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); }; } &&
19910          { ac_try='test -s conftest$ac_exeext'
19911   { (case "(($ac_try" in
19912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913   *) ac_try_echo=$ac_try;;
19914 esac
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916   (eval "$ac_try") 2>&5
19917   ac_status=$?
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); }; }; then
19920   ac_cv_lib_gcc___divdi3=yes
19921 else
19922   echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19924
19925         ac_cv_lib_gcc___divdi3=no
19926 fi
19927
19928 rm -f core conftest.err conftest.$ac_objext \
19929       conftest$ac_exeext conftest.$ac_ext
19930 LIBS=$ac_check_lib_save_LIBS
19931 fi
19932 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19933 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19934 if test $ac_cv_lib_gcc___divdi3 = yes; then
19935
19936 cat >>confdefs.h <<\_ACEOF
19937 #define HAVE___DIVDI3 1
19938 _ACEOF
19939
19940 fi
19941
19942   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19943 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19944 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19945   echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947   ac_check_lib_save_LIBS=$LIBS
19948 LIBS="-lgcc  $LIBS"
19949 cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955
19956 /* Override any GCC internal prototype to avoid an error.
19957    Use char because int might match the return type of a GCC
19958    builtin and then its argument prototype would still apply.  */
19959 #ifdef __cplusplus
19960 extern "C"
19961 #endif
19962 char __fixdfdi ();
19963 int
19964 main ()
19965 {
19966 return __fixdfdi ();
19967   ;
19968   return 0;
19969 }
19970 _ACEOF
19971 rm -f conftest.$ac_objext conftest$ac_exeext
19972 if { (ac_try="$ac_link"
19973 case "(($ac_try" in
19974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975   *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978   (eval "$ac_link") 2>conftest.er1
19979   ac_status=$?
19980   grep -v '^ *+' conftest.er1 >conftest.err
19981   rm -f conftest.er1
19982   cat conftest.err >&5
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); } &&
19985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19986   { (case "(($ac_try" in
19987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988   *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991   (eval "$ac_try") 2>&5
19992   ac_status=$?
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); }; } &&
19995          { ac_try='test -s conftest$ac_exeext'
19996   { (case "(($ac_try" in
19997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998   *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001   (eval "$ac_try") 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; }; then
20005   ac_cv_lib_gcc___fixdfdi=yes
20006 else
20007   echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20009
20010         ac_cv_lib_gcc___fixdfdi=no
20011 fi
20012
20013 rm -f core conftest.err conftest.$ac_objext \
20014       conftest$ac_exeext conftest.$ac_ext
20015 LIBS=$ac_check_lib_save_LIBS
20016 fi
20017 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20018 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20019 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20020
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE___FIXDFDI 1
20023 _ACEOF
20024
20025 fi
20026
20027   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20028 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20029 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   ac_check_lib_save_LIBS=$LIBS
20033 LIBS="-lgcc  $LIBS"
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040
20041 /* Override any GCC internal prototype to avoid an error.
20042    Use char because int might match the return type of a GCC
20043    builtin and then its argument prototype would still apply.  */
20044 #ifdef __cplusplus
20045 extern "C"
20046 #endif
20047 char __fixsfdi ();
20048 int
20049 main ()
20050 {
20051 return __fixsfdi ();
20052   ;
20053   return 0;
20054 }
20055 _ACEOF
20056 rm -f conftest.$ac_objext conftest$ac_exeext
20057 if { (ac_try="$ac_link"
20058 case "(($ac_try" in
20059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060   *) ac_try_echo=$ac_try;;
20061 esac
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063   (eval "$ac_link") 2>conftest.er1
20064   ac_status=$?
20065   grep -v '^ *+' conftest.er1 >conftest.err
20066   rm -f conftest.er1
20067   cat conftest.err >&5
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); } &&
20070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20071   { (case "(($ac_try" in
20072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073   *) ac_try_echo=$ac_try;;
20074 esac
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076   (eval "$ac_try") 2>&5
20077   ac_status=$?
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); }; } &&
20080          { ac_try='test -s conftest$ac_exeext'
20081   { (case "(($ac_try" in
20082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083   *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086   (eval "$ac_try") 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; }; then
20090   ac_cv_lib_gcc___fixsfdi=yes
20091 else
20092   echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20094
20095         ac_cv_lib_gcc___fixsfdi=no
20096 fi
20097
20098 rm -f core conftest.err conftest.$ac_objext \
20099       conftest$ac_exeext conftest.$ac_ext
20100 LIBS=$ac_check_lib_save_LIBS
20101 fi
20102 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20103 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20104 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20105
20106 cat >>confdefs.h <<\_ACEOF
20107 #define HAVE___FIXSFDI 1
20108 _ACEOF
20109
20110 fi
20111
20112   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20113 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20114 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20115   echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117   ac_check_lib_save_LIBS=$LIBS
20118 LIBS="-lgcc  $LIBS"
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h.  */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h.  */
20125
20126 /* Override any GCC internal prototype to avoid an error.
20127    Use char because int might match the return type of a GCC
20128    builtin and then its argument prototype would still apply.  */
20129 #ifdef __cplusplus
20130 extern "C"
20131 #endif
20132 char __floatdidf ();
20133 int
20134 main ()
20135 {
20136 return __floatdidf ();
20137   ;
20138   return 0;
20139 }
20140 _ACEOF
20141 rm -f conftest.$ac_objext conftest$ac_exeext
20142 if { (ac_try="$ac_link"
20143 case "(($ac_try" in
20144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145   *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148   (eval "$ac_link") 2>conftest.er1
20149   ac_status=$?
20150   grep -v '^ *+' conftest.er1 >conftest.err
20151   rm -f conftest.er1
20152   cat conftest.err >&5
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); } &&
20155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20156   { (case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_try") 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); }; } &&
20165          { ac_try='test -s conftest$ac_exeext'
20166   { (case "(($ac_try" in
20167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168   *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171   (eval "$ac_try") 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); }; }; then
20175   ac_cv_lib_gcc___floatdidf=yes
20176 else
20177   echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180         ac_cv_lib_gcc___floatdidf=no
20181 fi
20182
20183 rm -f core conftest.err conftest.$ac_objext \
20184       conftest$ac_exeext conftest.$ac_ext
20185 LIBS=$ac_check_lib_save_LIBS
20186 fi
20187 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20188 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20189 if test $ac_cv_lib_gcc___floatdidf = yes; then
20190
20191 cat >>confdefs.h <<\_ACEOF
20192 #define HAVE___FLOATDIDF 1
20193 _ACEOF
20194
20195 fi
20196
20197   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20198 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20199 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20200   echo $ECHO_N "(cached) $ECHO_C" >&6
20201 else
20202   ac_check_lib_save_LIBS=$LIBS
20203 LIBS="-lgcc  $LIBS"
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h.  */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h.  */
20210
20211 /* Override any GCC internal prototype to avoid an error.
20212    Use char because int might match the return type of a GCC
20213    builtin and then its argument prototype would still apply.  */
20214 #ifdef __cplusplus
20215 extern "C"
20216 #endif
20217 char __lshrdi3 ();
20218 int
20219 main ()
20220 {
20221 return __lshrdi3 ();
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 rm -f conftest.$ac_objext conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230   *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233   (eval "$ac_link") 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } &&
20240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20241   { (case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246   (eval "$ac_try") 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; } &&
20250          { ac_try='test -s conftest$ac_exeext'
20251   { (case "(($ac_try" in
20252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253   *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256   (eval "$ac_try") 2>&5
20257   ac_status=$?
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); }; }; then
20260   ac_cv_lib_gcc___lshrdi3=yes
20261 else
20262   echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20264
20265         ac_cv_lib_gcc___lshrdi3=no
20266 fi
20267
20268 rm -f core conftest.err conftest.$ac_objext \
20269       conftest$ac_exeext conftest.$ac_ext
20270 LIBS=$ac_check_lib_save_LIBS
20271 fi
20272 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20273 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20274 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20275
20276 cat >>confdefs.h <<\_ACEOF
20277 #define HAVE___LSHRDI3 1
20278 _ACEOF
20279
20280 fi
20281
20282   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20283 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20284 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20285   echo $ECHO_N "(cached) $ECHO_C" >&6
20286 else
20287   ac_check_lib_save_LIBS=$LIBS
20288 LIBS="-lgcc  $LIBS"
20289 cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h.  */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h.  */
20295
20296 /* Override any GCC internal prototype to avoid an error.
20297    Use char because int might match the return type of a GCC
20298    builtin and then its argument prototype would still apply.  */
20299 #ifdef __cplusplus
20300 extern "C"
20301 #endif
20302 char __moddi3 ();
20303 int
20304 main ()
20305 {
20306 return __moddi3 ();
20307   ;
20308   return 0;
20309 }
20310 _ACEOF
20311 rm -f conftest.$ac_objext conftest$ac_exeext
20312 if { (ac_try="$ac_link"
20313 case "(($ac_try" in
20314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315   *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318   (eval "$ac_link") 2>conftest.er1
20319   ac_status=$?
20320   grep -v '^ *+' conftest.er1 >conftest.err
20321   rm -f conftest.er1
20322   cat conftest.err >&5
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); } &&
20325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20326   { (case "(($ac_try" in
20327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328   *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331   (eval "$ac_try") 2>&5
20332   ac_status=$?
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); }; } &&
20335          { ac_try='test -s conftest$ac_exeext'
20336   { (case "(($ac_try" in
20337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338   *) ac_try_echo=$ac_try;;
20339 esac
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341   (eval "$ac_try") 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; }; then
20345   ac_cv_lib_gcc___moddi3=yes
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350         ac_cv_lib_gcc___moddi3=no
20351 fi
20352
20353 rm -f core conftest.err conftest.$ac_objext \
20354       conftest$ac_exeext conftest.$ac_ext
20355 LIBS=$ac_check_lib_save_LIBS
20356 fi
20357 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20358 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20359 if test $ac_cv_lib_gcc___moddi3 = yes; then
20360
20361 cat >>confdefs.h <<\_ACEOF
20362 #define HAVE___MODDI3 1
20363 _ACEOF
20364
20365 fi
20366
20367   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20368 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20369 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20370   echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372   ac_check_lib_save_LIBS=$LIBS
20373 LIBS="-lgcc  $LIBS"
20374 cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380
20381 /* Override any GCC internal prototype to avoid an error.
20382    Use char because int might match the return type of a GCC
20383    builtin and then its argument prototype would still apply.  */
20384 #ifdef __cplusplus
20385 extern "C"
20386 #endif
20387 char __udivdi3 ();
20388 int
20389 main ()
20390 {
20391 return __udivdi3 ();
20392   ;
20393   return 0;
20394 }
20395 _ACEOF
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400   *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403   (eval "$ac_link") 2>conftest.er1
20404   ac_status=$?
20405   grep -v '^ *+' conftest.er1 >conftest.err
20406   rm -f conftest.er1
20407   cat conftest.err >&5
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); } &&
20410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411   { (case "(($ac_try" in
20412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413   *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416   (eval "$ac_try") 2>&5
20417   ac_status=$?
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); }; } &&
20420          { ac_try='test -s conftest$ac_exeext'
20421   { (case "(($ac_try" in
20422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423   *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426   (eval "$ac_try") 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); }; }; then
20430   ac_cv_lib_gcc___udivdi3=yes
20431 else
20432   echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435         ac_cv_lib_gcc___udivdi3=no
20436 fi
20437
20438 rm -f core conftest.err conftest.$ac_objext \
20439       conftest$ac_exeext conftest.$ac_ext
20440 LIBS=$ac_check_lib_save_LIBS
20441 fi
20442 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20443 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20444 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20445
20446 cat >>confdefs.h <<\_ACEOF
20447 #define HAVE___UDIVDI3 1
20448 _ACEOF
20449
20450 fi
20451
20452   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20453 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20454 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20455   echo $ECHO_N "(cached) $ECHO_C" >&6
20456 else
20457   ac_check_lib_save_LIBS=$LIBS
20458 LIBS="-lgcc  $LIBS"
20459 cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h.  */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h.  */
20465
20466 /* Override any GCC internal prototype to avoid an error.
20467    Use char because int might match the return type of a GCC
20468    builtin and then its argument prototype would still apply.  */
20469 #ifdef __cplusplus
20470 extern "C"
20471 #endif
20472 char __umoddi3 ();
20473 int
20474 main ()
20475 {
20476 return __umoddi3 ();
20477   ;
20478   return 0;
20479 }
20480 _ACEOF
20481 rm -f conftest.$ac_objext conftest$ac_exeext
20482 if { (ac_try="$ac_link"
20483 case "(($ac_try" in
20484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485   *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488   (eval "$ac_link") 2>conftest.er1
20489   ac_status=$?
20490   grep -v '^ *+' conftest.er1 >conftest.err
20491   rm -f conftest.er1
20492   cat conftest.err >&5
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); } &&
20495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20496   { (case "(($ac_try" in
20497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498   *) ac_try_echo=$ac_try;;
20499 esac
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501   (eval "$ac_try") 2>&5
20502   ac_status=$?
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); }; } &&
20505          { ac_try='test -s conftest$ac_exeext'
20506   { (case "(($ac_try" in
20507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508   *) ac_try_echo=$ac_try;;
20509 esac
20510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511   (eval "$ac_try") 2>&5
20512   ac_status=$?
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); }; }; then
20515   ac_cv_lib_gcc___umoddi3=yes
20516 else
20517   echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520         ac_cv_lib_gcc___umoddi3=no
20521 fi
20522
20523 rm -f core conftest.err conftest.$ac_objext \
20524       conftest$ac_exeext conftest.$ac_ext
20525 LIBS=$ac_check_lib_save_LIBS
20526 fi
20527 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20528 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20529 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20530
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE___UMODDI3 1
20533 _ACEOF
20534
20535 fi
20536
20537
20538   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20539 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20540 if test "${ac_cv_lib_gcc___main+set}" = set; then
20541   echo $ECHO_N "(cached) $ECHO_C" >&6
20542 else
20543   ac_check_lib_save_LIBS=$LIBS
20544 LIBS="-lgcc  $LIBS"
20545 cat >conftest.$ac_ext <<_ACEOF
20546 /* confdefs.h.  */
20547 _ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h.  */
20551
20552 /* Override any GCC internal prototype to avoid an error.
20553    Use char because int might match the return type of a GCC
20554    builtin and then its argument prototype would still apply.  */
20555 #ifdef __cplusplus
20556 extern "C"
20557 #endif
20558 char __main ();
20559 int
20560 main ()
20561 {
20562 return __main ();
20563   ;
20564   return 0;
20565 }
20566 _ACEOF
20567 rm -f conftest.$ac_objext conftest$ac_exeext
20568 if { (ac_try="$ac_link"
20569 case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574   (eval "$ac_link") 2>conftest.er1
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
20578   cat conftest.err >&5
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } &&
20581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20582   { (case "(($ac_try" in
20583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584   *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587   (eval "$ac_try") 2>&5
20588   ac_status=$?
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); }; } &&
20591          { ac_try='test -s conftest$ac_exeext'
20592   { (case "(($ac_try" in
20593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594   *) ac_try_echo=$ac_try;;
20595 esac
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597   (eval "$ac_try") 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); }; }; then
20601   ac_cv_lib_gcc___main=yes
20602 else
20603   echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606         ac_cv_lib_gcc___main=no
20607 fi
20608
20609 rm -f core conftest.err conftest.$ac_objext \
20610       conftest$ac_exeext conftest.$ac_ext
20611 LIBS=$ac_check_lib_save_LIBS
20612 fi
20613 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20614 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20615 if test $ac_cv_lib_gcc___main = yes; then
20616
20617 cat >>confdefs.h <<\_ACEOF
20618 #define HAVE___MAIN 1
20619 _ACEOF
20620
20621 fi
20622
20623   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20624 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20625 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20626   echo $ECHO_N "(cached) $ECHO_C" >&6
20627 else
20628   ac_check_lib_save_LIBS=$LIBS
20629 LIBS="-lgcc  $LIBS"
20630 cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h.  */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h.  */
20636
20637 /* Override any GCC internal prototype to avoid an error.
20638    Use char because int might match the return type of a GCC
20639    builtin and then its argument prototype would still apply.  */
20640 #ifdef __cplusplus
20641 extern "C"
20642 #endif
20643 char __cmpdi2 ();
20644 int
20645 main ()
20646 {
20647 return __cmpdi2 ();
20648   ;
20649   return 0;
20650 }
20651 _ACEOF
20652 rm -f conftest.$ac_objext conftest$ac_exeext
20653 if { (ac_try="$ac_link"
20654 case "(($ac_try" in
20655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656   *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659   (eval "$ac_link") 2>conftest.er1
20660   ac_status=$?
20661   grep -v '^ *+' conftest.er1 >conftest.err
20662   rm -f conftest.er1
20663   cat conftest.err >&5
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); } &&
20666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20667   { (case "(($ac_try" in
20668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20669   *) ac_try_echo=$ac_try;;
20670 esac
20671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20672   (eval "$ac_try") 2>&5
20673   ac_status=$?
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); }; } &&
20676          { ac_try='test -s conftest$ac_exeext'
20677   { (case "(($ac_try" in
20678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679   *) ac_try_echo=$ac_try;;
20680 esac
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682   (eval "$ac_try") 2>&5
20683   ac_status=$?
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); }; }; then
20686   ac_cv_lib_gcc___cmpdi2=yes
20687 else
20688   echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20690
20691         ac_cv_lib_gcc___cmpdi2=no
20692 fi
20693
20694 rm -f core conftest.err conftest.$ac_objext \
20695       conftest$ac_exeext conftest.$ac_ext
20696 LIBS=$ac_check_lib_save_LIBS
20697 fi
20698 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20699 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20700 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20701
20702 cat >>confdefs.h <<\_ACEOF
20703 #define HAVE___CMPDI2 1
20704 _ACEOF
20705
20706 fi
20707
20708 fi
20709
20710 if test "$llvm_cv_os_type" = "MingW" ; then
20711   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20712 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20713   cat >conftest.$ac_ext <<_ACEOF
20714 #include <windows.h>
20715 #include <imagehlp.h>
20716 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20717 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20718 _ACEOF
20719 rm -f conftest.$ac_objext
20720 if { (ac_try="$ac_compile"
20721 case "(($ac_try" in
20722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723   *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726   (eval "$ac_compile") 2>conftest.er1
20727   ac_status=$?
20728   grep -v '^ *+' conftest.er1 >conftest.err
20729   rm -f conftest.er1
20730   cat conftest.err >&5
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); } &&
20733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20734   { (case "(($ac_try" in
20735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736   *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739   (eval "$ac_try") 2>&5
20740   ac_status=$?
20741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742   (exit $ac_status); }; } &&
20743          { ac_try='test -s conftest.$ac_objext'
20744   { (case "(($ac_try" in
20745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746   *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749   (eval "$ac_try") 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); }; }; then
20753
20754   { echo "$as_me:$LINENO: result: yes" >&5
20755 echo "${ECHO_T}yes" >&6; }
20756   llvm_cv_win32_elmcb_pcstr="PCSTR"
20757
20758 else
20759   echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20761
20762
20763   { echo "$as_me:$LINENO: result: no" >&5
20764 echo "${ECHO_T}no" >&6; }
20765   llvm_cv_win32_elmcb_pcstr="PSTR"
20766
20767 fi
20768
20769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20770
20771 cat >>confdefs.h <<_ACEOF
20772 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20773 _ACEOF
20774
20775 fi
20776
20777
20778 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20779 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20780 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20781   echo $ECHO_N "(cached) $ECHO_C" >&6
20782 else
20783   ac_ext=cpp
20784 ac_cpp='$CXXCPP $CPPFLAGS'
20785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20788
20789    cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h.  */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h.  */
20795 #include <math.h>
20796 int
20797 main ()
20798 {
20799 float f; isnan(f);
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 rm -f conftest.$ac_objext
20805 if { (ac_try="$ac_compile"
20806 case "(($ac_try" in
20807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808   *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811   (eval "$ac_compile") 2>conftest.er1
20812   ac_status=$?
20813   grep -v '^ *+' conftest.er1 >conftest.err
20814   rm -f conftest.er1
20815   cat conftest.err >&5
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); } &&
20818          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20819   { (case "(($ac_try" in
20820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821   *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824   (eval "$ac_try") 2>&5
20825   ac_status=$?
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); }; } &&
20828          { ac_try='test -s conftest.$ac_objext'
20829   { (case "(($ac_try" in
20830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831   *) ac_try_echo=$ac_try;;
20832 esac
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834   (eval "$ac_try") 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; }; then
20838   ac_cv_func_isnan_in_math_h=yes
20839 else
20840   echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843         ac_cv_func_isnan_in_math_h=no
20844 fi
20845
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847   ac_ext=c
20848 ac_cpp='$CPP $CPPFLAGS'
20849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852
20853 fi
20854 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20855 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20856
20857
20858 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20859
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_ISNAN_IN_MATH_H 1
20862 _ACEOF
20863
20864 fi
20865
20866 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20867 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20868 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20869   echo $ECHO_N "(cached) $ECHO_C" >&6
20870 else
20871   ac_ext=cpp
20872 ac_cpp='$CXXCPP $CPPFLAGS'
20873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20876
20877    cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h.  */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h.  */
20883 #include <cmath>
20884 int
20885 main ()
20886 {
20887 float f; isnan(f);
20888   ;
20889   return 0;
20890 }
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896   *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899   (eval "$ac_compile") 2>conftest.er1
20900   ac_status=$?
20901   grep -v '^ *+' conftest.er1 >conftest.err
20902   rm -f conftest.er1
20903   cat conftest.err >&5
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); } &&
20906          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20907   { (case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_try") 2>&5
20913   ac_status=$?
20914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915   (exit $ac_status); }; } &&
20916          { ac_try='test -s conftest.$ac_objext'
20917   { (case "(($ac_try" in
20918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919   *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922   (eval "$ac_try") 2>&5
20923   ac_status=$?
20924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925   (exit $ac_status); }; }; then
20926   ac_cv_func_isnan_in_cmath=yes
20927 else
20928   echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20930
20931         ac_cv_func_isnan_in_cmath=no
20932 fi
20933
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935   ac_ext=c
20936 ac_cpp='$CPP $CPPFLAGS'
20937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20940
20941 fi
20942 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20943 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20944
20945 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20946
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_ISNAN_IN_CMATH 1
20949 _ACEOF
20950
20951 fi
20952
20953 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20954 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20955 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20956   echo $ECHO_N "(cached) $ECHO_C" >&6
20957 else
20958   ac_ext=cpp
20959 ac_cpp='$CXXCPP $CPPFLAGS'
20960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20963
20964    cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h.  */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h.  */
20970 #include <cmath>
20971 int
20972 main ()
20973 {
20974 float f; std::isnan(f);
20975   ;
20976   return 0;
20977 }
20978 _ACEOF
20979 rm -f conftest.$ac_objext
20980 if { (ac_try="$ac_compile"
20981 case "(($ac_try" in
20982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983   *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986   (eval "$ac_compile") 2>conftest.er1
20987   ac_status=$?
20988   grep -v '^ *+' conftest.er1 >conftest.err
20989   rm -f conftest.er1
20990   cat conftest.err >&5
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); } &&
20993          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20994   { (case "(($ac_try" in
20995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996   *) ac_try_echo=$ac_try;;
20997 esac
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999   (eval "$ac_try") 2>&5
21000   ac_status=$?
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); }; } &&
21003          { ac_try='test -s conftest.$ac_objext'
21004   { (case "(($ac_try" in
21005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006   *) ac_try_echo=$ac_try;;
21007 esac
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009   (eval "$ac_try") 2>&5
21010   ac_status=$?
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); }; }; then
21013   ac_cv_func_std_isnan_in_cmath=yes
21014 else
21015   echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21017
21018         ac_cv_func_std_isnan_in_cmath=no
21019 fi
21020
21021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022   ac_ext=c
21023 ac_cpp='$CPP $CPPFLAGS'
21024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21027
21028 fi
21029 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21030 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21031
21032 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21033
21034 cat >>confdefs.h <<\_ACEOF
21035 #define HAVE_STD_ISNAN_IN_CMATH 1
21036 _ACEOF
21037
21038 fi
21039
21040
21041 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21042 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21043 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21044   echo $ECHO_N "(cached) $ECHO_C" >&6
21045 else
21046   ac_ext=cpp
21047 ac_cpp='$CXXCPP $CPPFLAGS'
21048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21051
21052    cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h.  */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h.  */
21058 #include <math.h>
21059 int
21060 main ()
21061 {
21062 float f; isinf(f);
21063   ;
21064   return 0;
21065 }
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071   *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074   (eval "$ac_compile") 2>conftest.er1
21075   ac_status=$?
21076   grep -v '^ *+' conftest.er1 >conftest.err
21077   rm -f conftest.er1
21078   cat conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } &&
21081          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21082   { (case "(($ac_try" in
21083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084   *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087   (eval "$ac_try") 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); }; } &&
21091          { ac_try='test -s conftest.$ac_objext'
21092   { (case "(($ac_try" in
21093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094   *) ac_try_echo=$ac_try;;
21095 esac
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097   (eval "$ac_try") 2>&5
21098   ac_status=$?
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); }; }; then
21101   ac_cv_func_isinf_in_math_h=yes
21102 else
21103   echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21105
21106         ac_cv_func_isinf_in_math_h=no
21107 fi
21108
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110   ac_ext=c
21111 ac_cpp='$CPP $CPPFLAGS'
21112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21115
21116 fi
21117 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21118 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21119
21120 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21121
21122 cat >>confdefs.h <<\_ACEOF
21123 #define HAVE_ISINF_IN_MATH_H 1
21124 _ACEOF
21125
21126 fi
21127
21128 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21129 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21130 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21131   echo $ECHO_N "(cached) $ECHO_C" >&6
21132 else
21133   ac_ext=cpp
21134 ac_cpp='$CXXCPP $CPPFLAGS'
21135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21138
21139    cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145 #include <cmath>
21146 int
21147 main ()
21148 {
21149 float f; isinf(f);
21150   ;
21151   return 0;
21152 }
21153 _ACEOF
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158   *) ac_try_echo=$ac_try;;
21159 esac
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161   (eval "$ac_compile") 2>conftest.er1
21162   ac_status=$?
21163   grep -v '^ *+' conftest.er1 >conftest.err
21164   rm -f conftest.er1
21165   cat conftest.err >&5
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } &&
21168          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21169   { (case "(($ac_try" in
21170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171   *) ac_try_echo=$ac_try;;
21172 esac
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174   (eval "$ac_try") 2>&5
21175   ac_status=$?
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); }; } &&
21178          { ac_try='test -s conftest.$ac_objext'
21179   { (case "(($ac_try" in
21180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181   *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184   (eval "$ac_try") 2>&5
21185   ac_status=$?
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); }; }; then
21188   ac_cv_func_isinf_in_cmath=yes
21189 else
21190   echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21192
21193         ac_cv_func_isinf_in_cmath=no
21194 fi
21195
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197   ac_ext=c
21198 ac_cpp='$CPP $CPPFLAGS'
21199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21202
21203 fi
21204 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21205 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21206
21207 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21208
21209 cat >>confdefs.h <<\_ACEOF
21210 #define HAVE_ISINF_IN_CMATH 1
21211 _ACEOF
21212
21213 fi
21214
21215 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21216 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21217 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220   ac_ext=cpp
21221 ac_cpp='$CXXCPP $CPPFLAGS'
21222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21225
21226    cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h.  */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h.  */
21232 #include <cmath>
21233 int
21234 main ()
21235 {
21236 float f; std::isinf(f)}
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245   *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248   (eval "$ac_compile") 2>conftest.er1
21249   ac_status=$?
21250   grep -v '^ *+' conftest.er1 >conftest.err
21251   rm -f conftest.er1
21252   cat conftest.err >&5
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); } &&
21255          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21256   { (case "(($ac_try" in
21257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258   *) ac_try_echo=$ac_try;;
21259 esac
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261   (eval "$ac_try") 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; } &&
21265          { ac_try='test -s conftest.$ac_objext'
21266   { (case "(($ac_try" in
21267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268   *) ac_try_echo=$ac_try;;
21269 esac
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271   (eval "$ac_try") 2>&5
21272   ac_status=$?
21273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); }; }; then
21275   ac_cv_func_std_isinf_in_cmath=yes
21276 else
21277   echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21279
21280         ac_cv_func_std_isinf_in_cmath=no
21281 fi
21282
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284   ac_ext=c
21285 ac_cpp='$CPP $CPPFLAGS'
21286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21289
21290 fi
21291 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21292 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21293
21294 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21295
21296 cat >>confdefs.h <<\_ACEOF
21297 #define HAVE_STD_ISINF_IN_CMATH 1
21298 _ACEOF
21299
21300 fi
21301
21302 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21303 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21304 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21305   echo $ECHO_N "(cached) $ECHO_C" >&6
21306 else
21307   ac_ext=cpp
21308 ac_cpp='$CXXCPP $CPPFLAGS'
21309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21312
21313    cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h.  */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h.  */
21319 #include <ieeefp.h>
21320 int
21321 main ()
21322 {
21323 float f; finite(f);
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest.$ac_objext
21329 if { (ac_try="$ac_compile"
21330 case "(($ac_try" in
21331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332   *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335   (eval "$ac_compile") 2>conftest.er1
21336   ac_status=$?
21337   grep -v '^ *+' conftest.er1 >conftest.err
21338   rm -f conftest.er1
21339   cat conftest.err >&5
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } &&
21342          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21343   { (case "(($ac_try" in
21344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345   *) ac_try_echo=$ac_try;;
21346 esac
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348   (eval "$ac_try") 2>&5
21349   ac_status=$?
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); }; } &&
21352          { ac_try='test -s conftest.$ac_objext'
21353   { (case "(($ac_try" in
21354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355   *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358   (eval "$ac_try") 2>&5
21359   ac_status=$?
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); }; }; then
21362   ac_cv_func_finite_in_ieeefp_h=yes
21363 else
21364   echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21366
21367         ac_cv_func_finite_in_ieeefp_h=no
21368 fi
21369
21370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21371   ac_ext=c
21372 ac_cpp='$CPP $CPPFLAGS'
21373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21376
21377 fi
21378 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21379 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21380
21381 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21382
21383 cat >>confdefs.h <<\_ACEOF
21384 #define HAVE_FINITE_IN_IEEEFP_H 1
21385 _ACEOF
21386
21387 fi
21388
21389
21390
21391 if test "$llvm_cv_platform_type" = "Unix" ; then
21392
21393
21394 for ac_header in stdlib.h unistd.h
21395 do
21396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21398   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21401   echo $ECHO_N "(cached) $ECHO_C" >&6
21402 fi
21403 ac_res=`eval echo '${'$as_ac_Header'}'`
21404                { echo "$as_me:$LINENO: result: $ac_res" >&5
21405 echo "${ECHO_T}$ac_res" >&6; }
21406 else
21407   # Is the header compilable?
21408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21410 cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416 $ac_includes_default
21417 #include <$ac_header>
21418 _ACEOF
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426   (eval "$ac_compile") 2>conftest.er1
21427   ac_status=$?
21428   grep -v '^ *+' conftest.er1 >conftest.err
21429   rm -f conftest.er1
21430   cat conftest.err >&5
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } &&
21433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21434   { (case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_try") 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; } &&
21443          { ac_try='test -s conftest.$ac_objext'
21444   { (case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_try") 2>&5
21450   ac_status=$?
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); }; }; then
21453   ac_header_compiler=yes
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458         ac_header_compiler=no
21459 fi
21460
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21463 echo "${ECHO_T}$ac_header_compiler" >&6; }
21464
21465 # Is the header present?
21466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21468 cat >conftest.$ac_ext <<_ACEOF
21469 /* confdefs.h.  */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h.  */
21474 #include <$ac_header>
21475 _ACEOF
21476 if { (ac_try="$ac_cpp conftest.$ac_ext"
21477 case "(($ac_try" in
21478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479   *) ac_try_echo=$ac_try;;
21480 esac
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21483   ac_status=$?
21484   grep -v '^ *+' conftest.er1 >conftest.err
21485   rm -f conftest.er1
21486   cat conftest.err >&5
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } >/dev/null; then
21489   if test -s conftest.err; then
21490     ac_cpp_err=$ac_c_preproc_warn_flag
21491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21492   else
21493     ac_cpp_err=
21494   fi
21495 else
21496   ac_cpp_err=yes
21497 fi
21498 if test -z "$ac_cpp_err"; then
21499   ac_header_preproc=yes
21500 else
21501   echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504   ac_header_preproc=no
21505 fi
21506
21507 rm -f conftest.err conftest.$ac_ext
21508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21509 echo "${ECHO_T}$ac_header_preproc" >&6; }
21510
21511 # So?  What about this header?
21512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21513   yes:no: )
21514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21518     ac_header_preproc=yes
21519     ;;
21520   no:yes:* )
21521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21533     ( cat <<\_ASBOX
21534 ## ----------------------------------- ##
21535 ## Report this to llvmbugs@cs.uiuc.edu ##
21536 ## ----------------------------------- ##
21537 _ASBOX
21538      ) | sed "s/^/$as_me: WARNING:     /" >&2
21539     ;;
21540 esac
21541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21544   echo $ECHO_N "(cached) $ECHO_C" >&6
21545 else
21546   eval "$as_ac_Header=\$ac_header_preproc"
21547 fi
21548 ac_res=`eval echo '${'$as_ac_Header'}'`
21549                { echo "$as_me:$LINENO: result: $ac_res" >&5
21550 echo "${ECHO_T}$ac_res" >&6; }
21551
21552 fi
21553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21554   cat >>confdefs.h <<_ACEOF
21555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21556 _ACEOF
21557
21558 fi
21559
21560 done
21561
21562
21563 for ac_func in getpagesize
21564 do
21565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h.  */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h.  */
21577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21579 #define $ac_func innocuous_$ac_func
21580
21581 /* System header to define __stub macros and hopefully few prototypes,
21582     which can conflict with char $ac_func (); below.
21583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21584     <limits.h> exists even on freestanding compilers.  */
21585
21586 #ifdef __STDC__
21587 # include <limits.h>
21588 #else
21589 # include <assert.h>
21590 #endif
21591
21592 #undef $ac_func
21593
21594 /* Override any GCC internal prototype to avoid an error.
21595    Use char because int might match the return type of a GCC
21596    builtin and then its argument prototype would still apply.  */
21597 #ifdef __cplusplus
21598 extern "C"
21599 #endif
21600 char $ac_func ();
21601 /* The GNU C library defines this for functions which it implements
21602     to always fail with ENOSYS.  Some functions are actually named
21603     something starting with __ and the normal name is an alias.  */
21604 #if defined __stub_$ac_func || defined __stub___$ac_func
21605 choke me
21606 #endif
21607
21608 int
21609 main ()
21610 {
21611 return $ac_func ();
21612   ;
21613   return 0;
21614 }
21615 _ACEOF
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620   *) ac_try_echo=$ac_try;;
21621 esac
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623   (eval "$ac_link") 2>conftest.er1
21624   ac_status=$?
21625   grep -v '^ *+' conftest.er1 >conftest.err
21626   rm -f conftest.er1
21627   cat conftest.err >&5
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); } &&
21630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21631   { (case "(($ac_try" in
21632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633   *) ac_try_echo=$ac_try;;
21634 esac
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636   (eval "$ac_try") 2>&5
21637   ac_status=$?
21638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639   (exit $ac_status); }; } &&
21640          { ac_try='test -s conftest$ac_exeext'
21641   { (case "(($ac_try" in
21642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643   *) ac_try_echo=$ac_try;;
21644 esac
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646   (eval "$ac_try") 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); }; }; then
21650   eval "$as_ac_var=yes"
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655         eval "$as_ac_var=no"
21656 fi
21657
21658 rm -f core conftest.err conftest.$ac_objext \
21659       conftest$ac_exeext conftest.$ac_ext
21660 fi
21661 ac_res=`eval echo '${'$as_ac_var'}'`
21662                { echo "$as_me:$LINENO: result: $ac_res" >&5
21663 echo "${ECHO_T}$ac_res" >&6; }
21664 if test `eval echo '${'$as_ac_var'}'` = yes; then
21665   cat >>confdefs.h <<_ACEOF
21666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21667 _ACEOF
21668
21669 fi
21670 done
21671
21672 { echo "$as_me:$LINENO: checking for working mmap" >&5
21673 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21674 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21675   echo $ECHO_N "(cached) $ECHO_C" >&6
21676 else
21677   if test "$cross_compiling" = yes; then
21678   ac_cv_func_mmap_fixed_mapped=no
21679 else
21680   cat >conftest.$ac_ext <<_ACEOF
21681 /* confdefs.h.  */
21682 _ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h.  */
21686 $ac_includes_default
21687 /* malloc might have been renamed as rpl_malloc. */
21688 #undef malloc
21689
21690 /* Thanks to Mike Haertel and Jim Avera for this test.
21691    Here is a matrix of mmap possibilities:
21692         mmap private not fixed
21693         mmap private fixed at somewhere currently unmapped
21694         mmap private fixed at somewhere already mapped
21695         mmap shared not fixed
21696         mmap shared fixed at somewhere currently unmapped
21697         mmap shared fixed at somewhere already mapped
21698    For private mappings, we should verify that changes cannot be read()
21699    back from the file, nor mmap's back from the file at a different
21700    address.  (There have been systems where private was not correctly
21701    implemented like the infamous i386 svr4.0, and systems where the
21702    VM page cache was not coherent with the file system buffer cache
21703    like early versions of FreeBSD and possibly contemporary NetBSD.)
21704    For shared mappings, we should conversely verify that changes get
21705    propagated back to all the places they're supposed to be.
21706
21707    Grep wants private fixed already mapped.
21708    The main things grep needs to know about mmap are:
21709    * does it exist and is it safe to write into the mmap'd area
21710    * how to use it (BSD variants)  */
21711
21712 #include <fcntl.h>
21713 #include <sys/mman.h>
21714
21715 #if !STDC_HEADERS && !HAVE_STDLIB_H
21716 char *malloc ();
21717 #endif
21718
21719 /* This mess was copied from the GNU getpagesize.h.  */
21720 #if !HAVE_GETPAGESIZE
21721 /* Assume that all systems that can run configure have sys/param.h.  */
21722 # if !HAVE_SYS_PARAM_H
21723 #  define HAVE_SYS_PARAM_H 1
21724 # endif
21725
21726 # ifdef _SC_PAGESIZE
21727 #  define getpagesize() sysconf(_SC_PAGESIZE)
21728 # else /* no _SC_PAGESIZE */
21729 #  if HAVE_SYS_PARAM_H
21730 #   include <sys/param.h>
21731 #   ifdef EXEC_PAGESIZE
21732 #    define getpagesize() EXEC_PAGESIZE
21733 #   else /* no EXEC_PAGESIZE */
21734 #    ifdef NBPG
21735 #     define getpagesize() NBPG * CLSIZE
21736 #     ifndef CLSIZE
21737 #      define CLSIZE 1
21738 #     endif /* no CLSIZE */
21739 #    else /* no NBPG */
21740 #     ifdef NBPC
21741 #      define getpagesize() NBPC
21742 #     else /* no NBPC */
21743 #      ifdef PAGESIZE
21744 #       define getpagesize() PAGESIZE
21745 #      endif /* PAGESIZE */
21746 #     endif /* no NBPC */
21747 #    endif /* no NBPG */
21748 #   endif /* no EXEC_PAGESIZE */
21749 #  else /* no HAVE_SYS_PARAM_H */
21750 #   define getpagesize() 8192   /* punt totally */
21751 #  endif /* no HAVE_SYS_PARAM_H */
21752 # endif /* no _SC_PAGESIZE */
21753
21754 #endif /* no HAVE_GETPAGESIZE */
21755
21756 int
21757 main ()
21758 {
21759   char *data, *data2, *data3;
21760   int i, pagesize;
21761   int fd;
21762
21763   pagesize = getpagesize ();
21764
21765   /* First, make a file with some known garbage in it. */
21766   data = (char *) malloc (pagesize);
21767   if (!data)
21768     return 1;
21769   for (i = 0; i < pagesize; ++i)
21770     *(data + i) = rand ();
21771   umask (0);
21772   fd = creat ("conftest.mmap", 0600);
21773   if (fd < 0)
21774     return 1;
21775   if (write (fd, data, pagesize) != pagesize)
21776     return 1;
21777   close (fd);
21778
21779   /* Next, try to mmap the file at a fixed address which already has
21780      something else allocated at it.  If we can, also make sure that
21781      we see the same garbage.  */
21782   fd = open ("conftest.mmap", O_RDWR);
21783   if (fd < 0)
21784     return 1;
21785   data2 = (char *) malloc (2 * pagesize);
21786   if (!data2)
21787     return 1;
21788   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21789   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21790                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21791     return 1;
21792   for (i = 0; i < pagesize; ++i)
21793     if (*(data + i) != *(data2 + i))
21794       return 1;
21795
21796   /* Finally, make sure that changes to the mapped area do not
21797      percolate back to the file as seen by read().  (This is a bug on
21798      some variants of i386 svr4.0.)  */
21799   for (i = 0; i < pagesize; ++i)
21800     *(data2 + i) = *(data2 + i) + 1;
21801   data3 = (char *) malloc (pagesize);
21802   if (!data3)
21803     return 1;
21804   if (read (fd, data3, pagesize) != pagesize)
21805     return 1;
21806   for (i = 0; i < pagesize; ++i)
21807     if (*(data + i) != *(data3 + i))
21808       return 1;
21809   close (fd);
21810   return 0;
21811 }
21812 _ACEOF
21813 rm -f conftest$ac_exeext
21814 if { (ac_try="$ac_link"
21815 case "(($ac_try" in
21816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817   *) ac_try_echo=$ac_try;;
21818 esac
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820   (eval "$ac_link") 2>&5
21821   ac_status=$?
21822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21824   { (case "(($ac_try" in
21825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826   *) ac_try_echo=$ac_try;;
21827 esac
21828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829   (eval "$ac_try") 2>&5
21830   ac_status=$?
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); }; }; then
21833   ac_cv_func_mmap_fixed_mapped=yes
21834 else
21835   echo "$as_me: program exited with status $ac_status" >&5
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21838
21839 ( exit $ac_status )
21840 ac_cv_func_mmap_fixed_mapped=no
21841 fi
21842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21843 fi
21844
21845
21846 fi
21847 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21848 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21849 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21850
21851 cat >>confdefs.h <<\_ACEOF
21852 #define HAVE_MMAP 1
21853 _ACEOF
21854
21855 fi
21856 rm -f conftest.mmap
21857
21858   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21859 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21860 if test "${ac_cv_func_mmap_file+set}" = set; then
21861   echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863    ac_ext=c
21864 ac_cpp='$CPP $CPPFLAGS'
21865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21868
21869   if test "$cross_compiling" = yes; then
21870   ac_cv_func_mmap_file=no
21871 else
21872   cat >conftest.$ac_ext <<_ACEOF
21873
21874     /* confdefs.h.  */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h.  */
21879
21880 #include <sys/types.h>
21881 #include <sys/mman.h>
21882 #include <fcntl.h>
21883
21884 int
21885 main ()
21886 {
21887
21888   int fd;
21889   fd = creat ("foo",0777);
21890   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21891   unlink ("foo");
21892   return (fd != (int) MAP_FAILED);
21893   ;
21894   return 0;
21895 }
21896 _ACEOF
21897 rm -f conftest$ac_exeext
21898 if { (ac_try="$ac_link"
21899 case "(($ac_try" in
21900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901   *) ac_try_echo=$ac_try;;
21902 esac
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904   (eval "$ac_link") 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21908   { (case "(($ac_try" in
21909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910   *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913   (eval "$ac_try") 2>&5
21914   ac_status=$?
21915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); }; }; then
21917   ac_cv_func_mmap_file=yes
21918 else
21919   echo "$as_me: program exited with status $ac_status" >&5
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923 ( exit $ac_status )
21924 ac_cv_func_mmap_file=no
21925 fi
21926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21927 fi
21928
21929
21930   ac_ext=c
21931 ac_cpp='$CPP $CPPFLAGS'
21932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21935
21936
21937 fi
21938 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21939 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21940 if test "$ac_cv_func_mmap_file" = yes; then
21941
21942 cat >>confdefs.h <<\_ACEOF
21943 #define HAVE_MMAP_FILE
21944 _ACEOF
21945
21946    MMAP_FILE=yes
21947
21948 fi
21949
21950   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21951 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21952 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21953   echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955   if test "$llvm_cv_os_type" = "Interix" ; then
21956    ac_cv_need_dev_zero_for_mmap=yes
21957  else
21958    ac_cv_need_dev_zero_for_mmap=no
21959  fi
21960
21961 fi
21962 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21963 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21964 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21965
21966 cat >>confdefs.h <<\_ACEOF
21967 #define NEED_DEV_ZERO_FOR_MMAP 1
21968 _ACEOF
21969
21970 fi
21971
21972   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21973   then
21974     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21975 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21976   fi
21977   if test "$ac_cv_func_mmap_file" = "no"
21978   then
21979     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21980 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21981   fi
21982 fi
21983
21984 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21985 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21986 ac_ext=cpp
21987 ac_cpp='$CXXCPP $CPPFLAGS'
21988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21991
21992 cat >conftest.$ac_ext <<_ACEOF
21993 /* confdefs.h.  */
21994 _ACEOF
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h.  */
21998 int main() {
21999         volatile unsigned long val = 1;
22000         __sync_synchronize();
22001         __sync_val_compare_and_swap(&val, 1, 0);
22002         __sync_add_and_fetch(&val, 1);
22003         __sync_sub_and_fetch(&val, 1);
22004         return 0;
22005       }
22006
22007 _ACEOF
22008 rm -f conftest.$ac_objext conftest$ac_exeext
22009 if { (ac_try="$ac_link"
22010 case "(($ac_try" in
22011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012   *) ac_try_echo=$ac_try;;
22013 esac
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015   (eval "$ac_link") 2>conftest.er1
22016   ac_status=$?
22017   grep -v '^ *+' conftest.er1 >conftest.err
22018   rm -f conftest.er1
22019   cat conftest.err >&5
22020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); } &&
22022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22023   { (case "(($ac_try" in
22024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025   *) ac_try_echo=$ac_try;;
22026 esac
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028   (eval "$ac_try") 2>&5
22029   ac_status=$?
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); }; } &&
22032          { ac_try='test -s conftest$ac_exeext'
22033   { (case "(($ac_try" in
22034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035   *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038   (eval "$ac_try") 2>&5
22039   ac_status=$?
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); }; }; then
22042   ac_ext=c
22043 ac_cpp='$CPP $CPPFLAGS'
22044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22047
22048   { echo "$as_me:$LINENO: result: yes" >&5
22049 echo "${ECHO_T}yes" >&6; }
22050
22051 cat >>confdefs.h <<\_ACEOF
22052 #define LLVM_MULTITHREADED 1
22053 _ACEOF
22054
22055 else
22056   echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22058
22059         { echo "$as_me:$LINENO: result: no" >&5
22060 echo "${ECHO_T}no" >&6; }
22061
22062 cat >>confdefs.h <<\_ACEOF
22063 #define LLVM_MULTITHREADED 0
22064 _ACEOF
22065
22066   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22067 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22068 fi
22069
22070 rm -f core conftest.err conftest.$ac_objext \
22071       conftest$ac_exeext conftest.$ac_ext
22072
22073
22074 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22075   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22076 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22077 if test "${llvm_cv_linux_mixed+set}" = set; then
22078   echo $ECHO_N "(cached) $ECHO_C" >&6
22079 else
22080    ac_ext=c
22081 ac_cpp='$CPP $CPPFLAGS'
22082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22085
22086   cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h.  */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h.  */
22092 #ifndef __x86_64__
22093        error: Not x86-64 even if uname says so!
22094       #endif
22095
22096 int
22097 main ()
22098 {
22099
22100   ;
22101   return 0;
22102 }
22103 _ACEOF
22104 rm -f conftest.$ac_objext
22105 if { (ac_try="$ac_compile"
22106 case "(($ac_try" in
22107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108   *) ac_try_echo=$ac_try;;
22109 esac
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111   (eval "$ac_compile") 2>conftest.er1
22112   ac_status=$?
22113   grep -v '^ *+' conftest.er1 >conftest.err
22114   rm -f conftest.er1
22115   cat conftest.err >&5
22116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); } &&
22118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22119   { (case "(($ac_try" in
22120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121   *) ac_try_echo=$ac_try;;
22122 esac
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124   (eval "$ac_try") 2>&5
22125   ac_status=$?
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); }; } &&
22128          { ac_try='test -s conftest.$ac_objext'
22129   { (case "(($ac_try" in
22130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131   *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134   (eval "$ac_try") 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; }; then
22138   llvm_cv_linux_mixed=no
22139 else
22140   echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22142
22143         llvm_cv_linux_mixed=yes
22144 fi
22145
22146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147   ac_ext=c
22148 ac_cpp='$CPP $CPPFLAGS'
22149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22152
22153
22154 fi
22155 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22156 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22157
22158   if test "$llvm_cv_linux_mixed" = "yes"; then
22159     llvm_cv_target_arch="x86"
22160     ARCH="x86"
22161   fi
22162 fi
22163
22164
22165 for ac_func in __dso_handle
22166 do
22167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22171   echo $ECHO_N "(cached) $ECHO_C" >&6
22172 else
22173   cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h.  */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h.  */
22179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22181 #define $ac_func innocuous_$ac_func
22182
22183 /* System header to define __stub macros and hopefully few prototypes,
22184     which can conflict with char $ac_func (); below.
22185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22186     <limits.h> exists even on freestanding compilers.  */
22187
22188 #ifdef __STDC__
22189 # include <limits.h>
22190 #else
22191 # include <assert.h>
22192 #endif
22193
22194 #undef $ac_func
22195
22196 /* Override any GCC internal prototype to avoid an error.
22197    Use char because int might match the return type of a GCC
22198    builtin and then its argument prototype would still apply.  */
22199 #ifdef __cplusplus
22200 extern "C"
22201 #endif
22202 char $ac_func ();
22203 /* The GNU C library defines this for functions which it implements
22204     to always fail with ENOSYS.  Some functions are actually named
22205     something starting with __ and the normal name is an alias.  */
22206 #if defined __stub_$ac_func || defined __stub___$ac_func
22207 choke me
22208 #endif
22209
22210 int
22211 main ()
22212 {
22213 return $ac_func ();
22214   ;
22215   return 0;
22216 }
22217 _ACEOF
22218 rm -f conftest.$ac_objext conftest$ac_exeext
22219 if { (ac_try="$ac_link"
22220 case "(($ac_try" in
22221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22222   *) ac_try_echo=$ac_try;;
22223 esac
22224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22225   (eval "$ac_link") 2>conftest.er1
22226   ac_status=$?
22227   grep -v '^ *+' conftest.er1 >conftest.err
22228   rm -f conftest.er1
22229   cat conftest.err >&5
22230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231   (exit $ac_status); } &&
22232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22233   { (case "(($ac_try" in
22234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235   *) ac_try_echo=$ac_try;;
22236 esac
22237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22238   (eval "$ac_try") 2>&5
22239   ac_status=$?
22240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241   (exit $ac_status); }; } &&
22242          { ac_try='test -s conftest$ac_exeext'
22243   { (case "(($ac_try" in
22244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245   *) ac_try_echo=$ac_try;;
22246 esac
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248   (eval "$ac_try") 2>&5
22249   ac_status=$?
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); }; }; then
22252   eval "$as_ac_var=yes"
22253 else
22254   echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22256
22257         eval "$as_ac_var=no"
22258 fi
22259
22260 rm -f core conftest.err conftest.$ac_objext \
22261       conftest$ac_exeext conftest.$ac_ext
22262 fi
22263 ac_res=`eval echo '${'$as_ac_var'}'`
22264                { echo "$as_me:$LINENO: result: $ac_res" >&5
22265 echo "${ECHO_T}$ac_res" >&6; }
22266 if test `eval echo '${'$as_ac_var'}'` = yes; then
22267   cat >>confdefs.h <<_ACEOF
22268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22269 _ACEOF
22270
22271 fi
22272 done
22273
22274
22275 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22276 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22277 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22278   echo $ECHO_N "(cached) $ECHO_C" >&6
22279 else
22280   llvm_cv_llvmgcc_dragonegg="no"
22281 if test -n "$LLVMGCC" ; then
22282   cp /dev/null conftest.c
22283   $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22284   if test $? -eq 0 ; then
22285     llvm_cv_llvmgcc_dragonegg="yes"
22286   fi
22287   rm conftest.c
22288 fi
22289 fi
22290 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22291 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22292
22293 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22294   LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22295   LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22296 else
22297   LLVMCC_EMITIR_FLAG="-emit-llvm"
22298   LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22299 fi
22300
22301
22302
22303 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22304 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22305 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22306   echo $ECHO_N "(cached) $ECHO_C" >&6
22307 else
22308   llvm_cv_llvmgcc_sanity="no"
22309 if test -n "$LLVMGCC" ; then
22310   cp /dev/null conftest.c
22311   $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22312       grep 'target datalayout =' > /dev/null 2>&1
22313   if test $? -eq 0 ; then
22314     llvm_cv_llvmgcc_sanity="yes"
22315   fi
22316   rm conftest.c
22317 fi
22318 fi
22319 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22320 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22321
22322 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22323   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22324 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22325   llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22326   LLVMCC1=$llvmcc1path
22327
22328   llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22329   LLVMCC1PLUS=$llvmcc1pluspath
22330
22331   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22332   LLVMGCCDIR=$llvmgccdir
22333
22334   llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22335   LLVMGCC_LANGS=$llvmgcclangs
22336
22337   LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22338
22339
22340   { echo "$as_me:$LINENO: result: ok" >&5
22341 echo "${ECHO_T}ok" >&6; }
22342 fi
22343
22344 SHLIBEXT=$libltdl_cv_shlibext
22345
22346
22347 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22348
22349
22350 # Translate the various configuration directories and other basic
22351 # information into substitutions that will end up in Makefile.config.in
22352 # that these configured values can be used by the makefiles
22353 if test "${prefix}" = "NONE" ; then
22354   prefix="/usr/local"
22355 fi
22356 eval LLVM_PREFIX="${prefix}";
22357 eval LLVM_BINDIR="${prefix}/bin";
22358 eval LLVM_LIBDIR="${prefix}/lib";
22359 eval LLVM_DATADIR="${prefix}/share/llvm";
22360 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22361 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22362 eval LLVM_INCLUDEDIR="${prefix}/include";
22363 eval LLVM_INFODIR="${prefix}/info";
22364 eval LLVM_MANDIR="${prefix}/man";
22365 LLVM_CONFIGTIME=`date`
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377 # Place the various directores into the config.h file as #defines so that we
22378 # can know about the installation paths within LLVM.
22379
22380 cat >>confdefs.h <<_ACEOF
22381 #define LLVM_PREFIX "$LLVM_PREFIX"
22382 _ACEOF
22383
22384
22385 cat >>confdefs.h <<_ACEOF
22386 #define LLVM_BINDIR "$LLVM_BINDIR"
22387 _ACEOF
22388
22389
22390 cat >>confdefs.h <<_ACEOF
22391 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22392 _ACEOF
22393
22394
22395 cat >>confdefs.h <<_ACEOF
22396 #define LLVM_DATADIR "$LLVM_DATADIR"
22397 _ACEOF
22398
22399
22400 cat >>confdefs.h <<_ACEOF
22401 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22402 _ACEOF
22403
22404
22405 cat >>confdefs.h <<_ACEOF
22406 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22407 _ACEOF
22408
22409
22410 cat >>confdefs.h <<_ACEOF
22411 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22412 _ACEOF
22413
22414
22415 cat >>confdefs.h <<_ACEOF
22416 #define LLVM_INFODIR "$LLVM_INFODIR"
22417 _ACEOF
22418
22419
22420 cat >>confdefs.h <<_ACEOF
22421 #define LLVM_MANDIR "$LLVM_MANDIR"
22422 _ACEOF
22423
22424
22425 cat >>confdefs.h <<_ACEOF
22426 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22427 _ACEOF
22428
22429
22430 cat >>confdefs.h <<_ACEOF
22431 #define LLVM_HOSTTRIPLE "$host"
22432 _ACEOF
22433
22434
22435 # Determine which bindings to build.
22436 if test "$BINDINGS_TO_BUILD" = auto ; then
22437   BINDINGS_TO_BUILD=""
22438   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22439     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22440   fi
22441 fi
22442 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22443
22444
22445 # This isn't really configurey, but it avoids having to repeat the list in
22446 # other files.
22447 ALL_BINDINGS=ocaml
22448
22449
22450 # Do any work necessary to ensure that bindings have what they need.
22451 binding_prereqs_failed=0
22452 for a_binding in $BINDINGS_TO_BUILD ; do
22453   case "$a_binding" in
22454   ocaml)
22455     if test "x$OCAMLC" = x ; then
22456       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22457 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22458       binding_prereqs_failed=1
22459     fi
22460     if test "x$OCAMLDEP" = x ; then
22461       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22462 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22463       binding_prereqs_failed=1
22464     fi
22465     if test "x$OCAMLOPT" = x ; then
22466       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22467 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22468           fi
22469     if test "x$with_ocaml_libdir" != xauto ; then
22470       OCAML_LIBDIR=$with_ocaml_libdir
22471
22472     else
22473       ocaml_stdlib="`"$OCAMLC" -where`"
22474       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22475       then
22476         # ocaml stdlib is beneath our prefix; use stdlib
22477         OCAML_LIBDIR=$ocaml_stdlib
22478
22479       else
22480         # ocaml stdlib is outside our prefix; use libdir/ocaml
22481         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22482
22483       fi
22484     fi
22485     ;;
22486   esac
22487 done
22488 if test "$binding_prereqs_failed" = 1 ; then
22489   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22490 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22491    { (exit 1); exit 1; }; }
22492 fi
22493
22494 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22495 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22496 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22497   echo $ECHO_N "(cached) $ECHO_C" >&6
22498 else
22499    ac_ext=cpp
22500 ac_cpp='$CXXCPP $CPPFLAGS'
22501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22504
22505   oldcxxflags="$CXXFLAGS"
22506   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22507   cat >conftest.$ac_ext <<_ACEOF
22508 /* confdefs.h.  */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h.  */
22513
22514 int
22515 main ()
22516 {
22517
22518   ;
22519   return 0;
22520 }
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526   *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529   (eval "$ac_compile") 2>conftest.er1
22530   ac_status=$?
22531   grep -v '^ *+' conftest.er1 >conftest.err
22532   rm -f conftest.er1
22533   cat conftest.err >&5
22534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535   (exit $ac_status); } &&
22536          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22537   { (case "(($ac_try" in
22538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539   *) ac_try_echo=$ac_try;;
22540 esac
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542   (eval "$ac_try") 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); }; } &&
22546          { ac_try='test -s conftest.$ac_objext'
22547   { (case "(($ac_try" in
22548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549   *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552   (eval "$ac_try") 2>&5
22553   ac_status=$?
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); }; }; then
22556   llvm_cv_cxx_visibility_inlines_hidden=yes
22557 else
22558   echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22560
22561         llvm_cv_cxx_visibility_inlines_hidden=no
22562 fi
22563
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565   CXXFLAGS="$oldcxxflags"
22566   ac_ext=c
22567 ac_cpp='$CPP $CPPFLAGS'
22568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22571
22572
22573 fi
22574 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22575 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22576 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22577   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22578
22579 else
22580   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22581
22582 fi
22583
22584
22585 if test "$llvm_cv_link_use_r" = "yes" ; then
22586   RPATH="-Wl,-R"
22587 else
22588   RPATH="-Wl,-rpath"
22589 fi
22590
22591
22592 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22593   RDYNAMIC="-Wl,-export-dynamic"
22594 else
22595   RDYNAMIC=""
22596 fi
22597
22598
22599
22600 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22601
22602
22603
22604
22605
22606
22607 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22608
22609 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22610
22611 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22612
22613 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22614
22615 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22616
22617
22618 ac_config_files="$ac_config_files Makefile.config"
22619
22620
22621 ac_config_files="$ac_config_files llvm.spec"
22622
22623
22624 ac_config_files="$ac_config_files docs/doxygen.cfg"
22625
22626 if test -f ${srcdir}/tools/clang/README.txt; then
22627   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22628
22629 fi
22630
22631 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22632
22633
22634 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22635
22636
22637 ac_config_commands="$ac_config_commands setup"
22638
22639 ac_config_commands="$ac_config_commands Makefile"
22640
22641
22642 ac_config_commands="$ac_config_commands Makefile.common"
22643
22644
22645 ac_config_commands="$ac_config_commands examples/Makefile"
22646
22647
22648 ac_config_commands="$ac_config_commands lib/Makefile"
22649
22650
22651 ac_config_commands="$ac_config_commands runtime/Makefile"
22652
22653
22654 ac_config_commands="$ac_config_commands test/Makefile"
22655
22656
22657 ac_config_commands="$ac_config_commands test/Makefile.tests"
22658
22659
22660 ac_config_commands="$ac_config_commands unittests/Makefile"
22661
22662
22663 ac_config_commands="$ac_config_commands tools/Makefile"
22664
22665
22666 ac_config_commands="$ac_config_commands utils/Makefile"
22667
22668
22669 ac_config_commands="$ac_config_commands projects/Makefile"
22670
22671
22672 ac_config_commands="$ac_config_commands bindings/Makefile"
22673
22674
22675 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22676
22677
22678
22679 cat >confcache <<\_ACEOF
22680 # This file is a shell script that caches the results of configure
22681 # tests run on this system so they can be shared between configure
22682 # scripts and configure runs, see configure's option --config-cache.
22683 # It is not useful on other systems.  If it contains results you don't
22684 # want to keep, you may remove or edit it.
22685 #
22686 # config.status only pays attention to the cache file if you give it
22687 # the --recheck option to rerun configure.
22688 #
22689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22691 # following values.
22692
22693 _ACEOF
22694
22695 # The following way of writing the cache mishandles newlines in values,
22696 # but we know of no workaround that is simple, portable, and efficient.
22697 # So, we kill variables containing newlines.
22698 # Ultrix sh set writes to stderr and can't be redirected directly,
22699 # and sets the high bit in the cache file unless we assign to the vars.
22700 (
22701   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22702     eval ac_val=\$$ac_var
22703     case $ac_val in #(
22704     *${as_nl}*)
22705       case $ac_var in #(
22706       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22708       esac
22709       case $ac_var in #(
22710       _ | IFS | as_nl) ;; #(
22711       *) $as_unset $ac_var ;;
22712       esac ;;
22713     esac
22714   done
22715
22716   (set) 2>&1 |
22717     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22718     *${as_nl}ac_space=\ *)
22719       # `set' does not quote correctly, so add quotes (double-quote
22720       # substitution turns \\\\ into \\, and sed turns \\ into \).
22721       sed -n \
22722         "s/'/'\\\\''/g;
22723           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22724       ;; #(
22725     *)
22726       # `set' quotes correctly as required by POSIX, so do not add quotes.
22727       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22728       ;;
22729     esac |
22730     sort
22731 ) |
22732   sed '
22733      /^ac_cv_env_/b end
22734      t clear
22735      :clear
22736      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22737      t end
22738      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22739      :end' >>confcache
22740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22741   if test -w "$cache_file"; then
22742     test "x$cache_file" != "x/dev/null" &&
22743       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22744 echo "$as_me: updating cache $cache_file" >&6;}
22745     cat confcache >$cache_file
22746   else
22747     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22748 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22749   fi
22750 fi
22751 rm -f confcache
22752
22753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22754 # Let make expand exec_prefix.
22755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22756
22757 DEFS=-DHAVE_CONFIG_H
22758
22759 ac_libobjs=
22760 ac_ltlibobjs=
22761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22762   # 1. Remove the extension, and $U if already installed.
22763   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22764   ac_i=`echo "$ac_i" | sed "$ac_script"`
22765   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22766   #    will be set to the directory where LIBOBJS objects are built.
22767   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22768   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22769 done
22770 LIBOBJS=$ac_libobjs
22771
22772 LTLIBOBJS=$ac_ltlibobjs
22773
22774
22775 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22776   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22777 Usually this means the macro was only invoked conditionally." >&5
22778 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22779 Usually this means the macro was only invoked conditionally." >&2;}
22780    { (exit 1); exit 1; }; }
22781 fi
22782 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22783   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22784 Usually this means the macro was only invoked conditionally." >&5
22785 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22786 Usually this means the macro was only invoked conditionally." >&2;}
22787    { (exit 1); exit 1; }; }
22788 fi
22789
22790 : ${CONFIG_STATUS=./config.status}
22791 ac_clean_files_save=$ac_clean_files
22792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22795 cat >$CONFIG_STATUS <<_ACEOF
22796 #! $SHELL
22797 # Generated by $as_me.
22798 # Run this file to recreate the current configuration.
22799 # Compiler output produced by configure, useful for debugging
22800 # configure, is in config.log if it exists.
22801
22802 debug=false
22803 ac_cs_recheck=false
22804 ac_cs_silent=false
22805 SHELL=\${CONFIG_SHELL-$SHELL}
22806 _ACEOF
22807
22808 cat >>$CONFIG_STATUS <<\_ACEOF
22809 ## --------------------- ##
22810 ## M4sh Initialization.  ##
22811 ## --------------------- ##
22812
22813 # Be Bourne compatible
22814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22815   emulate sh
22816   NULLCMD=:
22817   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22818   # is contrary to our usage.  Disable this feature.
22819   alias -g '${1+"$@"}'='"$@"'
22820   setopt NO_GLOB_SUBST
22821 else
22822   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22823 fi
22824 BIN_SH=xpg4; export BIN_SH # for Tru64
22825 DUALCASE=1; export DUALCASE # for MKS sh
22826
22827
22828 # PATH needs CR
22829 # Avoid depending upon Character Ranges.
22830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22833 as_cr_digits='0123456789'
22834 as_cr_alnum=$as_cr_Letters$as_cr_digits
22835
22836 # The user is always right.
22837 if test "${PATH_SEPARATOR+set}" != set; then
22838   echo "#! /bin/sh" >conf$$.sh
22839   echo  "exit 0"   >>conf$$.sh
22840   chmod +x conf$$.sh
22841   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22842     PATH_SEPARATOR=';'
22843   else
22844     PATH_SEPARATOR=:
22845   fi
22846   rm -f conf$$.sh
22847 fi
22848
22849 # Support unset when possible.
22850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22851   as_unset=unset
22852 else
22853   as_unset=false
22854 fi
22855
22856
22857 # IFS
22858 # We need space, tab and new line, in precisely that order.  Quoting is
22859 # there to prevent editors from complaining about space-tab.
22860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22861 # splitting by setting IFS to empty value.)
22862 as_nl='
22863 '
22864 IFS=" ""        $as_nl"
22865
22866 # Find who we are.  Look in the path if we contain no directory separator.
22867 case $0 in
22868   *[\\/]* ) as_myself=$0 ;;
22869   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22870 for as_dir in $PATH
22871 do
22872   IFS=$as_save_IFS
22873   test -z "$as_dir" && as_dir=.
22874   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22875 done
22876 IFS=$as_save_IFS
22877
22878      ;;
22879 esac
22880 # We did not find ourselves, most probably we were run as `sh COMMAND'
22881 # in which case we are not to be found in the path.
22882 if test "x$as_myself" = x; then
22883   as_myself=$0
22884 fi
22885 if test ! -f "$as_myself"; then
22886   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22887   { (exit 1); exit 1; }
22888 fi
22889
22890 # Work around bugs in pre-3.0 UWIN ksh.
22891 for as_var in ENV MAIL MAILPATH
22892 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22893 done
22894 PS1='$ '
22895 PS2='> '
22896 PS4='+ '
22897
22898 # NLS nuisances.
22899 for as_var in \
22900   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22901   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22902   LC_TELEPHONE LC_TIME
22903 do
22904   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22905     eval $as_var=C; export $as_var
22906   else
22907     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22908   fi
22909 done
22910
22911 # Required to use basename.
22912 if expr a : '\(a\)' >/dev/null 2>&1 &&
22913    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22914   as_expr=expr
22915 else
22916   as_expr=false
22917 fi
22918
22919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22920   as_basename=basename
22921 else
22922   as_basename=false
22923 fi
22924
22925
22926 # Name of the executable.
22927 as_me=`$as_basename -- "$0" ||
22928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22929          X"$0" : 'X\(//\)$' \| \
22930          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22931 echo X/"$0" |
22932     sed '/^.*\/\([^/][^/]*\)\/*$/{
22933             s//\1/
22934             q
22935           }
22936           /^X\/\(\/\/\)$/{
22937             s//\1/
22938             q
22939           }
22940           /^X\/\(\/\).*/{
22941             s//\1/
22942             q
22943           }
22944           s/.*/./; q'`
22945
22946 # CDPATH.
22947 $as_unset CDPATH
22948
22949
22950
22951   as_lineno_1=$LINENO
22952   as_lineno_2=$LINENO
22953   test "x$as_lineno_1" != "x$as_lineno_2" &&
22954   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22955
22956   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22957   # uniformly replaced by the line number.  The first 'sed' inserts a
22958   # line-number line after each line using $LINENO; the second 'sed'
22959   # does the real work.  The second script uses 'N' to pair each
22960   # line-number line with the line containing $LINENO, and appends
22961   # trailing '-' during substitution so that $LINENO is not a special
22962   # case at line end.
22963   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22964   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22965   # E. McMahon (1931-1989) for sed's syntax.  :-)
22966   sed -n '
22967     p
22968     /[$]LINENO/=
22969   ' <$as_myself |
22970     sed '
22971       s/[$]LINENO.*/&-/
22972       t lineno
22973       b
22974       :lineno
22975       N
22976       :loop
22977       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22978       t loop
22979       s/-\n.*//
22980     ' >$as_me.lineno &&
22981   chmod +x "$as_me.lineno" ||
22982     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22983    { (exit 1); exit 1; }; }
22984
22985   # Don't try to exec as it changes $[0], causing all sort of problems
22986   # (the dirname of $[0] is not the place where we might find the
22987   # original and so on.  Autoconf is especially sensitive to this).
22988   . "./$as_me.lineno"
22989   # Exit status is that of the last command.
22990   exit
22991 }
22992
22993
22994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22995   as_dirname=dirname
22996 else
22997   as_dirname=false
22998 fi
22999
23000 ECHO_C= ECHO_N= ECHO_T=
23001 case `echo -n x` in
23002 -n*)
23003   case `echo 'x\c'` in
23004   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23005   *)   ECHO_C='\c';;
23006   esac;;
23007 *)
23008   ECHO_N='-n';;
23009 esac
23010
23011 if expr a : '\(a\)' >/dev/null 2>&1 &&
23012    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23013   as_expr=expr
23014 else
23015   as_expr=false
23016 fi
23017
23018 rm -f conf$$ conf$$.exe conf$$.file
23019 if test -d conf$$.dir; then
23020   rm -f conf$$.dir/conf$$.file
23021 else
23022   rm -f conf$$.dir
23023   mkdir conf$$.dir
23024 fi
23025 echo >conf$$.file
23026 if ln -s conf$$.file conf$$ 2>/dev/null; then
23027   as_ln_s='ln -s'
23028   # ... but there are two gotchas:
23029   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23030   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23031   # In both cases, we have to default to `cp -p'.
23032   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23033     as_ln_s='cp -p'
23034 elif ln conf$$.file conf$$ 2>/dev/null; then
23035   as_ln_s=ln
23036 else
23037   as_ln_s='cp -p'
23038 fi
23039 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23040 rmdir conf$$.dir 2>/dev/null
23041
23042 if mkdir -p . 2>/dev/null; then
23043   as_mkdir_p=:
23044 else
23045   test -d ./-p && rmdir ./-p
23046   as_mkdir_p=false
23047 fi
23048
23049 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23050 # systems may use methods other than mode bits to determine executability.
23051 cat >conf$$.file <<_ASEOF
23052 #! /bin/sh
23053 exit 0
23054 _ASEOF
23055 chmod +x conf$$.file
23056 if test -x conf$$.file >/dev/null 2>&1; then
23057   as_executable_p="test -x"
23058 else
23059   as_executable_p=:
23060 fi
23061 rm -f conf$$.file
23062
23063 # Sed expression to map a string onto a valid CPP name.
23064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23065
23066 # Sed expression to map a string onto a valid variable name.
23067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23068
23069
23070 exec 6>&1
23071
23072 # Save the log message, to keep $[0] and so on meaningful, and to
23073 # report actual input values of CONFIG_FILES etc. instead of their
23074 # values after options handling.
23075 ac_log="
23076 This file was extended by llvm $as_me 3.0svn, which was
23077 generated by GNU Autoconf 2.60.  Invocation command line was
23078
23079   CONFIG_FILES    = $CONFIG_FILES
23080   CONFIG_HEADERS  = $CONFIG_HEADERS
23081   CONFIG_LINKS    = $CONFIG_LINKS
23082   CONFIG_COMMANDS = $CONFIG_COMMANDS
23083   $ $0 $@
23084
23085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23086 "
23087
23088 _ACEOF
23089
23090 cat >>$CONFIG_STATUS <<_ACEOF
23091 # Files that config.status was made for.
23092 config_files="$ac_config_files"
23093 config_headers="$ac_config_headers"
23094 config_commands="$ac_config_commands"
23095
23096 _ACEOF
23097
23098 cat >>$CONFIG_STATUS <<\_ACEOF
23099 ac_cs_usage="\
23100 \`$as_me' instantiates files from templates according to the
23101 current configuration.
23102
23103 Usage: $0 [OPTIONS] [FILE]...
23104
23105   -h, --help       print this help, then exit
23106   -V, --version    print version number, then exit
23107   -q, --quiet      do not print progress messages
23108   -d, --debug      don't remove temporary files
23109       --recheck    update $as_me by reconfiguring in the same conditions
23110   --file=FILE[:TEMPLATE]
23111                    instantiate the configuration file FILE
23112   --header=FILE[:TEMPLATE]
23113                    instantiate the configuration header FILE
23114
23115 Configuration files:
23116 $config_files
23117
23118 Configuration headers:
23119 $config_headers
23120
23121 Configuration commands:
23122 $config_commands
23123
23124 Report bugs to <bug-autoconf@gnu.org>."
23125
23126 _ACEOF
23127 cat >>$CONFIG_STATUS <<_ACEOF
23128 ac_cs_version="\\
23129 llvm config.status 3.0svn
23130 configured by $0, generated by GNU Autoconf 2.60,
23131   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23132
23133 Copyright (C) 2006 Free Software Foundation, Inc.
23134 This config.status script is free software; the Free Software Foundation
23135 gives unlimited permission to copy, distribute and modify it."
23136
23137 ac_pwd='$ac_pwd'
23138 srcdir='$srcdir'
23139 INSTALL='$INSTALL'
23140 _ACEOF
23141
23142 cat >>$CONFIG_STATUS <<\_ACEOF
23143 # If no file are specified by the user, then we need to provide default
23144 # value.  By we need to know if files were specified by the user.
23145 ac_need_defaults=:
23146 while test $# != 0
23147 do
23148   case $1 in
23149   --*=*)
23150     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23151     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23152     ac_shift=:
23153     ;;
23154   *)
23155     ac_option=$1
23156     ac_optarg=$2
23157     ac_shift=shift
23158     ;;
23159   esac
23160
23161   case $ac_option in
23162   # Handling of the options.
23163   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23164     ac_cs_recheck=: ;;
23165   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23166     echo "$ac_cs_version"; exit ;;
23167   --debug | --debu | --deb | --de | --d | -d )
23168     debug=: ;;
23169   --file | --fil | --fi | --f )
23170     $ac_shift
23171     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23172     ac_need_defaults=false;;
23173   --header | --heade | --head | --hea )
23174     $ac_shift
23175     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23176     ac_need_defaults=false;;
23177   --he | --h)
23178     # Conflict between --help and --header
23179     { echo "$as_me: error: ambiguous option: $1
23180 Try \`$0 --help' for more information." >&2
23181    { (exit 1); exit 1; }; };;
23182   --help | --hel | -h )
23183     echo "$ac_cs_usage"; exit ;;
23184   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23185   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23186     ac_cs_silent=: ;;
23187
23188   # This is an error.
23189   -*) { echo "$as_me: error: unrecognized option: $1
23190 Try \`$0 --help' for more information." >&2
23191    { (exit 1); exit 1; }; } ;;
23192
23193   *) ac_config_targets="$ac_config_targets $1"
23194      ac_need_defaults=false ;;
23195
23196   esac
23197   shift
23198 done
23199
23200 ac_configure_extra_args=
23201
23202 if $ac_cs_silent; then
23203   exec 6>/dev/null
23204   ac_configure_extra_args="$ac_configure_extra_args --silent"
23205 fi
23206
23207 _ACEOF
23208 cat >>$CONFIG_STATUS <<_ACEOF
23209 if \$ac_cs_recheck; then
23210   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23211   CONFIG_SHELL=$SHELL
23212   export CONFIG_SHELL
23213   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23214 fi
23215
23216 _ACEOF
23217 cat >>$CONFIG_STATUS <<\_ACEOF
23218 exec 5>>config.log
23219 {
23220   echo
23221   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23222 ## Running $as_me. ##
23223 _ASBOX
23224   echo "$ac_log"
23225 } >&5
23226
23227 _ACEOF
23228 cat >>$CONFIG_STATUS <<_ACEOF
23229 #
23230 # INIT-COMMANDS
23231 #
23232 llvm_src="${srcdir}"
23233
23234 _ACEOF
23235
23236 cat >>$CONFIG_STATUS <<\_ACEOF
23237
23238 # Handling of arguments.
23239 for ac_config_target in $ac_config_targets
23240 do
23241   case $ac_config_target in
23242     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23243     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23244     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23245     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23246     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23247     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23248     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23249     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23250     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23251     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23252     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23253     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23254     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23255     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23256     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23257     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23258     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23259     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23260     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23261     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23262     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23263     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23264     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23265     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23266     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23267     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23268     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23269
23270   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23271 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23272    { (exit 1); exit 1; }; };;
23273   esac
23274 done
23275
23276
23277 # If the user did not use the arguments to specify the items to instantiate,
23278 # then the envvar interface is used.  Set only those that are not.
23279 # We use the long form for the default assignment because of an extremely
23280 # bizarre bug on SunOS 4.1.3.
23281 if $ac_need_defaults; then
23282   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23283   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23284   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23285 fi
23286
23287 # Have a temporary directory for convenience.  Make it in the build tree
23288 # simply because there is no reason against having it here, and in addition,
23289 # creating and moving files from /tmp can sometimes cause problems.
23290 # Hook for its removal unless debugging.
23291 # Note that there is a small window in which the directory will not be cleaned:
23292 # after its creation but before its name has been assigned to `$tmp'.
23293 $debug ||
23294 {
23295   tmp=
23296   trap 'exit_status=$?
23297   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23298 ' 0
23299   trap '{ (exit 1); exit 1; }' 1 2 13 15
23300 }
23301 # Create a (secure) tmp directory for tmp files.
23302
23303 {
23304   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23305   test -n "$tmp" && test -d "$tmp"
23306 }  ||
23307 {
23308   tmp=./conf$$-$RANDOM
23309   (umask 077 && mkdir "$tmp")
23310 } ||
23311 {
23312    echo "$me: cannot create a temporary directory in ." >&2
23313    { (exit 1); exit 1; }
23314 }
23315
23316 #
23317 # Set up the sed scripts for CONFIG_FILES section.
23318 #
23319
23320 # No need to generate the scripts if there are no CONFIG_FILES.
23321 # This happens for instance when ./config.status config.h
23322 if test -n "$CONFIG_FILES"; then
23323
23324 _ACEOF
23325
23326
23327
23328 ac_delim='%!_!# '
23329 for ac_last_try in false false false false false :; do
23330   cat >conf$$subs.sed <<_ACEOF
23331 SHELL!$SHELL$ac_delim
23332 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23333 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23334 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23335 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23336 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23337 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23338 exec_prefix!$exec_prefix$ac_delim
23339 prefix!$prefix$ac_delim
23340 program_transform_name!$program_transform_name$ac_delim
23341 bindir!$bindir$ac_delim
23342 sbindir!$sbindir$ac_delim
23343 libexecdir!$libexecdir$ac_delim
23344 datarootdir!$datarootdir$ac_delim
23345 datadir!$datadir$ac_delim
23346 sysconfdir!$sysconfdir$ac_delim
23347 sharedstatedir!$sharedstatedir$ac_delim
23348 localstatedir!$localstatedir$ac_delim
23349 includedir!$includedir$ac_delim
23350 oldincludedir!$oldincludedir$ac_delim
23351 docdir!$docdir$ac_delim
23352 infodir!$infodir$ac_delim
23353 htmldir!$htmldir$ac_delim
23354 dvidir!$dvidir$ac_delim
23355 pdfdir!$pdfdir$ac_delim
23356 psdir!$psdir$ac_delim
23357 libdir!$libdir$ac_delim
23358 localedir!$localedir$ac_delim
23359 mandir!$mandir$ac_delim
23360 DEFS!$DEFS$ac_delim
23361 ECHO_C!$ECHO_C$ac_delim
23362 ECHO_N!$ECHO_N$ac_delim
23363 ECHO_T!$ECHO_T$ac_delim
23364 LIBS!$LIBS$ac_delim
23365 build_alias!$build_alias$ac_delim
23366 host_alias!$host_alias$ac_delim
23367 target_alias!$target_alias$ac_delim
23368 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23369 subdirs!$subdirs$ac_delim
23370 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23371 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23372 build!$build$ac_delim
23373 build_cpu!$build_cpu$ac_delim
23374 build_vendor!$build_vendor$ac_delim
23375 build_os!$build_os$ac_delim
23376 host!$host$ac_delim
23377 host_cpu!$host_cpu$ac_delim
23378 host_vendor!$host_vendor$ac_delim
23379 host_os!$host_os$ac_delim
23380 target!$target$ac_delim
23381 target_cpu!$target_cpu$ac_delim
23382 target_vendor!$target_vendor$ac_delim
23383 target_os!$target_os$ac_delim
23384 OS!$OS$ac_delim
23385 HOST_OS!$HOST_OS$ac_delim
23386 TARGET_OS!$TARGET_OS$ac_delim
23387 LINKALL!$LINKALL$ac_delim
23388 NOLINKALL!$NOLINKALL$ac_delim
23389 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23390 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23391 ARCH!$ARCH$ac_delim
23392 ENDIAN!$ENDIAN$ac_delim
23393 CC!$CC$ac_delim
23394 CFLAGS!$CFLAGS$ac_delim
23395 LDFLAGS!$LDFLAGS$ac_delim
23396 CPPFLAGS!$CPPFLAGS$ac_delim
23397 ac_ct_CC!$ac_ct_CC$ac_delim
23398 EXEEXT!$EXEEXT$ac_delim
23399 OBJEXT!$OBJEXT$ac_delim
23400 CPP!$CPP$ac_delim
23401 GREP!$GREP$ac_delim
23402 EGREP!$EGREP$ac_delim
23403 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23404 BUILD_CC!$BUILD_CC$ac_delim
23405 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23406 BUILD_CXX!$BUILD_CXX$ac_delim
23407 CVSBUILD!$CVSBUILD$ac_delim
23408 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23409 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23410 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23411 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23412 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23413 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23414 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23415 JIT!$JIT$ac_delim
23416 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23417 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23418 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23419 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23420 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23421 ENABLE_PIC!$ENABLE_PIC$ac_delim
23422 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23423 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23424 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23425 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23426 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23427 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23428 _ACEOF
23429
23430   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23431     break
23432   elif $ac_last_try; then
23433     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23434 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23435    { (exit 1); exit 1; }; }
23436   else
23437     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23438   fi
23439 done
23440
23441 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23442 if test -n "$ac_eof"; then
23443   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23444   ac_eof=`expr $ac_eof + 1`
23445 fi
23446
23447 cat >>$CONFIG_STATUS <<_ACEOF
23448 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23450 _ACEOF
23451 sed '
23452 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23453 s/^/s,@/; s/!/@,|#_!!_#|/
23454 :n
23455 t n
23456 s/'"$ac_delim"'$/,g/; t
23457 s/$/\\/; p
23458 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23459 ' >>$CONFIG_STATUS <conf$$subs.sed
23460 rm -f conf$$subs.sed
23461 cat >>$CONFIG_STATUS <<_ACEOF
23462 CEOF$ac_eof
23463 _ACEOF
23464
23465
23466 ac_delim='%!_!# '
23467 for ac_last_try in false false false false false :; do
23468   cat >conf$$subs.sed <<_ACEOF
23469 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23470 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23471 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23472 CLANGPATH!$CLANGPATH$ac_delim
23473 CLANGXXPATH!$CLANGXXPATH$ac_delim
23474 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23475 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23476 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23477 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23478 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23479 CXX!$CXX$ac_delim
23480 CXXFLAGS!$CXXFLAGS$ac_delim
23481 ac_ct_CXX!$ac_ct_CXX$ac_delim
23482 NM!$NM$ac_delim
23483 ifGNUmake!$ifGNUmake$ac_delim
23484 LN_S!$LN_S$ac_delim
23485 CMP!$CMP$ac_delim
23486 CP!$CP$ac_delim
23487 DATE!$DATE$ac_delim
23488 FIND!$FIND$ac_delim
23489 MKDIR!$MKDIR$ac_delim
23490 MV!$MV$ac_delim
23491 RANLIB!$RANLIB$ac_delim
23492 AR!$AR$ac_delim
23493 RM!$RM$ac_delim
23494 SED!$SED$ac_delim
23495 TAR!$TAR$ac_delim
23496 BINPWD!$BINPWD$ac_delim
23497 GRAPHVIZ!$GRAPHVIZ$ac_delim
23498 DOT!$DOT$ac_delim
23499 FDP!$FDP$ac_delim
23500 NEATO!$NEATO$ac_delim
23501 TWOPI!$TWOPI$ac_delim
23502 CIRCO!$CIRCO$ac_delim
23503 GV!$GV$ac_delim
23504 DOTTY!$DOTTY$ac_delim
23505 XDOT_PY!$XDOT_PY$ac_delim
23506 PERL!$PERL$ac_delim
23507 HAVE_PERL!$HAVE_PERL$ac_delim
23508 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23509 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23510 INSTALL_DATA!$INSTALL_DATA$ac_delim
23511 BZIP2!$BZIP2$ac_delim
23512 CAT!$CAT$ac_delim
23513 DOXYGEN!$DOXYGEN$ac_delim
23514 GROFF!$GROFF$ac_delim
23515 GZIPBIN!$GZIPBIN$ac_delim
23516 POD2HTML!$POD2HTML$ac_delim
23517 POD2MAN!$POD2MAN$ac_delim
23518 PDFROFF!$PDFROFF$ac_delim
23519 RUNTEST!$RUNTEST$ac_delim
23520 TCLSH!$TCLSH$ac_delim
23521 ZIP!$ZIP$ac_delim
23522 OCAMLC!$OCAMLC$ac_delim
23523 OCAMLOPT!$OCAMLOPT$ac_delim
23524 OCAMLDEP!$OCAMLDEP$ac_delim
23525 OCAMLDOC!$OCAMLDOC$ac_delim
23526 GAS!$GAS$ac_delim
23527 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23528 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23529 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23530 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23531 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23532 LIBADD_DL!$LIBADD_DL$ac_delim
23533 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23534 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23535 LLVMGCC!$LLVMGCC$ac_delim
23536 LLVMGXX!$LLVMGXX$ac_delim
23537 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23538 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23539 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23540 USE_UDIS86!$USE_UDIS86$ac_delim
23541 USE_OPROFILE!$USE_OPROFILE$ac_delim
23542 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23543 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23544 MMAP_FILE!$MMAP_FILE$ac_delim
23545 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23546 LLVMCC1!$LLVMCC1$ac_delim
23547 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23548 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23549 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23550 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23551 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23552 SHLIBEXT!$SHLIBEXT$ac_delim
23553 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23554 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23555 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23556 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23557 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23558 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23559 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23560 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23561 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23562 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23563 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23564 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23565 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23566 _ACEOF
23567
23568   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23569     break
23570   elif $ac_last_try; then
23571     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23572 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23573    { (exit 1); exit 1; }; }
23574   else
23575     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23576   fi
23577 done
23578
23579 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23580 if test -n "$ac_eof"; then
23581   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23582   ac_eof=`expr $ac_eof + 1`
23583 fi
23584
23585 cat >>$CONFIG_STATUS <<_ACEOF
23586 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23588 _ACEOF
23589 sed '
23590 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23591 s/^/s,@/; s/!/@,|#_!!_#|/
23592 :n
23593 t n
23594 s/'"$ac_delim"'$/,g/; t
23595 s/$/\\/; p
23596 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23597 ' >>$CONFIG_STATUS <conf$$subs.sed
23598 rm -f conf$$subs.sed
23599 cat >>$CONFIG_STATUS <<_ACEOF
23600 CEOF$ac_eof
23601 _ACEOF
23602
23603
23604 ac_delim='%!_!# '
23605 for ac_last_try in false false false false false :; do
23606   cat >conf$$subs.sed <<_ACEOF
23607 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23608 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23609 RPATH!$RPATH$ac_delim
23610 RDYNAMIC!$RDYNAMIC$ac_delim
23611 LIBOBJS!$LIBOBJS$ac_delim
23612 LTLIBOBJS!$LTLIBOBJS$ac_delim
23613 _ACEOF
23614
23615   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23616     break
23617   elif $ac_last_try; then
23618     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23619 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23620    { (exit 1); exit 1; }; }
23621   else
23622     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23623   fi
23624 done
23625
23626 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23627 if test -n "$ac_eof"; then
23628   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23629   ac_eof=`expr $ac_eof + 1`
23630 fi
23631
23632 cat >>$CONFIG_STATUS <<_ACEOF
23633 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23634 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23635 _ACEOF
23636 sed '
23637 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23638 s/^/s,@/; s/!/@,|#_!!_#|/
23639 :n
23640 t n
23641 s/'"$ac_delim"'$/,g/; t
23642 s/$/\\/; p
23643 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23644 ' >>$CONFIG_STATUS <conf$$subs.sed
23645 rm -f conf$$subs.sed
23646 cat >>$CONFIG_STATUS <<_ACEOF
23647 :end
23648 s/|#_!!_#|//g
23649 CEOF$ac_eof
23650 _ACEOF
23651
23652
23653 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23654 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23655 # trailing colons and then remove the whole line if VPATH becomes empty
23656 # (actually we leave an empty line to preserve line numbers).
23657 if test "x$srcdir" = x.; then
23658   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23659 s/:*\$(srcdir):*/:/
23660 s/:*\${srcdir}:*/:/
23661 s/:*@srcdir@:*/:/
23662 s/^\([^=]*=[     ]*\):*/\1/
23663 s/:*$//
23664 s/^[^=]*=[       ]*$//
23665 }'
23666 fi
23667
23668 cat >>$CONFIG_STATUS <<\_ACEOF
23669 fi # test -n "$CONFIG_FILES"
23670
23671
23672 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23673 do
23674   case $ac_tag in
23675   :[FHLC]) ac_mode=$ac_tag; continue;;
23676   esac
23677   case $ac_mode$ac_tag in
23678   :[FHL]*:*);;
23679   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23680 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23681    { (exit 1); exit 1; }; };;
23682   :[FH]-) ac_tag=-:-;;
23683   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23684   esac
23685   ac_save_IFS=$IFS
23686   IFS=:
23687   set x $ac_tag
23688   IFS=$ac_save_IFS
23689   shift
23690   ac_file=$1
23691   shift
23692
23693   case $ac_mode in
23694   :L) ac_source=$1;;
23695   :[FH])
23696     ac_file_inputs=
23697     for ac_f
23698     do
23699       case $ac_f in
23700       -) ac_f="$tmp/stdin";;
23701       *) # Look for the file first in the build tree, then in the source tree
23702          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23703          # because $ac_f cannot contain `:'.
23704          test -f "$ac_f" ||
23705            case $ac_f in
23706            [\\/$]*) false;;
23707            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23708            esac ||
23709            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23710 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23711    { (exit 1); exit 1; }; };;
23712       esac
23713       ac_file_inputs="$ac_file_inputs $ac_f"
23714     done
23715
23716     # Let's still pretend it is `configure' which instantiates (i.e., don't
23717     # use $as_me), people would be surprised to read:
23718     #    /* config.h.  Generated by config.status.  */
23719     configure_input="Generated from "`IFS=:
23720           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23721     if test x"$ac_file" != x-; then
23722       configure_input="$ac_file.  $configure_input"
23723       { echo "$as_me:$LINENO: creating $ac_file" >&5
23724 echo "$as_me: creating $ac_file" >&6;}
23725     fi
23726
23727     case $ac_tag in
23728     *:-:* | *:-) cat >"$tmp/stdin";;
23729     esac
23730     ;;
23731   esac
23732
23733   ac_dir=`$as_dirname -- "$ac_file" ||
23734 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23735          X"$ac_file" : 'X\(//\)[^/]' \| \
23736          X"$ac_file" : 'X\(//\)$' \| \
23737          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23738 echo X"$ac_file" |
23739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23740             s//\1/
23741             q
23742           }
23743           /^X\(\/\/\)[^/].*/{
23744             s//\1/
23745             q
23746           }
23747           /^X\(\/\/\)$/{
23748             s//\1/
23749             q
23750           }
23751           /^X\(\/\).*/{
23752             s//\1/
23753             q
23754           }
23755           s/.*/./; q'`
23756   { as_dir="$ac_dir"
23757   case $as_dir in #(
23758   -*) as_dir=./$as_dir;;
23759   esac
23760   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23761     as_dirs=
23762     while :; do
23763       case $as_dir in #(
23764       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23765       *) as_qdir=$as_dir;;
23766       esac
23767       as_dirs="'$as_qdir' $as_dirs"
23768       as_dir=`$as_dirname -- "$as_dir" ||
23769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23770          X"$as_dir" : 'X\(//\)[^/]' \| \
23771          X"$as_dir" : 'X\(//\)$' \| \
23772          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23773 echo X"$as_dir" |
23774     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23775             s//\1/
23776             q
23777           }
23778           /^X\(\/\/\)[^/].*/{
23779             s//\1/
23780             q
23781           }
23782           /^X\(\/\/\)$/{
23783             s//\1/
23784             q
23785           }
23786           /^X\(\/\).*/{
23787             s//\1/
23788             q
23789           }
23790           s/.*/./; q'`
23791       test -d "$as_dir" && break
23792     done
23793     test -z "$as_dirs" || eval "mkdir $as_dirs"
23794   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23795 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23796    { (exit 1); exit 1; }; }; }
23797   ac_builddir=.
23798
23799 case "$ac_dir" in
23800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23801 *)
23802   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23803   # A ".." for each directory in $ac_dir_suffix.
23804   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23805   case $ac_top_builddir_sub in
23806   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23807   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23808   esac ;;
23809 esac
23810 ac_abs_top_builddir=$ac_pwd
23811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23812 # for backward compatibility:
23813 ac_top_builddir=$ac_top_build_prefix
23814
23815 case $srcdir in
23816   .)  # We are building in place.
23817     ac_srcdir=.
23818     ac_top_srcdir=$ac_top_builddir_sub
23819     ac_abs_top_srcdir=$ac_pwd ;;
23820   [\\/]* | ?:[\\/]* )  # Absolute name.
23821     ac_srcdir=$srcdir$ac_dir_suffix;
23822     ac_top_srcdir=$srcdir
23823     ac_abs_top_srcdir=$srcdir ;;
23824   *) # Relative name.
23825     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23826     ac_top_srcdir=$ac_top_build_prefix$srcdir
23827     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23828 esac
23829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23830
23831
23832   case $ac_mode in
23833   :F)
23834   #
23835   # CONFIG_FILE
23836   #
23837
23838   case $INSTALL in
23839   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23840   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23841   esac
23842 _ACEOF
23843
23844 cat >>$CONFIG_STATUS <<\_ACEOF
23845 # If the template does not know about datarootdir, expand it.
23846 # FIXME: This hack should be removed a few years after 2.60.
23847 ac_datarootdir_hack=; ac_datarootdir_seen=
23848
23849 case `sed -n '/datarootdir/ {
23850   p
23851   q
23852 }
23853 /@datadir@/p
23854 /@docdir@/p
23855 /@infodir@/p
23856 /@localedir@/p
23857 /@mandir@/p
23858 ' $ac_file_inputs` in
23859 *datarootdir*) ac_datarootdir_seen=yes;;
23860 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23861   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23862 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23863 _ACEOF
23864 cat >>$CONFIG_STATUS <<_ACEOF
23865   ac_datarootdir_hack='
23866   s&@datadir@&$datadir&g
23867   s&@docdir@&$docdir&g
23868   s&@infodir@&$infodir&g
23869   s&@localedir@&$localedir&g
23870   s&@mandir@&$mandir&g
23871     s&\\\${datarootdir}&$datarootdir&g' ;;
23872 esac
23873 _ACEOF
23874
23875 # Neutralize VPATH when `$srcdir' = `.'.
23876 # Shell code in configure.ac might set extrasub.
23877 # FIXME: do we really want to maintain this feature?
23878 cat >>$CONFIG_STATUS <<_ACEOF
23879   sed "$ac_vpsub
23880 $extrasub
23881 _ACEOF
23882 cat >>$CONFIG_STATUS <<\_ACEOF
23883 :t
23884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23885 s&@configure_input@&$configure_input&;t t
23886 s&@top_builddir@&$ac_top_builddir_sub&;t t
23887 s&@srcdir@&$ac_srcdir&;t t
23888 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23889 s&@top_srcdir@&$ac_top_srcdir&;t t
23890 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23891 s&@builddir@&$ac_builddir&;t t
23892 s&@abs_builddir@&$ac_abs_builddir&;t t
23893 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23894 s&@INSTALL@&$ac_INSTALL&;t t
23895 $ac_datarootdir_hack
23896 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23897
23898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23899   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23900   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23901   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23902 which seems to be undefined.  Please make sure it is defined." >&5
23903 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23904 which seems to be undefined.  Please make sure it is defined." >&2;}
23905
23906   rm -f "$tmp/stdin"
23907   case $ac_file in
23908   -) cat "$tmp/out"; rm -f "$tmp/out";;
23909   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23910   esac
23911  ;;
23912   :H)
23913   #
23914   # CONFIG_HEADER
23915   #
23916 _ACEOF
23917
23918 # Transform confdefs.h into a sed script `conftest.defines', that
23919 # substitutes the proper values into config.h.in to produce config.h.
23920 rm -f conftest.defines conftest.tail
23921 # First, append a space to every undef/define line, to ease matching.
23922 echo 's/$/ /' >conftest.defines
23923 # Then, protect against being on the right side of a sed subst, or in
23924 # an unquoted here document, in config.status.  If some macros were
23925 # called several times there might be several #defines for the same
23926 # symbol, which is useless.  But do not sort them, since the last
23927 # AC_DEFINE must be honored.
23928 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23929 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23930 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23931 # PARAMS is the parameter list in the macro definition--in most cases, it's
23932 # just an empty string.
23933 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23934 ac_dB='\\)[      (].*,\\1define\\2'
23935 ac_dC=' '
23936 ac_dD=' ,'
23937
23938 uniq confdefs.h |
23939   sed -n '
23940         t rset
23941         :rset
23942         s/^[     ]*#[    ]*define[       ][      ]*//
23943         t ok
23944         d
23945         :ok
23946         s/[\\&,]/\\&/g
23947         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23948         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23949   ' >>conftest.defines
23950
23951 # Remove the space that was appended to ease matching.
23952 # Then replace #undef with comments.  This is necessary, for
23953 # example, in the case of _POSIX_SOURCE, which is predefined and required
23954 # on some systems where configure will not decide to define it.
23955 # (The regexp can be short, since the line contains either #define or #undef.)
23956 echo 's/ $//
23957 s,^[     #]*u.*,/* & */,' >>conftest.defines
23958
23959 # Break up conftest.defines:
23960 ac_max_sed_lines=50
23961
23962 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23963 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23964 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23965 # et cetera.
23966 ac_in='$ac_file_inputs'
23967 ac_out='"$tmp/out1"'
23968 ac_nxt='"$tmp/out2"'
23969
23970 while :
23971 do
23972   # Write a here document:
23973     cat >>$CONFIG_STATUS <<_ACEOF
23974     # First, check the format of the line:
23975     cat >"\$tmp/defines.sed" <<\\CEOF
23976 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23977 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23978 b
23979 :def
23980 _ACEOF
23981   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23982   echo 'CEOF
23983     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23984   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23985   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23986   grep . conftest.tail >/dev/null || break
23987   rm -f conftest.defines
23988   mv conftest.tail conftest.defines
23989 done
23990 rm -f conftest.defines conftest.tail
23991
23992 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23993 cat >>$CONFIG_STATUS <<\_ACEOF
23994   if test x"$ac_file" != x-; then
23995     echo "/* $configure_input  */" >"$tmp/config.h"
23996     cat "$ac_result" >>"$tmp/config.h"
23997     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23998       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23999 echo "$as_me: $ac_file is unchanged" >&6;}
24000     else
24001       rm -f $ac_file
24002       mv "$tmp/config.h" $ac_file
24003     fi
24004   else
24005     echo "/* $configure_input  */"
24006     cat "$ac_result"
24007   fi
24008   rm -f "$tmp/out12"
24009  ;;
24010
24011   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24012 echo "$as_me: executing $ac_file commands" >&6;}
24013  ;;
24014   esac
24015
24016
24017   case $ac_file$ac_mode in
24018     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24019    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24020     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24021    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24022     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24023    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24024     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24025    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24026     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24027    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24028     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24029    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24030     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24031    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24032     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24033    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24034     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24035    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24036     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24037    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24038     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24039    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24040     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24041    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24042     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24043    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24044
24045   esac
24046 done # for ac_tag
24047
24048
24049 { (exit 0); exit 0; }
24050 _ACEOF
24051 chmod +x $CONFIG_STATUS
24052 ac_clean_files=$ac_clean_files_save
24053
24054
24055 # configure is writing to config.log, and then calls config.status.
24056 # config.status does its own redirection, appending to config.log.
24057 # Unfortunately, on DOS this fails, as config.log is still kept open
24058 # by configure, so config.status won't be able to write to it; its
24059 # output is simply discarded.  So we exec the FD to /dev/null,
24060 # effectively closing config.log, so it can be properly (re)opened and
24061 # appended to by config.status.  When coming back to configure, we
24062 # need to make the FD available again.
24063 if test "$no_create" != yes; then
24064   ac_cs_success=:
24065   ac_config_status_args=
24066   test "$silent" = yes &&
24067     ac_config_status_args="$ac_config_status_args --quiet"
24068   exec 5>/dev/null
24069   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24070   exec 5>>config.log
24071   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24072   # would make configure fail if this is the last instruction.
24073   $ac_cs_success || { (exit 1); exit 1; }
24074 fi
24075
24076 #
24077 # CONFIG_SUBDIRS section.
24078 #
24079 if test "$no_recursion" != yes; then
24080
24081   # Remove --cache-file and --srcdir arguments so they do not pile up.
24082   ac_sub_configure_args=
24083   ac_prev=
24084   eval "set x $ac_configure_args"
24085   shift
24086   for ac_arg
24087   do
24088     if test -n "$ac_prev"; then
24089       ac_prev=
24090       continue
24091     fi
24092     case $ac_arg in
24093     -cache-file | --cache-file | --cache-fil | --cache-fi \
24094     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24095       ac_prev=cache_file ;;
24096     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24097     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24098     | --c=*)
24099       ;;
24100     --config-cache | -C)
24101       ;;
24102     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24103       ac_prev=srcdir ;;
24104     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24105       ;;
24106     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24107       ac_prev=prefix ;;
24108     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24109       ;;
24110     *)
24111       case $ac_arg in
24112       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24113       esac
24114       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24115     esac
24116   done
24117
24118   # Always prepend --prefix to ensure using the same prefix
24119   # in subdir configurations.
24120   ac_arg="--prefix=$prefix"
24121   case $ac_arg in
24122   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24123   esac
24124   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24125
24126   ac_popdir=`pwd`
24127   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24128
24129     # Do not complain, so a configure script can configure whichever
24130     # parts of a large source tree are present.
24131     test -d "$srcdir/$ac_dir" || continue
24132
24133     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24134     echo "$as_me:$LINENO: $ac_msg" >&5
24135     echo "$ac_msg" >&6
24136     { as_dir="$ac_dir"
24137   case $as_dir in #(
24138   -*) as_dir=./$as_dir;;
24139   esac
24140   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24141     as_dirs=
24142     while :; do
24143       case $as_dir in #(
24144       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24145       *) as_qdir=$as_dir;;
24146       esac
24147       as_dirs="'$as_qdir' $as_dirs"
24148       as_dir=`$as_dirname -- "$as_dir" ||
24149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24150          X"$as_dir" : 'X\(//\)[^/]' \| \
24151          X"$as_dir" : 'X\(//\)$' \| \
24152          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24153 echo X"$as_dir" |
24154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24155             s//\1/
24156             q
24157           }
24158           /^X\(\/\/\)[^/].*/{
24159             s//\1/
24160             q
24161           }
24162           /^X\(\/\/\)$/{
24163             s//\1/
24164             q
24165           }
24166           /^X\(\/\).*/{
24167             s//\1/
24168             q
24169           }
24170           s/.*/./; q'`
24171       test -d "$as_dir" && break
24172     done
24173     test -z "$as_dirs" || eval "mkdir $as_dirs"
24174   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24175 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24176    { (exit 1); exit 1; }; }; }
24177     ac_builddir=.
24178
24179 case "$ac_dir" in
24180 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24181 *)
24182   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24183   # A ".." for each directory in $ac_dir_suffix.
24184   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24185   case $ac_top_builddir_sub in
24186   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24187   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24188   esac ;;
24189 esac
24190 ac_abs_top_builddir=$ac_pwd
24191 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24192 # for backward compatibility:
24193 ac_top_builddir=$ac_top_build_prefix
24194
24195 case $srcdir in
24196   .)  # We are building in place.
24197     ac_srcdir=.
24198     ac_top_srcdir=$ac_top_builddir_sub
24199     ac_abs_top_srcdir=$ac_pwd ;;
24200   [\\/]* | ?:[\\/]* )  # Absolute name.
24201     ac_srcdir=$srcdir$ac_dir_suffix;
24202     ac_top_srcdir=$srcdir
24203     ac_abs_top_srcdir=$srcdir ;;
24204   *) # Relative name.
24205     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24206     ac_top_srcdir=$ac_top_build_prefix$srcdir
24207     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24208 esac
24209 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24210
24211
24212     cd "$ac_dir"
24213
24214     # Check for guested configure; otherwise get Cygnus style configure.
24215     if test -f "$ac_srcdir/configure.gnu"; then
24216       ac_sub_configure=$ac_srcdir/configure.gnu
24217     elif test -f "$ac_srcdir/configure"; then
24218       ac_sub_configure=$ac_srcdir/configure
24219     elif test -f "$ac_srcdir/configure.in"; then
24220       # This should be Cygnus configure.
24221       ac_sub_configure=$ac_aux_dir/configure
24222     else
24223       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24224 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24225       ac_sub_configure=
24226     fi
24227
24228     # The recursion is here.
24229     if test -n "$ac_sub_configure"; then
24230       # Make the cache file name correct relative to the subdirectory.
24231       case $cache_file in
24232       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24233       *) # Relative name.
24234         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24235       esac
24236
24237       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24238 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24239       # The eval makes quoting arguments work.
24240       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24241            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24242         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24243 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24244    { (exit 1); exit 1; }; }
24245     fi
24246
24247     cd "$ac_popdir"
24248   done
24249 fi
24250