Teach MachineLICM reg pressure tracking code to deal with MVT::untyped. Sorry, I...
[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/bugs/)
1476   --with-tclinclude       directory where tcl headers are
1477   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1478                           clang, or none; default=check)
1479   --with-udis86=<path>    Use udis86 external x86 disassembler library
1480   --with-oprofile=<prefix>
1481                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489               you have headers in a nonstandard directory <include dir>
1490   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   *-*-nacl*)
2345     llvm_cv_target_os_type="NativeClient" ;;
2346   *-unknown-eabi*)
2347     llvm_cv_target_os_type="Freestanding" ;;
2348   *)
2349     llvm_cv_target_os_type="Unknown" ;;
2350 esac
2351 fi
2352 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2353 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2354
2355 if test "$llvm_cv_os_type" = "Unknown" ; then
2356   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2357 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2358    { (exit 1); exit 1; }; }
2359 fi
2360
2361 OS=$llvm_cv_os_type
2362
2363 HOST_OS=$llvm_cv_os_type
2364
2365 TARGET_OS=$llvm_cv_target_os_type
2366
2367
2368 LINKALL=$llvm_cv_link_all_option
2369
2370 NOLINKALL=$llvm_cv_no_link_all_option
2371
2372
2373 case $llvm_cv_platform_type in
2374   Unix)
2375
2376 cat >>confdefs.h <<\_ACEOF
2377 #define LLVM_ON_UNIX 1
2378 _ACEOF
2379
2380     LLVM_ON_UNIX=1
2381
2382     LLVM_ON_WIN32=0
2383
2384     ;;
2385   Win32)
2386
2387 cat >>confdefs.h <<\_ACEOF
2388 #define LLVM_ON_WIN32 1
2389 _ACEOF
2390
2391     LLVM_ON_UNIX=0
2392
2393     LLVM_ON_WIN32=1
2394
2395     ;;
2396 esac
2397
2398 { echo "$as_me:$LINENO: checking target architecture" >&5
2399 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2400 if test "${llvm_cv_target_arch+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   case $target in
2404   i?86-*)                 llvm_cv_target_arch="x86" ;;
2405   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2406   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2407   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2408   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2409   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2410   mips-*)                 llvm_cv_target_arch="Mips" ;;
2411   xcore-*)                llvm_cv_target_arch="XCore" ;;
2412   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2413   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2414   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2415   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2416   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2417   *)                      llvm_cv_target_arch="Unknown" ;;
2418 esac
2419 fi
2420 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2421 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2422
2423 if test "$llvm_cv_target_arch" = "Unknown" ; then
2424   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2425 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2426 fi
2427
2428 # Determine the LLVM native architecture for the target
2429 case "$llvm_cv_target_arch" in
2430     x86)     LLVM_NATIVE_ARCH="X86" ;;
2431     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2432     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2433 esac
2434
2435 ARCH=$llvm_cv_target_arch
2436
2437
2438 ac_ext=c
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443 if test -n "$ac_tool_prefix"; then
2444   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_CC+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   if test -n "$CC"; then
2452   ac_cv_prog_CC="$CC" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459   for ac_exec_ext in '' $ac_executable_extensions; do
2460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2461     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463     break 2
2464   fi
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470 fi
2471 CC=$ac_cv_prog_CC
2472 if test -n "$CC"; then
2473   { echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6; }
2475 else
2476   { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2478 fi
2479
2480
2481 fi
2482 if test -z "$ac_cv_prog_CC"; then
2483   ac_ct_CC=$CC
2484   # Extract the first word of "gcc", so it can be a program name with args.
2485 set dummy gcc; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$ac_ct_CC"; then
2492   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2501     ac_cv_prog_ac_ct_CC="gcc"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 fi
2510 fi
2511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2512 if test -n "$ac_ct_CC"; then
2513   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2514 echo "${ECHO_T}$ac_ct_CC" >&6; }
2515 else
2516   { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2518 fi
2519
2520   if test "x$ac_ct_CC" = x; then
2521     CC=""
2522   else
2523     case $cross_compiling:$ac_tool_warned in
2524 yes:)
2525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2526 whose name does not start with the host triplet.  If you think this
2527 configuration is useful to you, please write to autoconf@gnu.org." >&5
2528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2529 whose name does not start with the host triplet.  If you think this
2530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2531 ac_tool_warned=yes ;;
2532 esac
2533     CC=$ac_ct_CC
2534   fi
2535 else
2536   CC="$ac_cv_prog_CC"
2537 fi
2538
2539 if test -z "$CC"; then
2540           if test -n "$ac_tool_prefix"; then
2541     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2542 set dummy ${ac_tool_prefix}cc; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546   echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548   if test -n "$CC"; then
2549   ac_cv_prog_CC="$CC" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554   IFS=$as_save_IFS
2555   test -z "$as_dir" && as_dir=.
2556   for ac_exec_ext in '' $ac_executable_extensions; do
2557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2558     ac_cv_prog_CC="${ac_tool_prefix}cc"
2559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560     break 2
2561   fi
2562 done
2563 done
2564 IFS=$as_save_IFS
2565
2566 fi
2567 fi
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570   { echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6; }
2572 else
2573   { echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6; }
2575 fi
2576
2577
2578   fi
2579 fi
2580 if test -z "$CC"; then
2581   # Extract the first word of "cc", so it can be a program name with args.
2582 set dummy cc; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -n "$CC"; then
2589   ac_cv_prog_CC="$CC" # Let the user override the test.
2590 else
2591   ac_prog_rejected=no
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597   for ac_exec_ext in '' $ac_executable_extensions; do
2598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2600        ac_prog_rejected=yes
2601        continue
2602      fi
2603     ac_cv_prog_CC="cc"
2604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608 done
2609 IFS=$as_save_IFS
2610
2611 if test $ac_prog_rejected = yes; then
2612   # We found a bogon in the path, so make sure we never use it.
2613   set dummy $ac_cv_prog_CC
2614   shift
2615   if test $# != 0; then
2616     # We chose a different compiler from the bogus one.
2617     # However, it has the same basename, so the bogon will be chosen
2618     # first if we set CC to just the basename; use the full file name.
2619     shift
2620     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2621   fi
2622 fi
2623 fi
2624 fi
2625 CC=$ac_cv_prog_CC
2626 if test -n "$CC"; then
2627   { echo "$as_me:$LINENO: result: $CC" >&5
2628 echo "${ECHO_T}$CC" >&6; }
2629 else
2630   { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2632 fi
2633
2634
2635 fi
2636 if test -z "$CC"; then
2637   if test -n "$ac_tool_prefix"; then
2638   for ac_prog in cl.exe
2639   do
2640     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_CC+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   if test -n "$CC"; then
2648   ac_cv_prog_CC="$CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 CC=$ac_cv_prog_CC
2668 if test -n "$CC"; then
2669   { echo "$as_me:$LINENO: result: $CC" >&5
2670 echo "${ECHO_T}$CC" >&6; }
2671 else
2672   { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2674 fi
2675
2676
2677     test -n "$CC" && break
2678   done
2679 fi
2680 if test -z "$CC"; then
2681   ac_ct_CC=$CC
2682   for ac_prog in cl.exe
2683 do
2684   # Extract the first word of "$ac_prog", so it can be a program name with args.
2685 set dummy $ac_prog; ac_word=$2
2686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2689   echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691   if test -n "$ac_ct_CC"; then
2692   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699   for ac_exec_ext in '' $ac_executable_extensions; do
2700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2701     ac_cv_prog_ac_ct_CC="$ac_prog"
2702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712 if test -n "$ac_ct_CC"; then
2713   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2714 echo "${ECHO_T}$ac_ct_CC" >&6; }
2715 else
2716   { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2718 fi
2719
2720
2721   test -n "$ac_ct_CC" && break
2722 done
2723
2724   if test "x$ac_ct_CC" = x; then
2725     CC=""
2726   else
2727     case $cross_compiling:$ac_tool_warned in
2728 yes:)
2729 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2730 whose name does not start with the host triplet.  If you think this
2731 configuration is useful to you, please write to autoconf@gnu.org." >&5
2732 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2733 whose name does not start with the host triplet.  If you think this
2734 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2735 ac_tool_warned=yes ;;
2736 esac
2737     CC=$ac_ct_CC
2738   fi
2739 fi
2740
2741 fi
2742
2743
2744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2745 See \`config.log' for more details." >&5
2746 echo "$as_me: error: no acceptable C compiler found in \$PATH
2747 See \`config.log' for more details." >&2;}
2748    { (exit 1); exit 1; }; }
2749
2750 # Provide some information about the compiler.
2751 echo "$as_me:$LINENO: checking for C compiler version" >&5
2752 ac_compiler=`set X $ac_compile; echo $2`
2753 { (ac_try="$ac_compiler --version >&5"
2754 case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_compiler --version >&5") 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }
2763 { (ac_try="$ac_compiler -v >&5"
2764 case "(($ac_try" in
2765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766   *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769   (eval "$ac_compiler -v >&5") 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }
2773 { (ac_try="$ac_compiler -V >&5"
2774 case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779   (eval "$ac_compiler -V >&5") 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }
2783
2784 cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 ac_clean_files_save=$ac_clean_files
2800 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2801 # Try to create an executable without -o first, disregard a.out.
2802 # It will help us diagnose broken compilers, and finding out an intuition
2803 # of exeext.
2804 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2805 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2806 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2807 #
2808 # List of possible output files, starting from the most likely.
2809 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2810 # only as a last resort.  b.out is created by i960 compilers.
2811 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2812 #
2813 # The IRIX 6 linker writes into existing files which may not be
2814 # executable, retaining their permissions.  Remove them first so a
2815 # subsequent execution test works.
2816 ac_rmfiles=
2817 for ac_file in $ac_files
2818 do
2819   case $ac_file in
2820     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2821     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822   esac
2823 done
2824 rm -f $ac_rmfiles
2825
2826 if { (ac_try="$ac_link_default"
2827 case "(($ac_try" in
2828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829   *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832   (eval "$ac_link_default") 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; then
2836   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2839 # so that the user can short-circuit this test for compilers unknown to
2840 # Autoconf.
2841 for ac_file in $ac_files
2842 do
2843   test -f "$ac_file" || continue
2844   case $ac_file in
2845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2846         ;;
2847     [ab].out )
2848         # We found the default executable, but exeext='' is most
2849         # certainly right.
2850         break;;
2851     *.* )
2852         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2853         then :; else
2854            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855         fi
2856         # We set ac_cv_exeext here because the later test for it is not
2857         # safe: cross compilers may not add the suffix if given an `-o'
2858         # argument, so we may need to know it at that point already.
2859         # Even if this section looks crufty: it has the advantage of
2860         # actually working.
2861         break;;
2862     * )
2863         break;;
2864   esac
2865 done
2866 test "$ac_cv_exeext" = no && ac_cv_exeext=
2867
2868 else
2869   echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: C compiler cannot create executables
2875 See \`config.log' for more details." >&2;}
2876    { (exit 77); exit 77; }; }
2877 fi
2878
2879 ac_exeext=$ac_cv_exeext
2880 { echo "$as_me:$LINENO: result: $ac_file" >&5
2881 echo "${ECHO_T}$ac_file" >&6; }
2882
2883 # Check that the compiler produces executables we can run.  If not, either
2884 # the compiler is broken, or we cross compile.
2885 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2888 # If not cross compiling, check that we can run a simple program.
2889 if test "$cross_compiling" != yes; then
2890   if { ac_try='./$ac_file'
2891   { (case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896   (eval "$ac_try") 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900     cross_compiling=no
2901   else
2902     if test "$cross_compiling" = maybe; then
2903         cross_compiling=yes
2904     else
2905         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2906 If you meant to cross compile, use \`--host'.
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot run C compiled programs.
2909 If you meant to cross compile, use \`--host'.
2910 See \`config.log' for more details." >&2;}
2911    { (exit 1); exit 1; }; }
2912     fi
2913   fi
2914 fi
2915 { echo "$as_me:$LINENO: result: yes" >&5
2916 echo "${ECHO_T}yes" >&6; }
2917
2918 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2919 ac_clean_files=$ac_clean_files_save
2920 # Check that the compiler produces executables we can run.  If not, either
2921 # the compiler is broken, or we cross compile.
2922 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2923 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2924 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2925 echo "${ECHO_T}$cross_compiling" >&6; }
2926
2927 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2928 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2929 if { (ac_try="$ac_link"
2930 case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_link") 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; then
2939   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2940 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2941 # work properly (i.e., refer to `conftest.exe'), while it won't with
2942 # `rm'.
2943 for ac_file in conftest.exe conftest conftest.*; do
2944   test -f "$ac_file" || continue
2945   case $ac_file in
2946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2947     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2948           break;;
2949     * ) break;;
2950   esac
2951 done
2952 else
2953   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2954 See \`config.log' for more details." >&5
2955 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2956 See \`config.log' for more details." >&2;}
2957    { (exit 1); exit 1; }; }
2958 fi
2959
2960 rm -f conftest$ac_cv_exeext
2961 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2962 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2963
2964 rm -f conftest.$ac_ext
2965 EXEEXT=$ac_cv_exeext
2966 ac_exeext=$EXEEXT
2967 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2968 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2969 if test "${ac_cv_objext+set}" = set; then
2970   echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972   cat >conftest.$ac_ext <<_ACEOF
2973 /* confdefs.h.  */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h.  */
2978
2979 int
2980 main ()
2981 {
2982
2983   ;
2984   return 0;
2985 }
2986 _ACEOF
2987 rm -f conftest.o conftest.obj
2988 if { (ac_try="$ac_compile"
2989 case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994   (eval "$ac_compile") 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; then
2998   for ac_file in conftest.o conftest.obj conftest.*; do
2999   test -f "$ac_file" || continue;
3000   case $ac_file in
3001     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3002     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3003        break;;
3004   esac
3005 done
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3011 See \`config.log' for more details." >&5
3012 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3013 See \`config.log' for more details." >&2;}
3014    { (exit 1); exit 1; }; }
3015 fi
3016
3017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3018 fi
3019 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3020 echo "${ECHO_T}$ac_cv_objext" >&6; }
3021 OBJEXT=$ac_cv_objext
3022 ac_objext=$OBJEXT
3023 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3024 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3025 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3026   echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028   cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034
3035 int
3036 main ()
3037 {
3038 #ifndef __GNUC__
3039        choke me
3040 #endif
3041
3042   ;
3043   return 0;
3044 }
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3048 case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053   (eval "$ac_compile") 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } &&
3060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3061   { (case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_try") 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_try") 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080   ac_compiler_gnu=yes
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085         ac_compiler_gnu=no
3086 fi
3087
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3090
3091 fi
3092 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3093 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3094 GCC=`test $ac_compiler_gnu = yes && echo yes`
3095 ac_test_CFLAGS=${CFLAGS+set}
3096 ac_save_CFLAGS=$CFLAGS
3097 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3099 if test "${ac_cv_prog_cc_g+set}" = set; then
3100   echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102   ac_save_c_werror_flag=$ac_c_werror_flag
3103    ac_c_werror_flag=yes
3104    ac_cv_prog_cc_g=no
3105    CFLAGS="-g"
3106    cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3112
3113 int
3114 main ()
3115 {
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_compile") 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3136   { (case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_try") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   ac_cv_prog_cc_g=yes
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160         CFLAGS=""
3161       cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } &&
3190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3191   { (case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196   (eval "$ac_try") 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }; } &&
3200          { ac_try='test -s conftest.$ac_objext'
3201   { (case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_try") 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }; }; then
3210   :
3211 else
3212   echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215         ac_c_werror_flag=$ac_save_c_werror_flag
3216          CFLAGS="-g"
3217          cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223
3224 int
3225 main ()
3226 {
3227
3228   ;
3229   return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (ac_try="$ac_compile"
3234 case "(($ac_try" in
3235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236   *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239   (eval "$ac_compile") 2>conftest.er1
3240   ac_status=$?
3241   grep -v '^ *+' conftest.er1 >conftest.err
3242   rm -f conftest.er1
3243   cat conftest.err >&5
3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245   (exit $ac_status); } &&
3246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3247   { (case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_try") 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; } &&
3256          { ac_try='test -s conftest.$ac_objext'
3257   { (case "(($ac_try" in
3258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259   *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262   (eval "$ac_try") 2>&5
3263   ac_status=$?
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); }; }; then
3266   ac_cv_prog_cc_g=yes
3267 else
3268   echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271
3272 fi
3273
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 fi
3276
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 fi
3279
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281    ac_c_werror_flag=$ac_save_c_werror_flag
3282 fi
3283 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3285 if test "$ac_test_CFLAGS" = set; then
3286   CFLAGS=$ac_save_CFLAGS
3287 elif test $ac_cv_prog_cc_g = yes; then
3288   if test "$GCC" = yes; then
3289     CFLAGS="-g -O2"
3290   else
3291     CFLAGS="-g"
3292   fi
3293 else
3294   if test "$GCC" = yes; then
3295     CFLAGS="-O2"
3296   else
3297     CFLAGS=
3298   fi
3299 fi
3300 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3301 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3302 if test "${ac_cv_prog_cc_c89+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   ac_cv_prog_cc_c89=no
3306 ac_save_CC=$CC
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #include <stdarg.h>
3314 #include <stdio.h>
3315 #include <sys/types.h>
3316 #include <sys/stat.h>
3317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3318 struct buf { int x; };
3319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320 static char *e (p, i)
3321      char **p;
3322      int i;
3323 {
3324   return p[i];
3325 }
3326 static char *f (char * (*g) (char **, int), char **p, ...)
3327 {
3328   char *s;
3329   va_list v;
3330   va_start (v,p);
3331   s = g (p, va_arg (v,int));
3332   va_end (v);
3333   return s;
3334 }
3335
3336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3337    function prototypes and stuff, but not '\xHH' hex character constants.
3338    These don't provoke an error unfortunately, instead are silently treated
3339    as 'x'.  The following induces an error, until -std is added to get
3340    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3341    array size at least.  It's necessary to write '\x00'==0 to get something
3342    that's true only with -std.  */
3343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3344
3345 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3346    inside strings and character constants.  */
3347 #define FOO(x) 'x'
3348 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3349
3350 int test (int i, double x);
3351 struct s1 {int (*f) (int a);};
3352 struct s2 {int (*f) (double a);};
3353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3354 int argc;
3355 char **argv;
3356 int
3357 main ()
3358 {
3359 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3360   ;
3361   return 0;
3362 }
3363 _ACEOF
3364 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3365         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3366 do
3367   CC="$ac_save_CC $ac_arg"
3368   rm -f conftest.$ac_objext
3369 if { (ac_try="$ac_compile"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_compile") 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } &&
3382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3383   { (case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_try") 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; } &&
3392          { ac_try='test -s conftest.$ac_objext'
3393   { (case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_try") 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }; }; then
3402   ac_cv_prog_cc_c89=$ac_arg
3403 else
3404   echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407
3408 fi
3409
3410 rm -f core conftest.err conftest.$ac_objext
3411   test "x$ac_cv_prog_cc_c89" != "xno" && break
3412 done
3413 rm -f conftest.$ac_ext
3414 CC=$ac_save_CC
3415
3416 fi
3417 # AC_CACHE_VAL
3418 case "x$ac_cv_prog_cc_c89" in
3419   x)
3420     { echo "$as_me:$LINENO: result: none needed" >&5
3421 echo "${ECHO_T}none needed" >&6; } ;;
3422   xno)
3423     { echo "$as_me:$LINENO: result: unsupported" >&5
3424 echo "${ECHO_T}unsupported" >&6; } ;;
3425   *)
3426     CC="$CC $ac_cv_prog_cc_c89"
3427     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3428 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3429 esac
3430
3431
3432 ac_ext=c
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437
3438
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3445 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3446 # On Suns, sometimes $CPP names a directory.
3447 if test -n "$CPP" && test -d "$CPP"; then
3448   CPP=
3449 fi
3450 if test -z "$CPP"; then
3451   if test "${ac_cv_prog_CPP+set}" = set; then
3452   echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454       # Double quotes because CPP needs to be expanded
3455     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3456     do
3457       ac_preproc_ok=false
3458 for ac_c_preproc_warn_flag in '' yes
3459 do
3460   # Use a header file that comes with gcc, so configuring glibc
3461   # with a fresh cross-compiler works.
3462   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463   # <limits.h> exists even on freestanding compilers.
3464   # On the NeXT, cc -E runs the code through the compiler's parser,
3465   # not just through cpp. "Syntax error" is here to catch this case.
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472 #ifdef __STDC__
3473 # include <limits.h>
3474 #else
3475 # include <assert.h>
3476 #endif
3477                      Syntax error
3478 _ACEOF
3479 if { (ac_try="$ac_cpp conftest.$ac_ext"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3486   ac_status=$?
3487   grep -v '^ *+' conftest.er1 >conftest.err
3488   rm -f conftest.er1
3489   cat conftest.err >&5
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } >/dev/null; then
3492   if test -s conftest.err; then
3493     ac_cpp_err=$ac_c_preproc_warn_flag
3494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3495   else
3496     ac_cpp_err=
3497   fi
3498 else
3499   ac_cpp_err=yes
3500 fi
3501 if test -z "$ac_cpp_err"; then
3502   :
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507   # Broken: fails on valid input.
3508 continue
3509 fi
3510
3511 rm -f conftest.err conftest.$ac_ext
3512
3513   # OK, works on sane cases.  Now check whether nonexistent headers
3514   # can be detected and how.
3515   cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h.  */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h.  */
3521 #include <ac_nonexistent.h>
3522 _ACEOF
3523 if { (ac_try="$ac_cpp conftest.$ac_ext"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } >/dev/null; then
3536   if test -s conftest.err; then
3537     ac_cpp_err=$ac_c_preproc_warn_flag
3538     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3539   else
3540     ac_cpp_err=
3541   fi
3542 else
3543   ac_cpp_err=yes
3544 fi
3545 if test -z "$ac_cpp_err"; then
3546   # Broken: success on invalid input.
3547 continue
3548 else
3549   echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552   # Passes both tests.
3553 ac_preproc_ok=:
3554 break
3555 fi
3556
3557 rm -f conftest.err conftest.$ac_ext
3558
3559 done
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3563   break
3564 fi
3565
3566     done
3567     ac_cv_prog_CPP=$CPP
3568
3569 fi
3570   CPP=$ac_cv_prog_CPP
3571 else
3572   ac_cv_prog_CPP=$CPP
3573 fi
3574 { echo "$as_me:$LINENO: result: $CPP" >&5
3575 echo "${ECHO_T}$CPP" >&6; }
3576 ac_preproc_ok=false
3577 for ac_c_preproc_warn_flag in '' yes
3578 do
3579   # Use a header file that comes with gcc, so configuring glibc
3580   # with a fresh cross-compiler works.
3581   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582   # <limits.h> exists even on freestanding compilers.
3583   # On the NeXT, cc -E runs the code through the compiler's parser,
3584   # not just through cpp. "Syntax error" is here to catch this case.
3585   cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591 #ifdef __STDC__
3592 # include <limits.h>
3593 #else
3594 # include <assert.h>
3595 #endif
3596                      Syntax error
3597 _ACEOF
3598 if { (ac_try="$ac_cpp conftest.$ac_ext"
3599 case "(($ac_try" in
3600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601   *) ac_try_echo=$ac_try;;
3602 esac
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3605   ac_status=$?
3606   grep -v '^ *+' conftest.er1 >conftest.err
3607   rm -f conftest.er1
3608   cat conftest.err >&5
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); } >/dev/null; then
3611   if test -s conftest.err; then
3612     ac_cpp_err=$ac_c_preproc_warn_flag
3613     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3614   else
3615     ac_cpp_err=
3616   fi
3617 else
3618   ac_cpp_err=yes
3619 fi
3620 if test -z "$ac_cpp_err"; then
3621   :
3622 else
3623   echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626   # Broken: fails on valid input.
3627 continue
3628 fi
3629
3630 rm -f conftest.err conftest.$ac_ext
3631
3632   # OK, works on sane cases.  Now check whether nonexistent headers
3633   # can be detected and how.
3634   cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h.  */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h.  */
3640 #include <ac_nonexistent.h>
3641 _ACEOF
3642 if { (ac_try="$ac_cpp conftest.$ac_ext"
3643 case "(($ac_try" in
3644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645   *) ac_try_echo=$ac_try;;
3646 esac
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3649   ac_status=$?
3650   grep -v '^ *+' conftest.er1 >conftest.err
3651   rm -f conftest.er1
3652   cat conftest.err >&5
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } >/dev/null; then
3655   if test -s conftest.err; then
3656     ac_cpp_err=$ac_c_preproc_warn_flag
3657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3658   else
3659     ac_cpp_err=
3660   fi
3661 else
3662   ac_cpp_err=yes
3663 fi
3664 if test -z "$ac_cpp_err"; then
3665   # Broken: success on invalid input.
3666 continue
3667 else
3668   echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671   # Passes both tests.
3672 ac_preproc_ok=:
3673 break
3674 fi
3675
3676 rm -f conftest.err conftest.$ac_ext
3677
3678 done
3679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3680 rm -f conftest.err conftest.$ac_ext
3681 if $ac_preproc_ok; then
3682   :
3683 else
3684   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3685 See \`config.log' for more details." >&5
3686 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3687 See \`config.log' for more details." >&2;}
3688    { (exit 1); exit 1; }; }
3689 fi
3690
3691 ac_ext=c
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696
3697
3698 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3699 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3700 if test "${ac_cv_path_GREP+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   # Extract the first word of "grep ggrep" to use in msg output
3704 if test -z "$GREP"; then
3705 set dummy grep ggrep; ac_prog_name=$2
3706 if test "${ac_cv_path_GREP+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   ac_path_GREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716   for ac_prog in grep ggrep; do
3717   for ac_exec_ext in '' $ac_executable_extensions; do
3718     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3719     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3720     # Check for GNU ac_path_GREP and select it if it is found.
3721   # Check for GNU $ac_path_GREP
3722 case `"$ac_path_GREP" --version 2>&1` in
3723 *GNU*)
3724   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3725 *)
3726   ac_count=0
3727   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728   while :
3729   do
3730     cat "conftest.in" "conftest.in" >"conftest.tmp"
3731     mv "conftest.tmp" "conftest.in"
3732     cp "conftest.in" "conftest.nl"
3733     echo 'GREP' >> "conftest.nl"
3734     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736     ac_count=`expr $ac_count + 1`
3737     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3738       # Best one so far, save it but keep looking for a better one
3739       ac_cv_path_GREP="$ac_path_GREP"
3740       ac_path_GREP_max=$ac_count
3741     fi
3742     # 10*(2^10) chars as input seems more than enough
3743     test $ac_count -gt 10 && break
3744   done
3745   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746 esac
3747
3748
3749     $ac_path_GREP_found && break 3
3750   done
3751 done
3752
3753 done
3754 IFS=$as_save_IFS
3755
3756
3757 fi
3758
3759 GREP="$ac_cv_path_GREP"
3760 if test -z "$GREP"; then
3761   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763    { (exit 1); exit 1; }; }
3764 fi
3765
3766 else
3767   ac_cv_path_GREP=$GREP
3768 fi
3769
3770
3771 fi
3772 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3773 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3774  GREP="$ac_cv_path_GREP"
3775
3776
3777 { echo "$as_me:$LINENO: checking for egrep" >&5
3778 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3779 if test "${ac_cv_path_EGREP+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3783    then ac_cv_path_EGREP="$GREP -E"
3784    else
3785      # Extract the first word of "egrep" to use in msg output
3786 if test -z "$EGREP"; then
3787 set dummy egrep; ac_prog_name=$2
3788 if test "${ac_cv_path_EGREP+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   ac_path_EGREP_found=false
3792 # Loop through the user's path and test for each of PROGNAME-LIST
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798   for ac_prog in egrep; do
3799   for ac_exec_ext in '' $ac_executable_extensions; do
3800     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3801     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3802     # Check for GNU ac_path_EGREP and select it if it is found.
3803   # Check for GNU $ac_path_EGREP
3804 case `"$ac_path_EGREP" --version 2>&1` in
3805 *GNU*)
3806   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3807 *)
3808   ac_count=0
3809   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3810   while :
3811   do
3812     cat "conftest.in" "conftest.in" >"conftest.tmp"
3813     mv "conftest.tmp" "conftest.in"
3814     cp "conftest.in" "conftest.nl"
3815     echo 'EGREP' >> "conftest.nl"
3816     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3817     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3818     ac_count=`expr $ac_count + 1`
3819     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3820       # Best one so far, save it but keep looking for a better one
3821       ac_cv_path_EGREP="$ac_path_EGREP"
3822       ac_path_EGREP_max=$ac_count
3823     fi
3824     # 10*(2^10) chars as input seems more than enough
3825     test $ac_count -gt 10 && break
3826   done
3827   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3828 esac
3829
3830
3831     $ac_path_EGREP_found && break 3
3832   done
3833 done
3834
3835 done
3836 IFS=$as_save_IFS
3837
3838
3839 fi
3840
3841 EGREP="$ac_cv_path_EGREP"
3842 if test -z "$EGREP"; then
3843   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3844 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3845    { (exit 1); exit 1; }; }
3846 fi
3847
3848 else
3849   ac_cv_path_EGREP=$EGREP
3850 fi
3851
3852
3853    fi
3854 fi
3855 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3856 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3857  EGREP="$ac_cv_path_EGREP"
3858
3859
3860 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3861 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3862 if test "${ac_cv_header_stdc+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h.  */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h.  */
3871 #include <stdlib.h>
3872 #include <stdarg.h>
3873 #include <string.h>
3874 #include <float.h>
3875
3876 int
3877 main ()
3878 {
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 rm -f conftest.$ac_objext
3885 if { (ac_try="$ac_compile"
3886 case "(($ac_try" in
3887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888   *) ac_try_echo=$ac_try;;
3889 esac
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891   (eval "$ac_compile") 2>conftest.er1
3892   ac_status=$?
3893   grep -v '^ *+' conftest.er1 >conftest.err
3894   rm -f conftest.er1
3895   cat conftest.err >&5
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); } &&
3898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3899   { (case "(($ac_try" in
3900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901   *) ac_try_echo=$ac_try;;
3902 esac
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904   (eval "$ac_try") 2>&5
3905   ac_status=$?
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); }; } &&
3908          { ac_try='test -s conftest.$ac_objext'
3909   { (case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914   (eval "$ac_try") 2>&5
3915   ac_status=$?
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); }; }; then
3918   ac_cv_header_stdc=yes
3919 else
3920   echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923         ac_cv_header_stdc=no
3924 fi
3925
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927
3928 if test $ac_cv_header_stdc = yes; then
3929   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3930   cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h.  */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h.  */
3936 #include <string.h>
3937
3938 _ACEOF
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940   $EGREP "memchr" >/dev/null 2>&1; then
3941   :
3942 else
3943   ac_cv_header_stdc=no
3944 fi
3945 rm -f conftest*
3946
3947 fi
3948
3949 if test $ac_cv_header_stdc = yes; then
3950   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3951   cat >conftest.$ac_ext <<_ACEOF
3952 /* confdefs.h.  */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h.  */
3957 #include <stdlib.h>
3958
3959 _ACEOF
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961   $EGREP "free" >/dev/null 2>&1; then
3962   :
3963 else
3964   ac_cv_header_stdc=no
3965 fi
3966 rm -f conftest*
3967
3968 fi
3969
3970 if test $ac_cv_header_stdc = yes; then
3971   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3972   if test "$cross_compiling" = yes; then
3973   :
3974 else
3975   cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h.  */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h.  */
3981 #include <ctype.h>
3982 #include <stdlib.h>
3983 #if ((' ' & 0x0FF) == 0x020)
3984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3986 #else
3987 # define ISLOWER(c) \
3988                    (('a' <= (c) && (c) <= 'i') \
3989                      || ('j' <= (c) && (c) <= 'r') \
3990                      || ('s' <= (c) && (c) <= 'z'))
3991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3992 #endif
3993
3994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3995 int
3996 main ()
3997 {
3998   int i;
3999   for (i = 0; i < 256; i++)
4000     if (XOR (islower (i), ISLOWER (i))
4001         || toupper (i) != TOUPPER (i))
4002       return 2;
4003   return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest$ac_exeext
4007 if { (ac_try="$ac_link"
4008 case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013   (eval "$ac_link") 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4017   { (case "(($ac_try" in
4018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019   *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022   (eval "$ac_try") 2>&5
4023   ac_status=$?
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); }; }; then
4026   :
4027 else
4028   echo "$as_me: program exited with status $ac_status" >&5
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 ( exit $ac_status )
4033 ac_cv_header_stdc=no
4034 fi
4035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4036 fi
4037
4038
4039 fi
4040 fi
4041 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4042 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4043 if test $ac_cv_header_stdc = yes; then
4044
4045 cat >>confdefs.h <<\_ACEOF
4046 #define STDC_HEADERS 1
4047 _ACEOF
4048
4049 fi
4050
4051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4062                   inttypes.h stdint.h unistd.h
4063 do
4064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h.  */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h.  */
4076 $ac_includes_default
4077
4078 #include <$ac_header>
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_compile") 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } &&
4094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4095   { (case "(($ac_try" in
4096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097   *) ac_try_echo=$ac_try;;
4098 esac
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100   (eval "$ac_try") 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); }; } &&
4104          { ac_try='test -s conftest.$ac_objext'
4105   { (case "(($ac_try" in
4106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107   *) ac_try_echo=$ac_try;;
4108 esac
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110   (eval "$ac_try") 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; }; then
4114   eval "$as_ac_Header=yes"
4115 else
4116   echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119         eval "$as_ac_Header=no"
4120 fi
4121
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 fi
4124 ac_res=`eval echo '${'$as_ac_Header'}'`
4125                { echo "$as_me:$LINENO: result: $ac_res" >&5
4126 echo "${ECHO_T}$ac_res" >&6; }
4127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4128   cat >>confdefs.h <<_ACEOF
4129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4130 _ACEOF
4131
4132 fi
4133
4134 done
4135
4136
4137 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4138 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4139 if test "${ac_cv_c_bigendian+set}" = set; then
4140   echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142   # See if sys/param.h defines the BYTE_ORDER macro.
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #include <sys/types.h>
4150 #include <sys/param.h>
4151
4152 int
4153 main ()
4154 {
4155 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4156  bogus endian macros
4157 #endif
4158
4159   ;
4160   return 0;
4161 }
4162 _ACEOF
4163 rm -f conftest.$ac_objext
4164 if { (ac_try="$ac_compile"
4165 case "(($ac_try" in
4166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167   *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170   (eval "$ac_compile") 2>conftest.er1
4171   ac_status=$?
4172   grep -v '^ *+' conftest.er1 >conftest.err
4173   rm -f conftest.er1
4174   cat conftest.err >&5
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); } &&
4177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4178   { (case "(($ac_try" in
4179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180   *) ac_try_echo=$ac_try;;
4181 esac
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183   (eval "$ac_try") 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); }; } &&
4187          { ac_try='test -s conftest.$ac_objext'
4188   { (case "(($ac_try" in
4189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190   *) ac_try_echo=$ac_try;;
4191 esac
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193   (eval "$ac_try") 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); }; }; then
4197   # It does; now see whether it defined to BIG_ENDIAN or not.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h.  */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h.  */
4204 #include <sys/types.h>
4205 #include <sys/param.h>
4206
4207 int
4208 main ()
4209 {
4210 #if BYTE_ORDER != BIG_ENDIAN
4211  not big endian
4212 #endif
4213
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (ac_try="$ac_compile"
4220 case "(($ac_try" in
4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222   *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225   (eval "$ac_compile") 2>conftest.er1
4226   ac_status=$?
4227   grep -v '^ *+' conftest.er1 >conftest.err
4228   rm -f conftest.er1
4229   cat conftest.err >&5
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); } &&
4232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233   { (case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238   (eval "$ac_try") 2>&5
4239   ac_status=$?
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); }; } &&
4242          { ac_try='test -s conftest.$ac_objext'
4243   { (case "(($ac_try" in
4244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245   *) ac_try_echo=$ac_try;;
4246 esac
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248   (eval "$ac_try") 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; }; then
4252   ac_cv_c_bigendian=yes
4253 else
4254   echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257         ac_cv_c_bigendian=no
4258 fi
4259
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 else
4262   echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265         # It does not; compile a test program.
4266 if test "$cross_compiling" = yes; then
4267   # try to guess the endianness by grepping values into an object file
4268   ac_cv_c_bigendian=unknown
4269   cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4276 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4277 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4278 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4279 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4280 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4281 int
4282 main ()
4283 {
4284  _ascii (); _ebcdic ();
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (ac_try="$ac_compile"
4291 case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296   (eval "$ac_compile") 2>conftest.er1
4297   ac_status=$?
4298   grep -v '^ *+' conftest.er1 >conftest.err
4299   rm -f conftest.er1
4300   cat conftest.err >&5
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); } &&
4303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4304   { (case "(($ac_try" in
4305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306   *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309   (eval "$ac_try") 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; } &&
4313          { ac_try='test -s conftest.$ac_objext'
4314   { (case "(($ac_try" in
4315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316   *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319   (eval "$ac_try") 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; }; then
4323   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4324   ac_cv_c_bigendian=yes
4325 fi
4326 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4327   if test "$ac_cv_c_bigendian" = unknown; then
4328     ac_cv_c_bigendian=no
4329   else
4330     # finding both strings is unlikely to happen, but who knows?
4331     ac_cv_c_bigendian=unknown
4332   fi
4333 fi
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338
4339 fi
4340
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 else
4343   cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349 $ac_includes_default
4350 int
4351 main ()
4352 {
4353
4354   /* Are we little or big endian?  From Harbison&Steele.  */
4355   union
4356   {
4357     long int l;
4358     char c[sizeof (long int)];
4359   } u;
4360   u.l = 1;
4361   return u.c[sizeof (long int) - 1] == 1;
4362
4363   ;
4364   return 0;
4365 }
4366 _ACEOF
4367 rm -f conftest$ac_exeext
4368 if { (ac_try="$ac_link"
4369 case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_link") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378   { (case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383   (eval "$ac_try") 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; }; then
4387   ac_cv_c_bigendian=no
4388 else
4389   echo "$as_me: program exited with status $ac_status" >&5
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ( exit $ac_status )
4394 ac_cv_c_bigendian=yes
4395 fi
4396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4397 fi
4398
4399
4400 fi
4401
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 fi
4404 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4405 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4406 case $ac_cv_c_bigendian in
4407   yes)
4408     ENDIAN=big
4409  ;;
4410   no)
4411     ENDIAN=little
4412  ;;
4413   *)
4414     { { echo "$as_me:$LINENO: error: unknown endianness
4415 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4416 echo "$as_me: error: unknown endianness
4417 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4418    { (exit 1); exit 1; }; } ;;
4419 esac
4420
4421
4422 if test "$cross_compiling" = yes; then
4423   LLVM_CROSS_COMPILING=1
4424
4425
4426 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4427 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4428 if test "${ac_cv_build_exeext+set}" = set; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4432   ac_cv_build_exeext=.exe
4433 else
4434   ac_build_prefix=${build_alias}-
4435
4436   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4437 set dummy ${ac_build_prefix}gcc; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test -n "$BUILD_CC"; then
4444   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4453     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 BUILD_CC=$ac_cv_prog_BUILD_CC
4464 if test -n "$BUILD_CC"; then
4465   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4466 echo "${ECHO_T}$BUILD_CC" >&6; }
4467 else
4468   { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4470 fi
4471
4472
4473   if test -z "$BUILD_CC"; then
4474      # Extract the first word of "gcc", so it can be a program name with args.
4475 set dummy gcc; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   if test -n "$BUILD_CC"; then
4482   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4491     ac_cv_prog_BUILD_CC="gcc"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497 IFS=$as_save_IFS
4498
4499 fi
4500 fi
4501 BUILD_CC=$ac_cv_prog_BUILD_CC
4502 if test -n "$BUILD_CC"; then
4503   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4504 echo "${ECHO_T}$BUILD_CC" >&6; }
4505 else
4506   { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4508 fi
4509
4510
4511      if test -z "$BUILD_CC"; then
4512        # Extract the first word of "cc", so it can be a program name with args.
4513 set dummy cc; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   if test -n "$BUILD_CC"; then
4520   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4521 else
4522   ac_prog_rejected=no
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528   for ac_exec_ext in '' $ac_executable_extensions; do
4529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4530     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4531        ac_prog_rejected=yes
4532        continue
4533      fi
4534     ac_cv_prog_BUILD_CC="cc"
4535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536     break 2
4537   fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 if test $ac_prog_rejected = yes; then
4543   # We found a bogon in the path, so make sure we never use it.
4544   set dummy $ac_cv_prog_BUILD_CC
4545   shift
4546   if test $# != 0; then
4547     # We chose a different compiler from the bogus one.
4548     # However, it has the same basename, so the bogon will be chosen
4549     # first if we set BUILD_CC to just the basename; use the full file name.
4550     shift
4551     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4552   fi
4553 fi
4554 fi
4555 fi
4556 BUILD_CC=$ac_cv_prog_BUILD_CC
4557 if test -n "$BUILD_CC"; then
4558   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4559 echo "${ECHO_T}$BUILD_CC" >&6; }
4560 else
4561   { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4563 fi
4564
4565
4566      fi
4567   fi
4568   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4569 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4570    { (exit 1); exit 1; }; }
4571   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4572   rm -f conftest*
4573   echo 'int main () { return 0; }' > conftest.$ac_ext
4574   ac_cv_build_exeext=
4575   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4576   (eval $ac_build_link) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; then
4580     for file in conftest.*; do
4581       case $file in
4582       *.c | *.o | *.obj | *.dSYM) ;;
4583       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4584       esac
4585     done
4586   else
4587     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4588 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4589    { (exit 1); exit 1; }; }
4590   fi
4591   rm -f conftest*
4592   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4593 fi
4594 fi
4595
4596 BUILD_EXEEXT=""
4597 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4598 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4599 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4600 ac_build_exeext=$BUILD_EXEEXT
4601
4602   ac_build_prefix=${build_alias}-
4603   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4604 set dummy ${ac_build_prefix}g++; ac_word=$2
4605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4607 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   if test -n "$BUILD_CXX"; then
4611   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618   for ac_exec_ext in '' $ac_executable_extensions; do
4619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4620     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622     break 2
4623   fi
4624 done
4625 done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4631 if test -n "$BUILD_CXX"; then
4632   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4633 echo "${ECHO_T}$BUILD_CXX" >&6; }
4634 else
4635   { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4637 fi
4638
4639
4640   if test -z "$BUILD_CXX"; then
4641      # Extract the first word of "g++", so it can be a program name with args.
4642 set dummy g++; ac_word=$2
4643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4646   echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648   if test -n "$BUILD_CXX"; then
4649   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654   IFS=$as_save_IFS
4655   test -z "$as_dir" && as_dir=.
4656   for ac_exec_ext in '' $ac_executable_extensions; do
4657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4658     ac_cv_prog_BUILD_CXX="g++"
4659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660     break 2
4661   fi
4662 done
4663 done
4664 IFS=$as_save_IFS
4665
4666 fi
4667 fi
4668 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4669 if test -n "$BUILD_CXX"; then
4670   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4671 echo "${ECHO_T}$BUILD_CXX" >&6; }
4672 else
4673   { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4675 fi
4676
4677
4678      if test -z "$BUILD_CXX"; then
4679        # Extract the first word of "c++", so it can be a program name with args.
4680 set dummy c++; ac_word=$2
4681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   if test -n "$BUILD_CXX"; then
4687   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4688 else
4689   ac_prog_rejected=no
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693   IFS=$as_save_IFS
4694   test -z "$as_dir" && as_dir=.
4695   for ac_exec_ext in '' $ac_executable_extensions; do
4696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4697     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4698        ac_prog_rejected=yes
4699        continue
4700      fi
4701     ac_cv_prog_BUILD_CXX="c++"
4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 if test $ac_prog_rejected = yes; then
4710   # We found a bogon in the path, so make sure we never use it.
4711   set dummy $ac_cv_prog_BUILD_CXX
4712   shift
4713   if test $# != 0; then
4714     # We chose a different compiler from the bogus one.
4715     # However, it has the same basename, so the bogon will be chosen
4716     # first if we set BUILD_CXX to just the basename; use the full file name.
4717     shift
4718     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4719   fi
4720 fi
4721 fi
4722 fi
4723 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4724 if test -n "$BUILD_CXX"; then
4725   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4726 echo "${ECHO_T}$BUILD_CXX" >&6; }
4727 else
4728   { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4730 fi
4731
4732
4733      fi
4734   fi
4735 else
4736   LLVM_CROSS_COMPILING=0
4737
4738 fi
4739
4740 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4741   cvsbuild="yes"
4742   optimize="no"
4743   CVSBUILD=CVSBUILD=1
4744
4745 else
4746   cvsbuild="no"
4747   optimize="yes"
4748 fi
4749
4750
4751 # Check whether --enable-optimized was given.
4752 if test "${enable_optimized+set}" = set; then
4753   enableval=$enable_optimized;
4754 else
4755   enableval=$optimize
4756 fi
4757
4758 if test ${enableval} = "no" ; then
4759   ENABLE_OPTIMIZED=
4760
4761 else
4762   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4763
4764 fi
4765
4766 # Check whether --enable-profiling was given.
4767 if test "${enable_profiling+set}" = set; then
4768   enableval=$enable_profiling;
4769 else
4770   enableval="no"
4771 fi
4772
4773 if test ${enableval} = "no" ; then
4774   ENABLE_PROFILING=
4775
4776 else
4777   ENABLE_PROFILING=ENABLE_PROFILING=1
4778
4779 fi
4780
4781 # Check whether --enable-assertions was given.
4782 if test "${enable_assertions+set}" = set; then
4783   enableval=$enable_assertions;
4784 else
4785   enableval="yes"
4786 fi
4787
4788 if test ${enableval} = "yes" ; then
4789   DISABLE_ASSERTIONS=
4790
4791 else
4792   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4793
4794 fi
4795
4796 # Check whether --enable-expensive-checks was given.
4797 if test "${enable_expensive_checks+set}" = set; then
4798   enableval=$enable_expensive_checks;
4799 else
4800   enableval="no"
4801 fi
4802
4803 if test ${enableval} = "yes" ; then
4804   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4805
4806   EXPENSIVE_CHECKS=yes
4807
4808 else
4809   ENABLE_EXPENSIVE_CHECKS=
4810
4811   EXPENSIVE_CHECKS=no
4812
4813 fi
4814
4815 # Check whether --enable-debug-runtime was given.
4816 if test "${enable_debug_runtime+set}" = set; then
4817   enableval=$enable_debug_runtime;
4818 else
4819   enableval=no
4820 fi
4821
4822 if test ${enableval} = "no" ; then
4823   DEBUG_RUNTIME=
4824
4825 else
4826   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4827
4828 fi
4829
4830 # Check whether --enable-debug-symbols was given.
4831 if test "${enable_debug_symbols+set}" = set; then
4832   enableval=$enable_debug_symbols;
4833 else
4834   enableval=no
4835 fi
4836
4837 if test ${enableval} = "no" ; then
4838   DEBUG_SYMBOLS=
4839
4840 else
4841   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4842
4843 fi
4844
4845 # Check whether --enable-jit was given.
4846 if test "${enable_jit+set}" = set; then
4847   enableval=$enable_jit;
4848 else
4849   enableval=default
4850 fi
4851
4852 if test ${enableval} = "no"
4853 then
4854   JIT=
4855
4856 else
4857   case "$llvm_cv_target_arch" in
4858     x86)         TARGET_HAS_JIT=1
4859  ;;
4860     Sparc)       TARGET_HAS_JIT=0
4861  ;;
4862     PowerPC)     TARGET_HAS_JIT=1
4863  ;;
4864     x86_64)      TARGET_HAS_JIT=1
4865  ;;
4866     Alpha)       TARGET_HAS_JIT=0
4867  ;;
4868     ARM)         TARGET_HAS_JIT=1
4869  ;;
4870     Mips)        TARGET_HAS_JIT=1
4871  ;;
4872     XCore)       TARGET_HAS_JIT=0
4873  ;;
4874     MSP430)      TARGET_HAS_JIT=0
4875  ;;
4876     SystemZ)     TARGET_HAS_JIT=0
4877  ;;
4878     Blackfin)    TARGET_HAS_JIT=0
4879  ;;
4880     MBlaze)      TARGET_HAS_JIT=0
4881  ;;
4882     PTX)         TARGET_HAS_JIT=0
4883  ;;
4884     *)           TARGET_HAS_JIT=0
4885  ;;
4886   esac
4887 fi
4888
4889 # Check whether --enable-docs was given.
4890 if test "${enable_docs+set}" = set; then
4891   enableval=$enable_docs;
4892 else
4893   enableval=default
4894 fi
4895
4896 case "$enableval" in
4897   yes) ENABLE_DOCS=1
4898  ;;
4899   no)  ENABLE_DOCS=0
4900  ;;
4901   default) ENABLE_DOCS=1
4902  ;;
4903   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4904 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4905    { (exit 1); exit 1; }; } ;;
4906 esac
4907
4908 # Check whether --enable-doxygen was given.
4909 if test "${enable_doxygen+set}" = set; then
4910   enableval=$enable_doxygen;
4911 else
4912   enableval=default
4913 fi
4914
4915 case "$enableval" in
4916   yes) ENABLE_DOXYGEN=1
4917  ;;
4918   no)  ENABLE_DOXYGEN=0
4919  ;;
4920   default) ENABLE_DOXYGEN=0
4921  ;;
4922   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4923 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4924    { (exit 1); exit 1; }; } ;;
4925 esac
4926
4927 # Check whether --enable-threads was given.
4928 if test "${enable_threads+set}" = set; then
4929   enableval=$enable_threads;
4930 else
4931   enableval=default
4932 fi
4933
4934 case "$enableval" in
4935   yes) ENABLE_THREADS=1
4936  ;;
4937   no)  ENABLE_THREADS=0
4938  ;;
4939   default) ENABLE_THREADS=1
4940  ;;
4941   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4942 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4943    { (exit 1); exit 1; }; } ;;
4944 esac
4945
4946 cat >>confdefs.h <<_ACEOF
4947 #define ENABLE_THREADS $ENABLE_THREADS
4948 _ACEOF
4949
4950
4951 # Check whether --enable-pthreads was given.
4952 if test "${enable_pthreads+set}" = set; then
4953   enableval=$enable_pthreads;
4954 else
4955   enableval=default
4956 fi
4957
4958 case "$enableval" in
4959   yes) ENABLE_PTHREADS=1
4960  ;;
4961   no)  ENABLE_PTHREADS=0
4962  ;;
4963   default) ENABLE_PTHREADS=1
4964  ;;
4965   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4967    { (exit 1); exit 1; }; } ;;
4968 esac
4969
4970 # Check whether --enable-pic was given.
4971 if test "${enable_pic+set}" = set; then
4972   enableval=$enable_pic;
4973 else
4974   enableval=default
4975 fi
4976
4977 case "$enableval" in
4978   yes) ENABLE_PIC=1
4979  ;;
4980   no)  ENABLE_PIC=0
4981  ;;
4982   default) ENABLE_PIC=1
4983  ;;
4984   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4985 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4986    { (exit 1); exit 1; }; } ;;
4987 esac
4988
4989 cat >>confdefs.h <<_ACEOF
4990 #define ENABLE_PIC $ENABLE_PIC
4991 _ACEOF
4992
4993
4994 # Check whether --enable-shared was given.
4995 if test "${enable_shared+set}" = set; then
4996   enableval=$enable_shared;
4997 else
4998   enableval=default
4999 fi
5000
5001 case "$enableval" in
5002   yes) ENABLE_SHARED=1
5003  ;;
5004   no)  ENABLE_SHARED=0
5005  ;;
5006   default) ENABLE_SHARED=0
5007  ;;
5008   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5009 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5010    { (exit 1); exit 1; }; } ;;
5011 esac
5012
5013 # Check whether --enable-embed-stdcxx was given.
5014 if test "${enable_embed_stdcxx+set}" = set; then
5015   enableval=$enable_embed_stdcxx;
5016 else
5017   enableval=default
5018 fi
5019
5020 case "$enableval" in
5021   yes) ENABLE_EMBED_STDCXX=1
5022  ;;
5023   no)  ENABLE_EMBED_STDCXX=0
5024  ;;
5025   default) ENABLE_EMBED_STDCXX=1
5026  ;;
5027   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5028 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5029    { (exit 1); exit 1; }; } ;;
5030 esac
5031
5032 # Check whether --enable-timestamps was given.
5033 if test "${enable_timestamps+set}" = set; then
5034   enableval=$enable_timestamps;
5035 else
5036   enableval=default
5037 fi
5038
5039 case "$enableval" in
5040   yes) ENABLE_TIMESTAMPS=1
5041  ;;
5042   no)  ENABLE_TIMESTAMPS=0
5043  ;;
5044   default) ENABLE_TIMESTAMPS=1
5045  ;;
5046   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5047 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5048    { (exit 1); exit 1; }; } ;;
5049 esac
5050
5051 cat >>confdefs.h <<_ACEOF
5052 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5053 _ACEOF
5054
5055
5056 TARGETS_TO_BUILD=""
5057 # Check whether --enable-targets was given.
5058 if test "${enable_targets+set}" = set; then
5059   enableval=$enable_targets;
5060 else
5061   enableval=all
5062 fi
5063
5064 if test "$enableval" = host-only ; then
5065   enableval=host
5066 fi
5067 case "$enableval" in
5068   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5069   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5070       case "$a_target" in
5071         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5072         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5073         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5074         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5075         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5076         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5077         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5078         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5079         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5080         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5081         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5082         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5083         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5084         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5085         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5086         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5087         host) case "$llvm_cv_target_arch" in
5088             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5089             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5090             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5091             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5092             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5093             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5094             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5095             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5096             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5097             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5098             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5099             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5100             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5101             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5102             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5103 echo "$as_me: error: Can not set target to build" >&2;}
5104    { (exit 1); exit 1; }; } ;;
5105           esac ;;
5106         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5107 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5108    { (exit 1); exit 1; }; } ;;
5109       esac
5110   done
5111   ;;
5112 esac
5113 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5114
5115
5116 # Determine whether we are building LLVM support for the native architecture.
5117 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5118 for a_target in $TARGETS_TO_BUILD; do
5119   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5120
5121 cat >>confdefs.h <<_ACEOF
5122 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5123 _ACEOF
5124
5125     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5126     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5127     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5128     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5129     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5130       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5131     fi
5132
5133 cat >>confdefs.h <<_ACEOF
5134 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5135 _ACEOF
5136
5137
5138 cat >>confdefs.h <<_ACEOF
5139 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5140 _ACEOF
5141
5142
5143 cat >>confdefs.h <<_ACEOF
5144 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5145 _ACEOF
5146
5147
5148 cat >>confdefs.h <<_ACEOF
5149 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5150 _ACEOF
5151
5152     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5153
5154 cat >>confdefs.h <<_ACEOF
5155 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5156 _ACEOF
5157
5158     fi
5159   fi
5160 done
5161
5162 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5163 # target feature def files.
5164 LLVM_ENUM_TARGETS=""
5165 LLVM_ENUM_ASM_PRINTERS=""
5166 LLVM_ENUM_ASM_PARSERS=""
5167 LLVM_ENUM_DISASSEMBLERS=""
5168 for target_to_build in $TARGETS_TO_BUILD; do
5169   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5170   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5171     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5172   fi
5173   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5174     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5175   fi
5176   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5177     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5178   fi
5179 done
5180
5181
5182
5183
5184
5185 # Check whether --enable-cbe-printf-a was given.
5186 if test "${enable_cbe_printf_a+set}" = set; then
5187   enableval=$enable_cbe_printf_a;
5188 else
5189   enableval=default
5190 fi
5191
5192 case "$enableval" in
5193   yes) ENABLE_CBE_PRINTF_A=1
5194  ;;
5195   no)  ENABLE_CBE_PRINTF_A=0
5196  ;;
5197   default)  ENABLE_CBE_PRINTF_A=1
5198  ;;
5199   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5200 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5201    { (exit 1); exit 1; }; } ;;
5202 esac
5203
5204 cat >>confdefs.h <<_ACEOF
5205 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5206 _ACEOF
5207
5208
5209
5210 # Check whether --with-llvmgccdir was given.
5211 if test "${with_llvmgccdir+set}" = set; then
5212   withval=$with_llvmgccdir;
5213 else
5214   withval=default
5215 fi
5216
5217 case "$withval" in
5218   default) WITH_LLVMGCCDIR=default ;;
5219   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5220   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5221 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5222    { (exit 1); exit 1; }; } ;;
5223 esac
5224
5225
5226 # Check whether --with-llvmgcc was given.
5227 if test "${with_llvmgcc+set}" = set; then
5228   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5229       WITH_LLVMGCCDIR=""
5230 fi
5231
5232
5233
5234 # Check whether --with-llvmgxx was given.
5235 if test "${with_llvmgxx+set}" = set; then
5236   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5237     WITH_LLVMGCCDIR=""
5238 fi
5239
5240
5241 if test -n "$LLVMGCC"; then
5242    LLVMGCCCOMMAND="$LLVMGCC"
5243 fi
5244
5245 if test -n "$LLVMGXX"; then
5246    LLVMGXXCOMMAND="$LLVMGXX"
5247 fi
5248
5249 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5250    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5251 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5252    { (exit 1); exit 1; }; };
5253 fi
5254
5255 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5256    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5257 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5258    { (exit 1); exit 1; }; };
5259 fi
5260
5261
5262 # Check whether --with-clang was given.
5263 if test "${with_clang+set}" = set; then
5264   withval=$with_clang;
5265 else
5266   with_clang=default
5267 fi
5268
5269
5270
5271 # Check whether --with-built-clang was given.
5272 if test "${with_built_clang+set}" = set; then
5273   withval=$with_built_clang;
5274 else
5275   with_built_clang=check
5276 fi
5277
5278
5279 { echo "$as_me:$LINENO: checking clang compiler" >&5
5280 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5281 WITH_CLANGPATH=""
5282 WITH_BUILT_CLANG=0
5283 if test "$with_clang" != "default"; then
5284    WITH_CLANGPATH="$with_clang"
5285    if ! test -x "$WITH_CLANGPATH"; then
5286      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5287 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5288    { (exit 1); exit 1; }; }
5289    fi
5290 elif test "$with_built_clang" = "yes"; then
5291    WITH_BUILT_CLANG=1
5292 elif test "$with_built_clang" = "no"; then
5293    WITH_BUILT_CLANG=0
5294 else
5295    if test "$with_built_clang" != "check"; then
5296       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5297 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5298    { (exit 1); exit 1; }; }
5299    fi
5300
5301    if test -f ${srcdir}/tools/clang/README.txt; then
5302      WITH_BUILT_CLANG=1
5303    fi
5304 fi
5305
5306 if ! test -z "$WITH_CLANGPATH"; then
5307    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5308 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5309    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5310 elif test "$WITH_BUILT_CLANG" = "1"; then
5311    { echo "$as_me:$LINENO: result: built" >&5
5312 echo "${ECHO_T}built" >&6; }
5313 else
5314    { echo "$as_me:$LINENO: result: none" >&5
5315 echo "${ECHO_T}none" >&6; }
5316 fi
5317 CLANGPATH=$WITH_CLANGPATH
5318
5319 CLANGXXPATH=$WITH_CLANGXXPATH
5320
5321 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5322
5323
5324
5325 # Check whether --with-optimize-option was given.
5326 if test "${with_optimize_option+set}" = set; then
5327   withval=$with_optimize_option;
5328 else
5329   withval=default
5330 fi
5331
5332 { echo "$as_me:$LINENO: checking optimization flags" >&5
5333 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5334 case "$withval" in
5335   default)
5336     case "$llvm_cv_os_type" in
5337     FreeBSD) optimize_option=-O2 ;;
5338     MingW) optimize_option=-O2 ;;
5339     *)     optimize_option=-O3 ;;
5340     esac ;;
5341   *) optimize_option="$withval" ;;
5342 esac
5343 OPTIMIZE_OPTION=$optimize_option
5344
5345 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5346 echo "${ECHO_T}$optimize_option" >&6; }
5347
5348
5349 # Check whether --with-extra-options was given.
5350 if test "${with_extra_options+set}" = set; then
5351   withval=$with_extra_options;
5352 else
5353   withval=default
5354 fi
5355
5356 case "$withval" in
5357   default) EXTRA_OPTIONS= ;;
5358   *) EXTRA_OPTIONS=$withval ;;
5359 esac
5360 EXTRA_OPTIONS=$EXTRA_OPTIONS
5361
5362
5363
5364 # Check whether --with-extra-ld-options was given.
5365 if test "${with_extra_ld_options+set}" = set; then
5366   withval=$with_extra_ld_options;
5367 else
5368   withval=default
5369 fi
5370
5371 case "$withval" in
5372   default) EXTRA_LD_OPTIONS= ;;
5373   *) EXTRA_LD_OPTIONS=$withval ;;
5374 esac
5375 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5376
5377
5378 # Check whether --enable-bindings was given.
5379 if test "${enable_bindings+set}" = set; then
5380   enableval=$enable_bindings;
5381 else
5382   enableval=default
5383 fi
5384
5385 BINDINGS_TO_BUILD=""
5386 case "$enableval" in
5387   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5388   all ) BINDINGS_TO_BUILD="ocaml" ;;
5389   none | no) BINDINGS_TO_BUILD="" ;;
5390   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5391       case "$a_binding" in
5392         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5393         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5394 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5395    { (exit 1); exit 1; }; } ;;
5396       esac
5397   done
5398   ;;
5399 esac
5400
5401
5402 # Check whether --with-ocaml-libdir was given.
5403 if test "${with_ocaml_libdir+set}" = set; then
5404   withval=$with_ocaml_libdir;
5405 else
5406   withval=auto
5407 fi
5408
5409 case "$withval" in
5410   auto) with_ocaml_libdir="$withval" ;;
5411   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5412   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5413 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5414    { (exit 1); exit 1; }; } ;;
5415 esac
5416
5417
5418 # Check whether --with-clang-resource-dir was given.
5419 if test "${with_clang_resource_dir+set}" = set; then
5420   withval=$with_clang_resource_dir;
5421 else
5422   withval=""
5423 fi
5424
5425
5426 cat >>confdefs.h <<_ACEOF
5427 #define CLANG_RESOURCE_DIR "$withval"
5428 _ACEOF
5429
5430
5431
5432 # Check whether --with-c-include-dirs was given.
5433 if test "${with_c_include_dirs+set}" = set; then
5434   withval=$with_c_include_dirs;
5435 else
5436   withval=""
5437 fi
5438
5439
5440 cat >>confdefs.h <<_ACEOF
5441 #define C_INCLUDE_DIRS "$withval"
5442 _ACEOF
5443
5444
5445
5446 # Check whether --with-cxx-include-root was given.
5447 if test "${with_cxx_include_root+set}" = set; then
5448   withval=$with_cxx_include_root;
5449 else
5450   withval=""
5451 fi
5452
5453
5454 cat >>confdefs.h <<_ACEOF
5455 #define CXX_INCLUDE_ROOT "$withval"
5456 _ACEOF
5457
5458
5459
5460 # Check whether --with-cxx-include-arch was given.
5461 if test "${with_cxx_include_arch+set}" = set; then
5462   withval=$with_cxx_include_arch;
5463 else
5464   withval=""
5465 fi
5466
5467
5468 cat >>confdefs.h <<_ACEOF
5469 #define CXX_INCLUDE_ARCH "$withval"
5470 _ACEOF
5471
5472
5473
5474 # Check whether --with-cxx-include-32bit-dir was given.
5475 if test "${with_cxx_include_32bit_dir+set}" = set; then
5476   withval=$with_cxx_include_32bit_dir;
5477 else
5478   withval=""
5479 fi
5480
5481
5482 cat >>confdefs.h <<_ACEOF
5483 #define CXX_INCLUDE_32BIT_DIR "$withval"
5484 _ACEOF
5485
5486
5487
5488 # Check whether --with-cxx-include-64bit-dir was given.
5489 if test "${with_cxx_include_64bit_dir+set}" = set; then
5490   withval=$with_cxx_include_64bit_dir;
5491 else
5492   withval=""
5493 fi
5494
5495
5496 cat >>confdefs.h <<_ACEOF
5497 #define CXX_INCLUDE_64BIT_DIR "$withval"
5498 _ACEOF
5499
5500
5501
5502 # Check whether --with-binutils-include was given.
5503 if test "${with_binutils_include+set}" = set; then
5504   withval=$with_binutils_include;
5505 else
5506   withval=default
5507 fi
5508
5509 case "$withval" in
5510   default) WITH_BINUTILS_INCDIR=default ;;
5511   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5512   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5513 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5514    { (exit 1); exit 1; }; } ;;
5515 esac
5516 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5517   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5518
5519   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5520      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5521      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5522 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5523    { (exit 1); exit 1; }; };
5524   fi
5525 fi
5526
5527
5528 # Check whether --with-bug-report-url was given.
5529 if test "${with_bug_report_url+set}" = set; then
5530   withval=$with_bug_report_url;
5531 else
5532   withval="http://llvm.org/bugs/"
5533 fi
5534
5535
5536 cat >>confdefs.h <<_ACEOF
5537 #define BUG_REPORT_URL "$withval"
5538 _ACEOF
5539
5540
5541 # Check whether --enable-libffi was given.
5542 if test "${enable_libffi+set}" = set; then
5543   enableval=$enable_libffi; case "$enableval" in
5544     yes) llvm_cv_enable_libffi="yes" ;;
5545     no)  llvm_cv_enable_libffi="no"  ;;
5546     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5547 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5548    { (exit 1); exit 1; }; } ;;
5549   esac
5550 else
5551   llvm_cv_enable_libffi=no
5552 fi
5553
5554
5555
5556 ac_ext=c
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5562 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5563 # On Suns, sometimes $CPP names a directory.
5564 if test -n "$CPP" && test -d "$CPP"; then
5565   CPP=
5566 fi
5567 if test -z "$CPP"; then
5568   if test "${ac_cv_prog_CPP+set}" = set; then
5569   echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571       # Double quotes because CPP needs to be expanded
5572     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5573     do
5574       ac_preproc_ok=false
5575 for ac_c_preproc_warn_flag in '' yes
5576 do
5577   # Use a header file that comes with gcc, so configuring glibc
5578   # with a fresh cross-compiler works.
5579   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580   # <limits.h> exists even on freestanding compilers.
5581   # On the NeXT, cc -E runs the code through the compiler's parser,
5582   # not just through cpp. "Syntax error" is here to catch this case.
5583   cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589 #ifdef __STDC__
5590 # include <limits.h>
5591 #else
5592 # include <assert.h>
5593 #endif
5594                      Syntax error
5595 _ACEOF
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5597 case "(($ac_try" in
5598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599   *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } >/dev/null; then
5609   if test -s conftest.err; then
5610     ac_cpp_err=$ac_c_preproc_warn_flag
5611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5612   else
5613     ac_cpp_err=
5614   fi
5615 else
5616   ac_cpp_err=yes
5617 fi
5618 if test -z "$ac_cpp_err"; then
5619   :
5620 else
5621   echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5623
5624   # Broken: fails on valid input.
5625 continue
5626 fi
5627
5628 rm -f conftest.err conftest.$ac_ext
5629
5630   # OK, works on sane cases.  Now check whether nonexistent headers
5631   # can be detected and how.
5632   cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h.  */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h.  */
5638 #include <ac_nonexistent.h>
5639 _ACEOF
5640 if { (ac_try="$ac_cpp conftest.$ac_ext"
5641 case "(($ac_try" in
5642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643   *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5647   ac_status=$?
5648   grep -v '^ *+' conftest.er1 >conftest.err
5649   rm -f conftest.er1
5650   cat conftest.err >&5
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } >/dev/null; then
5653   if test -s conftest.err; then
5654     ac_cpp_err=$ac_c_preproc_warn_flag
5655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5656   else
5657     ac_cpp_err=
5658   fi
5659 else
5660   ac_cpp_err=yes
5661 fi
5662 if test -z "$ac_cpp_err"; then
5663   # Broken: success on invalid input.
5664 continue
5665 else
5666   echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5668
5669   # Passes both tests.
5670 ac_preproc_ok=:
5671 break
5672 fi
5673
5674 rm -f conftest.err conftest.$ac_ext
5675
5676 done
5677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5678 rm -f conftest.err conftest.$ac_ext
5679 if $ac_preproc_ok; then
5680   break
5681 fi
5682
5683     done
5684     ac_cv_prog_CPP=$CPP
5685
5686 fi
5687   CPP=$ac_cv_prog_CPP
5688 else
5689   ac_cv_prog_CPP=$CPP
5690 fi
5691 { echo "$as_me:$LINENO: result: $CPP" >&5
5692 echo "${ECHO_T}$CPP" >&6; }
5693 ac_preproc_ok=false
5694 for ac_c_preproc_warn_flag in '' yes
5695 do
5696   # Use a header file that comes with gcc, so configuring glibc
5697   # with a fresh cross-compiler works.
5698   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699   # <limits.h> exists even on freestanding compilers.
5700   # On the NeXT, cc -E runs the code through the compiler's parser,
5701   # not just through cpp. "Syntax error" is here to catch this case.
5702   cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h.  */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h.  */
5708 #ifdef __STDC__
5709 # include <limits.h>
5710 #else
5711 # include <assert.h>
5712 #endif
5713                      Syntax error
5714 _ACEOF
5715 if { (ac_try="$ac_cpp conftest.$ac_ext"
5716 case "(($ac_try" in
5717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718   *) ac_try_echo=$ac_try;;
5719 esac
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5722   ac_status=$?
5723   grep -v '^ *+' conftest.er1 >conftest.err
5724   rm -f conftest.er1
5725   cat conftest.err >&5
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); } >/dev/null; then
5728   if test -s conftest.err; then
5729     ac_cpp_err=$ac_c_preproc_warn_flag
5730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5731   else
5732     ac_cpp_err=
5733   fi
5734 else
5735   ac_cpp_err=yes
5736 fi
5737 if test -z "$ac_cpp_err"; then
5738   :
5739 else
5740   echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743   # Broken: fails on valid input.
5744 continue
5745 fi
5746
5747 rm -f conftest.err conftest.$ac_ext
5748
5749   # OK, works on sane cases.  Now check whether nonexistent headers
5750   # can be detected and how.
5751   cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h.  */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h.  */
5757 #include <ac_nonexistent.h>
5758 _ACEOF
5759 if { (ac_try="$ac_cpp conftest.$ac_ext"
5760 case "(($ac_try" in
5761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762   *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } >/dev/null; then
5772   if test -s conftest.err; then
5773     ac_cpp_err=$ac_c_preproc_warn_flag
5774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5775   else
5776     ac_cpp_err=
5777   fi
5778 else
5779   ac_cpp_err=yes
5780 fi
5781 if test -z "$ac_cpp_err"; then
5782   # Broken: success on invalid input.
5783 continue
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788   # Passes both tests.
5789 ac_preproc_ok=:
5790 break
5791 fi
5792
5793 rm -f conftest.err conftest.$ac_ext
5794
5795 done
5796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797 rm -f conftest.err conftest.$ac_ext
5798 if $ac_preproc_ok; then
5799   :
5800 else
5801   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5802 See \`config.log' for more details." >&5
5803 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5804 See \`config.log' for more details." >&2;}
5805    { (exit 1); exit 1; }; }
5806 fi
5807
5808 ac_ext=c
5809 ac_cpp='$CPP $CPPFLAGS'
5810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813
5814 ac_ext=c
5815 ac_cpp='$CPP $CPPFLAGS'
5816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5819 if test -n "$ac_tool_prefix"; then
5820   for ac_prog in gcc
5821   do
5822     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_prog_CC+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   if test -n "$CC"; then
5830   ac_cv_prog_CC="$CC" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837   for ac_exec_ext in '' $ac_executable_extensions; do
5838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844 done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 CC=$ac_cv_prog_CC
5850 if test -n "$CC"; then
5851   { echo "$as_me:$LINENO: result: $CC" >&5
5852 echo "${ECHO_T}$CC" >&6; }
5853 else
5854   { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5856 fi
5857
5858
5859     test -n "$CC" && break
5860   done
5861 fi
5862 if test -z "$CC"; then
5863   ac_ct_CC=$CC
5864   for ac_prog in gcc
5865 do
5866   # Extract the first word of "$ac_prog", so it can be a program name with args.
5867 set dummy $ac_prog; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   if test -n "$ac_ct_CC"; then
5874   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881   for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_prog_ac_ct_CC="$ac_prog"
5884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888 done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5894 if test -n "$ac_ct_CC"; then
5895   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5896 echo "${ECHO_T}$ac_ct_CC" >&6; }
5897 else
5898   { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5900 fi
5901
5902
5903   test -n "$ac_ct_CC" && break
5904 done
5905
5906   if test "x$ac_ct_CC" = x; then
5907     CC=""
5908   else
5909     case $cross_compiling:$ac_tool_warned in
5910 yes:)
5911 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5912 whose name does not start with the host triplet.  If you think this
5913 configuration is useful to you, please write to autoconf@gnu.org." >&5
5914 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5915 whose name does not start with the host triplet.  If you think this
5916 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5917 ac_tool_warned=yes ;;
5918 esac
5919     CC=$ac_ct_CC
5920   fi
5921 fi
5922
5923
5924 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5925 See \`config.log' for more details." >&5
5926 echo "$as_me: error: no acceptable C compiler found in \$PATH
5927 See \`config.log' for more details." >&2;}
5928    { (exit 1); exit 1; }; }
5929
5930 # Provide some information about the compiler.
5931 echo "$as_me:$LINENO: checking for C compiler version" >&5
5932 ac_compiler=`set X $ac_compile; echo $2`
5933 { (ac_try="$ac_compiler --version >&5"
5934 case "(($ac_try" in
5935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936   *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939   (eval "$ac_compiler --version >&5") 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }
5943 { (ac_try="$ac_compiler -v >&5"
5944 case "(($ac_try" in
5945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946   *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949   (eval "$ac_compiler -v >&5") 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }
5953 { (ac_try="$ac_compiler -V >&5"
5954 case "(($ac_try" in
5955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956   *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959   (eval "$ac_compiler -V >&5") 2>&5
5960   ac_status=$?
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); }
5963
5964 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h.  */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h.  */
5975
5976 int
5977 main ()
5978 {
5979 #ifndef __GNUC__
5980        choke me
5981 #endif
5982
5983   ;
5984   return 0;
5985 }
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (ac_try="$ac_compile"
5989 case "(($ac_try" in
5990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991   *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994   (eval "$ac_compile") 2>conftest.er1
5995   ac_status=$?
5996   grep -v '^ *+' conftest.er1 >conftest.err
5997   rm -f conftest.er1
5998   cat conftest.err >&5
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); } &&
6001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6002   { (case "(($ac_try" in
6003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004   *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007   (eval "$ac_try") 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; } &&
6011          { ac_try='test -s conftest.$ac_objext'
6012   { (case "(($ac_try" in
6013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014   *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017   (eval "$ac_try") 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }; }; then
6021   ac_compiler_gnu=yes
6022 else
6023   echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026         ac_compiler_gnu=no
6027 fi
6028
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6031
6032 fi
6033 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6034 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6035 GCC=`test $ac_compiler_gnu = yes && echo yes`
6036 ac_test_CFLAGS=${CFLAGS+set}
6037 ac_save_CFLAGS=$CFLAGS
6038 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6039 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6040 if test "${ac_cv_prog_cc_g+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   ac_save_c_werror_flag=$ac_c_werror_flag
6044    ac_c_werror_flag=yes
6045    ac_cv_prog_cc_g=no
6046    CFLAGS="-g"
6047    cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053
6054 int
6055 main ()
6056 {
6057
6058   ;
6059   return 0;
6060 }
6061 _ACEOF
6062 rm -f conftest.$ac_objext
6063 if { (ac_try="$ac_compile"
6064 case "(($ac_try" in
6065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066   *) ac_try_echo=$ac_try;;
6067 esac
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069   (eval "$ac_compile") 2>conftest.er1
6070   ac_status=$?
6071   grep -v '^ *+' conftest.er1 >conftest.err
6072   rm -f conftest.er1
6073   cat conftest.err >&5
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); } &&
6076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6077   { (case "(($ac_try" in
6078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079   *) ac_try_echo=$ac_try;;
6080 esac
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082   (eval "$ac_try") 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); }; } &&
6086          { ac_try='test -s conftest.$ac_objext'
6087   { (case "(($ac_try" in
6088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089   *) ac_try_echo=$ac_try;;
6090 esac
6091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092   (eval "$ac_try") 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); }; }; then
6096   ac_cv_prog_cc_g=yes
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101         CFLAGS=""
6102       cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h.  */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h.  */
6108
6109 int
6110 main ()
6111 {
6112
6113   ;
6114   return 0;
6115 }
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (ac_try="$ac_compile"
6119 case "(($ac_try" in
6120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121   *) ac_try_echo=$ac_try;;
6122 esac
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124   (eval "$ac_compile") 2>conftest.er1
6125   ac_status=$?
6126   grep -v '^ *+' conftest.er1 >conftest.err
6127   rm -f conftest.er1
6128   cat conftest.err >&5
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); } &&
6131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6132   { (case "(($ac_try" in
6133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134   *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137   (eval "$ac_try") 2>&5
6138   ac_status=$?
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); }; } &&
6141          { ac_try='test -s conftest.$ac_objext'
6142   { (case "(($ac_try" in
6143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144   *) ac_try_echo=$ac_try;;
6145 esac
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147   (eval "$ac_try") 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; }; then
6151   :
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156         ac_c_werror_flag=$ac_save_c_werror_flag
6157          CFLAGS="-g"
6158          cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h.  */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h.  */
6164
6165 int
6166 main ()
6167 {
6168
6169   ;
6170   return 0;
6171 }
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (ac_try="$ac_compile"
6175 case "(($ac_try" in
6176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177   *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180   (eval "$ac_compile") 2>conftest.er1
6181   ac_status=$?
6182   grep -v '^ *+' conftest.er1 >conftest.err
6183   rm -f conftest.er1
6184   cat conftest.err >&5
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } &&
6187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6188   { (case "(($ac_try" in
6189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190   *) ac_try_echo=$ac_try;;
6191 esac
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193   (eval "$ac_try") 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); }; } &&
6197          { ac_try='test -s conftest.$ac_objext'
6198   { (case "(($ac_try" in
6199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200   *) ac_try_echo=$ac_try;;
6201 esac
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203   (eval "$ac_try") 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); }; }; then
6207   ac_cv_prog_cc_g=yes
6208 else
6209   echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6211
6212
6213 fi
6214
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 fi
6217
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 fi
6220
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222    ac_c_werror_flag=$ac_save_c_werror_flag
6223 fi
6224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6225 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6226 if test "$ac_test_CFLAGS" = set; then
6227   CFLAGS=$ac_save_CFLAGS
6228 elif test $ac_cv_prog_cc_g = yes; then
6229   if test "$GCC" = yes; then
6230     CFLAGS="-g -O2"
6231   else
6232     CFLAGS="-g"
6233   fi
6234 else
6235   if test "$GCC" = yes; then
6236     CFLAGS="-O2"
6237   else
6238     CFLAGS=
6239   fi
6240 fi
6241 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6242 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6243 if test "${ac_cv_prog_cc_c89+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   ac_cv_prog_cc_c89=no
6247 ac_save_CC=$CC
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h.  */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h.  */
6254 #include <stdarg.h>
6255 #include <stdio.h>
6256 #include <sys/types.h>
6257 #include <sys/stat.h>
6258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6259 struct buf { int x; };
6260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6261 static char *e (p, i)
6262      char **p;
6263      int i;
6264 {
6265   return p[i];
6266 }
6267 static char *f (char * (*g) (char **, int), char **p, ...)
6268 {
6269   char *s;
6270   va_list v;
6271   va_start (v,p);
6272   s = g (p, va_arg (v,int));
6273   va_end (v);
6274   return s;
6275 }
6276
6277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6278    function prototypes and stuff, but not '\xHH' hex character constants.
6279    These don't provoke an error unfortunately, instead are silently treated
6280    as 'x'.  The following induces an error, until -std is added to get
6281    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6282    array size at least.  It's necessary to write '\x00'==0 to get something
6283    that's true only with -std.  */
6284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6285
6286 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6287    inside strings and character constants.  */
6288 #define FOO(x) 'x'
6289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6290
6291 int test (int i, double x);
6292 struct s1 {int (*f) (int a);};
6293 struct s2 {int (*f) (double a);};
6294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6295 int argc;
6296 char **argv;
6297 int
6298 main ()
6299 {
6300 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6306         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6307 do
6308   CC="$ac_save_CC $ac_arg"
6309   rm -f conftest.$ac_objext
6310 if { (ac_try="$ac_compile"
6311 case "(($ac_try" in
6312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313   *) ac_try_echo=$ac_try;;
6314 esac
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316   (eval "$ac_compile") 2>conftest.er1
6317   ac_status=$?
6318   grep -v '^ *+' conftest.er1 >conftest.err
6319   rm -f conftest.er1
6320   cat conftest.err >&5
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); } &&
6323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6324   { (case "(($ac_try" in
6325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326   *) ac_try_echo=$ac_try;;
6327 esac
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329   (eval "$ac_try") 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }; } &&
6333          { ac_try='test -s conftest.$ac_objext'
6334   { (case "(($ac_try" in
6335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336   *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339   (eval "$ac_try") 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }; }; then
6343   ac_cv_prog_cc_c89=$ac_arg
6344 else
6345   echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6347
6348
6349 fi
6350
6351 rm -f core conftest.err conftest.$ac_objext
6352   test "x$ac_cv_prog_cc_c89" != "xno" && break
6353 done
6354 rm -f conftest.$ac_ext
6355 CC=$ac_save_CC
6356
6357 fi
6358 # AC_CACHE_VAL
6359 case "x$ac_cv_prog_cc_c89" in
6360   x)
6361     { echo "$as_me:$LINENO: result: none needed" >&5
6362 echo "${ECHO_T}none needed" >&6; } ;;
6363   xno)
6364     { echo "$as_me:$LINENO: result: unsupported" >&5
6365 echo "${ECHO_T}unsupported" >&6; } ;;
6366   *)
6367     CC="$CC $ac_cv_prog_cc_c89"
6368     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6369 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6370 esac
6371
6372
6373 ac_ext=c
6374 ac_cpp='$CPP $CPPFLAGS'
6375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378
6379 ac_ext=cpp
6380 ac_cpp='$CXXCPP $CPPFLAGS'
6381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6384 if test -z "$CXX"; then
6385   if test -n "$CCC"; then
6386     CXX=$CCC
6387   else
6388     if test -n "$ac_tool_prefix"; then
6389   for ac_prog in g++
6390   do
6391     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_CXX+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   if test -n "$CXX"; then
6399   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406   for ac_exec_ext in '' $ac_executable_extensions; do
6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 CXX=$ac_cv_prog_CXX
6419 if test -n "$CXX"; then
6420   { echo "$as_me:$LINENO: result: $CXX" >&5
6421 echo "${ECHO_T}$CXX" >&6; }
6422 else
6423   { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6425 fi
6426
6427
6428     test -n "$CXX" && break
6429   done
6430 fi
6431 if test -z "$CXX"; then
6432   ac_ct_CXX=$CXX
6433   for ac_prog in g++
6434 do
6435   # Extract the first word of "$ac_prog", so it can be a program name with args.
6436 set dummy $ac_prog; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6440   echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442   if test -n "$ac_ct_CXX"; then
6443   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448   IFS=$as_save_IFS
6449   test -z "$as_dir" && as_dir=.
6450   for ac_exec_ext in '' $ac_executable_extensions; do
6451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6452     ac_cv_prog_ac_ct_CXX="$ac_prog"
6453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454     break 2
6455   fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 fi
6461 fi
6462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6463 if test -n "$ac_ct_CXX"; then
6464   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6465 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6466 else
6467   { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6469 fi
6470
6471
6472   test -n "$ac_ct_CXX" && break
6473 done
6474
6475   if test "x$ac_ct_CXX" = x; then
6476     CXX="g++"
6477   else
6478     case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6481 whose name does not start with the host triplet.  If you think this
6482 configuration is useful to you, please write to autoconf@gnu.org." >&5
6483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6484 whose name does not start with the host triplet.  If you think this
6485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488     CXX=$ac_ct_CXX
6489   fi
6490 fi
6491
6492   fi
6493 fi
6494 # Provide some information about the compiler.
6495 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6496 ac_compiler=`set X $ac_compile; echo $2`
6497 { (ac_try="$ac_compiler --version >&5"
6498 case "(($ac_try" in
6499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500   *) ac_try_echo=$ac_try;;
6501 esac
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503   (eval "$ac_compiler --version >&5") 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); }
6507 { (ac_try="$ac_compiler -v >&5"
6508 case "(($ac_try" in
6509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510   *) ac_try_echo=$ac_try;;
6511 esac
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513   (eval "$ac_compiler -v >&5") 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); }
6517 { (ac_try="$ac_compiler -V >&5"
6518 case "(($ac_try" in
6519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520   *) ac_try_echo=$ac_try;;
6521 esac
6522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523   (eval "$ac_compiler -V >&5") 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }
6527
6528 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6529 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6530 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h.  */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h.  */
6539
6540 int
6541 main ()
6542 {
6543 #ifndef __GNUC__
6544        choke me
6545 #endif
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6553 case "(($ac_try" in
6554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555   *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558   (eval "$ac_compile") 2>conftest.er1
6559   ac_status=$?
6560   grep -v '^ *+' conftest.er1 >conftest.err
6561   rm -f conftest.er1
6562   cat conftest.err >&5
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); } &&
6565          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6566   { (case "(($ac_try" in
6567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568   *) ac_try_echo=$ac_try;;
6569 esac
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571   (eval "$ac_try") 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); }; } &&
6575          { ac_try='test -s conftest.$ac_objext'
6576   { (case "(($ac_try" in
6577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578   *) ac_try_echo=$ac_try;;
6579 esac
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581   (eval "$ac_try") 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; }; then
6585   ac_compiler_gnu=yes
6586 else
6587   echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6589
6590         ac_compiler_gnu=no
6591 fi
6592
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6595
6596 fi
6597 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6598 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6599 GXX=`test $ac_compiler_gnu = yes && echo yes`
6600 ac_test_CXXFLAGS=${CXXFLAGS+set}
6601 ac_save_CXXFLAGS=$CXXFLAGS
6602 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6603 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6604 if test "${ac_cv_prog_cxx_g+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6608    ac_cxx_werror_flag=yes
6609    ac_cv_prog_cxx_g=no
6610    CXXFLAGS="-g"
6611    cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h.  */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h.  */
6617
6618 int
6619 main ()
6620 {
6621
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext
6627 if { (ac_try="$ac_compile"
6628 case "(($ac_try" in
6629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630   *) ac_try_echo=$ac_try;;
6631 esac
6632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6633   (eval "$ac_compile") 2>conftest.er1
6634   ac_status=$?
6635   grep -v '^ *+' conftest.er1 >conftest.err
6636   rm -f conftest.er1
6637   cat conftest.err >&5
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); } &&
6640          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6641   { (case "(($ac_try" in
6642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643   *) ac_try_echo=$ac_try;;
6644 esac
6645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646   (eval "$ac_try") 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; } &&
6650          { ac_try='test -s conftest.$ac_objext'
6651   { (case "(($ac_try" in
6652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653   *) ac_try_echo=$ac_try;;
6654 esac
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656   (eval "$ac_try") 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; }; then
6660   ac_cv_prog_cxx_g=yes
6661 else
6662   echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6664
6665         CXXFLAGS=""
6666       cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h.  */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h.  */
6672
6673 int
6674 main ()
6675 {
6676
6677   ;
6678   return 0;
6679 }
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6683 case "(($ac_try" in
6684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685   *) ac_try_echo=$ac_try;;
6686 esac
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688   (eval "$ac_compile") 2>conftest.er1
6689   ac_status=$?
6690   grep -v '^ *+' conftest.er1 >conftest.err
6691   rm -f conftest.er1
6692   cat conftest.err >&5
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } &&
6695          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6696   { (case "(($ac_try" in
6697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698   *) ac_try_echo=$ac_try;;
6699 esac
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701   (eval "$ac_try") 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }; } &&
6705          { ac_try='test -s conftest.$ac_objext'
6706   { (case "(($ac_try" in
6707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708   *) ac_try_echo=$ac_try;;
6709 esac
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711   (eval "$ac_try") 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; }; then
6715   :
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6721          CXXFLAGS="-g"
6722          cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h.  */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h.  */
6728
6729 int
6730 main ()
6731 {
6732
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (ac_try="$ac_compile"
6739 case "(($ac_try" in
6740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741   *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744   (eval "$ac_compile") 2>conftest.er1
6745   ac_status=$?
6746   grep -v '^ *+' conftest.er1 >conftest.err
6747   rm -f conftest.er1
6748   cat conftest.err >&5
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); } &&
6751          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6752   { (case "(($ac_try" in
6753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754   *) ac_try_echo=$ac_try;;
6755 esac
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757   (eval "$ac_try") 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); }; } &&
6761          { ac_try='test -s conftest.$ac_objext'
6762   { (case "(($ac_try" in
6763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764   *) ac_try_echo=$ac_try;;
6765 esac
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767   (eval "$ac_try") 2>&5
6768   ac_status=$?
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); }; }; then
6771   ac_cv_prog_cxx_g=yes
6772 else
6773   echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776
6777 fi
6778
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 fi
6781
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 fi
6784
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6787 fi
6788 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6789 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6790 if test "$ac_test_CXXFLAGS" = set; then
6791   CXXFLAGS=$ac_save_CXXFLAGS
6792 elif test $ac_cv_prog_cxx_g = yes; then
6793   if test "$GXX" = yes; then
6794     CXXFLAGS="-g -O2"
6795   else
6796     CXXFLAGS="-g"
6797   fi
6798 else
6799   if test "$GXX" = yes; then
6800     CXXFLAGS="-O2"
6801   else
6802     CXXFLAGS=
6803   fi
6804 fi
6805 ac_ext=c
6806 ac_cpp='$CPP $CPPFLAGS'
6807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810
6811
6812 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6813 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6814 if test "${lt_cv_path_NM+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817   if test -n "$NM"; then
6818   # Let the user override the test.
6819   lt_cv_path_NM="$NM"
6820 else
6821   lt_nm_to_check="${ac_tool_prefix}nm"
6822   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6823     lt_nm_to_check="$lt_nm_to_check nm"
6824   fi
6825   for lt_tmp_nm in $lt_nm_to_check; do
6826     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6827     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6828       IFS="$lt_save_ifs"
6829       test -z "$ac_dir" && ac_dir=.
6830       tmp_nm="$ac_dir/$lt_tmp_nm"
6831       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6832         # Check to see if the nm accepts a BSD-compat flag.
6833         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6834         #   nm: unknown option "B" ignored
6835         # Tru64's nm complains that /dev/null is an invalid object file
6836         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6837         */dev/null* | *'Invalid file or object type'*)
6838           lt_cv_path_NM="$tmp_nm -B"
6839           break
6840           ;;
6841         *)
6842           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6843           */dev/null*)
6844             lt_cv_path_NM="$tmp_nm -p"
6845             break
6846             ;;
6847           *)
6848             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6849             continue # so that we can try to find one that supports BSD flags
6850             ;;
6851           esac
6852           ;;
6853         esac
6854       fi
6855     done
6856     IFS="$lt_save_ifs"
6857   done
6858   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6859 fi
6860 fi
6861 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6862 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6863 NM="$lt_cv_path_NM"
6864
6865
6866
6867 { echo "$as_me:$LINENO: checking for GNU make" >&5
6868 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6869 if test "${llvm_cv_gnu_make_command+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   llvm_cv_gnu_make_command=''
6873  for a in "$MAKE" make gmake gnumake ; do
6874   if test -z "$a" ; then continue ; fi ;
6875   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6876   then
6877    llvm_cv_gnu_make_command=$a ;
6878    break;
6879   fi
6880  done
6881 fi
6882 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6883 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6884  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6885    ifGNUmake='' ;
6886  else
6887    ifGNUmake='#' ;
6888    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6889 echo "${ECHO_T}\"Not found\"" >&6; };
6890  fi
6891
6892
6893 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6894 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6895 LN_S=$as_ln_s
6896 if test "$LN_S" = "ln -s"; then
6897   { echo "$as_me:$LINENO: result: yes" >&5
6898 echo "${ECHO_T}yes" >&6; }
6899 else
6900   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6901 echo "${ECHO_T}no, using $LN_S" >&6; }
6902 fi
6903
6904 # Extract the first word of "cmp", so it can be a program name with args.
6905 set dummy cmp; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_CMP+set}" = set; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   case $CMP in
6912   [\\/]* | ?:[\\/]*)
6913   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6914   ;;
6915   *)
6916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921   for ac_exec_ext in '' $ac_executable_extensions; do
6922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6932   ;;
6933 esac
6934 fi
6935 CMP=$ac_cv_path_CMP
6936 if test -n "$CMP"; then
6937   { echo "$as_me:$LINENO: result: $CMP" >&5
6938 echo "${ECHO_T}$CMP" >&6; }
6939 else
6940   { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6942 fi
6943
6944
6945 # Extract the first word of "cp", so it can be a program name with args.
6946 set dummy cp; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_CP+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   case $CP in
6953   [\\/]* | ?:[\\/]*)
6954   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6955   ;;
6956   *)
6957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962   for ac_exec_ext in '' $ac_executable_extensions; do
6963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6973   ;;
6974 esac
6975 fi
6976 CP=$ac_cv_path_CP
6977 if test -n "$CP"; then
6978   { echo "$as_me:$LINENO: result: $CP" >&5
6979 echo "${ECHO_T}$CP" >&6; }
6980 else
6981   { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986 # Extract the first word of "date", so it can be a program name with args.
6987 set dummy date; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_DATE+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   case $DATE in
6994   [\\/]* | ?:[\\/]*)
6995   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6996   ;;
6997   *)
6998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7014   ;;
7015 esac
7016 fi
7017 DATE=$ac_cv_path_DATE
7018 if test -n "$DATE"; then
7019   { echo "$as_me:$LINENO: result: $DATE" >&5
7020 echo "${ECHO_T}$DATE" >&6; }
7021 else
7022   { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7024 fi
7025
7026
7027 # Extract the first word of "find", so it can be a program name with args.
7028 set dummy find; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_path_FIND+set}" = set; then
7032   echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034   case $FIND in
7035   [\\/]* | ?:[\\/]*)
7036   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7037   ;;
7038   *)
7039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044   for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7055   ;;
7056 esac
7057 fi
7058 FIND=$ac_cv_path_FIND
7059 if test -n "$FIND"; then
7060   { echo "$as_me:$LINENO: result: $FIND" >&5
7061 echo "${ECHO_T}$FIND" >&6; }
7062 else
7063   { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7065 fi
7066
7067
7068 # Extract the first word of "grep", so it can be a program name with args.
7069 set dummy grep; ac_word=$2
7070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072 if test "${ac_cv_path_GREP+set}" = set; then
7073   echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075   case $GREP in
7076   [\\/]* | ?:[\\/]*)
7077   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7078   ;;
7079   *)
7080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083   IFS=$as_save_IFS
7084   test -z "$as_dir" && as_dir=.
7085   for ac_exec_ext in '' $ac_executable_extensions; do
7086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7087     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089     break 2
7090   fi
7091 done
7092 done
7093 IFS=$as_save_IFS
7094
7095   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7096   ;;
7097 esac
7098 fi
7099 GREP=$ac_cv_path_GREP
7100 if test -n "$GREP"; then
7101   { echo "$as_me:$LINENO: result: $GREP" >&5
7102 echo "${ECHO_T}$GREP" >&6; }
7103 else
7104   { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7106 fi
7107
7108
7109 # Extract the first word of "mkdir", so it can be a program name with args.
7110 set dummy mkdir; ac_word=$2
7111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113 if test "${ac_cv_path_MKDIR+set}" = set; then
7114   echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116   case $MKDIR in
7117   [\\/]* | ?:[\\/]*)
7118   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7119   ;;
7120   *)
7121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124   IFS=$as_save_IFS
7125   test -z "$as_dir" && as_dir=.
7126   for ac_exec_ext in '' $ac_executable_extensions; do
7127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7128     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130     break 2
7131   fi
7132 done
7133 done
7134 IFS=$as_save_IFS
7135
7136   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7137   ;;
7138 esac
7139 fi
7140 MKDIR=$ac_cv_path_MKDIR
7141 if test -n "$MKDIR"; then
7142   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7143 echo "${ECHO_T}$MKDIR" >&6; }
7144 else
7145   { echo "$as_me:$LINENO: result: no" >&5
7146 echo "${ECHO_T}no" >&6; }
7147 fi
7148
7149
7150 # Extract the first word of "mv", so it can be a program name with args.
7151 set dummy mv; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_path_MV+set}" = set; then
7155   echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157   case $MV in
7158   [\\/]* | ?:[\\/]*)
7159   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7160   ;;
7161   *)
7162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167   for ac_exec_ext in '' $ac_executable_extensions; do
7168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7169     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174 done
7175 IFS=$as_save_IFS
7176
7177   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7178   ;;
7179 esac
7180 fi
7181 MV=$ac_cv_path_MV
7182 if test -n "$MV"; then
7183   { echo "$as_me:$LINENO: result: $MV" >&5
7184 echo "${ECHO_T}$MV" >&6; }
7185 else
7186   { echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6; }
7188 fi
7189
7190
7191 if test -n "$ac_tool_prefix"; then
7192   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_prog_RANLIB+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   if test -n "$RANLIB"; then
7200   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207   for ac_exec_ext in '' $ac_executable_extensions; do
7208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 RANLIB=$ac_cv_prog_RANLIB
7220 if test -n "$RANLIB"; then
7221   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7222 echo "${ECHO_T}$RANLIB" >&6; }
7223 else
7224   { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7226 fi
7227
7228
7229 fi
7230 if test -z "$ac_cv_prog_RANLIB"; then
7231   ac_ct_RANLIB=$RANLIB
7232   # Extract the first word of "ranlib", so it can be a program name with args.
7233 set dummy ranlib; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   if test -n "$ac_ct_RANLIB"; then
7240   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245   IFS=$as_save_IFS
7246   test -z "$as_dir" && as_dir=.
7247   for ac_exec_ext in '' $ac_executable_extensions; do
7248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7249     ac_cv_prog_ac_ct_RANLIB="ranlib"
7250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251     break 2
7252   fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257 fi
7258 fi
7259 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7260 if test -n "$ac_ct_RANLIB"; then
7261   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7262 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7263 else
7264   { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7266 fi
7267
7268   if test "x$ac_ct_RANLIB" = x; then
7269     RANLIB=":"
7270   else
7271     case $cross_compiling:$ac_tool_warned in
7272 yes:)
7273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet.  If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&5
7276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7277 whose name does not start with the host triplet.  If you think this
7278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7279 ac_tool_warned=yes ;;
7280 esac
7281     RANLIB=$ac_ct_RANLIB
7282   fi
7283 else
7284   RANLIB="$ac_cv_prog_RANLIB"
7285 fi
7286
7287 if test -n "$ac_tool_prefix"; then
7288   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}ar; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_prog_AR+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   if test -n "$AR"; then
7296   ac_cv_prog_AR="$AR" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303   for ac_exec_ext in '' $ac_executable_extensions; do
7304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7305     ac_cv_prog_AR="${ac_tool_prefix}ar"
7306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310 done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 AR=$ac_cv_prog_AR
7316 if test -n "$AR"; then
7317   { echo "$as_me:$LINENO: result: $AR" >&5
7318 echo "${ECHO_T}$AR" >&6; }
7319 else
7320   { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7322 fi
7323
7324
7325 fi
7326 if test -z "$ac_cv_prog_AR"; then
7327   ac_ct_AR=$AR
7328   # Extract the first word of "ar", so it can be a program name with args.
7329 set dummy ar; ac_word=$2
7330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335   if test -n "$ac_ct_AR"; then
7336   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343   for ac_exec_ext in '' $ac_executable_extensions; do
7344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345     ac_cv_prog_ac_ct_AR="ar"
7346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350 done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7356 if test -n "$ac_ct_AR"; then
7357   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7358 echo "${ECHO_T}$ac_ct_AR" >&6; }
7359 else
7360   { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7362 fi
7363
7364   if test "x$ac_ct_AR" = x; then
7365     AR="false"
7366   else
7367     case $cross_compiling:$ac_tool_warned in
7368 yes:)
7369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7370 whose name does not start with the host triplet.  If you think this
7371 configuration is useful to you, please write to autoconf@gnu.org." >&5
7372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7373 whose name does not start with the host triplet.  If you think this
7374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7375 ac_tool_warned=yes ;;
7376 esac
7377     AR=$ac_ct_AR
7378   fi
7379 else
7380   AR="$ac_cv_prog_AR"
7381 fi
7382
7383 # Extract the first word of "rm", so it can be a program name with args.
7384 set dummy rm; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_path_RM+set}" = set; then
7388   echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390   case $RM in
7391   [\\/]* | ?:[\\/]*)
7392   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7393   ;;
7394   *)
7395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398   IFS=$as_save_IFS
7399   test -z "$as_dir" && as_dir=.
7400   for ac_exec_ext in '' $ac_executable_extensions; do
7401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7402     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404     break 2
7405   fi
7406 done
7407 done
7408 IFS=$as_save_IFS
7409
7410   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7411   ;;
7412 esac
7413 fi
7414 RM=$ac_cv_path_RM
7415 if test -n "$RM"; then
7416   { echo "$as_me:$LINENO: result: $RM" >&5
7417 echo "${ECHO_T}$RM" >&6; }
7418 else
7419   { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7421 fi
7422
7423
7424 # Extract the first word of "sed", so it can be a program name with args.
7425 set dummy sed; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_SED+set}" = set; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431   case $SED in
7432   [\\/]* | ?:[\\/]*)
7433   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7434   ;;
7435   *)
7436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441   for ac_exec_ext in '' $ac_executable_extensions; do
7442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448 done
7449 IFS=$as_save_IFS
7450
7451   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7452   ;;
7453 esac
7454 fi
7455 SED=$ac_cv_path_SED
7456 if test -n "$SED"; then
7457   { echo "$as_me:$LINENO: result: $SED" >&5
7458 echo "${ECHO_T}$SED" >&6; }
7459 else
7460   { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7462 fi
7463
7464
7465 # Extract the first word of "tar", so it can be a program name with args.
7466 set dummy tar; ac_word=$2
7467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7469 if test "${ac_cv_path_TAR+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472   case $TAR in
7473   [\\/]* | ?:[\\/]*)
7474   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7475   ;;
7476   *)
7477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480   IFS=$as_save_IFS
7481   test -z "$as_dir" && as_dir=.
7482   for ac_exec_ext in '' $ac_executable_extensions; do
7483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7484     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486     break 2
7487   fi
7488 done
7489 done
7490 IFS=$as_save_IFS
7491
7492   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7493   ;;
7494 esac
7495 fi
7496 TAR=$ac_cv_path_TAR
7497 if test -n "$TAR"; then
7498   { echo "$as_me:$LINENO: result: $TAR" >&5
7499 echo "${ECHO_T}$TAR" >&6; }
7500 else
7501   { echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6; }
7503 fi
7504
7505
7506 # Extract the first word of "pwd", so it can be a program name with args.
7507 set dummy pwd; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_path_BINPWD+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   case $BINPWD in
7514   [\\/]* | ?:[\\/]*)
7515   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7516   ;;
7517   *)
7518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523   for ac_exec_ext in '' $ac_executable_extensions; do
7524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7525     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7534   ;;
7535 esac
7536 fi
7537 BINPWD=$ac_cv_path_BINPWD
7538 if test -n "$BINPWD"; then
7539   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7540 echo "${ECHO_T}$BINPWD" >&6; }
7541 else
7542   { echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6; }
7544 fi
7545
7546
7547
7548 # Extract the first word of "Graphviz", so it can be a program name with args.
7549 set dummy Graphviz; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   case $GRAPHVIZ in
7556   [\\/]* | ?:[\\/]*)
7557   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7558   ;;
7559   *)
7560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565   for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7576   ;;
7577 esac
7578 fi
7579 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7580 if test -n "$GRAPHVIZ"; then
7581   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7582 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7583 else
7584   { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7586 fi
7587
7588
7589 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7590
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_GRAPHVIZ 1
7593 _ACEOF
7594
7595     if test "$llvm_cv_os_type" = "MingW" ; then
7596     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7597   fi
7598
7599 cat >>confdefs.h <<_ACEOF
7600 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7601 _ACEOF
7602
7603 fi
7604 # Extract the first word of "dot", so it can be a program name with args.
7605 set dummy dot; ac_word=$2
7606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7608 if test "${ac_cv_path_DOT+set}" = set; then
7609   echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611   case $DOT in
7612   [\\/]* | ?:[\\/]*)
7613   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7614   ;;
7615   *)
7616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619   IFS=$as_save_IFS
7620   test -z "$as_dir" && as_dir=.
7621   for ac_exec_ext in '' $ac_executable_extensions; do
7622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7623     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7625     break 2
7626   fi
7627 done
7628 done
7629 IFS=$as_save_IFS
7630
7631   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7632   ;;
7633 esac
7634 fi
7635 DOT=$ac_cv_path_DOT
7636 if test -n "$DOT"; then
7637   { echo "$as_me:$LINENO: result: $DOT" >&5
7638 echo "${ECHO_T}$DOT" >&6; }
7639 else
7640   { echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6; }
7642 fi
7643
7644
7645 if test "$DOT" != "echo dot" ; then
7646
7647 cat >>confdefs.h <<\_ACEOF
7648 #define HAVE_DOT 1
7649 _ACEOF
7650
7651     if test "$llvm_cv_os_type" = "MingW" ; then
7652     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7653   fi
7654
7655 cat >>confdefs.h <<_ACEOF
7656 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7657 _ACEOF
7658
7659 fi
7660 # Extract the first word of "fdp", so it can be a program name with args.
7661 set dummy fdp; ac_word=$2
7662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664 if test "${ac_cv_path_FDP+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   case $FDP in
7668   [\\/]* | ?:[\\/]*)
7669   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7670   ;;
7671   *)
7672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675   IFS=$as_save_IFS
7676   test -z "$as_dir" && as_dir=.
7677   for ac_exec_ext in '' $ac_executable_extensions; do
7678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7679     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681     break 2
7682   fi
7683 done
7684 done
7685 IFS=$as_save_IFS
7686
7687   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7688   ;;
7689 esac
7690 fi
7691 FDP=$ac_cv_path_FDP
7692 if test -n "$FDP"; then
7693   { echo "$as_me:$LINENO: result: $FDP" >&5
7694 echo "${ECHO_T}$FDP" >&6; }
7695 else
7696   { echo "$as_me:$LINENO: result: no" >&5
7697 echo "${ECHO_T}no" >&6; }
7698 fi
7699
7700
7701 if test "$FDP" != "echo fdp" ; then
7702
7703 cat >>confdefs.h <<\_ACEOF
7704 #define HAVE_FDP 1
7705 _ACEOF
7706
7707     if test "$llvm_cv_os_type" = "MingW" ; then
7708     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7709   fi
7710
7711 cat >>confdefs.h <<_ACEOF
7712 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7713 _ACEOF
7714
7715 fi
7716 # Extract the first word of "neato", so it can be a program name with args.
7717 set dummy neato; ac_word=$2
7718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720 if test "${ac_cv_path_NEATO+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723   case $NEATO in
7724   [\\/]* | ?:[\\/]*)
7725   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7726   ;;
7727   *)
7728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731   IFS=$as_save_IFS
7732   test -z "$as_dir" && as_dir=.
7733   for ac_exec_ext in '' $ac_executable_extensions; do
7734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7735     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737     break 2
7738   fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7744   ;;
7745 esac
7746 fi
7747 NEATO=$ac_cv_path_NEATO
7748 if test -n "$NEATO"; then
7749   { echo "$as_me:$LINENO: result: $NEATO" >&5
7750 echo "${ECHO_T}$NEATO" >&6; }
7751 else
7752   { echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6; }
7754 fi
7755
7756
7757 if test "$NEATO" != "echo neato" ; then
7758
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_NEATO 1
7761 _ACEOF
7762
7763     if test "$llvm_cv_os_type" = "MingW" ; then
7764     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7765   fi
7766
7767 cat >>confdefs.h <<_ACEOF
7768 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7769 _ACEOF
7770
7771 fi
7772 # Extract the first word of "twopi", so it can be a program name with args.
7773 set dummy twopi; ac_word=$2
7774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776 if test "${ac_cv_path_TWOPI+set}" = set; then
7777   echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779   case $TWOPI in
7780   [\\/]* | ?:[\\/]*)
7781   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7782   ;;
7783   *)
7784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789   for ac_exec_ext in '' $ac_executable_extensions; do
7790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796 done
7797 IFS=$as_save_IFS
7798
7799   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7800   ;;
7801 esac
7802 fi
7803 TWOPI=$ac_cv_path_TWOPI
7804 if test -n "$TWOPI"; then
7805   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7806 echo "${ECHO_T}$TWOPI" >&6; }
7807 else
7808   { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7810 fi
7811
7812
7813 if test "$TWOPI" != "echo twopi" ; then
7814
7815 cat >>confdefs.h <<\_ACEOF
7816 #define HAVE_TWOPI 1
7817 _ACEOF
7818
7819     if test "$llvm_cv_os_type" = "MingW" ; then
7820     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7821   fi
7822
7823 cat >>confdefs.h <<_ACEOF
7824 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7825 _ACEOF
7826
7827 fi
7828 # Extract the first word of "circo", so it can be a program name with args.
7829 set dummy circo; ac_word=$2
7830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7832 if test "${ac_cv_path_CIRCO+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835   case $CIRCO in
7836   [\\/]* | ?:[\\/]*)
7837   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7838   ;;
7839   *)
7840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7842 do
7843   IFS=$as_save_IFS
7844   test -z "$as_dir" && as_dir=.
7845   for ac_exec_ext in '' $ac_executable_extensions; do
7846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7847     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849     break 2
7850   fi
7851 done
7852 done
7853 IFS=$as_save_IFS
7854
7855   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7856   ;;
7857 esac
7858 fi
7859 CIRCO=$ac_cv_path_CIRCO
7860 if test -n "$CIRCO"; then
7861   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7862 echo "${ECHO_T}$CIRCO" >&6; }
7863 else
7864   { echo "$as_me:$LINENO: result: no" >&5
7865 echo "${ECHO_T}no" >&6; }
7866 fi
7867
7868
7869 if test "$CIRCO" != "echo circo" ; then
7870
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_CIRCO 1
7873 _ACEOF
7874
7875     if test "$llvm_cv_os_type" = "MingW" ; then
7876     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7877   fi
7878
7879 cat >>confdefs.h <<_ACEOF
7880 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7881 _ACEOF
7882
7883 fi
7884 for ac_prog in gv gsview32
7885 do
7886   # Extract the first word of "$ac_prog", so it can be a program name with args.
7887 set dummy $ac_prog; ac_word=$2
7888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890 if test "${ac_cv_path_GV+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   case $GV in
7894   [\\/]* | ?:[\\/]*)
7895   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7896   ;;
7897   *)
7898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903   for ac_exec_ext in '' $ac_executable_extensions; do
7904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7905     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7907     break 2
7908   fi
7909 done
7910 done
7911 IFS=$as_save_IFS
7912
7913   ;;
7914 esac
7915 fi
7916 GV=$ac_cv_path_GV
7917 if test -n "$GV"; then
7918   { echo "$as_me:$LINENO: result: $GV" >&5
7919 echo "${ECHO_T}$GV" >&6; }
7920 else
7921   { echo "$as_me:$LINENO: result: no" >&5
7922 echo "${ECHO_T}no" >&6; }
7923 fi
7924
7925
7926   test -n "$GV" && break
7927 done
7928 test -n "$GV" || GV="echo gv"
7929
7930 if test "$GV" != "echo gv" ; then
7931
7932 cat >>confdefs.h <<\_ACEOF
7933 #define HAVE_GV 1
7934 _ACEOF
7935
7936     if test "$llvm_cv_os_type" = "MingW" ; then
7937     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7938   fi
7939
7940 cat >>confdefs.h <<_ACEOF
7941 #define LLVM_PATH_GV "$GV${EXEEXT}"
7942 _ACEOF
7943
7944 fi
7945 # Extract the first word of "dotty", so it can be a program name with args.
7946 set dummy dotty; ac_word=$2
7947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949 if test "${ac_cv_path_DOTTY+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   case $DOTTY in
7953   [\\/]* | ?:[\\/]*)
7954   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7955   ;;
7956   *)
7957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960   IFS=$as_save_IFS
7961   test -z "$as_dir" && as_dir=.
7962   for ac_exec_ext in '' $ac_executable_extensions; do
7963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7964     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966     break 2
7967   fi
7968 done
7969 done
7970 IFS=$as_save_IFS
7971
7972   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7973   ;;
7974 esac
7975 fi
7976 DOTTY=$ac_cv_path_DOTTY
7977 if test -n "$DOTTY"; then
7978   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7979 echo "${ECHO_T}$DOTTY" >&6; }
7980 else
7981   { echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6; }
7983 fi
7984
7985
7986 if test "$DOTTY" != "echo dotty" ; then
7987
7988 cat >>confdefs.h <<\_ACEOF
7989 #define HAVE_DOTTY 1
7990 _ACEOF
7991
7992     if test "$llvm_cv_os_type" = "MingW" ; then
7993     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7994   fi
7995
7996 cat >>confdefs.h <<_ACEOF
7997 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7998 _ACEOF
7999
8000 fi
8001 # Extract the first word of "xdot.py", so it can be a program name with args.
8002 set dummy xdot.py; ac_word=$2
8003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8005 if test "${ac_cv_path_XDOT_PY+set}" = set; then
8006   echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008   case $XDOT_PY in
8009   [\\/]* | ?:[\\/]*)
8010   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
8011   ;;
8012   *)
8013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016   IFS=$as_save_IFS
8017   test -z "$as_dir" && as_dir=.
8018   for ac_exec_ext in '' $ac_executable_extensions; do
8019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8020     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022     break 2
8023   fi
8024 done
8025 done
8026 IFS=$as_save_IFS
8027
8028   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8029   ;;
8030 esac
8031 fi
8032 XDOT_PY=$ac_cv_path_XDOT_PY
8033 if test -n "$XDOT_PY"; then
8034   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8035 echo "${ECHO_T}$XDOT_PY" >&6; }
8036 else
8037   { echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6; }
8039 fi
8040
8041
8042 if test "$XDOT_PY" != "echo xdot.py" ; then
8043
8044 cat >>confdefs.h <<\_ACEOF
8045 #define HAVE_XDOT_PY 1
8046 _ACEOF
8047
8048     if test "$llvm_cv_os_type" = "MingW" ; then
8049     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8050   fi
8051
8052 cat >>confdefs.h <<_ACEOF
8053 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8054 _ACEOF
8055
8056 fi
8057
8058
8059 # Extract the first word of "perl", so it can be a program name with args.
8060 set dummy perl; ac_word=$2
8061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8063 if test "${ac_cv_path_PERL+set}" = set; then
8064   echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066   case $PERL in
8067   [\\/]* | ?:[\\/]*)
8068   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8069   ;;
8070   *)
8071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074   IFS=$as_save_IFS
8075   test -z "$as_dir" && as_dir=.
8076   for ac_exec_ext in '' $ac_executable_extensions; do
8077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8078     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8080     break 2
8081   fi
8082 done
8083 done
8084 IFS=$as_save_IFS
8085
8086   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8087   ;;
8088 esac
8089 fi
8090 PERL=$ac_cv_path_PERL
8091 if test -n "$PERL"; then
8092   { echo "$as_me:$LINENO: result: $PERL" >&5
8093 echo "${ECHO_T}$PERL" >&6; }
8094 else
8095   { echo "$as_me:$LINENO: result: no" >&5
8096 echo "${ECHO_T}no" >&6; }
8097 fi
8098
8099
8100 if test "$PERL" != "none"; then
8101   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8102 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8103   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8104     { echo "$as_me:$LINENO: result: yes" >&5
8105 echo "${ECHO_T}yes" >&6; }
8106   else
8107     PERL=none
8108     { echo "$as_me:$LINENO: result: not found" >&5
8109 echo "${ECHO_T}not found" >&6; }
8110   fi
8111 fi
8112
8113
8114 if test x"$PERL" = xnone; then
8115    HAVE_PERL=0
8116
8117    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8118 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8119    { (exit 1); exit 1; }; }
8120 else
8121    HAVE_PERL=1
8122
8123 fi
8124
8125 # Find a good install program.  We prefer a C program (faster),
8126 # so one script is as good as another.  But avoid the broken or
8127 # incompatible versions:
8128 # SysV /etc/install, /usr/sbin/install
8129 # SunOS /usr/etc/install
8130 # IRIX /sbin/install
8131 # AIX /bin/install
8132 # AmigaOS /C/install, which installs bootblocks on floppy discs
8133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8136 # OS/2's system install, which has a completely different semantic
8137 # ./install, which can be erroneously created by make from ./install.sh.
8138 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8139 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8140 if test -z "$INSTALL"; then
8141 if test "${ac_cv_path_install+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147   IFS=$as_save_IFS
8148   test -z "$as_dir" && as_dir=.
8149   # Account for people who put trailing slashes in PATH elements.
8150 case $as_dir/ in
8151   ./ | .// | /cC/* | \
8152   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8153   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8154   /usr/ucb/* ) ;;
8155   *)
8156     # OSF1 and SCO ODT 3.0 have their own names for install.
8157     # Don't use installbsd from OSF since it installs stuff as root
8158     # by default.
8159     for ac_prog in ginstall scoinst install; do
8160       for ac_exec_ext in '' $ac_executable_extensions; do
8161         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8162           if test $ac_prog = install &&
8163             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8164             # AIX install.  It has an incompatible calling convention.
8165             :
8166           elif test $ac_prog = install &&
8167             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8168             # program-specific install script used by HP pwplus--don't use.
8169             :
8170           else
8171             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8172             break 3
8173           fi
8174         fi
8175       done
8176     done
8177     ;;
8178 esac
8179 done
8180 IFS=$as_save_IFS
8181
8182
8183 fi
8184   if test "${ac_cv_path_install+set}" = set; then
8185     INSTALL=$ac_cv_path_install
8186   else
8187     # As a last resort, use the slow shell script.  Don't cache a
8188     # value for INSTALL within a source directory, because that will
8189     # break other packages using the cache if that directory is
8190     # removed, or if the value is a relative name.
8191     INSTALL=$ac_install_sh
8192   fi
8193 fi
8194 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8195 echo "${ECHO_T}$INSTALL" >&6; }
8196
8197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8198 # It thinks the first close brace ends the variable substitution.
8199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8200
8201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8202
8203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8204
8205 case "$INSTALL" in
8206  [\\/$]* | ?:[\\/]* ) ;;
8207  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8208 esac
8209
8210 # Extract the first word of "bzip2", so it can be a program name with args.
8211 set dummy bzip2; ac_word=$2
8212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214 if test "${ac_cv_path_BZIP2+set}" = set; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   case $BZIP2 in
8218   [\\/]* | ?:[\\/]*)
8219   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8220   ;;
8221   *)
8222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8224 do
8225   IFS=$as_save_IFS
8226   test -z "$as_dir" && as_dir=.
8227   for ac_exec_ext in '' $ac_executable_extensions; do
8228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8229     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8231     break 2
8232   fi
8233 done
8234 done
8235 IFS=$as_save_IFS
8236
8237   ;;
8238 esac
8239 fi
8240 BZIP2=$ac_cv_path_BZIP2
8241 if test -n "$BZIP2"; then
8242   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8243 echo "${ECHO_T}$BZIP2" >&6; }
8244 else
8245   { echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6; }
8247 fi
8248
8249
8250 # Extract the first word of "cat", so it can be a program name with args.
8251 set dummy cat; ac_word=$2
8252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8254 if test "${ac_cv_path_CAT+set}" = set; then
8255   echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257   case $CAT in
8258   [\\/]* | ?:[\\/]*)
8259   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8260   ;;
8261   *)
8262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 for as_dir in $PATH
8264 do
8265   IFS=$as_save_IFS
8266   test -z "$as_dir" && as_dir=.
8267   for ac_exec_ext in '' $ac_executable_extensions; do
8268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8269     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8271     break 2
8272   fi
8273 done
8274 done
8275 IFS=$as_save_IFS
8276
8277   ;;
8278 esac
8279 fi
8280 CAT=$ac_cv_path_CAT
8281 if test -n "$CAT"; then
8282   { echo "$as_me:$LINENO: result: $CAT" >&5
8283 echo "${ECHO_T}$CAT" >&6; }
8284 else
8285   { echo "$as_me:$LINENO: result: no" >&5
8286 echo "${ECHO_T}no" >&6; }
8287 fi
8288
8289
8290 # Extract the first word of "doxygen", so it can be a program name with args.
8291 set dummy doxygen; ac_word=$2
8292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8294 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8295   echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297   case $DOXYGEN in
8298   [\\/]* | ?:[\\/]*)
8299   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8300   ;;
8301   *)
8302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305   IFS=$as_save_IFS
8306   test -z "$as_dir" && as_dir=.
8307   for ac_exec_ext in '' $ac_executable_extensions; do
8308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8309     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311     break 2
8312   fi
8313 done
8314 done
8315 IFS=$as_save_IFS
8316
8317   ;;
8318 esac
8319 fi
8320 DOXYGEN=$ac_cv_path_DOXYGEN
8321 if test -n "$DOXYGEN"; then
8322   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8323 echo "${ECHO_T}$DOXYGEN" >&6; }
8324 else
8325   { echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6; }
8327 fi
8328
8329
8330 # Extract the first word of "groff", so it can be a program name with args.
8331 set dummy groff; ac_word=$2
8332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8334 if test "${ac_cv_path_GROFF+set}" = set; then
8335   echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337   case $GROFF in
8338   [\\/]* | ?:[\\/]*)
8339   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8340   ;;
8341   *)
8342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8344 do
8345   IFS=$as_save_IFS
8346   test -z "$as_dir" && as_dir=.
8347   for ac_exec_ext in '' $ac_executable_extensions; do
8348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8349     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8351     break 2
8352   fi
8353 done
8354 done
8355 IFS=$as_save_IFS
8356
8357   ;;
8358 esac
8359 fi
8360 GROFF=$ac_cv_path_GROFF
8361 if test -n "$GROFF"; then
8362   { echo "$as_me:$LINENO: result: $GROFF" >&5
8363 echo "${ECHO_T}$GROFF" >&6; }
8364 else
8365   { echo "$as_me:$LINENO: result: no" >&5
8366 echo "${ECHO_T}no" >&6; }
8367 fi
8368
8369
8370 # Extract the first word of "gzip", so it can be a program name with args.
8371 set dummy gzip; ac_word=$2
8372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8374 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8375   echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377   case $GZIPBIN in
8378   [\\/]* | ?:[\\/]*)
8379   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8380   ;;
8381   *)
8382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385   IFS=$as_save_IFS
8386   test -z "$as_dir" && as_dir=.
8387   for ac_exec_ext in '' $ac_executable_extensions; do
8388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8389     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8391     break 2
8392   fi
8393 done
8394 done
8395 IFS=$as_save_IFS
8396
8397   ;;
8398 esac
8399 fi
8400 GZIPBIN=$ac_cv_path_GZIPBIN
8401 if test -n "$GZIPBIN"; then
8402   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8403 echo "${ECHO_T}$GZIPBIN" >&6; }
8404 else
8405   { echo "$as_me:$LINENO: result: no" >&5
8406 echo "${ECHO_T}no" >&6; }
8407 fi
8408
8409
8410 # Extract the first word of "pod2html", so it can be a program name with args.
8411 set dummy pod2html; ac_word=$2
8412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8414 if test "${ac_cv_path_POD2HTML+set}" = set; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417   case $POD2HTML in
8418   [\\/]* | ?:[\\/]*)
8419   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8420   ;;
8421   *)
8422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8424 do
8425   IFS=$as_save_IFS
8426   test -z "$as_dir" && as_dir=.
8427   for ac_exec_ext in '' $ac_executable_extensions; do
8428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8429     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8431     break 2
8432   fi
8433 done
8434 done
8435 IFS=$as_save_IFS
8436
8437   ;;
8438 esac
8439 fi
8440 POD2HTML=$ac_cv_path_POD2HTML
8441 if test -n "$POD2HTML"; then
8442   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8443 echo "${ECHO_T}$POD2HTML" >&6; }
8444 else
8445   { echo "$as_me:$LINENO: result: no" >&5
8446 echo "${ECHO_T}no" >&6; }
8447 fi
8448
8449
8450 # Extract the first word of "pod2man", so it can be a program name with args.
8451 set dummy pod2man; ac_word=$2
8452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8454 if test "${ac_cv_path_POD2MAN+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   case $POD2MAN in
8458   [\\/]* | ?:[\\/]*)
8459   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8460   ;;
8461   *)
8462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8464 do
8465   IFS=$as_save_IFS
8466   test -z "$as_dir" && as_dir=.
8467   for ac_exec_ext in '' $ac_executable_extensions; do
8468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8469     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8471     break 2
8472   fi
8473 done
8474 done
8475 IFS=$as_save_IFS
8476
8477   ;;
8478 esac
8479 fi
8480 POD2MAN=$ac_cv_path_POD2MAN
8481 if test -n "$POD2MAN"; then
8482   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8483 echo "${ECHO_T}$POD2MAN" >&6; }
8484 else
8485   { echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6; }
8487 fi
8488
8489
8490 # Extract the first word of "pdfroff", so it can be a program name with args.
8491 set dummy pdfroff; ac_word=$2
8492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8494 if test "${ac_cv_path_PDFROFF+set}" = set; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   case $PDFROFF in
8498   [\\/]* | ?:[\\/]*)
8499   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8500   ;;
8501   *)
8502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505   IFS=$as_save_IFS
8506   test -z "$as_dir" && as_dir=.
8507   for ac_exec_ext in '' $ac_executable_extensions; do
8508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8509     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8511     break 2
8512   fi
8513 done
8514 done
8515 IFS=$as_save_IFS
8516
8517   ;;
8518 esac
8519 fi
8520 PDFROFF=$ac_cv_path_PDFROFF
8521 if test -n "$PDFROFF"; then
8522   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8523 echo "${ECHO_T}$PDFROFF" >&6; }
8524 else
8525   { echo "$as_me:$LINENO: result: no" >&5
8526 echo "${ECHO_T}no" >&6; }
8527 fi
8528
8529
8530 # Extract the first word of "runtest", so it can be a program name with args.
8531 set dummy runtest; ac_word=$2
8532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8534 if test "${ac_cv_path_RUNTEST+set}" = set; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537   case $RUNTEST in
8538   [\\/]* | ?:[\\/]*)
8539   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8540   ;;
8541   *)
8542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8544 do
8545   IFS=$as_save_IFS
8546   test -z "$as_dir" && as_dir=.
8547   for ac_exec_ext in '' $ac_executable_extensions; do
8548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8549     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8551     break 2
8552   fi
8553 done
8554 done
8555 IFS=$as_save_IFS
8556
8557   ;;
8558 esac
8559 fi
8560 RUNTEST=$ac_cv_path_RUNTEST
8561 if test -n "$RUNTEST"; then
8562   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8563 echo "${ECHO_T}$RUNTEST" >&6; }
8564 else
8565   { echo "$as_me:$LINENO: result: no" >&5
8566 echo "${ECHO_T}no" >&6; }
8567 fi
8568
8569
8570
8571 no_itcl=true
8572 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8573 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8574
8575 # Check whether --with-tclinclude was given.
8576 if test "${with_tclinclude+set}" = set; then
8577   withval=$with_tclinclude; with_tclinclude=${withval}
8578 else
8579   with_tclinclude=''
8580 fi
8581
8582 if test "${ac_cv_path_tclsh+set}" = set; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585
8586 if test x"${with_tclinclude}" != x ; then
8587   if test -f ${with_tclinclude}/tclsh ; then
8588     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8589   elif test -f ${with_tclinclude}/src/tclsh ; then
8590     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8591   else
8592     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8593 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8594    { (exit 1); exit 1; }; }
8595   fi
8596 fi
8597 fi
8598
8599
8600 if test x"${ac_cv_path_tclsh}" = x ; then
8601   { echo "$as_me:$LINENO: result: none" >&5
8602 echo "${ECHO_T}none" >&6; }
8603   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
8604 do
8605   # Extract the first word of "$ac_prog", so it can be a program name with args.
8606 set dummy $ac_prog; ac_word=$2
8607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8609 if test "${ac_cv_path_TCLSH+set}" = set; then
8610   echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612   case $TCLSH in
8613   [\\/]* | ?:[\\/]*)
8614   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8615   ;;
8616   *)
8617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 for as_dir in $PATH
8619 do
8620   IFS=$as_save_IFS
8621   test -z "$as_dir" && as_dir=.
8622   for ac_exec_ext in '' $ac_executable_extensions; do
8623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8624     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626     break 2
8627   fi
8628 done
8629 done
8630 IFS=$as_save_IFS
8631
8632   ;;
8633 esac
8634 fi
8635 TCLSH=$ac_cv_path_TCLSH
8636 if test -n "$TCLSH"; then
8637   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8638 echo "${ECHO_T}$TCLSH" >&6; }
8639 else
8640   { echo "$as_me:$LINENO: result: no" >&5
8641 echo "${ECHO_T}no" >&6; }
8642 fi
8643
8644
8645   test -n "$TCLSH" && break
8646 done
8647
8648   if test x"${TCLSH}" = x ; then
8649     ac_cv_path_tclsh='';
8650   else
8651     ac_cv_path_tclsh="${TCLSH}";
8652   fi
8653 else
8654   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8655 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8656   TCLSH="${ac_cv_path_tclsh}"
8657
8658 fi
8659
8660 # Extract the first word of "zip", so it can be a program name with args.
8661 set dummy zip; ac_word=$2
8662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8664 if test "${ac_cv_path_ZIP+set}" = set; then
8665   echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667   case $ZIP in
8668   [\\/]* | ?:[\\/]*)
8669   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8670   ;;
8671   *)
8672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 for as_dir in $PATH
8674 do
8675   IFS=$as_save_IFS
8676   test -z "$as_dir" && as_dir=.
8677   for ac_exec_ext in '' $ac_executable_extensions; do
8678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8679     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8681     break 2
8682   fi
8683 done
8684 done
8685 IFS=$as_save_IFS
8686
8687   ;;
8688 esac
8689 fi
8690 ZIP=$ac_cv_path_ZIP
8691 if test -n "$ZIP"; then
8692   { echo "$as_me:$LINENO: result: $ZIP" >&5
8693 echo "${ECHO_T}$ZIP" >&6; }
8694 else
8695   { echo "$as_me:$LINENO: result: no" >&5
8696 echo "${ECHO_T}no" >&6; }
8697 fi
8698
8699
8700 for ac_prog in ocamlc
8701 do
8702   # Extract the first word of "$ac_prog", so it can be a program name with args.
8703 set dummy $ac_prog; ac_word=$2
8704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8706 if test "${ac_cv_path_OCAMLC+set}" = set; then
8707   echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709   case $OCAMLC in
8710   [\\/]* | ?:[\\/]*)
8711   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8712   ;;
8713   *)
8714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8716 do
8717   IFS=$as_save_IFS
8718   test -z "$as_dir" && as_dir=.
8719   for ac_exec_ext in '' $ac_executable_extensions; do
8720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8721     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8723     break 2
8724   fi
8725 done
8726 done
8727 IFS=$as_save_IFS
8728
8729   ;;
8730 esac
8731 fi
8732 OCAMLC=$ac_cv_path_OCAMLC
8733 if test -n "$OCAMLC"; then
8734   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8735 echo "${ECHO_T}$OCAMLC" >&6; }
8736 else
8737   { echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6; }
8739 fi
8740
8741
8742   test -n "$OCAMLC" && break
8743 done
8744
8745 for ac_prog in ocamlopt
8746 do
8747   # Extract the first word of "$ac_prog", so it can be a program name with args.
8748 set dummy $ac_prog; ac_word=$2
8749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8751 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8752   echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754   case $OCAMLOPT in
8755   [\\/]* | ?:[\\/]*)
8756   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8757   ;;
8758   *)
8759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760 for as_dir in $PATH
8761 do
8762   IFS=$as_save_IFS
8763   test -z "$as_dir" && as_dir=.
8764   for ac_exec_ext in '' $ac_executable_extensions; do
8765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8766     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8768     break 2
8769   fi
8770 done
8771 done
8772 IFS=$as_save_IFS
8773
8774   ;;
8775 esac
8776 fi
8777 OCAMLOPT=$ac_cv_path_OCAMLOPT
8778 if test -n "$OCAMLOPT"; then
8779   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8780 echo "${ECHO_T}$OCAMLOPT" >&6; }
8781 else
8782   { echo "$as_me:$LINENO: result: no" >&5
8783 echo "${ECHO_T}no" >&6; }
8784 fi
8785
8786
8787   test -n "$OCAMLOPT" && break
8788 done
8789
8790 for ac_prog in ocamldep
8791 do
8792   # Extract the first word of "$ac_prog", so it can be a program name with args.
8793 set dummy $ac_prog; ac_word=$2
8794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8796 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799   case $OCAMLDEP in
8800   [\\/]* | ?:[\\/]*)
8801   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8802   ;;
8803   *)
8804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in $PATH
8806 do
8807   IFS=$as_save_IFS
8808   test -z "$as_dir" && as_dir=.
8809   for ac_exec_ext in '' $ac_executable_extensions; do
8810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8811     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8813     break 2
8814   fi
8815 done
8816 done
8817 IFS=$as_save_IFS
8818
8819   ;;
8820 esac
8821 fi
8822 OCAMLDEP=$ac_cv_path_OCAMLDEP
8823 if test -n "$OCAMLDEP"; then
8824   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8825 echo "${ECHO_T}$OCAMLDEP" >&6; }
8826 else
8827   { echo "$as_me:$LINENO: result: no" >&5
8828 echo "${ECHO_T}no" >&6; }
8829 fi
8830
8831
8832   test -n "$OCAMLDEP" && break
8833 done
8834
8835 for ac_prog in ocamldoc
8836 do
8837   # Extract the first word of "$ac_prog", so it can be a program name with args.
8838 set dummy $ac_prog; ac_word=$2
8839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8841 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844   case $OCAMLDOC in
8845   [\\/]* | ?:[\\/]*)
8846   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8847   ;;
8848   *)
8849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8851 do
8852   IFS=$as_save_IFS
8853   test -z "$as_dir" && as_dir=.
8854   for ac_exec_ext in '' $ac_executable_extensions; do
8855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8856     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8858     break 2
8859   fi
8860 done
8861 done
8862 IFS=$as_save_IFS
8863
8864   ;;
8865 esac
8866 fi
8867 OCAMLDOC=$ac_cv_path_OCAMLDOC
8868 if test -n "$OCAMLDOC"; then
8869   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8870 echo "${ECHO_T}$OCAMLDOC" >&6; }
8871 else
8872   { echo "$as_me:$LINENO: result: no" >&5
8873 echo "${ECHO_T}no" >&6; }
8874 fi
8875
8876
8877   test -n "$OCAMLDOC" && break
8878 done
8879
8880 for ac_prog in gas as
8881 do
8882   # Extract the first word of "$ac_prog", so it can be a program name with args.
8883 set dummy $ac_prog; ac_word=$2
8884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8886 if test "${ac_cv_path_GAS+set}" = set; then
8887   echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889   case $GAS in
8890   [\\/]* | ?:[\\/]*)
8891   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8892   ;;
8893   *)
8894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 for as_dir in $PATH
8896 do
8897   IFS=$as_save_IFS
8898   test -z "$as_dir" && as_dir=.
8899   for ac_exec_ext in '' $ac_executable_extensions; do
8900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8901     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8903     break 2
8904   fi
8905 done
8906 done
8907 IFS=$as_save_IFS
8908
8909   ;;
8910 esac
8911 fi
8912 GAS=$ac_cv_path_GAS
8913 if test -n "$GAS"; then
8914   { echo "$as_me:$LINENO: result: $GAS" >&5
8915 echo "${ECHO_T}$GAS" >&6; }
8916 else
8917   { echo "$as_me:$LINENO: result: no" >&5
8918 echo "${ECHO_T}no" >&6; }
8919 fi
8920
8921
8922   test -n "$GAS" && break
8923 done
8924
8925
8926 { echo "$as_me:$LINENO: checking for linker version" >&5
8927 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8928 if test "${llvm_cv_link_version+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931
8932    version_string="$(ld -v 2>&1 | head -1)"
8933
8934    # Check for ld64.
8935    if (echo "$version_string" | grep -q "ld64"); then
8936      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8937    else
8938      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8939    fi
8940
8941 fi
8942 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8943 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8944
8945 cat >>confdefs.h <<_ACEOF
8946 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8947 _ACEOF
8948
8949
8950
8951 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8952 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8953 if test "${llvm_cv_link_use_r+set}" = set; then
8954   echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956    ac_ext=c
8957 ac_cpp='$CPP $CPPFLAGS'
8958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961
8962   oldcflags="$CFLAGS"
8963   CFLAGS="$CFLAGS -Wl,-R."
8964   cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h.  */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h.  */
8970
8971 int
8972 main ()
8973 {
8974
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (ac_try="$ac_link"
8981 case "(($ac_try" in
8982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983   *) ac_try_echo=$ac_try;;
8984 esac
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986   (eval "$ac_link") 2>conftest.er1
8987   ac_status=$?
8988   grep -v '^ *+' conftest.er1 >conftest.err
8989   rm -f conftest.er1
8990   cat conftest.err >&5
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } &&
8993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994   { (case "(($ac_try" in
8995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996   *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999   (eval "$ac_try") 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; } &&
9003          { ac_try='test -s conftest$ac_exeext'
9004   { (case "(($ac_try" in
9005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006   *) ac_try_echo=$ac_try;;
9007 esac
9008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009   (eval "$ac_try") 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); }; }; then
9013   llvm_cv_link_use_r=yes
9014 else
9015   echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018         llvm_cv_link_use_r=no
9019 fi
9020
9021 rm -f core conftest.err conftest.$ac_objext \
9022       conftest$ac_exeext conftest.$ac_ext
9023   CFLAGS="$oldcflags"
9024   ac_ext=c
9025 ac_cpp='$CPP $CPPFLAGS'
9026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9029
9030
9031 fi
9032 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9033 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9034 if test "$llvm_cv_link_use_r" = yes ; then
9035
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_LINK_R 1
9038 _ACEOF
9039
9040   fi
9041
9042
9043 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9044 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9045 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048    ac_ext=c
9049 ac_cpp='$CPP $CPPFLAGS'
9050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9053
9054   oldcflags="$CFLAGS"
9055   CFLAGS="$CFLAGS -Wl,-export-dynamic"
9056   cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h.  */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h.  */
9062
9063 int
9064 main ()
9065 {
9066
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (ac_try="$ac_link"
9073 case "(($ac_try" in
9074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075   *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078   (eval "$ac_link") 2>conftest.er1
9079   ac_status=$?
9080   grep -v '^ *+' conftest.er1 >conftest.err
9081   rm -f conftest.er1
9082   cat conftest.err >&5
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); } &&
9085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9086   { (case "(($ac_try" in
9087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088   *) ac_try_echo=$ac_try;;
9089 esac
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091   (eval "$ac_try") 2>&5
9092   ac_status=$?
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); }; } &&
9095          { ac_try='test -s conftest$ac_exeext'
9096   { (case "(($ac_try" in
9097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098   *) ac_try_echo=$ac_try;;
9099 esac
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101   (eval "$ac_try") 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); }; }; then
9105   llvm_cv_link_use_export_dynamic=yes
9106 else
9107   echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110         llvm_cv_link_use_export_dynamic=no
9111 fi
9112
9113 rm -f core conftest.err conftest.$ac_objext \
9114       conftest$ac_exeext conftest.$ac_ext
9115   CFLAGS="$oldcflags"
9116   ac_ext=c
9117 ac_cpp='$CPP $CPPFLAGS'
9118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9121
9122
9123 fi
9124 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9125 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9126 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9127
9128 cat >>confdefs.h <<\_ACEOF
9129 #define HAVE_LINK_EXPORT_DYNAMIC 1
9130 _ACEOF
9131
9132   fi
9133
9134
9135 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9136 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9137 if test "${llvm_cv_link_use_version_script+set}" = set; then
9138   echo $ECHO_N "(cached) $ECHO_C" >&6
9139 else
9140    ac_ext=c
9141 ac_cpp='$CPP $CPPFLAGS'
9142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9145
9146   oldcflags="$CFLAGS"
9147
9148   # The following code is from the autoconf manual,
9149   # "11.13: Limitations of Usual Tools".
9150   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9151   # Use mktemp if possible; otherwise fall back on mkdir,
9152   # with $RANDOM to make collisions less likely.
9153   : ${TMPDIR=/tmp}
9154   {
9155     tmp=`
9156       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9157     ` &&
9158     test -n "$tmp" && test -d "$tmp"
9159   } || {
9160     tmp=$TMPDIR/foo$$-$RANDOM
9161     (umask 077 && mkdir "$tmp")
9162   } || exit $?
9163
9164   echo "{" > "$tmp/export.map"
9165   echo "  global: main;" >> "$tmp/export.map"
9166   echo "  local: *;" >> "$tmp/export.map"
9167   echo "};" >> "$tmp/export.map"
9168
9169   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9170   cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h.  */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h.  */
9176
9177 int
9178 main ()
9179 {
9180
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9187 case "(($ac_try" in
9188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189   *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192   (eval "$ac_link") 2>conftest.er1
9193   ac_status=$?
9194   grep -v '^ *+' conftest.er1 >conftest.err
9195   rm -f conftest.er1
9196   cat conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } &&
9199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9200   { (case "(($ac_try" in
9201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202   *) ac_try_echo=$ac_try;;
9203 esac
9204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205   (eval "$ac_try") 2>&5
9206   ac_status=$?
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); }; } &&
9209          { ac_try='test -s conftest$ac_exeext'
9210   { (case "(($ac_try" in
9211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212   *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215   (eval "$ac_try") 2>&5
9216   ac_status=$?
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); }; }; then
9219   llvm_cv_link_use_version_script=yes
9220 else
9221   echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9223
9224         llvm_cv_link_use_version_script=no
9225 fi
9226
9227 rm -f core conftest.err conftest.$ac_objext \
9228       conftest$ac_exeext conftest.$ac_ext
9229   rm "$tmp/export.map"
9230   rmdir "$tmp"
9231   CFLAGS="$oldcflags"
9232   ac_ext=c
9233 ac_cpp='$CPP $CPPFLAGS'
9234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9237
9238
9239 fi
9240 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9241 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9242 if test "$llvm_cv_link_use_version_script" = yes ; then
9243   HAVE_LINK_VERSION_SCRIPT=1
9244
9245   fi
9246
9247
9248
9249
9250 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9251 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9252 if test "${ac_cv_c_const+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255   cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h.  */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h.  */
9261
9262 int
9263 main ()
9264 {
9265 /* FIXME: Include the comments suggested by Paul. */
9266 #ifndef __cplusplus
9267   /* Ultrix mips cc rejects this.  */
9268   typedef int charset[2];
9269   const charset x;
9270   /* SunOS 4.1.1 cc rejects this.  */
9271   char const *const *ccp;
9272   char **p;
9273   /* NEC SVR4.0.2 mips cc rejects this.  */
9274   struct point {int x, y;};
9275   static struct point const zero = {0,0};
9276   /* AIX XL C 1.02.0.0 rejects this.
9277      It does not let you subtract one const X* pointer from another in
9278      an arm of an if-expression whose if-part is not a constant
9279      expression */
9280   const char *g = "string";
9281   ccp = &g + (g ? g-g : 0);
9282   /* HPUX 7.0 cc rejects these. */
9283   ++ccp;
9284   p = (char**) ccp;
9285   ccp = (char const *const *) p;
9286   { /* SCO 3.2v4 cc rejects this.  */
9287     char *t;
9288     char const *s = 0 ? (char *) 0 : (char const *) 0;
9289
9290     *t++ = 0;
9291     if (s) return 0;
9292   }
9293   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9294     int x[] = {25, 17};
9295     const int *foo = &x[0];
9296     ++foo;
9297   }
9298   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9299     typedef const int *iptr;
9300     iptr p = 0;
9301     ++p;
9302   }
9303   { /* AIX XL C 1.02.0.0 rejects this saying
9304        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9305     struct s { int j; const int *ap[3]; };
9306     struct s *b; b->j = 5;
9307   }
9308   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9309     const int foo = 10;
9310     if (!foo) return 0;
9311   }
9312   return !x[0] && !zero.x;
9313 #endif
9314
9315   ;
9316   return 0;
9317 }
9318 _ACEOF
9319 rm -f conftest.$ac_objext
9320 if { (ac_try="$ac_compile"
9321 case "(($ac_try" in
9322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9323   *) ac_try_echo=$ac_try;;
9324 esac
9325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9326   (eval "$ac_compile") 2>conftest.er1
9327   ac_status=$?
9328   grep -v '^ *+' conftest.er1 >conftest.err
9329   rm -f conftest.er1
9330   cat conftest.err >&5
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); } &&
9333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9334   { (case "(($ac_try" in
9335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336   *) ac_try_echo=$ac_try;;
9337 esac
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339   (eval "$ac_try") 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); }; } &&
9343          { ac_try='test -s conftest.$ac_objext'
9344   { (case "(($ac_try" in
9345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346   *) ac_try_echo=$ac_try;;
9347 esac
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349   (eval "$ac_try") 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); }; }; then
9353   ac_cv_c_const=yes
9354 else
9355   echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358         ac_cv_c_const=no
9359 fi
9360
9361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9362 fi
9363 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9364 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9365 if test $ac_cv_c_const = no; then
9366
9367 cat >>confdefs.h <<\_ACEOF
9368 #define const
9369 _ACEOF
9370
9371 fi
9372
9373
9374
9375
9376
9377
9378 ac_header_dirent=no
9379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9380   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9381 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9382 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9384   echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386   cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392 #include <sys/types.h>
9393 #include <$ac_hdr>
9394
9395 int
9396 main ()
9397 {
9398 if ((DIR *) 0)
9399 return 0;
9400   ;
9401   return 0;
9402 }
9403 _ACEOF
9404 rm -f conftest.$ac_objext
9405 if { (ac_try="$ac_compile"
9406 case "(($ac_try" in
9407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408   *) ac_try_echo=$ac_try;;
9409 esac
9410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9411   (eval "$ac_compile") 2>conftest.er1
9412   ac_status=$?
9413   grep -v '^ *+' conftest.er1 >conftest.err
9414   rm -f conftest.er1
9415   cat conftest.err >&5
9416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); } &&
9418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9419   { (case "(($ac_try" in
9420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421   *) ac_try_echo=$ac_try;;
9422 esac
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424   (eval "$ac_try") 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); }; } &&
9428          { ac_try='test -s conftest.$ac_objext'
9429   { (case "(($ac_try" in
9430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431   *) ac_try_echo=$ac_try;;
9432 esac
9433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434   (eval "$ac_try") 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438   eval "$as_ac_Header=yes"
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443         eval "$as_ac_Header=no"
9444 fi
9445
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 fi
9448 ac_res=`eval echo '${'$as_ac_Header'}'`
9449                { echo "$as_me:$LINENO: result: $ac_res" >&5
9450 echo "${ECHO_T}$ac_res" >&6; }
9451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9452   cat >>confdefs.h <<_ACEOF
9453 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9454 _ACEOF
9455
9456 ac_header_dirent=$ac_hdr; break
9457 fi
9458
9459 done
9460 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9461 if test $ac_header_dirent = dirent.h; then
9462   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9463 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9464 if test "${ac_cv_search_opendir+set}" = set; then
9465   echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467   ac_func_search_save_LIBS=$LIBS
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474
9475 /* Override any GCC internal prototype to avoid an error.
9476    Use char because int might match the return type of a GCC
9477    builtin and then its argument prototype would still apply.  */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char opendir ();
9482 int
9483 main ()
9484 {
9485 return opendir ();
9486   ;
9487   return 0;
9488 }
9489 _ACEOF
9490 for ac_lib in '' dir; do
9491   if test -z "$ac_lib"; then
9492     ac_res="none required"
9493   else
9494     ac_res=-l$ac_lib
9495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9496   fi
9497   rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (ac_try="$ac_link"
9499 case "(($ac_try" in
9500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501   *) ac_try_echo=$ac_try;;
9502 esac
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504   (eval "$ac_link") 2>conftest.er1
9505   ac_status=$?
9506   grep -v '^ *+' conftest.er1 >conftest.err
9507   rm -f conftest.er1
9508   cat conftest.err >&5
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); } &&
9511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9512   { (case "(($ac_try" in
9513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514   *) ac_try_echo=$ac_try;;
9515 esac
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517   (eval "$ac_try") 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); }; } &&
9521          { ac_try='test -s conftest$ac_exeext'
9522   { (case "(($ac_try" in
9523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524   *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527   (eval "$ac_try") 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; }; then
9531   ac_cv_search_opendir=$ac_res
9532 else
9533   echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9535
9536
9537 fi
9538
9539 rm -f core conftest.err conftest.$ac_objext \
9540       conftest$ac_exeext
9541   if test "${ac_cv_search_opendir+set}" = set; then
9542   break
9543 fi
9544 done
9545 if test "${ac_cv_search_opendir+set}" = set; then
9546   :
9547 else
9548   ac_cv_search_opendir=no
9549 fi
9550 rm conftest.$ac_ext
9551 LIBS=$ac_func_search_save_LIBS
9552 fi
9553 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9554 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9555 ac_res=$ac_cv_search_opendir
9556 if test "$ac_res" != no; then
9557   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9558
9559 fi
9560
9561 else
9562   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9563 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9564 if test "${ac_cv_search_opendir+set}" = set; then
9565   echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567   ac_func_search_save_LIBS=$LIBS
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h.  */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h.  */
9574
9575 /* Override any GCC internal prototype to avoid an error.
9576    Use char because int might match the return type of a GCC
9577    builtin and then its argument prototype would still apply.  */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 char opendir ();
9582 int
9583 main ()
9584 {
9585 return opendir ();
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 for ac_lib in '' x; do
9591   if test -z "$ac_lib"; then
9592     ac_res="none required"
9593   else
9594     ac_res=-l$ac_lib
9595     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9596   fi
9597   rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (ac_try="$ac_link"
9599 case "(($ac_try" in
9600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601   *) ac_try_echo=$ac_try;;
9602 esac
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604   (eval "$ac_link") 2>conftest.er1
9605   ac_status=$?
9606   grep -v '^ *+' conftest.er1 >conftest.err
9607   rm -f conftest.er1
9608   cat conftest.err >&5
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); } &&
9611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9612   { (case "(($ac_try" in
9613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614   *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617   (eval "$ac_try") 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); }; } &&
9621          { ac_try='test -s conftest$ac_exeext'
9622   { (case "(($ac_try" in
9623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624   *) ac_try_echo=$ac_try;;
9625 esac
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627   (eval "$ac_try") 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); }; }; then
9631   ac_cv_search_opendir=$ac_res
9632 else
9633   echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636
9637 fi
9638
9639 rm -f core conftest.err conftest.$ac_objext \
9640       conftest$ac_exeext
9641   if test "${ac_cv_search_opendir+set}" = set; then
9642   break
9643 fi
9644 done
9645 if test "${ac_cv_search_opendir+set}" = set; then
9646   :
9647 else
9648   ac_cv_search_opendir=no
9649 fi
9650 rm conftest.$ac_ext
9651 LIBS=$ac_func_search_save_LIBS
9652 fi
9653 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9654 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9655 ac_res=$ac_cv_search_opendir
9656 if test "$ac_res" != no; then
9657   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9658
9659 fi
9660
9661 fi
9662
9663
9664 for ac_header in dlfcn.h
9665 do
9666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9668   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9671   echo $ECHO_N "(cached) $ECHO_C" >&6
9672 fi
9673 ac_res=`eval echo '${'$as_ac_Header'}'`
9674                { echo "$as_me:$LINENO: result: $ac_res" >&5
9675 echo "${ECHO_T}$ac_res" >&6; }
9676 else
9677   # Is the header compilable?
9678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686 $ac_includes_default
9687 #include <$ac_header>
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (ac_try="$ac_compile"
9691 case "(($ac_try" in
9692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693   *) ac_try_echo=$ac_try;;
9694 esac
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696   (eval "$ac_compile") 2>conftest.er1
9697   ac_status=$?
9698   grep -v '^ *+' conftest.er1 >conftest.err
9699   rm -f conftest.er1
9700   cat conftest.err >&5
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); } &&
9703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9704   { (case "(($ac_try" in
9705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706   *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709   (eval "$ac_try") 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); }; } &&
9713          { ac_try='test -s conftest.$ac_objext'
9714   { (case "(($ac_try" in
9715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716   *) ac_try_echo=$ac_try;;
9717 esac
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719   (eval "$ac_try") 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); }; }; then
9723   ac_header_compiler=yes
9724 else
9725   echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728         ac_header_compiler=no
9729 fi
9730
9731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9733 echo "${ECHO_T}$ac_header_compiler" >&6; }
9734
9735 # Is the header present?
9736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h.  */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h.  */
9744 #include <$ac_header>
9745 _ACEOF
9746 if { (ac_try="$ac_cpp conftest.$ac_ext"
9747 case "(($ac_try" in
9748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749   *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9753   ac_status=$?
9754   grep -v '^ *+' conftest.er1 >conftest.err
9755   rm -f conftest.er1
9756   cat conftest.err >&5
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } >/dev/null; then
9759   if test -s conftest.err; then
9760     ac_cpp_err=$ac_c_preproc_warn_flag
9761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9762   else
9763     ac_cpp_err=
9764   fi
9765 else
9766   ac_cpp_err=yes
9767 fi
9768 if test -z "$ac_cpp_err"; then
9769   ac_header_preproc=yes
9770 else
9771   echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774   ac_header_preproc=no
9775 fi
9776
9777 rm -f conftest.err conftest.$ac_ext
9778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9779 echo "${ECHO_T}$ac_header_preproc" >&6; }
9780
9781 # So?  What about this header?
9782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9783   yes:no: )
9784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9788     ac_header_preproc=yes
9789     ;;
9790   no:yes:* )
9791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9803     ( cat <<\_ASBOX
9804 ## ----------------------------------- ##
9805 ## Report this to llvmbugs@cs.uiuc.edu ##
9806 ## ----------------------------------- ##
9807 _ASBOX
9808      ) | sed "s/^/$as_me: WARNING:     /" >&2
9809     ;;
9810 esac
9811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9814   echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816   eval "$as_ac_Header=\$ac_header_preproc"
9817 fi
9818 ac_res=`eval echo '${'$as_ac_Header'}'`
9819                { echo "$as_me:$LINENO: result: $ac_res" >&5
9820 echo "${ECHO_T}$ac_res" >&6; }
9821
9822 fi
9823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9824   cat >>confdefs.h <<_ACEOF
9825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9826 _ACEOF
9827
9828 fi
9829
9830 done
9831
9832 # Check whether --enable-ltdl-install was given.
9833 if test "${enable_ltdl_install+set}" = set; then
9834   enableval=$enable_ltdl_install;
9835 fi
9836
9837
9838
9839
9840 if test x"${enable_ltdl_install-no}" != xno; then
9841   INSTALL_LTDL_TRUE=
9842   INSTALL_LTDL_FALSE='#'
9843 else
9844   INSTALL_LTDL_TRUE='#'
9845   INSTALL_LTDL_FALSE=
9846 fi
9847
9848
9849
9850 if test x"${enable_ltdl_convenience-no}" != xno; then
9851   CONVENIENCE_LTDL_TRUE=
9852   CONVENIENCE_LTDL_FALSE='#'
9853 else
9854   CONVENIENCE_LTDL_TRUE='#'
9855   CONVENIENCE_LTDL_FALSE=
9856 fi
9857
9858
9859 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9861 library_names_spec=
9862 libname_spec='lib$name'
9863 soname_spec=
9864 shrext_cmds=".so"
9865 postinstall_cmds=
9866 postuninstall_cmds=
9867 finish_cmds=
9868 finish_eval=
9869 shlibpath_var=
9870 shlibpath_overrides_runpath=unknown
9871 version_type=none
9872 dynamic_linker="$host_os ld.so"
9873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9874 if test "$GCC" = yes; then
9875   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9876   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9877     # if the path contains ";" then we assume it to be the separator
9878     # otherwise default to the standard path separator (i.e. ":") - it is
9879     # assumed that no part of a normal pathname contains ";" but that should
9880     # okay in the real world where ";" in dirpaths is itself problematic.
9881     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9882   else
9883     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9884   fi
9885 else
9886   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9887 fi
9888 need_lib_prefix=unknown
9889 hardcode_into_libs=no
9890
9891 # when you set need_version to no, make sure it does not cause -set_version
9892 # flags to be left without arguments
9893 need_version=unknown
9894
9895 case $host_os in
9896 aix3*)
9897   version_type=linux
9898   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9899   shlibpath_var=LIBPATH
9900
9901   # AIX 3 has no versioning support, so we append a major version to the name.
9902   soname_spec='${libname}${release}${shared_ext}$major'
9903   ;;
9904
9905 aix4* | aix5*)
9906   version_type=linux
9907   need_lib_prefix=no
9908   need_version=no
9909   hardcode_into_libs=yes
9910   if test "$host_cpu" = ia64; then
9911     # AIX 5 supports IA64
9912     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9913     shlibpath_var=LD_LIBRARY_PATH
9914   else
9915     # With GCC up to 2.95.x, collect2 would create an import file
9916     # for dependence libraries.  The import file would start with
9917     # the line `#! .'.  This would cause the generated library to
9918     # depend on `.', always an invalid library.  This was fixed in
9919     # development snapshots of GCC prior to 3.0.
9920     case $host_os in
9921       aix4 | aix4.[01] | aix4.[01].*)
9922       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9923            echo ' yes '
9924            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9925         :
9926       else
9927         can_build_shared=no
9928       fi
9929       ;;
9930     esac
9931     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9932     # soname into executable. Probably we can add versioning support to
9933     # collect2, so additional links can be useful in future.
9934     if test "$aix_use_runtimelinking" = yes; then
9935       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9936       # instead of lib<name>.a to let people know that these are not
9937       # typical AIX shared libraries.
9938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939     else
9940       # We preserve .a as extension for shared libraries through AIX4.2
9941       # and later when we are not doing run time linking.
9942       library_names_spec='${libname}${release}.a $libname.a'
9943       soname_spec='${libname}${release}${shared_ext}$major'
9944     fi
9945     shlibpath_var=LIBPATH
9946   fi
9947   ;;
9948
9949 amigaos*)
9950   library_names_spec='$libname.ixlibrary $libname.a'
9951   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9952   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'
9953   ;;
9954
9955 beos*)
9956   library_names_spec='${libname}${shared_ext}'
9957   dynamic_linker="$host_os ld.so"
9958   shlibpath_var=LIBRARY_PATH
9959   ;;
9960
9961 bsdi[45]*)
9962   version_type=linux
9963   need_version=no
9964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965   soname_spec='${libname}${release}${shared_ext}$major'
9966   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9967   shlibpath_var=LD_LIBRARY_PATH
9968   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9969   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9970   # the default ld.so.conf also contains /usr/contrib/lib and
9971   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9972   # libtool to hard-code these into programs
9973   ;;
9974
9975 cygwin* | mingw* | pw32*)
9976   version_type=windows
9977   shrext_cmds=".dll"
9978   need_version=no
9979   need_lib_prefix=no
9980
9981   case $GCC,$host_os in
9982   yes,cygwin* | yes,mingw* | yes,pw32*)
9983     library_names_spec='$libname.dll.a'
9984     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9985     postinstall_cmds='base_file=`basename \${file}`~
9986       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9987       dldir=$destdir/`dirname \$dlpath`~
9988       test -d \$dldir || mkdir -p \$dldir~
9989       $install_prog $dir/$dlname \$dldir/$dlname~
9990       chmod a+x \$dldir/$dlname'
9991     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9992       dlpath=$dir/\$dldll~
9993        $rm \$dlpath'
9994     shlibpath_overrides_runpath=yes
9995
9996     case $host_os in
9997     cygwin*)
9998       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9999       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10000       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10001       ;;
10002     mingw*)
10003       # MinGW DLLs use traditional 'lib' prefix
10004       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10005       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10006       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10007         # It is most probably a Windows format PATH printed by
10008         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10009         # path with ; separators, and with drive letters. We can handle the
10010         # drive letters (cygwin fileutils understands them), so leave them,
10011         # especially as we might pass files found there to a mingw objdump,
10012         # which wouldn't understand a cygwinified path. Ahh.
10013         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10014       else
10015         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10016       fi
10017       ;;
10018     pw32*)
10019       # pw32 DLLs use 'pw' prefix rather than 'lib'
10020       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021       ;;
10022     esac
10023     ;;
10024
10025   *)
10026     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10027     ;;
10028   esac
10029   dynamic_linker='Win32 ld.exe'
10030   # FIXME: first we should search . and the directory the executable is in
10031   shlibpath_var=PATH
10032   ;;
10033
10034 darwin* | rhapsody*)
10035   dynamic_linker="$host_os dyld"
10036   version_type=darwin
10037   need_lib_prefix=no
10038   need_version=no
10039   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10040   soname_spec='${libname}${release}${major}$shared_ext'
10041   shlibpath_overrides_runpath=yes
10042   shlibpath_var=DYLD_LIBRARY_PATH
10043   shrext_cmds='.dylib'
10044   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10045   if test "$GCC" = yes; then
10046     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"`
10047   else
10048     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10049   fi
10050   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10051   ;;
10052
10053 dgux*)
10054   version_type=linux
10055   need_lib_prefix=no
10056   need_version=no
10057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10058   soname_spec='${libname}${release}${shared_ext}$major'
10059   shlibpath_var=LD_LIBRARY_PATH
10060   ;;
10061
10062 freebsd1*)
10063   dynamic_linker=no
10064   ;;
10065
10066 kfreebsd*-gnu)
10067   version_type=linux
10068   need_lib_prefix=no
10069   need_version=no
10070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071   soname_spec='${libname}${release}${shared_ext}$major'
10072   shlibpath_var=LD_LIBRARY_PATH
10073   shlibpath_overrides_runpath=no
10074   hardcode_into_libs=yes
10075   dynamic_linker='GNU ld.so'
10076   ;;
10077
10078 freebsd* | dragonfly*)
10079   # DragonFly does not have aout.  When/if they implement a new
10080   # versioning mechanism, adjust this.
10081   if test -x /usr/bin/objformat; then
10082     objformat=`/usr/bin/objformat`
10083   else
10084     case $host_os in
10085     freebsd[123]*) objformat=aout ;;
10086     *) objformat=elf ;;
10087     esac
10088   fi
10089   version_type=freebsd-$objformat
10090   case $version_type in
10091     freebsd-elf*)
10092       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10093       need_version=no
10094       need_lib_prefix=no
10095       ;;
10096     freebsd-*)
10097       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10098       need_version=yes
10099       ;;
10100   esac
10101   shlibpath_var=LD_LIBRARY_PATH
10102   case $host_os in
10103   freebsd2*)
10104     shlibpath_overrides_runpath=yes
10105     ;;
10106   freebsd3.[01]* | freebsdelf3.[01]*)
10107     shlibpath_overrides_runpath=yes
10108     hardcode_into_libs=yes
10109     ;;
10110   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10111   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10112     shlibpath_overrides_runpath=no
10113     hardcode_into_libs=yes
10114     ;;
10115   freebsd*) # from 4.6 on
10116     shlibpath_overrides_runpath=yes
10117     hardcode_into_libs=yes
10118     ;;
10119   esac
10120   ;;
10121
10122 gnu*)
10123   version_type=linux
10124   need_lib_prefix=no
10125   need_version=no
10126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10127   soname_spec='${libname}${release}${shared_ext}$major'
10128   shlibpath_var=LD_LIBRARY_PATH
10129   hardcode_into_libs=yes
10130   ;;
10131
10132 hpux9* | hpux10* | hpux11*)
10133   # Give a soname corresponding to the major version so that dld.sl refuses to
10134   # link against other versions.
10135   version_type=sunos
10136   need_lib_prefix=no
10137   need_version=no
10138   case $host_cpu in
10139   ia64*)
10140     shrext_cmds='.so'
10141     hardcode_into_libs=yes
10142     dynamic_linker="$host_os dld.so"
10143     shlibpath_var=LD_LIBRARY_PATH
10144     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146     soname_spec='${libname}${release}${shared_ext}$major'
10147     if test "X$HPUX_IA64_MODE" = X32; then
10148       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10149     else
10150       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10151     fi
10152     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10153     ;;
10154    hppa*64*)
10155      shrext_cmds='.sl'
10156      hardcode_into_libs=yes
10157      dynamic_linker="$host_os dld.sl"
10158      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10159      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10160      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161      soname_spec='${libname}${release}${shared_ext}$major'
10162      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10163      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164      ;;
10165    *)
10166     shrext_cmds='.sl'
10167     dynamic_linker="$host_os dld.sl"
10168     shlibpath_var=SHLIB_PATH
10169     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171     soname_spec='${libname}${release}${shared_ext}$major'
10172     ;;
10173   esac
10174   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10175   postinstall_cmds='chmod 555 $lib'
10176   ;;
10177
10178 interix3*)
10179   version_type=linux
10180   need_lib_prefix=no
10181   need_version=no
10182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10183   soname_spec='${libname}${release}${shared_ext}$major'
10184   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10185   shlibpath_var=LD_LIBRARY_PATH
10186   shlibpath_overrides_runpath=no
10187   hardcode_into_libs=yes
10188   ;;
10189
10190 irix5* | irix6* | nonstopux*)
10191   case $host_os in
10192     nonstopux*) version_type=nonstopux ;;
10193     *)
10194         if test "$lt_cv_prog_gnu_ld" = yes; then
10195                 version_type=linux
10196         else
10197                 version_type=irix
10198         fi ;;
10199   esac
10200   need_lib_prefix=no
10201   need_version=no
10202   soname_spec='${libname}${release}${shared_ext}$major'
10203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10204   case $host_os in
10205   irix5* | nonstopux*)
10206     libsuff= shlibsuff=
10207     ;;
10208   *)
10209     case $LD in # libtool.m4 will add one of these switches to LD
10210     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10211       libsuff= shlibsuff= libmagic=32-bit;;
10212     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10213       libsuff=32 shlibsuff=N32 libmagic=N32;;
10214     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10215       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10216     *) libsuff= shlibsuff= libmagic=never-match;;
10217     esac
10218     ;;
10219   esac
10220   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10221   shlibpath_overrides_runpath=no
10222   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10223   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10224   hardcode_into_libs=yes
10225   ;;
10226
10227 # No shared lib support for Linux oldld, aout, or coff.
10228 linux*oldld* | linux*aout* | linux*coff*)
10229   dynamic_linker=no
10230   ;;
10231
10232 # This must be Linux ELF.
10233 linux*)
10234   version_type=linux
10235   need_lib_prefix=no
10236   need_version=no
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238   soname_spec='${libname}${release}${shared_ext}$major'
10239   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10240   shlibpath_var=LD_LIBRARY_PATH
10241   shlibpath_overrides_runpath=no
10242   # This implies no fast_install, which is unacceptable.
10243   # Some rework will be needed to allow for fast_install
10244   # before this can be enabled.
10245   hardcode_into_libs=yes
10246
10247   # Append ld.so.conf contents to the search path
10248   if test -f /etc/ld.so.conf; then
10249     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' ' '`
10250     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10251   fi
10252
10253   # We used to test for /lib/ld.so.1 and disable shared libraries on
10254   # powerpc, because MkLinux only supported shared libraries with the
10255   # GNU dynamic linker.  Since this was broken with cross compilers,
10256   # most powerpc-linux boxes support dynamic linking these days and
10257   # people can always --disable-shared, the test was removed, and we
10258   # assume the GNU/Linux dynamic linker is in use.
10259   dynamic_linker='GNU/Linux ld.so'
10260   ;;
10261
10262 knetbsd*-gnu)
10263   version_type=linux
10264   need_lib_prefix=no
10265   need_version=no
10266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10267   soname_spec='${libname}${release}${shared_ext}$major'
10268   shlibpath_var=LD_LIBRARY_PATH
10269   shlibpath_overrides_runpath=no
10270   hardcode_into_libs=yes
10271   dynamic_linker='GNU ld.so'
10272   ;;
10273
10274 netbsd*)
10275   version_type=sunos
10276   need_lib_prefix=no
10277   need_version=no
10278   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10280     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10281     dynamic_linker='NetBSD (a.out) ld.so'
10282   else
10283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10284     soname_spec='${libname}${release}${shared_ext}$major'
10285     dynamic_linker='NetBSD ld.elf_so'
10286   fi
10287   shlibpath_var=LD_LIBRARY_PATH
10288   shlibpath_overrides_runpath=yes
10289   hardcode_into_libs=yes
10290   ;;
10291
10292 newsos6)
10293   version_type=linux
10294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295   shlibpath_var=LD_LIBRARY_PATH
10296   shlibpath_overrides_runpath=yes
10297   ;;
10298
10299 nto-qnx*)
10300   version_type=linux
10301   need_lib_prefix=no
10302   need_version=no
10303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304   soname_spec='${libname}${release}${shared_ext}$major'
10305   shlibpath_var=LD_LIBRARY_PATH
10306   shlibpath_overrides_runpath=yes
10307   ;;
10308
10309 openbsd*)
10310   version_type=sunos
10311   sys_lib_dlsearch_path_spec="/usr/lib"
10312   need_lib_prefix=no
10313   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10314   case $host_os in
10315     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316     *)                         need_version=no  ;;
10317   esac
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10322     case $host_os in
10323       openbsd2.[89] | openbsd2.[89].*)
10324         shlibpath_overrides_runpath=no
10325         ;;
10326       *)
10327         shlibpath_overrides_runpath=yes
10328         ;;
10329       esac
10330   else
10331     shlibpath_overrides_runpath=yes
10332   fi
10333   ;;
10334
10335 os2*)
10336   libname_spec='$name'
10337   shrext_cmds=".dll"
10338   need_lib_prefix=no
10339   library_names_spec='$libname${shared_ext} $libname.a'
10340   dynamic_linker='OS/2 ld.exe'
10341   shlibpath_var=LIBPATH
10342   ;;
10343
10344 osf3* | osf4* | osf5*)
10345   version_type=osf
10346   need_lib_prefix=no
10347   need_version=no
10348   soname_spec='${libname}${release}${shared_ext}$major'
10349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350   shlibpath_var=LD_LIBRARY_PATH
10351   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10353   ;;
10354
10355 solaris*)
10356   version_type=linux
10357   need_lib_prefix=no
10358   need_version=no
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360   soname_spec='${libname}${release}${shared_ext}$major'
10361   shlibpath_var=LD_LIBRARY_PATH
10362   shlibpath_overrides_runpath=yes
10363   hardcode_into_libs=yes
10364   # ldd complains unless libraries are executable
10365   postinstall_cmds='chmod +x $lib'
10366   ;;
10367
10368 sunos4*)
10369   version_type=sunos
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   shlibpath_overrides_runpath=yes
10374   if test "$with_gnu_ld" = yes; then
10375     need_lib_prefix=no
10376   fi
10377   need_version=yes
10378   ;;
10379
10380 sysv4 | sysv4.3*)
10381   version_type=linux
10382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383   soname_spec='${libname}${release}${shared_ext}$major'
10384   shlibpath_var=LD_LIBRARY_PATH
10385   case $host_vendor in
10386     sni)
10387       shlibpath_overrides_runpath=no
10388       need_lib_prefix=no
10389       export_dynamic_flag_spec='${wl}-Blargedynsym'
10390       runpath_var=LD_RUN_PATH
10391       ;;
10392     siemens)
10393       need_lib_prefix=no
10394       ;;
10395     motorola)
10396       need_lib_prefix=no
10397       need_version=no
10398       shlibpath_overrides_runpath=no
10399       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10400       ;;
10401   esac
10402   ;;
10403
10404 sysv4*MP*)
10405   if test -d /usr/nec ;then
10406     version_type=linux
10407     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10408     soname_spec='$libname${shared_ext}.$major'
10409     shlibpath_var=LD_LIBRARY_PATH
10410   fi
10411   ;;
10412
10413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10414   version_type=freebsd-elf
10415   need_lib_prefix=no
10416   need_version=no
10417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10418   soname_spec='${libname}${release}${shared_ext}$major'
10419   shlibpath_var=LD_LIBRARY_PATH
10420   hardcode_into_libs=yes
10421   if test "$with_gnu_ld" = yes; then
10422     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10423     shlibpath_overrides_runpath=no
10424   else
10425     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10426     shlibpath_overrides_runpath=yes
10427     case $host_os in
10428       sco3.2v5*)
10429         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10430         ;;
10431     esac
10432   fi
10433   sys_lib_dlsearch_path_spec='/usr/lib'
10434   ;;
10435
10436 uts4*)
10437   version_type=linux
10438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439   soname_spec='${libname}${release}${shared_ext}$major'
10440   shlibpath_var=LD_LIBRARY_PATH
10441   ;;
10442
10443 *)
10444   dynamic_linker=no
10445   ;;
10446 esac
10447 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10448 echo "${ECHO_T}$dynamic_linker" >&6; }
10449 test "$dynamic_linker" = no && can_build_shared=no
10450
10451 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10452 if test "$GCC" = yes; then
10453   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10454 fi
10455
10456
10457 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10458 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10459 if test "${libltdl_cv_shlibext+set}" = set; then
10460   echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462
10463 module=yes
10464 eval libltdl_cv_shlibext=$shrext_cmds
10465
10466 fi
10467 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10468 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10469 if test -n "$libltdl_cv_shlibext"; then
10470
10471 cat >>confdefs.h <<_ACEOF
10472 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10473 _ACEOF
10474
10475 fi
10476
10477
10478 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10479 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10480 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   libltdl_cv_shlibpath_var="$shlibpath_var"
10484 fi
10485 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10486 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10487 if test -n "$libltdl_cv_shlibpath_var"; then
10488
10489 cat >>confdefs.h <<_ACEOF
10490 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10491 _ACEOF
10492
10493 fi
10494
10495
10496 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10497 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10498 if test "${libltdl_cv_sys_search_path+set}" = set; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10502 fi
10503 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10504 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10505 if test -n "$libltdl_cv_sys_search_path"; then
10506   sys_search_path=
10507   for dir in $libltdl_cv_sys_search_path; do
10508     if test -z "$sys_search_path"; then
10509       sys_search_path="$dir"
10510     else
10511       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10512     fi
10513   done
10514
10515 cat >>confdefs.h <<_ACEOF
10516 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10517 _ACEOF
10518
10519 fi
10520
10521 { echo "$as_me:$LINENO: checking for objdir" >&5
10522 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10523 if test "${libltdl_cv_objdir+set}" = set; then
10524   echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526   libltdl_cv_objdir="$objdir"
10527   if test -n "$objdir"; then
10528     :
10529   else
10530     rm -f .libs 2>/dev/null
10531     mkdir .libs 2>/dev/null
10532     if test -d .libs; then
10533       libltdl_cv_objdir=.libs
10534     else
10535       # MS-DOS does not allow filenames that begin with a dot.
10536       libltdl_cv_objdir=_libs
10537     fi
10538   rmdir .libs 2>/dev/null
10539   fi
10540
10541 fi
10542 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10543 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10544
10545 cat >>confdefs.h <<_ACEOF
10546 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10547 _ACEOF
10548
10549
10550
10551
10552
10553
10554 # Check for command to grab the raw symbol name followed by C symbol from nm.
10555 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10556 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10557 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10558   echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560
10561 # These are sane defaults that work on at least a few old systems.
10562 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10563
10564 # Character class describing NM global symbol codes.
10565 symcode='[BCDEGRST]'
10566
10567 # Regexp to match symbols that can be accessed directly from C.
10568 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10569
10570 # Transform an extracted symbol line into a proper C declaration
10571 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10572
10573 # Transform an extracted symbol line into symbol name and symbol address
10574 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'"
10575
10576 # Define system-specific variables.
10577 case $host_os in
10578 aix*)
10579   symcode='[BCDT]'
10580   ;;
10581 cygwin* | mingw* | pw32*)
10582   symcode='[ABCDGISTW]'
10583   ;;
10584 hpux*) # Its linker distinguishes data from code symbols
10585   if test "$host_cpu" = ia64; then
10586     symcode='[ABCDEGRST]'
10587   fi
10588   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10589   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'"
10590   ;;
10591 linux*)
10592   if test "$host_cpu" = ia64; then
10593     symcode='[ABCDGIRSTW]'
10594     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10595     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'"
10596   fi
10597   ;;
10598 irix* | nonstopux*)
10599   symcode='[BCDEGRST]'
10600   ;;
10601 osf*)
10602   symcode='[BCDEGQRST]'
10603   ;;
10604 solaris*)
10605   symcode='[BDRT]'
10606   ;;
10607 sco3.2v5*)
10608   symcode='[DT]'
10609   ;;
10610 sysv4.2uw2*)
10611   symcode='[DT]'
10612   ;;
10613 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10614   symcode='[ABDT]'
10615   ;;
10616 sysv4)
10617   symcode='[DFNSTU]'
10618   ;;
10619 esac
10620
10621 # Handle CRLF in mingw tool chain
10622 opt_cr=
10623 case $build_os in
10624 mingw*)
10625   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10626   ;;
10627 esac
10628
10629 # If we're using GNU nm, then use its standard symbol codes.
10630 case `$NM -V 2>&1` in
10631 *GNU* | *'with BFD'*)
10632   symcode='[ABCDGIRSTW]' ;;
10633 esac
10634
10635 # Try without a prefix undercore, then with it.
10636 for ac_symprfx in "" "_"; do
10637
10638   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10639   symxfrm="\\1 $ac_symprfx\\2 \\2"
10640
10641   # Write the raw and C identifiers.
10642   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10643
10644   # Check to see that the pipe works correctly.
10645   pipe_works=no
10646
10647   rm -f conftest*
10648   cat > conftest.$ac_ext <<EOF
10649 #ifdef __cplusplus
10650 extern "C" {
10651 #endif
10652 char nm_test_var;
10653 void nm_test_func(){}
10654 #ifdef __cplusplus
10655 }
10656 #endif
10657 int main(){nm_test_var='a';nm_test_func();return(0);}
10658 EOF
10659
10660   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661   (eval $ac_compile) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); }; then
10665     # Now try to grab the symbols.
10666     nlist=conftest.nm
10667     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10668   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); } && test -s "$nlist"; then
10672       # Try sorting and uniquifying the output.
10673       if sort "$nlist" | uniq > "$nlist"T; then
10674         mv -f "$nlist"T "$nlist"
10675       else
10676         rm -f "$nlist"T
10677       fi
10678
10679       # Make sure that we snagged all the symbols we need.
10680       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10681         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10682           cat <<EOF > conftest.$ac_ext
10683 #ifdef __cplusplus
10684 extern "C" {
10685 #endif
10686
10687 EOF
10688           # Now generate the symbol file.
10689           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10690
10691           cat <<EOF >> conftest.$ac_ext
10692 #if defined (__STDC__) && __STDC__
10693 # define lt_ptr_t void *
10694 #else
10695 # define lt_ptr_t char *
10696 # define const
10697 #endif
10698
10699 /* The mapping between symbol names and symbols. */
10700 const struct {
10701   const char *name;
10702   lt_ptr_t address;
10703 }
10704 lt_preloaded_symbols[] =
10705 {
10706 EOF
10707           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10708           cat <<\EOF >> conftest.$ac_ext
10709   {0, (lt_ptr_t) 0}
10710 };
10711
10712 #ifdef __cplusplus
10713 }
10714 #endif
10715 EOF
10716           # Now try linking the two files.
10717           mv conftest.$ac_objext conftstm.$ac_objext
10718           lt_save_LIBS="$LIBS"
10719           lt_save_CFLAGS="$CFLAGS"
10720           LIBS="conftstm.$ac_objext"
10721           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10722           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10723   (eval $ac_link) 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10727             pipe_works=yes
10728           fi
10729           LIBS="$lt_save_LIBS"
10730           CFLAGS="$lt_save_CFLAGS"
10731         else
10732           echo "cannot find nm_test_func in $nlist" >&5
10733         fi
10734       else
10735         echo "cannot find nm_test_var in $nlist" >&5
10736       fi
10737     else
10738       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10739     fi
10740   else
10741     echo "$progname: failed program was:" >&5
10742     cat conftest.$ac_ext >&5
10743   fi
10744   rm -f conftest* conftst*
10745
10746   # Do not use the global_symbol_pipe unless it works.
10747   if test "$pipe_works" = yes; then
10748     break
10749   else
10750     lt_cv_sys_global_symbol_pipe=
10751   fi
10752 done
10753
10754 fi
10755
10756 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10757   lt_cv_sys_global_symbol_to_cdecl=
10758 fi
10759 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10760   { echo "$as_me:$LINENO: result: failed" >&5
10761 echo "${ECHO_T}failed" >&6; }
10762 else
10763   { echo "$as_me:$LINENO: result: ok" >&5
10764 echo "${ECHO_T}ok" >&6; }
10765 fi
10766
10767
10768 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10769 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10770 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10774     libltdl_cv_preloaded_symbols=yes
10775   else
10776     libltdl_cv_preloaded_symbols=no
10777   fi
10778
10779 fi
10780 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10781 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10782 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10783
10784 cat >>confdefs.h <<\_ACEOF
10785 #define HAVE_PRELOADED_SYMBOLS 1
10786 _ACEOF
10787
10788 fi
10789
10790 LIBADD_DL=
10791
10792 ac_ext=c
10793 ac_cpp='$CPP $CPPFLAGS'
10794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10797
10798
10799 { echo "$as_me:$LINENO: checking for shl_load" >&5
10800 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10801 if test "${ac_cv_func_shl_load+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804   cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10812 #define shl_load innocuous_shl_load
10813
10814 /* System header to define __stub macros and hopefully few prototypes,
10815     which can conflict with char shl_load (); below.
10816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817     <limits.h> exists even on freestanding compilers.  */
10818
10819 #ifdef __STDC__
10820 # include <limits.h>
10821 #else
10822 # include <assert.h>
10823 #endif
10824
10825 #undef shl_load
10826
10827 /* Override any GCC internal prototype to avoid an error.
10828    Use char because int might match the return type of a GCC
10829    builtin and then its argument prototype would still apply.  */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char shl_load ();
10834 /* The GNU C library defines this for functions which it implements
10835     to always fail with ENOSYS.  Some functions are actually named
10836     something starting with __ and the normal name is an alias.  */
10837 #if defined __stub_shl_load || defined __stub___shl_load
10838 choke me
10839 #endif
10840
10841 int
10842 main ()
10843 {
10844 return shl_load ();
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853   *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856   (eval "$ac_link") 2>conftest.er1
10857   ac_status=$?
10858   grep -v '^ *+' conftest.er1 >conftest.err
10859   rm -f conftest.er1
10860   cat conftest.err >&5
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); } &&
10863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864   { (case "(($ac_try" in
10865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866   *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869   (eval "$ac_try") 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }; } &&
10873          { ac_try='test -s conftest$ac_exeext'
10874   { (case "(($ac_try" in
10875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876   *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879   (eval "$ac_try") 2>&5
10880   ac_status=$?
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); }; }; then
10883   ac_cv_func_shl_load=yes
10884 else
10885   echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888         ac_cv_func_shl_load=no
10889 fi
10890
10891 rm -f core conftest.err conftest.$ac_objext \
10892       conftest$ac_exeext conftest.$ac_ext
10893 fi
10894 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10896 if test $ac_cv_func_shl_load = yes; then
10897
10898 cat >>confdefs.h <<\_ACEOF
10899 #define HAVE_SHL_LOAD 1
10900 _ACEOF
10901
10902 else
10903   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10904 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10905 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10906   echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908   ac_check_lib_save_LIBS=$LIBS
10909 LIBS="-ldld  $LIBS"
10910 cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h.  */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h.  */
10916
10917 /* Override any GCC internal prototype to avoid an error.
10918    Use char because int might match the return type of a GCC
10919    builtin and then its argument prototype would still apply.  */
10920 #ifdef __cplusplus
10921 extern "C"
10922 #endif
10923 char shl_load ();
10924 int
10925 main ()
10926 {
10927 return shl_load ();
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (ac_try="$ac_link"
10934 case "(($ac_try" in
10935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936   *) ac_try_echo=$ac_try;;
10937 esac
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939   (eval "$ac_link") 2>conftest.er1
10940   ac_status=$?
10941   grep -v '^ *+' conftest.er1 >conftest.err
10942   rm -f conftest.er1
10943   cat conftest.err >&5
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } &&
10946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947   { (case "(($ac_try" in
10948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949   *) ac_try_echo=$ac_try;;
10950 esac
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952   (eval "$ac_try") 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); }; } &&
10956          { ac_try='test -s conftest$ac_exeext'
10957   { (case "(($ac_try" in
10958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959   *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962   (eval "$ac_try") 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   ac_cv_lib_dld_shl_load=yes
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971         ac_cv_lib_dld_shl_load=no
10972 fi
10973
10974 rm -f core conftest.err conftest.$ac_objext \
10975       conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10977 fi
10978 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10979 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10980 if test $ac_cv_lib_dld_shl_load = yes; then
10981
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_SHL_LOAD 1
10984 _ACEOF
10985
10986         LIBADD_DL="$LIBADD_DL -ldld"
10987 else
10988   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10989 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10990 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   ac_check_lib_save_LIBS=$LIBS
10994 LIBS="-ldl  $LIBS"
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h.  */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h.  */
11001
11002 /* Override any GCC internal prototype to avoid an error.
11003    Use char because int might match the return type of a GCC
11004    builtin and then its argument prototype would still apply.  */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 char dlopen ();
11009 int
11010 main ()
11011 {
11012 return dlopen ();
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext conftest$ac_exeext
11018 if { (ac_try="$ac_link"
11019 case "(($ac_try" in
11020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021   *) ac_try_echo=$ac_try;;
11022 esac
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024   (eval "$ac_link") 2>conftest.er1
11025   ac_status=$?
11026   grep -v '^ *+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } &&
11031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11032   { (case "(($ac_try" in
11033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034   *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037   (eval "$ac_try") 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); }; } &&
11041          { ac_try='test -s conftest$ac_exeext'
11042   { (case "(($ac_try" in
11043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044   *) ac_try_echo=$ac_try;;
11045 esac
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047   (eval "$ac_try") 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); }; }; then
11051   ac_cv_lib_dl_dlopen=yes
11052 else
11053   echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056         ac_cv_lib_dl_dlopen=no
11057 fi
11058
11059 rm -f core conftest.err conftest.$ac_objext \
11060       conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11062 fi
11063 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11064 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11065 if test $ac_cv_lib_dl_dlopen = yes; then
11066
11067 cat >>confdefs.h <<\_ACEOF
11068 #define HAVE_LIBDL 1
11069 _ACEOF
11070
11071                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11072 else
11073   cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h.  */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h.  */
11079 #if HAVE_DLFCN_H
11080 #  include <dlfcn.h>
11081 #endif
11082
11083 int
11084 main ()
11085 {
11086 dlopen(0, 0);
11087   ;
11088   return 0;
11089 }
11090 _ACEOF
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095   *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098   (eval "$ac_link") 2>conftest.er1
11099   ac_status=$?
11100   grep -v '^ *+' conftest.er1 >conftest.err
11101   rm -f conftest.er1
11102   cat conftest.err >&5
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } &&
11105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11106   { (case "(($ac_try" in
11107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108   *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111   (eval "$ac_try") 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); }; } &&
11115          { ac_try='test -s conftest$ac_exeext'
11116   { (case "(($ac_try" in
11117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118   *) ac_try_echo=$ac_try;;
11119 esac
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121   (eval "$ac_try") 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }; }; then
11125
11126 cat >>confdefs.h <<\_ACEOF
11127 #define HAVE_LIBDL 1
11128 _ACEOF
11129  libltdl_cv_func_dlopen="yes"
11130 else
11131   echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11133
11134         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11135 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11136 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139   ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-lsvld  $LIBS"
11141 cat >conftest.$ac_ext <<_ACEOF
11142 /* confdefs.h.  */
11143 _ACEOF
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h.  */
11147
11148 /* Override any GCC internal prototype to avoid an error.
11149    Use char because int might match the return type of a GCC
11150    builtin and then its argument prototype would still apply.  */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 char dlopen ();
11155 int
11156 main ()
11157 {
11158 return dlopen ();
11159   ;
11160   return 0;
11161 }
11162 _ACEOF
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (ac_try="$ac_link"
11165 case "(($ac_try" in
11166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167   *) ac_try_echo=$ac_try;;
11168 esac
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170   (eval "$ac_link") 2>conftest.er1
11171   ac_status=$?
11172   grep -v '^ *+' conftest.er1 >conftest.err
11173   rm -f conftest.er1
11174   cat conftest.err >&5
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); } &&
11177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178   { (case "(($ac_try" in
11179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180   *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183   (eval "$ac_try") 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; } &&
11187          { ac_try='test -s conftest$ac_exeext'
11188   { (case "(($ac_try" in
11189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190   *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193   (eval "$ac_try") 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); }; }; then
11197   ac_cv_lib_svld_dlopen=yes
11198 else
11199   echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202         ac_cv_lib_svld_dlopen=no
11203 fi
11204
11205 rm -f core conftest.err conftest.$ac_objext \
11206       conftest$ac_exeext conftest.$ac_ext
11207 LIBS=$ac_check_lib_save_LIBS
11208 fi
11209 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11210 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11211 if test $ac_cv_lib_svld_dlopen = yes; then
11212
11213 cat >>confdefs.h <<\_ACEOF
11214 #define HAVE_LIBDL 1
11215 _ACEOF
11216
11217                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11218 else
11219   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11220 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11221 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11222   echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224   ac_check_lib_save_LIBS=$LIBS
11225 LIBS="-ldld  $LIBS"
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h.  */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h.  */
11232
11233 /* Override any GCC internal prototype to avoid an error.
11234    Use char because int might match the return type of a GCC
11235    builtin and then its argument prototype would still apply.  */
11236 #ifdef __cplusplus
11237 extern "C"
11238 #endif
11239 char dld_link ();
11240 int
11241 main ()
11242 {
11243 return dld_link ();
11244   ;
11245   return 0;
11246 }
11247 _ACEOF
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (ac_try="$ac_link"
11250 case "(($ac_try" in
11251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252   *) ac_try_echo=$ac_try;;
11253 esac
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255   (eval "$ac_link") 2>conftest.er1
11256   ac_status=$?
11257   grep -v '^ *+' conftest.er1 >conftest.err
11258   rm -f conftest.er1
11259   cat conftest.err >&5
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); } &&
11262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11263   { (case "(($ac_try" in
11264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265   *) ac_try_echo=$ac_try;;
11266 esac
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268   (eval "$ac_try") 2>&5
11269   ac_status=$?
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); }; } &&
11272          { ac_try='test -s conftest$ac_exeext'
11273   { (case "(($ac_try" in
11274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275   *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278   (eval "$ac_try") 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; }; then
11282   ac_cv_lib_dld_dld_link=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11286
11287         ac_cv_lib_dld_dld_link=no
11288 fi
11289
11290 rm -f core conftest.err conftest.$ac_objext \
11291       conftest$ac_exeext conftest.$ac_ext
11292 LIBS=$ac_check_lib_save_LIBS
11293 fi
11294 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11295 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11296 if test $ac_cv_lib_dld_dld_link = yes; then
11297
11298 cat >>confdefs.h <<\_ACEOF
11299 #define HAVE_DLD 1
11300 _ACEOF
11301
11302                 LIBADD_DL="$LIBADD_DL -ldld"
11303 else
11304   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11305 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11306 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11307   echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309   cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h.  */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h.  */
11315 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11317 #define _dyld_func_lookup innocuous__dyld_func_lookup
11318
11319 /* System header to define __stub macros and hopefully few prototypes,
11320     which can conflict with char _dyld_func_lookup (); below.
11321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11322     <limits.h> exists even on freestanding compilers.  */
11323
11324 #ifdef __STDC__
11325 # include <limits.h>
11326 #else
11327 # include <assert.h>
11328 #endif
11329
11330 #undef _dyld_func_lookup
11331
11332 /* Override any GCC internal prototype to avoid an error.
11333    Use char because int might match the return type of a GCC
11334    builtin and then its argument prototype would still apply.  */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char _dyld_func_lookup ();
11339 /* The GNU C library defines this for functions which it implements
11340     to always fail with ENOSYS.  Some functions are actually named
11341     something starting with __ and the normal name is an alias.  */
11342 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11343 choke me
11344 #endif
11345
11346 int
11347 main ()
11348 {
11349 return _dyld_func_lookup ();
11350   ;
11351   return 0;
11352 }
11353 _ACEOF
11354 rm -f conftest.$ac_objext conftest$ac_exeext
11355 if { (ac_try="$ac_link"
11356 case "(($ac_try" in
11357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358   *) ac_try_echo=$ac_try;;
11359 esac
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361   (eval "$ac_link") 2>conftest.er1
11362   ac_status=$?
11363   grep -v '^ *+' conftest.er1 >conftest.err
11364   rm -f conftest.er1
11365   cat conftest.err >&5
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); } &&
11368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11369   { (case "(($ac_try" in
11370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371   *) ac_try_echo=$ac_try;;
11372 esac
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374   (eval "$ac_try") 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); }; } &&
11378          { ac_try='test -s conftest$ac_exeext'
11379   { (case "(($ac_try" in
11380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381   *) ac_try_echo=$ac_try;;
11382 esac
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384   (eval "$ac_try") 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); }; }; then
11388   ac_cv_func__dyld_func_lookup=yes
11389 else
11390   echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393         ac_cv_func__dyld_func_lookup=no
11394 fi
11395
11396 rm -f core conftest.err conftest.$ac_objext \
11397       conftest$ac_exeext conftest.$ac_ext
11398 fi
11399 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11400 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11401 if test $ac_cv_func__dyld_func_lookup = yes; then
11402
11403 cat >>confdefs.h <<\_ACEOF
11404 #define HAVE_DYLD 1
11405 _ACEOF
11406
11407 fi
11408
11409
11410 fi
11411
11412
11413 fi
11414
11415
11416 fi
11417
11418 rm -f core conftest.err conftest.$ac_objext \
11419       conftest$ac_exeext conftest.$ac_ext
11420
11421 fi
11422
11423
11424 fi
11425
11426
11427 fi
11428
11429
11430 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11431 then
11432   lt_save_LIBS="$LIBS"
11433   LIBS="$LIBS $LIBADD_DL"
11434
11435 for ac_func in dlerror
11436 do
11437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443   cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h.  */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h.  */
11449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11451 #define $ac_func innocuous_$ac_func
11452
11453 /* System header to define __stub macros and hopefully few prototypes,
11454     which can conflict with char $ac_func (); below.
11455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11456     <limits.h> exists even on freestanding compilers.  */
11457
11458 #ifdef __STDC__
11459 # include <limits.h>
11460 #else
11461 # include <assert.h>
11462 #endif
11463
11464 #undef $ac_func
11465
11466 /* Override any GCC internal prototype to avoid an error.
11467    Use char because int might match the return type of a GCC
11468    builtin and then its argument prototype would still apply.  */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 char $ac_func ();
11473 /* The GNU C library defines this for functions which it implements
11474     to always fail with ENOSYS.  Some functions are actually named
11475     something starting with __ and the normal name is an alias.  */
11476 #if defined __stub_$ac_func || defined __stub___$ac_func
11477 choke me
11478 #endif
11479
11480 int
11481 main ()
11482 {
11483 return $ac_func ();
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (ac_try="$ac_link"
11490 case "(($ac_try" in
11491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492   *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495   (eval "$ac_link") 2>conftest.er1
11496   ac_status=$?
11497   grep -v '^ *+' conftest.er1 >conftest.err
11498   rm -f conftest.er1
11499   cat conftest.err >&5
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); } &&
11502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11503   { (case "(($ac_try" in
11504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505   *) ac_try_echo=$ac_try;;
11506 esac
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508   (eval "$ac_try") 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; } &&
11512          { ac_try='test -s conftest$ac_exeext'
11513   { (case "(($ac_try" in
11514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515   *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518   (eval "$ac_try") 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); }; }; then
11522   eval "$as_ac_var=yes"
11523 else
11524   echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11526
11527         eval "$as_ac_var=no"
11528 fi
11529
11530 rm -f core conftest.err conftest.$ac_objext \
11531       conftest$ac_exeext conftest.$ac_ext
11532 fi
11533 ac_res=`eval echo '${'$as_ac_var'}'`
11534                { echo "$as_me:$LINENO: result: $ac_res" >&5
11535 echo "${ECHO_T}$ac_res" >&6; }
11536 if test `eval echo '${'$as_ac_var'}'` = yes; then
11537   cat >>confdefs.h <<_ACEOF
11538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11539 _ACEOF
11540
11541 fi
11542 done
11543
11544   LIBS="$lt_save_LIBS"
11545 fi
11546 ac_ext=c
11547 ac_cpp='$CPP $CPPFLAGS'
11548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11551
11552
11553
11554 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11555 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11556 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11557   echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559   ac_cv_sys_symbol_underscore=no
11560   cat > conftest.$ac_ext <<EOF
11561 void nm_test_func(){}
11562 int main(){nm_test_func;return 0;}
11563 EOF
11564   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11565   (eval $ac_compile) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; then
11569     # Now try to grab the symbols.
11570     ac_nlist=conftest.nm
11571     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11572   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); } && test -s "$ac_nlist"; then
11576       # See whether the symbols have a leading underscore.
11577       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11578         ac_cv_sys_symbol_underscore=yes
11579       else
11580         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11581           :
11582         else
11583           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11584         fi
11585       fi
11586     else
11587       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11588     fi
11589   else
11590     echo "configure: failed program was:" >&5
11591     cat conftest.c >&5
11592   fi
11593   rm -rf conftest*
11594
11595 fi
11596 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11597 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11598
11599
11600 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11601   if test x"$libltdl_cv_func_dlopen" = xyes ||
11602      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11603         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11604 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11605 if test "${libltdl_cv_need_uscore+set}" = set; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   libltdl_cv_need_uscore=unknown
11609           save_LIBS="$LIBS"
11610           LIBS="$LIBS $LIBADD_DL"
11611           if test "$cross_compiling" = yes; then :
11612   libltdl_cv_need_uscore=cross
11613 else
11614   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11615   lt_status=$lt_dlunknown
11616   cat > conftest.$ac_ext <<EOF
11617 #line 11617 "configure"
11618 #include "confdefs.h"
11619
11620 #if HAVE_DLFCN_H
11621 #include <dlfcn.h>
11622 #endif
11623
11624 #include <stdio.h>
11625
11626 #ifdef RTLD_GLOBAL
11627 #  define LT_DLGLOBAL           RTLD_GLOBAL
11628 #else
11629 #  ifdef DL_GLOBAL
11630 #    define LT_DLGLOBAL         DL_GLOBAL
11631 #  else
11632 #    define LT_DLGLOBAL         0
11633 #  endif
11634 #endif
11635
11636 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11637    find out it does not work in some platform. */
11638 #ifndef LT_DLLAZY_OR_NOW
11639 #  ifdef RTLD_LAZY
11640 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11641 #  else
11642 #    ifdef DL_LAZY
11643 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11644 #    else
11645 #      ifdef RTLD_NOW
11646 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11647 #      else
11648 #        ifdef DL_NOW
11649 #          define LT_DLLAZY_OR_NOW      DL_NOW
11650 #        else
11651 #          define LT_DLLAZY_OR_NOW      0
11652 #        endif
11653 #      endif
11654 #    endif
11655 #  endif
11656 #endif
11657
11658 #ifdef __cplusplus
11659 extern "C" void exit (int);
11660 #endif
11661
11662 void fnord() { int i=42;}
11663 int main ()
11664 {
11665   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11666   int status = $lt_dlunknown;
11667
11668   if (self)
11669     {
11670       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11671       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11672       /* dlclose (self); */
11673     }
11674   else
11675     puts (dlerror ());
11676
11677     exit (status);
11678 }
11679 EOF
11680   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11681   (eval $ac_link) 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11685     (./conftest; exit; ) >&5 2>/dev/null
11686     lt_status=$?
11687     case x$lt_status in
11688       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11689       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11690       x$lt_dlunknown|x*)  ;;
11691     esac
11692   else :
11693     # compilation failed
11694
11695   fi
11696 fi
11697 rm -fr conftest*
11698
11699           LIBS="$save_LIBS"
11700
11701 fi
11702 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11703 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11704   fi
11705 fi
11706
11707 if test x"$libltdl_cv_need_uscore" = xyes; then
11708
11709 cat >>confdefs.h <<\_ACEOF
11710 #define NEED_USCORE 1
11711 _ACEOF
11712
11713 fi
11714
11715
11716 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11717 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11718 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   # PORTME does your system automatically load deplibs for dlopen?
11722   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11723   # For now, we just catch OSes we know something about -- in the
11724   # future, we'll try test this programmatically.
11725   libltdl_cv_sys_dlopen_deplibs=unknown
11726   case "$host_os" in
11727   aix3*|aix4.1.*|aix4.2.*)
11728     # Unknown whether this is true for these versions of AIX, but
11729     # we want this `case' here to explicitly catch those versions.
11730     libltdl_cv_sys_dlopen_deplibs=unknown
11731     ;;
11732   aix[45]*)
11733     libltdl_cv_sys_dlopen_deplibs=yes
11734     ;;
11735   darwin*)
11736     # Assuming the user has installed a libdl from somewhere, this is true
11737     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11738     libltdl_cv_sys_dlopen_deplibs=yes
11739     ;;
11740   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11741     # GNU and its variants, using gnu ld.so (Glibc)
11742     libltdl_cv_sys_dlopen_deplibs=yes
11743     ;;
11744   hpux10*|hpux11*)
11745     libltdl_cv_sys_dlopen_deplibs=yes
11746     ;;
11747   interix*)
11748     libltdl_cv_sys_dlopen_deplibs=yes
11749     ;;
11750   irix[12345]*|irix6.[01]*)
11751     # Catch all versions of IRIX before 6.2, and indicate that we don't
11752     # know how it worked for any of those versions.
11753     libltdl_cv_sys_dlopen_deplibs=unknown
11754     ;;
11755   irix*)
11756     # The case above catches anything before 6.2, and it's known that
11757     # at 6.2 and later dlopen does load deplibs.
11758     libltdl_cv_sys_dlopen_deplibs=yes
11759     ;;
11760   netbsd*)
11761     libltdl_cv_sys_dlopen_deplibs=yes
11762     ;;
11763   openbsd*)
11764     libltdl_cv_sys_dlopen_deplibs=yes
11765     ;;
11766   osf[1234]*)
11767     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11768     # it did *not* use an RPATH in a shared library to find objects the
11769     # library depends on, so we explicitly say `no'.
11770     libltdl_cv_sys_dlopen_deplibs=no
11771     ;;
11772   osf5.0|osf5.0a|osf5.1)
11773     # dlopen *does* load deplibs and with the right loader patch applied
11774     # it even uses RPATH in a shared library to search for shared objects
11775     # that the library depends on, but there's no easy way to know if that
11776     # patch is installed.  Since this is the case, all we can really
11777     # say is unknown -- it depends on the patch being installed.  If
11778     # it is, this changes to `yes'.  Without it, it would be `no'.
11779     libltdl_cv_sys_dlopen_deplibs=unknown
11780     ;;
11781   osf*)
11782     # the two cases above should catch all versions of osf <= 5.1.  Read
11783     # the comments above for what we know about them.
11784     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11785     # is used to find them so we can finally say `yes'.
11786     libltdl_cv_sys_dlopen_deplibs=yes
11787     ;;
11788   solaris*)
11789     libltdl_cv_sys_dlopen_deplibs=yes
11790     ;;
11791   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11792     libltdl_cv_sys_dlopen_deplibs=yes
11793     ;;
11794   esac
11795
11796 fi
11797 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11798 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11799 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11800
11801 cat >>confdefs.h <<\_ACEOF
11802 #define LTDL_DLOPEN_DEPLIBS 1
11803 _ACEOF
11804
11805 fi
11806
11807
11808 for ac_header in argz.h
11809 do
11810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11812   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 fi
11817 ac_res=`eval echo '${'$as_ac_Header'}'`
11818                { echo "$as_me:$LINENO: result: $ac_res" >&5
11819 echo "${ECHO_T}$ac_res" >&6; }
11820 else
11821   # Is the header compilable?
11822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11824 cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830 $ac_includes_default
11831 #include <$ac_header>
11832 _ACEOF
11833 rm -f conftest.$ac_objext
11834 if { (ac_try="$ac_compile"
11835 case "(($ac_try" in
11836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837   *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840   (eval "$ac_compile") 2>conftest.er1
11841   ac_status=$?
11842   grep -v '^ *+' conftest.er1 >conftest.err
11843   rm -f conftest.er1
11844   cat conftest.err >&5
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); } &&
11847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848   { (case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853   (eval "$ac_try") 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; } &&
11857          { ac_try='test -s conftest.$ac_objext'
11858   { (case "(($ac_try" in
11859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860   *) ac_try_echo=$ac_try;;
11861 esac
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863   (eval "$ac_try") 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); }; }; then
11867   ac_header_compiler=yes
11868 else
11869   echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11871
11872         ac_header_compiler=no
11873 fi
11874
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11877 echo "${ECHO_T}$ac_header_compiler" >&6; }
11878
11879 # Is the header present?
11880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 #include <$ac_header>
11889 _ACEOF
11890 if { (ac_try="$ac_cpp conftest.$ac_ext"
11891 case "(($ac_try" in
11892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893   *) ac_try_echo=$ac_try;;
11894 esac
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } >/dev/null; then
11903   if test -s conftest.err; then
11904     ac_cpp_err=$ac_c_preproc_warn_flag
11905     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11906   else
11907     ac_cpp_err=
11908   fi
11909 else
11910   ac_cpp_err=yes
11911 fi
11912 if test -z "$ac_cpp_err"; then
11913   ac_header_preproc=yes
11914 else
11915   echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918   ac_header_preproc=no
11919 fi
11920
11921 rm -f conftest.err conftest.$ac_ext
11922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 echo "${ECHO_T}$ac_header_preproc" >&6; }
11924
11925 # So?  What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927   yes:no: )
11928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11932     ac_header_preproc=yes
11933     ;;
11934   no:yes:* )
11935     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11938 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11939     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11941     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11942 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11945     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11947     ( cat <<\_ASBOX
11948 ## ----------------------------------- ##
11949 ## Report this to llvmbugs@cs.uiuc.edu ##
11950 ## ----------------------------------- ##
11951 _ASBOX
11952      ) | sed "s/^/$as_me: WARNING:     /" >&2
11953     ;;
11954 esac
11955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958   echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960   eval "$as_ac_Header=\$ac_header_preproc"
11961 fi
11962 ac_res=`eval echo '${'$as_ac_Header'}'`
11963                { echo "$as_me:$LINENO: result: $ac_res" >&5
11964 echo "${ECHO_T}$ac_res" >&6; }
11965
11966 fi
11967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11968   cat >>confdefs.h <<_ACEOF
11969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11970 _ACEOF
11971
11972 fi
11973
11974 done
11975
11976
11977 { echo "$as_me:$LINENO: checking for error_t" >&5
11978 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11979 if test "${ac_cv_type_error_t+set}" = set; then
11980   echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982   cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h.  */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h.  */
11988 #if HAVE_ARGZ_H
11989 #  include <argz.h>
11990 #endif
11991
11992 typedef error_t ac__type_new_;
11993 int
11994 main ()
11995 {
11996 if ((ac__type_new_ *) 0)
11997   return 0;
11998 if (sizeof (ac__type_new_))
11999   return 0;
12000   ;
12001   return 0;
12002 }
12003 _ACEOF
12004 rm -f conftest.$ac_objext
12005 if { (ac_try="$ac_compile"
12006 case "(($ac_try" in
12007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008   *) ac_try_echo=$ac_try;;
12009 esac
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011   (eval "$ac_compile") 2>conftest.er1
12012   ac_status=$?
12013   grep -v '^ *+' conftest.er1 >conftest.err
12014   rm -f conftest.er1
12015   cat conftest.err >&5
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); } &&
12018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12019   { (case "(($ac_try" in
12020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021   *) ac_try_echo=$ac_try;;
12022 esac
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024   (eval "$ac_try") 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); }; } &&
12028          { ac_try='test -s conftest.$ac_objext'
12029   { (case "(($ac_try" in
12030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031   *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034   (eval "$ac_try") 2>&5
12035   ac_status=$?
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); }; }; then
12038   ac_cv_type_error_t=yes
12039 else
12040   echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12042
12043         ac_cv_type_error_t=no
12044 fi
12045
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047 fi
12048 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12049 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12050 if test $ac_cv_type_error_t = yes; then
12051
12052 cat >>confdefs.h <<_ACEOF
12053 #define HAVE_ERROR_T 1
12054 _ACEOF
12055
12056
12057 else
12058
12059 cat >>confdefs.h <<\_ACEOF
12060 #define error_t int
12061 _ACEOF
12062
12063 fi
12064
12065
12066
12067
12068
12069
12070
12071 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12072 do
12073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12077   echo $ECHO_N "(cached) $ECHO_C" >&6
12078 else
12079   cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h.  */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h.  */
12085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12087 #define $ac_func innocuous_$ac_func
12088
12089 /* System header to define __stub macros and hopefully few prototypes,
12090     which can conflict with char $ac_func (); below.
12091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12092     <limits.h> exists even on freestanding compilers.  */
12093
12094 #ifdef __STDC__
12095 # include <limits.h>
12096 #else
12097 # include <assert.h>
12098 #endif
12099
12100 #undef $ac_func
12101
12102 /* Override any GCC internal prototype to avoid an error.
12103    Use char because int might match the return type of a GCC
12104    builtin and then its argument prototype would still apply.  */
12105 #ifdef __cplusplus
12106 extern "C"
12107 #endif
12108 char $ac_func ();
12109 /* The GNU C library defines this for functions which it implements
12110     to always fail with ENOSYS.  Some functions are actually named
12111     something starting with __ and the normal name is an alias.  */
12112 #if defined __stub_$ac_func || defined __stub___$ac_func
12113 choke me
12114 #endif
12115
12116 int
12117 main ()
12118 {
12119 return $ac_func ();
12120   ;
12121   return 0;
12122 }
12123 _ACEOF
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (ac_try="$ac_link"
12126 case "(($ac_try" in
12127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128   *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131   (eval "$ac_link") 2>conftest.er1
12132   ac_status=$?
12133   grep -v '^ *+' conftest.er1 >conftest.err
12134   rm -f conftest.er1
12135   cat conftest.err >&5
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } &&
12138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139   { (case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144   (eval "$ac_try") 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; } &&
12148          { ac_try='test -s conftest$ac_exeext'
12149   { (case "(($ac_try" in
12150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151   *) ac_try_echo=$ac_try;;
12152 esac
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154   (eval "$ac_try") 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); }; }; then
12158   eval "$as_ac_var=yes"
12159 else
12160   echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12162
12163         eval "$as_ac_var=no"
12164 fi
12165
12166 rm -f core conftest.err conftest.$ac_objext \
12167       conftest$ac_exeext conftest.$ac_ext
12168 fi
12169 ac_res=`eval echo '${'$as_ac_var'}'`
12170                { echo "$as_me:$LINENO: result: $ac_res" >&5
12171 echo "${ECHO_T}$ac_res" >&6; }
12172 if test `eval echo '${'$as_ac_var'}'` = yes; then
12173   cat >>confdefs.h <<_ACEOF
12174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12175 _ACEOF
12176
12177 fi
12178 done
12179
12180
12181
12182
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 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12208                   stdio.h unistd.h
12209 do
12210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12212   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12215   echo $ECHO_N "(cached) $ECHO_C" >&6
12216 fi
12217 ac_res=`eval echo '${'$as_ac_Header'}'`
12218                { echo "$as_me:$LINENO: result: $ac_res" >&5
12219 echo "${ECHO_T}$ac_res" >&6; }
12220 else
12221   # Is the header compilable?
12222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12224 cat >conftest.$ac_ext <<_ACEOF
12225 /* confdefs.h.  */
12226 _ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h.  */
12230 $ac_includes_default
12231 #include <$ac_header>
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237   *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240   (eval "$ac_compile") 2>conftest.er1
12241   ac_status=$?
12242   grep -v '^ *+' conftest.er1 >conftest.err
12243   rm -f conftest.er1
12244   cat conftest.err >&5
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } &&
12247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248   { (case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253   (eval "$ac_try") 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; } &&
12257          { ac_try='test -s conftest.$ac_objext'
12258   { (case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_try") 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; }; then
12267   ac_header_compiler=yes
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272         ac_header_compiler=no
12273 fi
12274
12275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12277 echo "${ECHO_T}$ac_header_compiler" >&6; }
12278
12279 # Is the header present?
12280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12282 cat >conftest.$ac_ext <<_ACEOF
12283 /* confdefs.h.  */
12284 _ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h.  */
12288 #include <$ac_header>
12289 _ACEOF
12290 if { (ac_try="$ac_cpp conftest.$ac_ext"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } >/dev/null; then
12303   if test -s conftest.err; then
12304     ac_cpp_err=$ac_c_preproc_warn_flag
12305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12306   else
12307     ac_cpp_err=
12308   fi
12309 else
12310   ac_cpp_err=yes
12311 fi
12312 if test -z "$ac_cpp_err"; then
12313   ac_header_preproc=yes
12314 else
12315   echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318   ac_header_preproc=no
12319 fi
12320
12321 rm -f conftest.err conftest.$ac_ext
12322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12323 echo "${ECHO_T}$ac_header_preproc" >&6; }
12324
12325 # So?  What about this header?
12326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12327   yes:no: )
12328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12332     ac_header_preproc=yes
12333     ;;
12334   no:yes:* )
12335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12337     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12338 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12339     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12341     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12342 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12345     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12347     ( cat <<\_ASBOX
12348 ## ----------------------------------- ##
12349 ## Report this to llvmbugs@cs.uiuc.edu ##
12350 ## ----------------------------------- ##
12351 _ASBOX
12352      ) | sed "s/^/$as_me: WARNING:     /" >&2
12353     ;;
12354 esac
12355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358   echo $ECHO_N "(cached) $ECHO_C" >&6
12359 else
12360   eval "$as_ac_Header=\$ac_header_preproc"
12361 fi
12362 ac_res=`eval echo '${'$as_ac_Header'}'`
12363                { echo "$as_me:$LINENO: result: $ac_res" >&5
12364 echo "${ECHO_T}$ac_res" >&6; }
12365
12366 fi
12367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12368   cat >>confdefs.h <<_ACEOF
12369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12370 _ACEOF
12371
12372 fi
12373
12374 done
12375
12376
12377
12378
12379
12380 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12381 do
12382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12384   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12387   echo $ECHO_N "(cached) $ECHO_C" >&6
12388 fi
12389 ac_res=`eval echo '${'$as_ac_Header'}'`
12390                { echo "$as_me:$LINENO: result: $ac_res" >&5
12391 echo "${ECHO_T}$ac_res" >&6; }
12392 else
12393   # Is the header compilable?
12394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h.  */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h.  */
12402 $ac_includes_default
12403 #include <$ac_header>
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409   *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412   (eval "$ac_compile") 2>conftest.er1
12413   ac_status=$?
12414   grep -v '^ *+' conftest.er1 >conftest.err
12415   rm -f conftest.er1
12416   cat conftest.err >&5
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12420   { (case "(($ac_try" in
12421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422   *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425   (eval "$ac_try") 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; } &&
12429          { ac_try='test -s conftest.$ac_objext'
12430   { (case "(($ac_try" in
12431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432   *) ac_try_echo=$ac_try;;
12433 esac
12434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435   (eval "$ac_try") 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; }; then
12439   ac_header_compiler=yes
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444         ac_header_compiler=no
12445 fi
12446
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12449 echo "${ECHO_T}$ac_header_compiler" >&6; }
12450
12451 # Is the header present?
12452 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460 #include <$ac_header>
12461 _ACEOF
12462 if { (ac_try="$ac_cpp conftest.$ac_ext"
12463 case "(($ac_try" in
12464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465   *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12469   ac_status=$?
12470   grep -v '^ *+' conftest.er1 >conftest.err
12471   rm -f conftest.er1
12472   cat conftest.err >&5
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } >/dev/null; then
12475   if test -s conftest.err; then
12476     ac_cpp_err=$ac_c_preproc_warn_flag
12477     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12478   else
12479     ac_cpp_err=
12480   fi
12481 else
12482   ac_cpp_err=yes
12483 fi
12484 if test -z "$ac_cpp_err"; then
12485   ac_header_preproc=yes
12486 else
12487   echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490   ac_header_preproc=no
12491 fi
12492
12493 rm -f conftest.err conftest.$ac_ext
12494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12495 echo "${ECHO_T}$ac_header_preproc" >&6; }
12496
12497 # So?  What about this header?
12498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12499   yes:no: )
12500     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12504     ac_header_preproc=yes
12505     ;;
12506   no:yes:* )
12507     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12509     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12510 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12511     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12513     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12514 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12517     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12519     ( cat <<\_ASBOX
12520 ## ----------------------------------- ##
12521 ## Report this to llvmbugs@cs.uiuc.edu ##
12522 ## ----------------------------------- ##
12523 _ASBOX
12524      ) | sed "s/^/$as_me: WARNING:     /" >&2
12525     ;;
12526 esac
12527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12530   echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532   eval "$as_ac_Header=\$ac_header_preproc"
12533 fi
12534 ac_res=`eval echo '${'$as_ac_Header'}'`
12535                { echo "$as_me:$LINENO: result: $ac_res" >&5
12536 echo "${ECHO_T}$ac_res" >&6; }
12537
12538 fi
12539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12540   cat >>confdefs.h <<_ACEOF
12541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12542 _ACEOF
12543
12544 fi
12545
12546 done
12547
12548
12549
12550 for ac_header in string.h strings.h
12551 do
12552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12554   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12557   echo $ECHO_N "(cached) $ECHO_C" >&6
12558 fi
12559 ac_res=`eval echo '${'$as_ac_Header'}'`
12560                { echo "$as_me:$LINENO: result: $ac_res" >&5
12561 echo "${ECHO_T}$ac_res" >&6; }
12562 else
12563   # Is the header compilable?
12564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h.  */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h.  */
12572 $ac_includes_default
12573 #include <$ac_header>
12574 _ACEOF
12575 rm -f conftest.$ac_objext
12576 if { (ac_try="$ac_compile"
12577 case "(($ac_try" in
12578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579   *) ac_try_echo=$ac_try;;
12580 esac
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582   (eval "$ac_compile") 2>conftest.er1
12583   ac_status=$?
12584   grep -v '^ *+' conftest.er1 >conftest.err
12585   rm -f conftest.er1
12586   cat conftest.err >&5
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); } &&
12589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12590   { (case "(($ac_try" in
12591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592   *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595   (eval "$ac_try") 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; } &&
12599          { ac_try='test -s conftest.$ac_objext'
12600   { (case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_try") 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   ac_header_compiler=yes
12610 else
12611   echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614         ac_header_compiler=no
12615 fi
12616
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12619 echo "${ECHO_T}$ac_header_compiler" >&6; }
12620
12621 # Is the header present?
12622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h.  */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h.  */
12630 #include <$ac_header>
12631 _ACEOF
12632 if { (ac_try="$ac_cpp conftest.$ac_ext"
12633 case "(($ac_try" in
12634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635   *) ac_try_echo=$ac_try;;
12636 esac
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12639   ac_status=$?
12640   grep -v '^ *+' conftest.er1 >conftest.err
12641   rm -f conftest.er1
12642   cat conftest.err >&5
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); } >/dev/null; then
12645   if test -s conftest.err; then
12646     ac_cpp_err=$ac_c_preproc_warn_flag
12647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12648   else
12649     ac_cpp_err=
12650   fi
12651 else
12652   ac_cpp_err=yes
12653 fi
12654 if test -z "$ac_cpp_err"; then
12655   ac_header_preproc=yes
12656 else
12657   echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12659
12660   ac_header_preproc=no
12661 fi
12662
12663 rm -f conftest.err conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12665 echo "${ECHO_T}$ac_header_preproc" >&6; }
12666
12667 # So?  What about this header?
12668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12669   yes:no: )
12670     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12674     ac_header_preproc=yes
12675     ;;
12676   no:yes:* )
12677     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12679     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12680 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12681     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12683     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12684 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12687     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12689     ( cat <<\_ASBOX
12690 ## ----------------------------------- ##
12691 ## Report this to llvmbugs@cs.uiuc.edu ##
12692 ## ----------------------------------- ##
12693 _ASBOX
12694      ) | sed "s/^/$as_me: WARNING:     /" >&2
12695     ;;
12696 esac
12697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12700   echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702   eval "$as_ac_Header=\$ac_header_preproc"
12703 fi
12704 ac_res=`eval echo '${'$as_ac_Header'}'`
12705                { echo "$as_me:$LINENO: result: $ac_res" >&5
12706 echo "${ECHO_T}$ac_res" >&6; }
12707
12708 fi
12709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12710   cat >>confdefs.h <<_ACEOF
12711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12712 _ACEOF
12713  break
12714 fi
12715
12716 done
12717
12718
12719
12720
12721 for ac_func in strchr index
12722 do
12723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12727   echo $ECHO_N "(cached) $ECHO_C" >&6
12728 else
12729   cat >conftest.$ac_ext <<_ACEOF
12730 /* confdefs.h.  */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h.  */
12735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12737 #define $ac_func innocuous_$ac_func
12738
12739 /* System header to define __stub macros and hopefully few prototypes,
12740     which can conflict with char $ac_func (); below.
12741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12742     <limits.h> exists even on freestanding compilers.  */
12743
12744 #ifdef __STDC__
12745 # include <limits.h>
12746 #else
12747 # include <assert.h>
12748 #endif
12749
12750 #undef $ac_func
12751
12752 /* Override any GCC internal prototype to avoid an error.
12753    Use char because int might match the return type of a GCC
12754    builtin and then its argument prototype would still apply.  */
12755 #ifdef __cplusplus
12756 extern "C"
12757 #endif
12758 char $ac_func ();
12759 /* The GNU C library defines this for functions which it implements
12760     to always fail with ENOSYS.  Some functions are actually named
12761     something starting with __ and the normal name is an alias.  */
12762 #if defined __stub_$ac_func || defined __stub___$ac_func
12763 choke me
12764 #endif
12765
12766 int
12767 main ()
12768 {
12769 return $ac_func ();
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778   *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781   (eval "$ac_link") 2>conftest.er1
12782   ac_status=$?
12783   grep -v '^ *+' conftest.er1 >conftest.err
12784   rm -f conftest.er1
12785   cat conftest.err >&5
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } &&
12788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789   { (case "(($ac_try" in
12790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791   *) ac_try_echo=$ac_try;;
12792 esac
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794   (eval "$ac_try") 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; } &&
12798          { ac_try='test -s conftest$ac_exeext'
12799   { (case "(($ac_try" in
12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801   *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804   (eval "$ac_try") 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; }; then
12808   eval "$as_ac_var=yes"
12809 else
12810   echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813         eval "$as_ac_var=no"
12814 fi
12815
12816 rm -f core conftest.err conftest.$ac_objext \
12817       conftest$ac_exeext conftest.$ac_ext
12818 fi
12819 ac_res=`eval echo '${'$as_ac_var'}'`
12820                { echo "$as_me:$LINENO: result: $ac_res" >&5
12821 echo "${ECHO_T}$ac_res" >&6; }
12822 if test `eval echo '${'$as_ac_var'}'` = yes; then
12823   cat >>confdefs.h <<_ACEOF
12824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12825 _ACEOF
12826  break
12827 fi
12828 done
12829
12830
12831
12832 for ac_func in strrchr rindex
12833 do
12834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12838   echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840   cat >conftest.$ac_ext <<_ACEOF
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12848 #define $ac_func innocuous_$ac_func
12849
12850 /* System header to define __stub macros and hopefully few prototypes,
12851     which can conflict with char $ac_func (); below.
12852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12853     <limits.h> exists even on freestanding compilers.  */
12854
12855 #ifdef __STDC__
12856 # include <limits.h>
12857 #else
12858 # include <assert.h>
12859 #endif
12860
12861 #undef $ac_func
12862
12863 /* Override any GCC internal prototype to avoid an error.
12864    Use char because int might match the return type of a GCC
12865    builtin and then its argument prototype would still apply.  */
12866 #ifdef __cplusplus
12867 extern "C"
12868 #endif
12869 char $ac_func ();
12870 /* The GNU C library defines this for functions which it implements
12871     to always fail with ENOSYS.  Some functions are actually named
12872     something starting with __ and the normal name is an alias.  */
12873 #if defined __stub_$ac_func || defined __stub___$ac_func
12874 choke me
12875 #endif
12876
12877 int
12878 main ()
12879 {
12880 return $ac_func ();
12881   ;
12882   return 0;
12883 }
12884 _ACEOF
12885 rm -f conftest.$ac_objext conftest$ac_exeext
12886 if { (ac_try="$ac_link"
12887 case "(($ac_try" in
12888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889   *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892   (eval "$ac_link") 2>conftest.er1
12893   ac_status=$?
12894   grep -v '^ *+' conftest.er1 >conftest.err
12895   rm -f conftest.er1
12896   cat conftest.err >&5
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); } &&
12899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12900   { (case "(($ac_try" in
12901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902   *) ac_try_echo=$ac_try;;
12903 esac
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905   (eval "$ac_try") 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; } &&
12909          { ac_try='test -s conftest$ac_exeext'
12910   { (case "(($ac_try" in
12911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912   *) ac_try_echo=$ac_try;;
12913 esac
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915   (eval "$ac_try") 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; }; then
12919   eval "$as_ac_var=yes"
12920 else
12921   echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12923
12924         eval "$as_ac_var=no"
12925 fi
12926
12927 rm -f core conftest.err conftest.$ac_objext \
12928       conftest$ac_exeext conftest.$ac_ext
12929 fi
12930 ac_res=`eval echo '${'$as_ac_var'}'`
12931                { echo "$as_me:$LINENO: result: $ac_res" >&5
12932 echo "${ECHO_T}$ac_res" >&6; }
12933 if test `eval echo '${'$as_ac_var'}'` = yes; then
12934   cat >>confdefs.h <<_ACEOF
12935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12936 _ACEOF
12937  break
12938 fi
12939 done
12940
12941
12942
12943 for ac_func in memcpy bcopy
12944 do
12945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12949   echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951   cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h.  */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h.  */
12957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12959 #define $ac_func innocuous_$ac_func
12960
12961 /* System header to define __stub macros and hopefully few prototypes,
12962     which can conflict with char $ac_func (); below.
12963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12964     <limits.h> exists even on freestanding compilers.  */
12965
12966 #ifdef __STDC__
12967 # include <limits.h>
12968 #else
12969 # include <assert.h>
12970 #endif
12971
12972 #undef $ac_func
12973
12974 /* Override any GCC internal prototype to avoid an error.
12975    Use char because int might match the return type of a GCC
12976    builtin and then its argument prototype would still apply.  */
12977 #ifdef __cplusplus
12978 extern "C"
12979 #endif
12980 char $ac_func ();
12981 /* The GNU C library defines this for functions which it implements
12982     to always fail with ENOSYS.  Some functions are actually named
12983     something starting with __ and the normal name is an alias.  */
12984 #if defined __stub_$ac_func || defined __stub___$ac_func
12985 choke me
12986 #endif
12987
12988 int
12989 main ()
12990 {
12991 return $ac_func ();
12992   ;
12993   return 0;
12994 }
12995 _ACEOF
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (ac_try="$ac_link"
12998 case "(($ac_try" in
12999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000   *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003   (eval "$ac_link") 2>conftest.er1
13004   ac_status=$?
13005   grep -v '^ *+' conftest.er1 >conftest.err
13006   rm -f conftest.er1
13007   cat conftest.err >&5
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); } &&
13010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13011   { (case "(($ac_try" in
13012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013   *) ac_try_echo=$ac_try;;
13014 esac
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016   (eval "$ac_try") 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); }; } &&
13020          { ac_try='test -s conftest$ac_exeext'
13021   { (case "(($ac_try" in
13022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023   *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026   (eval "$ac_try") 2>&5
13027   ac_status=$?
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); }; }; then
13030   eval "$as_ac_var=yes"
13031 else
13032   echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13034
13035         eval "$as_ac_var=no"
13036 fi
13037
13038 rm -f core conftest.err conftest.$ac_objext \
13039       conftest$ac_exeext conftest.$ac_ext
13040 fi
13041 ac_res=`eval echo '${'$as_ac_var'}'`
13042                { echo "$as_me:$LINENO: result: $ac_res" >&5
13043 echo "${ECHO_T}$ac_res" >&6; }
13044 if test `eval echo '${'$as_ac_var'}'` = yes; then
13045   cat >>confdefs.h <<_ACEOF
13046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13047 _ACEOF
13048  break
13049 fi
13050 done
13051
13052
13053
13054 for ac_func in memmove strcmp
13055 do
13056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13060   echo $ECHO_N "(cached) $ECHO_C" >&6
13061 else
13062   cat >conftest.$ac_ext <<_ACEOF
13063 /* confdefs.h.  */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h.  */
13068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13070 #define $ac_func innocuous_$ac_func
13071
13072 /* System header to define __stub macros and hopefully few prototypes,
13073     which can conflict with char $ac_func (); below.
13074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13075     <limits.h> exists even on freestanding compilers.  */
13076
13077 #ifdef __STDC__
13078 # include <limits.h>
13079 #else
13080 # include <assert.h>
13081 #endif
13082
13083 #undef $ac_func
13084
13085 /* Override any GCC internal prototype to avoid an error.
13086    Use char because int might match the return type of a GCC
13087    builtin and then its argument prototype would still apply.  */
13088 #ifdef __cplusplus
13089 extern "C"
13090 #endif
13091 char $ac_func ();
13092 /* The GNU C library defines this for functions which it implements
13093     to always fail with ENOSYS.  Some functions are actually named
13094     something starting with __ and the normal name is an alias.  */
13095 #if defined __stub_$ac_func || defined __stub___$ac_func
13096 choke me
13097 #endif
13098
13099 int
13100 main ()
13101 {
13102 return $ac_func ();
13103   ;
13104   return 0;
13105 }
13106 _ACEOF
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (ac_try="$ac_link"
13109 case "(($ac_try" in
13110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111   *) ac_try_echo=$ac_try;;
13112 esac
13113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114   (eval "$ac_link") 2>conftest.er1
13115   ac_status=$?
13116   grep -v '^ *+' conftest.er1 >conftest.err
13117   rm -f conftest.er1
13118   cat conftest.err >&5
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); } &&
13121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13122   { (case "(($ac_try" in
13123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124   *) ac_try_echo=$ac_try;;
13125 esac
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127   (eval "$ac_try") 2>&5
13128   ac_status=$?
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); }; } &&
13131          { ac_try='test -s conftest$ac_exeext'
13132   { (case "(($ac_try" in
13133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134   *) ac_try_echo=$ac_try;;
13135 esac
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137   (eval "$ac_try") 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; }; then
13141   eval "$as_ac_var=yes"
13142 else
13143   echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13145
13146         eval "$as_ac_var=no"
13147 fi
13148
13149 rm -f core conftest.err conftest.$ac_objext \
13150       conftest$ac_exeext conftest.$ac_ext
13151 fi
13152 ac_res=`eval echo '${'$as_ac_var'}'`
13153                { echo "$as_me:$LINENO: result: $ac_res" >&5
13154 echo "${ECHO_T}$ac_res" >&6; }
13155 if test `eval echo '${'$as_ac_var'}'` = yes; then
13156   cat >>confdefs.h <<_ACEOF
13157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13158 _ACEOF
13159
13160 fi
13161 done
13162
13163
13164
13165
13166 for ac_func in closedir opendir readdir
13167 do
13168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13172   echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174   cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h.  */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h.  */
13180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13182 #define $ac_func innocuous_$ac_func
13183
13184 /* System header to define __stub macros and hopefully few prototypes,
13185     which can conflict with char $ac_func (); below.
13186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13187     <limits.h> exists even on freestanding compilers.  */
13188
13189 #ifdef __STDC__
13190 # include <limits.h>
13191 #else
13192 # include <assert.h>
13193 #endif
13194
13195 #undef $ac_func
13196
13197 /* Override any GCC internal prototype to avoid an error.
13198    Use char because int might match the return type of a GCC
13199    builtin and then its argument prototype would still apply.  */
13200 #ifdef __cplusplus
13201 extern "C"
13202 #endif
13203 char $ac_func ();
13204 /* The GNU C library defines this for functions which it implements
13205     to always fail with ENOSYS.  Some functions are actually named
13206     something starting with __ and the normal name is an alias.  */
13207 #if defined __stub_$ac_func || defined __stub___$ac_func
13208 choke me
13209 #endif
13210
13211 int
13212 main ()
13213 {
13214 return $ac_func ();
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_link") 2>conftest.er1
13227   ac_status=$?
13228   grep -v '^ *+' conftest.er1 >conftest.err
13229   rm -f conftest.er1
13230   cat conftest.err >&5
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); } &&
13233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13234   { (case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239   (eval "$ac_try") 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; } &&
13243          { ac_try='test -s conftest$ac_exeext'
13244   { (case "(($ac_try" in
13245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246   *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249   (eval "$ac_try") 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; }; then
13253   eval "$as_ac_var=yes"
13254 else
13255   echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258         eval "$as_ac_var=no"
13259 fi
13260
13261 rm -f core conftest.err conftest.$ac_objext \
13262       conftest$ac_exeext conftest.$ac_ext
13263 fi
13264 ac_res=`eval echo '${'$as_ac_var'}'`
13265                { echo "$as_me:$LINENO: result: $ac_res" >&5
13266 echo "${ECHO_T}$ac_res" >&6; }
13267 if test `eval echo '${'$as_ac_var'}'` = yes; then
13268   cat >>confdefs.h <<_ACEOF
13269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13270 _ACEOF
13271
13272 fi
13273 done
13274
13275
13276
13277 if test "$WITH_LLVMGCCDIR" = "default" ; then
13278   LLVMGCC="llvm-gcc${EXEEXT}"
13279   LLVMGXX="llvm-g++${EXEEXT}"
13280   LLVMGCCCOMMAND="$LLVMGCC"
13281   LLVMGXXCOMMAND="$LLVMGXX"
13282   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13283
13284   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13285
13286   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13287 set dummy $LLVMGCC; ac_word=$2
13288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13290 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13291   echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293   case $LLVMGCC in
13294   [\\/]* | ?:[\\/]*)
13295   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13296   ;;
13297   *)
13298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13300 do
13301   IFS=$as_save_IFS
13302   test -z "$as_dir" && as_dir=.
13303   for ac_exec_ext in '' $ac_executable_extensions; do
13304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13305     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13307     break 2
13308   fi
13309 done
13310 done
13311 IFS=$as_save_IFS
13312
13313   ;;
13314 esac
13315 fi
13316 LLVMGCC=$ac_cv_path_LLVMGCC
13317 if test -n "$LLVMGCC"; then
13318   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13319 echo "${ECHO_T}$LLVMGCC" >&6; }
13320 else
13321   { echo "$as_me:$LINENO: result: no" >&5
13322 echo "${ECHO_T}no" >&6; }
13323 fi
13324
13325
13326   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13327 set dummy $LLVMGXX; ac_word=$2
13328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13330 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13331   echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333   case $LLVMGXX in
13334   [\\/]* | ?:[\\/]*)
13335   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13336   ;;
13337   *)
13338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13340 do
13341   IFS=$as_save_IFS
13342   test -z "$as_dir" && as_dir=.
13343   for ac_exec_ext in '' $ac_executable_extensions; do
13344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13345     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13347     break 2
13348   fi
13349 done
13350 done
13351 IFS=$as_save_IFS
13352
13353   ;;
13354 esac
13355 fi
13356 LLVMGXX=$ac_cv_path_LLVMGXX
13357 if test -n "$LLVMGXX"; then
13358   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13359 echo "${ECHO_T}$LLVMGXX" >&6; }
13360 else
13361   { echo "$as_me:$LINENO: result: no" >&5
13362 echo "${ECHO_T}no" >&6; }
13363 fi
13364
13365
13366 else
13367   if test -z "$LLVMGCC"; then
13368     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13369     LLVMGCCCOMMAND="$LLVMGCC"
13370   fi
13371   if test -z "$LLVMGXX"; then
13372     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13373     LLVMGXXCOMMAND="$LLVMGXX"
13374   fi
13375
13376   LLVMGCC=$LLVMGCC
13377
13378   LLVMGXX=$LLVMGXX
13379
13380   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13381
13382   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13383
13384 fi
13385
13386
13387 # Check whether --with-llvmcc was given.
13388 if test "${with_llvmcc+set}" = set; then
13389   withval=$with_llvmcc;
13390 else
13391   with_llvmcc=check
13392 fi
13393
13394 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13395 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13396 if test "$with_llvmcc" != "check"; then
13397    if (test "$with_llvmcc" != "llvm-gcc" &&
13398        test "$with_llvmcc" != "clang" &&
13399        test "$with_llvmcc" != "none"); then
13400       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13401 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13402    { (exit 1); exit 1; }; }
13403    fi
13404    WITH_LLVMCC="$with_llvmcc"
13405 elif test -n "$LLVMGCC"; then
13406    WITH_LLVMCC=llvm-gcc
13407 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13408    WITH_LLVMCC=clang
13409 else
13410    WITH_LLVMCC=none
13411 fi
13412 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13413 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13414 LLVMCC_OPTION=$WITH_LLVMCC
13415
13416
13417 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13418 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13419
13420 ICC=no
13421 IXX=no
13422 case $CC in
13423   icc*|icpc*)
13424     ICC=yes
13425     IXX=yes
13426     ;;
13427    *)
13428     ;;
13429 esac
13430
13431 if test "$GCC" != "yes" && test "$ICC" != "yes"
13432 then
13433   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13434 echo "$as_me: error: gcc|icc required but not found" >&2;}
13435    { (exit 1); exit 1; }; }
13436 fi
13437
13438 if test "$GXX" != "yes" && test "$IXX" != "yes"
13439 then
13440   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13441 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13442    { (exit 1); exit 1; }; }
13443 fi
13444
13445 if test "$GCC" = "yes"
13446 then
13447   cat >conftest.$ac_ext <<_ACEOF
13448 #if !defined(__GNUC__) || __GNUC__ < 3
13449 #error Unsupported GCC version
13450 #endif
13451
13452 _ACEOF
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457   *) ac_try_echo=$ac_try;;
13458 esac
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460   (eval "$ac_compile") 2>conftest.er1
13461   ac_status=$?
13462   grep -v '^ *+' conftest.er1 >conftest.err
13463   rm -f conftest.er1
13464   cat conftest.err >&5
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } &&
13467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13468   { (case "(($ac_try" in
13469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470   *) ac_try_echo=$ac_try;;
13471 esac
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473   (eval "$ac_try") 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; } &&
13477          { ac_try='test -s conftest.$ac_objext'
13478   { (case "(($ac_try" in
13479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480   *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483   (eval "$ac_try") 2>&5
13484   ac_status=$?
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); }; }; then
13487   :
13488 else
13489   echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13491
13492         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13493 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13494    { (exit 1); exit 1; }; }
13495 fi
13496
13497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498 fi
13499
13500 if test -z "$llvm_cv_gnu_make_command"
13501 then
13502   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13503 echo "$as_me: error: GNU Make required but not found" >&2;}
13504    { (exit 1); exit 1; }; }
13505 fi
13506
13507 { echo "$as_me:$LINENO: result: ok" >&5
13508 echo "${ECHO_T}ok" >&6; }
13509
13510 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13511 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13512 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13513
13514 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13515
13516 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13517 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13518
13519
13520
13521 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13522 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13523 if test "${ac_cv_lib_m_sin+set}" = set; then
13524   echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526   ac_check_lib_save_LIBS=$LIBS
13527 LIBS="-lm  $LIBS"
13528 cat >conftest.$ac_ext <<_ACEOF
13529 /* confdefs.h.  */
13530 _ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h.  */
13534
13535 /* Override any GCC internal prototype to avoid an error.
13536    Use char because int might match the return type of a GCC
13537    builtin and then its argument prototype would still apply.  */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 char sin ();
13542 int
13543 main ()
13544 {
13545 return sin ();
13546   ;
13547   return 0;
13548 }
13549 _ACEOF
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (ac_try="$ac_link"
13552 case "(($ac_try" in
13553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554   *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557   (eval "$ac_link") 2>conftest.er1
13558   ac_status=$?
13559   grep -v '^ *+' conftest.er1 >conftest.err
13560   rm -f conftest.er1
13561   cat conftest.err >&5
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } &&
13564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565   { (case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_try") 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; } &&
13574          { ac_try='test -s conftest$ac_exeext'
13575   { (case "(($ac_try" in
13576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577   *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580   (eval "$ac_try") 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584   ac_cv_lib_m_sin=yes
13585 else
13586   echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589         ac_cv_lib_m_sin=no
13590 fi
13591
13592 rm -f core conftest.err conftest.$ac_objext \
13593       conftest$ac_exeext conftest.$ac_ext
13594 LIBS=$ac_check_lib_save_LIBS
13595 fi
13596 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13597 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13598 if test $ac_cv_lib_m_sin = yes; then
13599   cat >>confdefs.h <<_ACEOF
13600 #define HAVE_LIBM 1
13601 _ACEOF
13602
13603   LIBS="-lm $LIBS"
13604
13605 fi
13606
13607 if test "$llvm_cv_os_type" = "MingW" ; then
13608
13609 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13610 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13611 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13612   echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614   ac_check_lib_save_LIBS=$LIBS
13615 LIBS="-limagehlp  $LIBS"
13616 cat >conftest.$ac_ext <<_ACEOF
13617 /* confdefs.h.  */
13618 _ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h.  */
13622
13623
13624 int
13625 main ()
13626 {
13627 return main ();
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (ac_try="$ac_link"
13634 case "(($ac_try" in
13635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636   *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639   (eval "$ac_link") 2>conftest.er1
13640   ac_status=$?
13641   grep -v '^ *+' conftest.er1 >conftest.err
13642   rm -f conftest.er1
13643   cat conftest.err >&5
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); } &&
13646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13647   { (case "(($ac_try" in
13648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649   *) ac_try_echo=$ac_try;;
13650 esac
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652   (eval "$ac_try") 2>&5
13653   ac_status=$?
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); }; } &&
13656          { ac_try='test -s conftest$ac_exeext'
13657   { (case "(($ac_try" in
13658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659   *) ac_try_echo=$ac_try;;
13660 esac
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662   (eval "$ac_try") 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; }; then
13666   ac_cv_lib_imagehlp_main=yes
13667 else
13668   echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671         ac_cv_lib_imagehlp_main=no
13672 fi
13673
13674 rm -f core conftest.err conftest.$ac_objext \
13675       conftest$ac_exeext conftest.$ac_ext
13676 LIBS=$ac_check_lib_save_LIBS
13677 fi
13678 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13679 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13680 if test $ac_cv_lib_imagehlp_main = yes; then
13681   cat >>confdefs.h <<_ACEOF
13682 #define HAVE_LIBIMAGEHLP 1
13683 _ACEOF
13684
13685   LIBS="-limagehlp $LIBS"
13686
13687 fi
13688
13689
13690 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13691 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13692 if test "${ac_cv_lib_psapi_main+set}" = set; then
13693   echo $ECHO_N "(cached) $ECHO_C" >&6
13694 else
13695   ac_check_lib_save_LIBS=$LIBS
13696 LIBS="-lpsapi  $LIBS"
13697 cat >conftest.$ac_ext <<_ACEOF
13698 /* confdefs.h.  */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h.  */
13703
13704
13705 int
13706 main ()
13707 {
13708 return main ();
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 rm -f conftest.$ac_objext conftest$ac_exeext
13714 if { (ac_try="$ac_link"
13715 case "(($ac_try" in
13716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717   *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720   (eval "$ac_link") 2>conftest.er1
13721   ac_status=$?
13722   grep -v '^ *+' conftest.er1 >conftest.err
13723   rm -f conftest.er1
13724   cat conftest.err >&5
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } &&
13727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13728   { (case "(($ac_try" in
13729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730   *) ac_try_echo=$ac_try;;
13731 esac
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733   (eval "$ac_try") 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }; } &&
13737          { ac_try='test -s conftest$ac_exeext'
13738   { (case "(($ac_try" in
13739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740   *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743   (eval "$ac_try") 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }; }; then
13747   ac_cv_lib_psapi_main=yes
13748 else
13749   echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13751
13752         ac_cv_lib_psapi_main=no
13753 fi
13754
13755 rm -f core conftest.err conftest.$ac_objext \
13756       conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13758 fi
13759 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13760 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13761 if test $ac_cv_lib_psapi_main = yes; then
13762   cat >>confdefs.h <<_ACEOF
13763 #define HAVE_LIBPSAPI 1
13764 _ACEOF
13765
13766   LIBS="-lpsapi $LIBS"
13767
13768 fi
13769
13770 fi
13771
13772 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13773 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13774 if test "${ac_cv_search_dlopen+set}" = set; then
13775   echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777   ac_func_search_save_LIBS=$LIBS
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h.  */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h.  */
13784
13785 /* Override any GCC internal prototype to avoid an error.
13786    Use char because int might match the return type of a GCC
13787    builtin and then its argument prototype would still apply.  */
13788 #ifdef __cplusplus
13789 extern "C"
13790 #endif
13791 char dlopen ();
13792 int
13793 main ()
13794 {
13795 return dlopen ();
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 for ac_lib in '' dl; do
13801   if test -z "$ac_lib"; then
13802     ac_res="none required"
13803   else
13804     ac_res=-l$ac_lib
13805     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13806   fi
13807   rm -f conftest.$ac_objext conftest$ac_exeext
13808 if { (ac_try="$ac_link"
13809 case "(($ac_try" in
13810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811   *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814   (eval "$ac_link") 2>conftest.er1
13815   ac_status=$?
13816   grep -v '^ *+' conftest.er1 >conftest.err
13817   rm -f conftest.er1
13818   cat conftest.err >&5
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); } &&
13821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13822   { (case "(($ac_try" in
13823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824   *) ac_try_echo=$ac_try;;
13825 esac
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827   (eval "$ac_try") 2>&5
13828   ac_status=$?
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); }; } &&
13831          { ac_try='test -s conftest$ac_exeext'
13832   { (case "(($ac_try" in
13833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834   *) ac_try_echo=$ac_try;;
13835 esac
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837   (eval "$ac_try") 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); }; }; then
13841   ac_cv_search_dlopen=$ac_res
13842 else
13843   echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846
13847 fi
13848
13849 rm -f core conftest.err conftest.$ac_objext \
13850       conftest$ac_exeext
13851   if test "${ac_cv_search_dlopen+set}" = set; then
13852   break
13853 fi
13854 done
13855 if test "${ac_cv_search_dlopen+set}" = set; then
13856   :
13857 else
13858   ac_cv_search_dlopen=no
13859 fi
13860 rm conftest.$ac_ext
13861 LIBS=$ac_func_search_save_LIBS
13862 fi
13863 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13864 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13865 ac_res=$ac_cv_search_dlopen
13866 if test "$ac_res" != no; then
13867   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13868
13869 cat >>confdefs.h <<\_ACEOF
13870 #define HAVE_DLOPEN 1
13871 _ACEOF
13872
13873 else
13874   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13875 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13876 fi
13877
13878
13879 if test "$llvm_cv_enable_libffi" = "yes" ; then
13880   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13881 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13882 if test "${ac_cv_search_ffi_call+set}" = set; then
13883   echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885   ac_func_search_save_LIBS=$LIBS
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h.  */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h.  */
13892
13893 /* Override any GCC internal prototype to avoid an error.
13894    Use char because int might match the return type of a GCC
13895    builtin and then its argument prototype would still apply.  */
13896 #ifdef __cplusplus
13897 extern "C"
13898 #endif
13899 char ffi_call ();
13900 int
13901 main ()
13902 {
13903 return ffi_call ();
13904   ;
13905   return 0;
13906 }
13907 _ACEOF
13908 for ac_lib in '' ffi; do
13909   if test -z "$ac_lib"; then
13910     ac_res="none required"
13911   else
13912     ac_res=-l$ac_lib
13913     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13914   fi
13915   rm -f conftest.$ac_objext conftest$ac_exeext
13916 if { (ac_try="$ac_link"
13917 case "(($ac_try" in
13918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919   *) ac_try_echo=$ac_try;;
13920 esac
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922   (eval "$ac_link") 2>conftest.er1
13923   ac_status=$?
13924   grep -v '^ *+' conftest.er1 >conftest.err
13925   rm -f conftest.er1
13926   cat conftest.err >&5
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); } &&
13929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13930   { (case "(($ac_try" in
13931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932   *) ac_try_echo=$ac_try;;
13933 esac
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935   (eval "$ac_try") 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); }; } &&
13939          { ac_try='test -s conftest$ac_exeext'
13940   { (case "(($ac_try" in
13941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942   *) ac_try_echo=$ac_try;;
13943 esac
13944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945   (eval "$ac_try") 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); }; }; then
13949   ac_cv_search_ffi_call=$ac_res
13950 else
13951   echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13953
13954
13955 fi
13956
13957 rm -f core conftest.err conftest.$ac_objext \
13958       conftest$ac_exeext
13959   if test "${ac_cv_search_ffi_call+set}" = set; then
13960   break
13961 fi
13962 done
13963 if test "${ac_cv_search_ffi_call+set}" = set; then
13964   :
13965 else
13966   ac_cv_search_ffi_call=no
13967 fi
13968 rm conftest.$ac_ext
13969 LIBS=$ac_func_search_save_LIBS
13970 fi
13971 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13972 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13973 ac_res=$ac_cv_search_ffi_call
13974 if test "$ac_res" != no; then
13975   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13976
13977 cat >>confdefs.h <<\_ACEOF
13978 #define HAVE_FFI_CALL 1
13979 _ACEOF
13980
13981 else
13982   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13983 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13984    { (exit 1); exit 1; }; }
13985 fi
13986
13987 fi
13988
13989 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13990 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13991 if test "${ac_cv_search_mallinfo+set}" = set; then
13992   echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994   ac_func_search_save_LIBS=$LIBS
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001
14002 /* Override any GCC internal prototype to avoid an error.
14003    Use char because int might match the return type of a GCC
14004    builtin and then its argument prototype would still apply.  */
14005 #ifdef __cplusplus
14006 extern "C"
14007 #endif
14008 char mallinfo ();
14009 int
14010 main ()
14011 {
14012 return mallinfo ();
14013   ;
14014   return 0;
14015 }
14016 _ACEOF
14017 for ac_lib in '' malloc; do
14018   if test -z "$ac_lib"; then
14019     ac_res="none required"
14020   else
14021     ac_res=-l$ac_lib
14022     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14023   fi
14024   rm -f conftest.$ac_objext conftest$ac_exeext
14025 if { (ac_try="$ac_link"
14026 case "(($ac_try" in
14027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028   *) ac_try_echo=$ac_try;;
14029 esac
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031   (eval "$ac_link") 2>conftest.er1
14032   ac_status=$?
14033   grep -v '^ *+' conftest.er1 >conftest.err
14034   rm -f conftest.er1
14035   cat conftest.err >&5
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); } &&
14038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14039   { (case "(($ac_try" in
14040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041   *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044   (eval "$ac_try") 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; } &&
14048          { ac_try='test -s conftest$ac_exeext'
14049   { (case "(($ac_try" in
14050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051   *) ac_try_echo=$ac_try;;
14052 esac
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054   (eval "$ac_try") 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); }; }; then
14058   ac_cv_search_mallinfo=$ac_res
14059 else
14060   echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063
14064 fi
14065
14066 rm -f core conftest.err conftest.$ac_objext \
14067       conftest$ac_exeext
14068   if test "${ac_cv_search_mallinfo+set}" = set; then
14069   break
14070 fi
14071 done
14072 if test "${ac_cv_search_mallinfo+set}" = set; then
14073   :
14074 else
14075   ac_cv_search_mallinfo=no
14076 fi
14077 rm conftest.$ac_ext
14078 LIBS=$ac_func_search_save_LIBS
14079 fi
14080 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14081 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14082 ac_res=$ac_cv_search_mallinfo
14083 if test "$ac_res" != no; then
14084   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14085
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_MALLINFO 1
14088 _ACEOF
14089
14090 fi
14091
14092
14093 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14094
14095 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14096 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14097 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14098   echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100   ac_check_lib_save_LIBS=$LIBS
14101 LIBS="-lpthread  $LIBS"
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108
14109 /* Override any GCC internal prototype to avoid an error.
14110    Use char because int might match the return type of a GCC
14111    builtin and then its argument prototype would still apply.  */
14112 #ifdef __cplusplus
14113 extern "C"
14114 #endif
14115 char pthread_mutex_init ();
14116 int
14117 main ()
14118 {
14119 return pthread_mutex_init ();
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131   (eval "$ac_link") 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139   { (case "(($ac_try" in
14140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141   *) ac_try_echo=$ac_try;;
14142 esac
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144   (eval "$ac_try") 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); }; } &&
14148          { ac_try='test -s conftest$ac_exeext'
14149   { (case "(($ac_try" in
14150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151   *) ac_try_echo=$ac_try;;
14152 esac
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154   (eval "$ac_try") 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; }; then
14158   ac_cv_lib_pthread_pthread_mutex_init=yes
14159 else
14160   echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163         ac_cv_lib_pthread_pthread_mutex_init=no
14164 fi
14165
14166 rm -f core conftest.err conftest.$ac_objext \
14167       conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14169 fi
14170 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14171 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14172 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14173   cat >>confdefs.h <<_ACEOF
14174 #define HAVE_LIBPTHREAD 1
14175 _ACEOF
14176
14177   LIBS="-lpthread $LIBS"
14178
14179 fi
14180
14181   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14182 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14183 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14184   echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186   ac_func_search_save_LIBS=$LIBS
14187 cat >conftest.$ac_ext <<_ACEOF
14188 /* confdefs.h.  */
14189 _ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h.  */
14193
14194 /* Override any GCC internal prototype to avoid an error.
14195    Use char because int might match the return type of a GCC
14196    builtin and then its argument prototype would still apply.  */
14197 #ifdef __cplusplus
14198 extern "C"
14199 #endif
14200 char pthread_mutex_lock ();
14201 int
14202 main ()
14203 {
14204 return pthread_mutex_lock ();
14205   ;
14206   return 0;
14207 }
14208 _ACEOF
14209 for ac_lib in '' pthread; do
14210   if test -z "$ac_lib"; then
14211     ac_res="none required"
14212   else
14213     ac_res=-l$ac_lib
14214     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14215   fi
14216   rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (ac_try="$ac_link"
14218 case "(($ac_try" in
14219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220   *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223   (eval "$ac_link") 2>conftest.er1
14224   ac_status=$?
14225   grep -v '^ *+' conftest.er1 >conftest.err
14226   rm -f conftest.er1
14227   cat conftest.err >&5
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); } &&
14230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14231   { (case "(($ac_try" in
14232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233   *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236   (eval "$ac_try") 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; } &&
14240          { ac_try='test -s conftest$ac_exeext'
14241   { (case "(($ac_try" in
14242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243   *) ac_try_echo=$ac_try;;
14244 esac
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246   (eval "$ac_try") 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); }; }; then
14250   ac_cv_search_pthread_mutex_lock=$ac_res
14251 else
14252   echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14254
14255
14256 fi
14257
14258 rm -f core conftest.err conftest.$ac_objext \
14259       conftest$ac_exeext
14260   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14261   break
14262 fi
14263 done
14264 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14265   :
14266 else
14267   ac_cv_search_pthread_mutex_lock=no
14268 fi
14269 rm conftest.$ac_ext
14270 LIBS=$ac_func_search_save_LIBS
14271 fi
14272 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14273 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14274 ac_res=$ac_cv_search_pthread_mutex_lock
14275 if test "$ac_res" != no; then
14276   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14277
14278 cat >>confdefs.h <<\_ACEOF
14279 #define HAVE_PTHREAD_MUTEX_LOCK 1
14280 _ACEOF
14281
14282 fi
14283
14284   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14285 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14286 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14287   echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289   ac_func_search_save_LIBS=$LIBS
14290 cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h.  */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h.  */
14296
14297 /* Override any GCC internal prototype to avoid an error.
14298    Use char because int might match the return type of a GCC
14299    builtin and then its argument prototype would still apply.  */
14300 #ifdef __cplusplus
14301 extern "C"
14302 #endif
14303 char pthread_rwlock_init ();
14304 int
14305 main ()
14306 {
14307 return pthread_rwlock_init ();
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 for ac_lib in '' pthread; do
14313   if test -z "$ac_lib"; then
14314     ac_res="none required"
14315   else
14316     ac_res=-l$ac_lib
14317     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14318   fi
14319   rm -f conftest.$ac_objext conftest$ac_exeext
14320 if { (ac_try="$ac_link"
14321 case "(($ac_try" in
14322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323   *) ac_try_echo=$ac_try;;
14324 esac
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326   (eval "$ac_link") 2>conftest.er1
14327   ac_status=$?
14328   grep -v '^ *+' conftest.er1 >conftest.err
14329   rm -f conftest.er1
14330   cat conftest.err >&5
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); } &&
14333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14334   { (case "(($ac_try" in
14335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336   *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339   (eval "$ac_try") 2>&5
14340   ac_status=$?
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); }; } &&
14343          { ac_try='test -s conftest$ac_exeext'
14344   { (case "(($ac_try" in
14345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346   *) ac_try_echo=$ac_try;;
14347 esac
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349   (eval "$ac_try") 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); }; }; then
14353   ac_cv_search_pthread_rwlock_init=$ac_res
14354 else
14355   echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14357
14358
14359 fi
14360
14361 rm -f core conftest.err conftest.$ac_objext \
14362       conftest$ac_exeext
14363   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14364   break
14365 fi
14366 done
14367 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14368   :
14369 else
14370   ac_cv_search_pthread_rwlock_init=no
14371 fi
14372 rm conftest.$ac_ext
14373 LIBS=$ac_func_search_save_LIBS
14374 fi
14375 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14376 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14377 ac_res=$ac_cv_search_pthread_rwlock_init
14378 if test "$ac_res" != no; then
14379   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14380
14381 cat >>confdefs.h <<\_ACEOF
14382 #define HAVE_PTHREAD_RWLOCK_INIT 1
14383 _ACEOF
14384
14385 fi
14386
14387   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14388 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14389 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14390   echo $ECHO_N "(cached) $ECHO_C" >&6
14391 else
14392   ac_func_search_save_LIBS=$LIBS
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h.  */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h.  */
14399
14400 /* Override any GCC internal prototype to avoid an error.
14401    Use char because int might match the return type of a GCC
14402    builtin and then its argument prototype would still apply.  */
14403 #ifdef __cplusplus
14404 extern "C"
14405 #endif
14406 char pthread_getspecific ();
14407 int
14408 main ()
14409 {
14410 return pthread_getspecific ();
14411   ;
14412   return 0;
14413 }
14414 _ACEOF
14415 for ac_lib in '' pthread; do
14416   if test -z "$ac_lib"; then
14417     ac_res="none required"
14418   else
14419     ac_res=-l$ac_lib
14420     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14421   fi
14422   rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (ac_try="$ac_link"
14424 case "(($ac_try" in
14425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426   *) ac_try_echo=$ac_try;;
14427 esac
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429   (eval "$ac_link") 2>conftest.er1
14430   ac_status=$?
14431   grep -v '^ *+' conftest.er1 >conftest.err
14432   rm -f conftest.er1
14433   cat conftest.err >&5
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); } &&
14436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14437   { (case "(($ac_try" in
14438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439   *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442   (eval "$ac_try") 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; } &&
14446          { ac_try='test -s conftest$ac_exeext'
14447   { (case "(($ac_try" in
14448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449   *) ac_try_echo=$ac_try;;
14450 esac
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452   (eval "$ac_try") 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; }; then
14456   ac_cv_search_pthread_getspecific=$ac_res
14457 else
14458   echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14460
14461
14462 fi
14463
14464 rm -f core conftest.err conftest.$ac_objext \
14465       conftest$ac_exeext
14466   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14467   break
14468 fi
14469 done
14470 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14471   :
14472 else
14473   ac_cv_search_pthread_getspecific=no
14474 fi
14475 rm conftest.$ac_ext
14476 LIBS=$ac_func_search_save_LIBS
14477 fi
14478 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14479 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14480 ac_res=$ac_cv_search_pthread_getspecific
14481 if test "$ac_res" != no; then
14482   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14483
14484 cat >>confdefs.h <<\_ACEOF
14485 #define HAVE_PTHREAD_GETSPECIFIC 1
14486 _ACEOF
14487
14488 fi
14489
14490 fi
14491
14492
14493 # Check whether --with-udis86 was given.
14494 if test "${with_udis86+set}" = set; then
14495   withval=$with_udis86;
14496       USE_UDIS86=1
14497
14498       case "$withval" in
14499         /usr/lib|yes) ;;
14500         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14501       esac
14502
14503 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14504 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14505 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   ac_check_lib_save_LIBS=$LIBS
14509 LIBS="-ludis86  $LIBS"
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h.  */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h.  */
14516
14517 /* Override any GCC internal prototype to avoid an error.
14518    Use char because int might match the return type of a GCC
14519    builtin and then its argument prototype would still apply.  */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 char ud_init ();
14524 int
14525 main ()
14526 {
14527 return ud_init ();
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536   *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539   (eval "$ac_link") 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } &&
14546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547   { (case "(($ac_try" in
14548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549   *) ac_try_echo=$ac_try;;
14550 esac
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552   (eval "$ac_try") 2>&5
14553   ac_status=$?
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); }; } &&
14556          { ac_try='test -s conftest$ac_exeext'
14557   { (case "(($ac_try" in
14558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559   *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562   (eval "$ac_try") 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   ac_cv_lib_udis86_ud_init=yes
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571         ac_cv_lib_udis86_ud_init=no
14572 fi
14573
14574 rm -f core conftest.err conftest.$ac_objext \
14575       conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14577 fi
14578 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14579 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14580 if test $ac_cv_lib_udis86_ud_init = yes; then
14581   cat >>confdefs.h <<_ACEOF
14582 #define HAVE_LIBUDIS86 1
14583 _ACEOF
14584
14585   LIBS="-ludis86 $LIBS"
14586
14587 else
14588
14589         echo "Error! You need to have libudis86 around."
14590         exit -1
14591
14592 fi
14593
14594
14595 else
14596   USE_UDIS86=0
14597
14598 fi
14599
14600
14601 cat >>confdefs.h <<_ACEOF
14602 #define USE_UDIS86 $USE_UDIS86
14603 _ACEOF
14604
14605
14606
14607 # Check whether --with-oprofile was given.
14608 if test "${with_oprofile+set}" = set; then
14609   withval=$with_oprofile;
14610       USE_OPROFILE=1
14611
14612       case "$withval" in
14613         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14614         no) llvm_cv_oppath=
14615             USE_OPROFILE=0
14616  ;;
14617         *) llvm_cv_oppath="${withval}/lib/oprofile"
14618            CPPFLAGS="-I${withval}/include";;
14619       esac
14620       if test -n "$llvm_cv_oppath" ; then
14621         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14622                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14623 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14624 if test "${ac_cv_search_bfd_init+set}" = set; then
14625   echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14627   ac_func_search_save_LIBS=$LIBS
14628 cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634
14635 /* Override any GCC internal prototype to avoid an error.
14636    Use char because int might match the return type of a GCC
14637    builtin and then its argument prototype would still apply.  */
14638 #ifdef __cplusplus
14639 extern "C"
14640 #endif
14641 char bfd_init ();
14642 int
14643 main ()
14644 {
14645 return bfd_init ();
14646   ;
14647   return 0;
14648 }
14649 _ACEOF
14650 for ac_lib in '' bfd; do
14651   if test -z "$ac_lib"; then
14652     ac_res="none required"
14653   else
14654     ac_res=-l$ac_lib
14655     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14656   fi
14657   rm -f conftest.$ac_objext conftest$ac_exeext
14658 if { (ac_try="$ac_link"
14659 case "(($ac_try" in
14660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661   *) ac_try_echo=$ac_try;;
14662 esac
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664   (eval "$ac_link") 2>conftest.er1
14665   ac_status=$?
14666   grep -v '^ *+' conftest.er1 >conftest.err
14667   rm -f conftest.er1
14668   cat conftest.err >&5
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); } &&
14671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14672   { (case "(($ac_try" in
14673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674   *) ac_try_echo=$ac_try;;
14675 esac
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677   (eval "$ac_try") 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; } &&
14681          { ac_try='test -s conftest$ac_exeext'
14682   { (case "(($ac_try" in
14683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684   *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687   (eval "$ac_try") 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; }; then
14691   ac_cv_search_bfd_init=$ac_res
14692 else
14693   echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14695
14696
14697 fi
14698
14699 rm -f core conftest.err conftest.$ac_objext \
14700       conftest$ac_exeext
14701   if test "${ac_cv_search_bfd_init+set}" = set; then
14702   break
14703 fi
14704 done
14705 if test "${ac_cv_search_bfd_init+set}" = set; then
14706   :
14707 else
14708   ac_cv_search_bfd_init=no
14709 fi
14710 rm conftest.$ac_ext
14711 LIBS=$ac_func_search_save_LIBS
14712 fi
14713 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14714 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14715 ac_res=$ac_cv_search_bfd_init
14716 if test "$ac_res" != no; then
14717   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14718
14719 fi
14720
14721         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14722 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14723 if test "${ac_cv_search_op_open_agent+set}" = set; then
14724   echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726   ac_func_search_save_LIBS=$LIBS
14727 cat >conftest.$ac_ext <<_ACEOF
14728 /* confdefs.h.  */
14729 _ACEOF
14730 cat confdefs.h >>conftest.$ac_ext
14731 cat >>conftest.$ac_ext <<_ACEOF
14732 /* end confdefs.h.  */
14733
14734 /* Override any GCC internal prototype to avoid an error.
14735    Use char because int might match the return type of a GCC
14736    builtin and then its argument prototype would still apply.  */
14737 #ifdef __cplusplus
14738 extern "C"
14739 #endif
14740 char op_open_agent ();
14741 int
14742 main ()
14743 {
14744 return op_open_agent ();
14745   ;
14746   return 0;
14747 }
14748 _ACEOF
14749 for ac_lib in '' opagent; do
14750   if test -z "$ac_lib"; then
14751     ac_res="none required"
14752   else
14753     ac_res=-l$ac_lib
14754     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14755   fi
14756   rm -f conftest.$ac_objext conftest$ac_exeext
14757 if { (ac_try="$ac_link"
14758 case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763   (eval "$ac_link") 2>conftest.er1
14764   ac_status=$?
14765   grep -v '^ *+' conftest.er1 >conftest.err
14766   rm -f conftest.er1
14767   cat conftest.err >&5
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); } &&
14770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14771   { (case "(($ac_try" in
14772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773   *) ac_try_echo=$ac_try;;
14774 esac
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776   (eval "$ac_try") 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; } &&
14780          { ac_try='test -s conftest$ac_exeext'
14781   { (case "(($ac_try" in
14782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783   *) ac_try_echo=$ac_try;;
14784 esac
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786   (eval "$ac_try") 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; }; then
14790   ac_cv_search_op_open_agent=$ac_res
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795
14796 fi
14797
14798 rm -f core conftest.err conftest.$ac_objext \
14799       conftest$ac_exeext
14800   if test "${ac_cv_search_op_open_agent+set}" = set; then
14801   break
14802 fi
14803 done
14804 if test "${ac_cv_search_op_open_agent+set}" = set; then
14805   :
14806 else
14807   ac_cv_search_op_open_agent=no
14808 fi
14809 rm conftest.$ac_ext
14810 LIBS=$ac_func_search_save_LIBS
14811 fi
14812 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14813 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14814 ac_res=$ac_cv_search_op_open_agent
14815 if test "$ac_res" != no; then
14816   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14817
14818 else
14819
14820           echo "Error! You need to have libopagent around."
14821           exit -1
14822
14823 fi
14824
14825         if test "${ac_cv_header_opagent_h+set}" = set; then
14826   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14827 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14828 if test "${ac_cv_header_opagent_h+set}" = set; then
14829   echo $ECHO_N "(cached) $ECHO_C" >&6
14830 fi
14831 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14832 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14833 else
14834   # Is the header compilable?
14835 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14836 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14837 cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843 $ac_includes_default
14844 #include <opagent.h>
14845 _ACEOF
14846 rm -f conftest.$ac_objext
14847 if { (ac_try="$ac_compile"
14848 case "(($ac_try" in
14849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850   *) ac_try_echo=$ac_try;;
14851 esac
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853   (eval "$ac_compile") 2>conftest.er1
14854   ac_status=$?
14855   grep -v '^ *+' conftest.er1 >conftest.err
14856   rm -f conftest.er1
14857   cat conftest.err >&5
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); } &&
14860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14861   { (case "(($ac_try" in
14862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863   *) ac_try_echo=$ac_try;;
14864 esac
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866   (eval "$ac_try") 2>&5
14867   ac_status=$?
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); }; } &&
14870          { ac_try='test -s conftest.$ac_objext'
14871   { (case "(($ac_try" in
14872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873   *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876   (eval "$ac_try") 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); }; }; then
14880   ac_header_compiler=yes
14881 else
14882   echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885         ac_header_compiler=no
14886 fi
14887
14888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14890 echo "${ECHO_T}$ac_header_compiler" >&6; }
14891
14892 # Is the header present?
14893 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14894 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h.  */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h.  */
14901 #include <opagent.h>
14902 _ACEOF
14903 if { (ac_try="$ac_cpp conftest.$ac_ext"
14904 case "(($ac_try" in
14905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906   *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14910   ac_status=$?
14911   grep -v '^ *+' conftest.er1 >conftest.err
14912   rm -f conftest.er1
14913   cat conftest.err >&5
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); } >/dev/null; then
14916   if test -s conftest.err; then
14917     ac_cpp_err=$ac_c_preproc_warn_flag
14918     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14919   else
14920     ac_cpp_err=
14921   fi
14922 else
14923   ac_cpp_err=yes
14924 fi
14925 if test -z "$ac_cpp_err"; then
14926   ac_header_preproc=yes
14927 else
14928   echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14930
14931   ac_header_preproc=no
14932 fi
14933
14934 rm -f conftest.err conftest.$ac_ext
14935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14936 echo "${ECHO_T}$ac_header_preproc" >&6; }
14937
14938 # So?  What about this header?
14939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14940   yes:no: )
14941     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14942 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14943     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14944 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14945     ac_header_preproc=yes
14946     ;;
14947   no:yes:* )
14948     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14949 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14950     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14951 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14953 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14954     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14955 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14956     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14957 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14958     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14959 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14960     ( cat <<\_ASBOX
14961 ## ----------------------------------- ##
14962 ## Report this to llvmbugs@cs.uiuc.edu ##
14963 ## ----------------------------------- ##
14964 _ASBOX
14965      ) | sed "s/^/$as_me: WARNING:     /" >&2
14966     ;;
14967 esac
14968 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14969 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14970 if test "${ac_cv_header_opagent_h+set}" = set; then
14971   echo $ECHO_N "(cached) $ECHO_C" >&6
14972 else
14973   ac_cv_header_opagent_h=$ac_header_preproc
14974 fi
14975 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14976 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14977
14978 fi
14979 if test $ac_cv_header_opagent_h = yes; then
14980   :
14981 else
14982
14983           echo "Error! You need to have opagent.h around."
14984           exit -1
14985
14986 fi
14987
14988
14989       fi
14990
14991 else
14992
14993       USE_OPROFILE=0
14994
14995
14996 fi
14997
14998
14999 cat >>confdefs.h <<_ACEOF
15000 #define USE_OPROFILE $USE_OPROFILE
15001 _ACEOF
15002
15003
15004
15005
15006
15007
15008
15009
15010 ac_header_dirent=no
15011 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15012   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15013 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15014 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018   cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 #include <sys/types.h>
15025 #include <$ac_hdr>
15026
15027 int
15028 main ()
15029 {
15030 if ((DIR *) 0)
15031 return 0;
15032   ;
15033   return 0;
15034 }
15035 _ACEOF
15036 rm -f conftest.$ac_objext
15037 if { (ac_try="$ac_compile"
15038 case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043   (eval "$ac_compile") 2>conftest.er1
15044   ac_status=$?
15045   grep -v '^ *+' conftest.er1 >conftest.err
15046   rm -f conftest.er1
15047   cat conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } &&
15050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15051   { (case "(($ac_try" in
15052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053   *) ac_try_echo=$ac_try;;
15054 esac
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056   (eval "$ac_try") 2>&5
15057   ac_status=$?
15058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059   (exit $ac_status); }; } &&
15060          { ac_try='test -s conftest.$ac_objext'
15061   { (case "(($ac_try" in
15062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063   *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066   (eval "$ac_try") 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); }; }; then
15070   eval "$as_ac_Header=yes"
15071 else
15072   echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15074
15075         eval "$as_ac_Header=no"
15076 fi
15077
15078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079 fi
15080 ac_res=`eval echo '${'$as_ac_Header'}'`
15081                { echo "$as_me:$LINENO: result: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15084   cat >>confdefs.h <<_ACEOF
15085 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15086 _ACEOF
15087
15088 ac_header_dirent=$ac_hdr; break
15089 fi
15090
15091 done
15092 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15093 if test $ac_header_dirent = dirent.h; then
15094   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15095 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15096 if test "${ac_cv_search_opendir+set}" = set; then
15097   echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099   ac_func_search_save_LIBS=$LIBS
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h.  */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h.  */
15106
15107 /* Override any GCC internal prototype to avoid an error.
15108    Use char because int might match the return type of a GCC
15109    builtin and then its argument prototype would still apply.  */
15110 #ifdef __cplusplus
15111 extern "C"
15112 #endif
15113 char opendir ();
15114 int
15115 main ()
15116 {
15117 return opendir ();
15118   ;
15119   return 0;
15120 }
15121 _ACEOF
15122 for ac_lib in '' dir; do
15123   if test -z "$ac_lib"; then
15124     ac_res="none required"
15125   else
15126     ac_res=-l$ac_lib
15127     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15128   fi
15129   rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (ac_try="$ac_link"
15131 case "(($ac_try" in
15132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133   *) ac_try_echo=$ac_try;;
15134 esac
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136   (eval "$ac_link") 2>conftest.er1
15137   ac_status=$?
15138   grep -v '^ *+' conftest.er1 >conftest.err
15139   rm -f conftest.er1
15140   cat conftest.err >&5
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); } &&
15143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15144   { (case "(($ac_try" in
15145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146   *) ac_try_echo=$ac_try;;
15147 esac
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149   (eval "$ac_try") 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); }; } &&
15153          { ac_try='test -s conftest$ac_exeext'
15154   { (case "(($ac_try" in
15155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156   *) ac_try_echo=$ac_try;;
15157 esac
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159   (eval "$ac_try") 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); }; }; then
15163   ac_cv_search_opendir=$ac_res
15164 else
15165   echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15167
15168
15169 fi
15170
15171 rm -f core conftest.err conftest.$ac_objext \
15172       conftest$ac_exeext
15173   if test "${ac_cv_search_opendir+set}" = set; then
15174   break
15175 fi
15176 done
15177 if test "${ac_cv_search_opendir+set}" = set; then
15178   :
15179 else
15180   ac_cv_search_opendir=no
15181 fi
15182 rm conftest.$ac_ext
15183 LIBS=$ac_func_search_save_LIBS
15184 fi
15185 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15186 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15187 ac_res=$ac_cv_search_opendir
15188 if test "$ac_res" != no; then
15189   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15190
15191 fi
15192
15193 else
15194   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15195 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15196 if test "${ac_cv_search_opendir+set}" = set; then
15197   echo $ECHO_N "(cached) $ECHO_C" >&6
15198 else
15199   ac_func_search_save_LIBS=$LIBS
15200 cat >conftest.$ac_ext <<_ACEOF
15201 /* confdefs.h.  */
15202 _ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h.  */
15206
15207 /* Override any GCC internal prototype to avoid an error.
15208    Use char because int might match the return type of a GCC
15209    builtin and then its argument prototype would still apply.  */
15210 #ifdef __cplusplus
15211 extern "C"
15212 #endif
15213 char opendir ();
15214 int
15215 main ()
15216 {
15217 return opendir ();
15218   ;
15219   return 0;
15220 }
15221 _ACEOF
15222 for ac_lib in '' x; do
15223   if test -z "$ac_lib"; then
15224     ac_res="none required"
15225   else
15226     ac_res=-l$ac_lib
15227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15228   fi
15229   rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (ac_try="$ac_link"
15231 case "(($ac_try" in
15232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233   *) ac_try_echo=$ac_try;;
15234 esac
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236   (eval "$ac_link") 2>conftest.er1
15237   ac_status=$?
15238   grep -v '^ *+' conftest.er1 >conftest.err
15239   rm -f conftest.er1
15240   cat conftest.err >&5
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); } &&
15243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244   { (case "(($ac_try" in
15245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246   *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249   (eval "$ac_try") 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; } &&
15253          { ac_try='test -s conftest$ac_exeext'
15254   { (case "(($ac_try" in
15255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256   *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259   (eval "$ac_try") 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   ac_cv_search_opendir=$ac_res
15264 else
15265   echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15267
15268
15269 fi
15270
15271 rm -f core conftest.err conftest.$ac_objext \
15272       conftest$ac_exeext
15273   if test "${ac_cv_search_opendir+set}" = set; then
15274   break
15275 fi
15276 done
15277 if test "${ac_cv_search_opendir+set}" = set; then
15278   :
15279 else
15280   ac_cv_search_opendir=no
15281 fi
15282 rm conftest.$ac_ext
15283 LIBS=$ac_func_search_save_LIBS
15284 fi
15285 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15286 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15287 ac_res=$ac_cv_search_opendir
15288 if test "$ac_res" != no; then
15289   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15290
15291 fi
15292
15293 fi
15294
15295 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15296 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15297 if test "${ac_cv_header_mmap_anon+set}" = set; then
15298   echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300    ac_ext=c
15301 ac_cpp='$CPP $CPPFLAGS'
15302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15305
15306   cat >conftest.$ac_ext <<_ACEOF
15307 /* confdefs.h.  */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h.  */
15312 #include <sys/mman.h>
15313 #include <unistd.h>
15314 #include <fcntl.h>
15315 int
15316 main ()
15317 {
15318 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15319   ;
15320   return 0;
15321 }
15322 _ACEOF
15323 rm -f conftest.$ac_objext
15324 if { (ac_try="$ac_compile"
15325 case "(($ac_try" in
15326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327   *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330   (eval "$ac_compile") 2>conftest.er1
15331   ac_status=$?
15332   grep -v '^ *+' conftest.er1 >conftest.err
15333   rm -f conftest.er1
15334   cat conftest.err >&5
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); } &&
15337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338   { (case "(($ac_try" in
15339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340   *) ac_try_echo=$ac_try;;
15341 esac
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343   (eval "$ac_try") 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; } &&
15347          { ac_try='test -s conftest.$ac_objext'
15348   { (case "(($ac_try" in
15349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350   *) ac_try_echo=$ac_try;;
15351 esac
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353   (eval "$ac_try") 2>&5
15354   ac_status=$?
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); }; }; then
15357   ac_cv_header_mmap_anon=yes
15358 else
15359   echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15361
15362         ac_cv_header_mmap_anon=no
15363 fi
15364
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366   ac_ext=c
15367 ac_cpp='$CPP $CPPFLAGS'
15368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15371
15372
15373 fi
15374 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15375 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15376 if test "$ac_cv_header_mmap_anon" = yes; then
15377
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_MMAP_ANONYMOUS 1
15380 _ACEOF
15381
15382 fi
15383
15384 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15385 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15386 if test "${ac_cv_header_stat_broken+set}" = set; then
15387   echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389   cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h.  */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h.  */
15395 #include <sys/types.h>
15396 #include <sys/stat.h>
15397
15398 #if defined S_ISBLK && defined S_IFDIR
15399 # if S_ISBLK (S_IFDIR)
15400 You lose.
15401 # endif
15402 #endif
15403
15404 #if defined S_ISBLK && defined S_IFCHR
15405 # if S_ISBLK (S_IFCHR)
15406 You lose.
15407 # endif
15408 #endif
15409
15410 #if defined S_ISLNK && defined S_IFREG
15411 # if S_ISLNK (S_IFREG)
15412 You lose.
15413 # endif
15414 #endif
15415
15416 #if defined S_ISSOCK && defined S_IFREG
15417 # if S_ISSOCK (S_IFREG)
15418 You lose.
15419 # endif
15420 #endif
15421
15422 _ACEOF
15423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15424   $EGREP "You lose" >/dev/null 2>&1; then
15425   ac_cv_header_stat_broken=yes
15426 else
15427   ac_cv_header_stat_broken=no
15428 fi
15429 rm -f conftest*
15430
15431 fi
15432 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15433 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15434 if test $ac_cv_header_stat_broken = yes; then
15435
15436 cat >>confdefs.h <<\_ACEOF
15437 #define STAT_MACROS_BROKEN 1
15438 _ACEOF
15439
15440 fi
15441
15442 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15443 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15444 if test "${ac_cv_header_stdc+set}" = set; then
15445   echo $ECHO_N "(cached) $ECHO_C" >&6
15446 else
15447   cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h.  */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h.  */
15453 #include <stdlib.h>
15454 #include <stdarg.h>
15455 #include <string.h>
15456 #include <float.h>
15457
15458 int
15459 main ()
15460 {
15461
15462   ;
15463   return 0;
15464 }
15465 _ACEOF
15466 rm -f conftest.$ac_objext
15467 if { (ac_try="$ac_compile"
15468 case "(($ac_try" in
15469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470   *) ac_try_echo=$ac_try;;
15471 esac
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473   (eval "$ac_compile") 2>conftest.er1
15474   ac_status=$?
15475   grep -v '^ *+' conftest.er1 >conftest.err
15476   rm -f conftest.er1
15477   cat conftest.err >&5
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); } &&
15480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15481   { (case "(($ac_try" in
15482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483   *) ac_try_echo=$ac_try;;
15484 esac
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486   (eval "$ac_try") 2>&5
15487   ac_status=$?
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); }; } &&
15490          { ac_try='test -s conftest.$ac_objext'
15491   { (case "(($ac_try" in
15492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493   *) ac_try_echo=$ac_try;;
15494 esac
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496   (eval "$ac_try") 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; }; then
15500   ac_cv_header_stdc=yes
15501 else
15502   echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505         ac_cv_header_stdc=no
15506 fi
15507
15508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509
15510 if test $ac_cv_header_stdc = yes; then
15511   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15512   cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h.  */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h.  */
15518 #include <string.h>
15519
15520 _ACEOF
15521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15522   $EGREP "memchr" >/dev/null 2>&1; then
15523   :
15524 else
15525   ac_cv_header_stdc=no
15526 fi
15527 rm -f conftest*
15528
15529 fi
15530
15531 if test $ac_cv_header_stdc = yes; then
15532   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15533   cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h.  */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h.  */
15539 #include <stdlib.h>
15540
15541 _ACEOF
15542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15543   $EGREP "free" >/dev/null 2>&1; then
15544   :
15545 else
15546   ac_cv_header_stdc=no
15547 fi
15548 rm -f conftest*
15549
15550 fi
15551
15552 if test $ac_cv_header_stdc = yes; then
15553   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15554   if test "$cross_compiling" = yes; then
15555   :
15556 else
15557   cat >conftest.$ac_ext <<_ACEOF
15558 /* confdefs.h.  */
15559 _ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h.  */
15563 #include <ctype.h>
15564 #include <stdlib.h>
15565 #if ((' ' & 0x0FF) == 0x020)
15566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15568 #else
15569 # define ISLOWER(c) \
15570                    (('a' <= (c) && (c) <= 'i') \
15571                      || ('j' <= (c) && (c) <= 'r') \
15572                      || ('s' <= (c) && (c) <= 'z'))
15573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15574 #endif
15575
15576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15577 int
15578 main ()
15579 {
15580   int i;
15581   for (i = 0; i < 256; i++)
15582     if (XOR (islower (i), ISLOWER (i))
15583         || toupper (i) != TOUPPER (i))
15584       return 2;
15585   return 0;
15586 }
15587 _ACEOF
15588 rm -f conftest$ac_exeext
15589 if { (ac_try="$ac_link"
15590 case "(($ac_try" in
15591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592   *) ac_try_echo=$ac_try;;
15593 esac
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595   (eval "$ac_link") 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15599   { (case "(($ac_try" in
15600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601   *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604   (eval "$ac_try") 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; }; then
15608   :
15609 else
15610   echo "$as_me: program exited with status $ac_status" >&5
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15613
15614 ( exit $ac_status )
15615 ac_cv_header_stdc=no
15616 fi
15617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15618 fi
15619
15620
15621 fi
15622 fi
15623 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15624 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15625 if test $ac_cv_header_stdc = yes; then
15626
15627 cat >>confdefs.h <<\_ACEOF
15628 #define STDC_HEADERS 1
15629 _ACEOF
15630
15631 fi
15632
15633 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15634 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15635 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15636   echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638   cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 #include <sys/types.h>
15645 #include <sys/wait.h>
15646 #ifndef WEXITSTATUS
15647 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15648 #endif
15649 #ifndef WIFEXITED
15650 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15651 #endif
15652
15653 int
15654 main ()
15655 {
15656   int s;
15657   wait (&s);
15658   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15659   ;
15660   return 0;
15661 }
15662 _ACEOF
15663 rm -f conftest.$ac_objext
15664 if { (ac_try="$ac_compile"
15665 case "(($ac_try" in
15666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667   *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670   (eval "$ac_compile") 2>conftest.er1
15671   ac_status=$?
15672   grep -v '^ *+' conftest.er1 >conftest.err
15673   rm -f conftest.er1
15674   cat conftest.err >&5
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } &&
15677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15678   { (case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683   (eval "$ac_try") 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; } &&
15687          { ac_try='test -s conftest.$ac_objext'
15688   { (case "(($ac_try" in
15689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690   *) ac_try_echo=$ac_try;;
15691 esac
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693   (eval "$ac_try") 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); }; }; then
15697   ac_cv_header_sys_wait_h=yes
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702         ac_cv_header_sys_wait_h=no
15703 fi
15704
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 fi
15707 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15708 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15709 if test $ac_cv_header_sys_wait_h = yes; then
15710
15711 cat >>confdefs.h <<\_ACEOF
15712 #define HAVE_SYS_WAIT_H 1
15713 _ACEOF
15714
15715 fi
15716
15717 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15718 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15719 if test "${ac_cv_header_time+set}" = set; then
15720   echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722   cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728 #include <sys/types.h>
15729 #include <sys/time.h>
15730 #include <time.h>
15731
15732 int
15733 main ()
15734 {
15735 if ((struct tm *) 0)
15736 return 0;
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 rm -f conftest.$ac_objext
15742 if { (ac_try="$ac_compile"
15743 case "(($ac_try" in
15744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745   *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748   (eval "$ac_compile") 2>conftest.er1
15749   ac_status=$?
15750   grep -v '^ *+' conftest.er1 >conftest.err
15751   rm -f conftest.er1
15752   cat conftest.err >&5
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); } &&
15755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15756   { (case "(($ac_try" in
15757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758   *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761   (eval "$ac_try") 2>&5
15762   ac_status=$?
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; } &&
15765          { ac_try='test -s conftest.$ac_objext'
15766   { (case "(($ac_try" in
15767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768   *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771   (eval "$ac_try") 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); }; }; then
15775   ac_cv_header_time=yes
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780         ac_cv_header_time=no
15781 fi
15782
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15784 fi
15785 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15786 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15787 if test $ac_cv_header_time = yes; then
15788
15789 cat >>confdefs.h <<\_ACEOF
15790 #define TIME_WITH_SYS_TIME 1
15791 _ACEOF
15792
15793 fi
15794
15795
15796
15797
15798
15799
15800
15801
15802 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15803 do
15804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15806   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15809   echo $ECHO_N "(cached) $ECHO_C" >&6
15810 fi
15811 ac_res=`eval echo '${'$as_ac_Header'}'`
15812                { echo "$as_me:$LINENO: result: $ac_res" >&5
15813 echo "${ECHO_T}$ac_res" >&6; }
15814 else
15815   # Is the header compilable?
15816 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h.  */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h.  */
15824 $ac_includes_default
15825 #include <$ac_header>
15826 _ACEOF
15827 rm -f conftest.$ac_objext
15828 if { (ac_try="$ac_compile"
15829 case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_compile") 2>conftest.er1
15835   ac_status=$?
15836   grep -v '^ *+' conftest.er1 >conftest.err
15837   rm -f conftest.er1
15838   cat conftest.err >&5
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); } &&
15841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15842   { (case "(($ac_try" in
15843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844   *) ac_try_echo=$ac_try;;
15845 esac
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847   (eval "$ac_try") 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; } &&
15851          { ac_try='test -s conftest.$ac_objext'
15852   { (case "(($ac_try" in
15853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854   *) ac_try_echo=$ac_try;;
15855 esac
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857   (eval "$ac_try") 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }; }; then
15861   ac_header_compiler=yes
15862 else
15863   echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15865
15866         ac_header_compiler=no
15867 fi
15868
15869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15871 echo "${ECHO_T}$ac_header_compiler" >&6; }
15872
15873 # Is the header present?
15874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882 #include <$ac_header>
15883 _ACEOF
15884 if { (ac_try="$ac_cpp conftest.$ac_ext"
15885 case "(($ac_try" in
15886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887   *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15891   ac_status=$?
15892   grep -v '^ *+' conftest.er1 >conftest.err
15893   rm -f conftest.er1
15894   cat conftest.err >&5
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } >/dev/null; then
15897   if test -s conftest.err; then
15898     ac_cpp_err=$ac_c_preproc_warn_flag
15899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15900   else
15901     ac_cpp_err=
15902   fi
15903 else
15904   ac_cpp_err=yes
15905 fi
15906 if test -z "$ac_cpp_err"; then
15907   ac_header_preproc=yes
15908 else
15909   echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15911
15912   ac_header_preproc=no
15913 fi
15914
15915 rm -f conftest.err conftest.$ac_ext
15916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15917 echo "${ECHO_T}$ac_header_preproc" >&6; }
15918
15919 # So?  What about this header?
15920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15921   yes:no: )
15922     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15926     ac_header_preproc=yes
15927     ;;
15928   no:yes:* )
15929     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15931     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15932 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15933     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15935     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15936 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15939     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15941     ( cat <<\_ASBOX
15942 ## ----------------------------------- ##
15943 ## Report this to llvmbugs@cs.uiuc.edu ##
15944 ## ----------------------------------- ##
15945 _ASBOX
15946      ) | sed "s/^/$as_me: WARNING:     /" >&2
15947     ;;
15948 esac
15949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15952   echo $ECHO_N "(cached) $ECHO_C" >&6
15953 else
15954   eval "$as_ac_Header=\$ac_header_preproc"
15955 fi
15956 ac_res=`eval echo '${'$as_ac_Header'}'`
15957                { echo "$as_me:$LINENO: result: $ac_res" >&5
15958 echo "${ECHO_T}$ac_res" >&6; }
15959
15960 fi
15961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15962   cat >>confdefs.h <<_ACEOF
15963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15964 _ACEOF
15965
15966 fi
15967
15968 done
15969
15970
15971
15972
15973
15974
15975
15976 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15977 do
15978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983   echo $ECHO_N "(cached) $ECHO_C" >&6
15984 fi
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986                { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15988 else
15989   # Is the header compilable?
15990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h.  */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h.  */
15998 $ac_includes_default
15999 #include <$ac_header>
16000 _ACEOF
16001 rm -f conftest.$ac_objext
16002 if { (ac_try="$ac_compile"
16003 case "(($ac_try" in
16004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005   *) ac_try_echo=$ac_try;;
16006 esac
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008   (eval "$ac_compile") 2>conftest.er1
16009   ac_status=$?
16010   grep -v '^ *+' conftest.er1 >conftest.err
16011   rm -f conftest.er1
16012   cat conftest.err >&5
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); } &&
16015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016   { (case "(($ac_try" in
16017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018   *) ac_try_echo=$ac_try;;
16019 esac
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021   (eval "$ac_try") 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; } &&
16025          { ac_try='test -s conftest.$ac_objext'
16026   { (case "(($ac_try" in
16027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028   *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031   (eval "$ac_try") 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); }; }; then
16035   ac_header_compiler=yes
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040         ac_header_compiler=no
16041 fi
16042
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 echo "${ECHO_T}$ac_header_compiler" >&6; }
16046
16047 # Is the header present?
16048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056 #include <$ac_header>
16057 _ACEOF
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061   *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16065   ac_status=$?
16066   grep -v '^ *+' conftest.er1 >conftest.err
16067   rm -f conftest.er1
16068   cat conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } >/dev/null; then
16071   if test -s conftest.err; then
16072     ac_cpp_err=$ac_c_preproc_warn_flag
16073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16074   else
16075     ac_cpp_err=
16076   fi
16077 else
16078   ac_cpp_err=yes
16079 fi
16080 if test -z "$ac_cpp_err"; then
16081   ac_header_preproc=yes
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086   ac_header_preproc=no
16087 fi
16088
16089 rm -f conftest.err conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6; }
16092
16093 # So?  What about this header?
16094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16095   yes:no: )
16096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16100     ac_header_preproc=yes
16101     ;;
16102   no:yes:* )
16103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16115     ( cat <<\_ASBOX
16116 ## ----------------------------------- ##
16117 ## Report this to llvmbugs@cs.uiuc.edu ##
16118 ## ----------------------------------- ##
16119 _ASBOX
16120      ) | sed "s/^/$as_me: WARNING:     /" >&2
16121     ;;
16122 esac
16123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126   echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128   eval "$as_ac_Header=\$ac_header_preproc"
16129 fi
16130 ac_res=`eval echo '${'$as_ac_Header'}'`
16131                { echo "$as_me:$LINENO: result: $ac_res" >&5
16132 echo "${ECHO_T}$ac_res" >&6; }
16133
16134 fi
16135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16136   cat >>confdefs.h <<_ACEOF
16137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16138 _ACEOF
16139
16140 fi
16141
16142 done
16143
16144
16145
16146 for ac_header in utime.h windows.h
16147 do
16148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16153   echo $ECHO_N "(cached) $ECHO_C" >&6
16154 fi
16155 ac_res=`eval echo '${'$as_ac_Header'}'`
16156                { echo "$as_me:$LINENO: result: $ac_res" >&5
16157 echo "${ECHO_T}$ac_res" >&6; }
16158 else
16159   # Is the header compilable?
16160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16162 cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h.  */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h.  */
16168 $ac_includes_default
16169 #include <$ac_header>
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (ac_try="$ac_compile"
16173 case "(($ac_try" in
16174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175   *) ac_try_echo=$ac_try;;
16176 esac
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178   (eval "$ac_compile") 2>conftest.er1
16179   ac_status=$?
16180   grep -v '^ *+' conftest.er1 >conftest.err
16181   rm -f conftest.er1
16182   cat conftest.err >&5
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); } &&
16185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16186   { (case "(($ac_try" in
16187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188   *) ac_try_echo=$ac_try;;
16189 esac
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191   (eval "$ac_try") 2>&5
16192   ac_status=$?
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); }; } &&
16195          { ac_try='test -s conftest.$ac_objext'
16196   { (case "(($ac_try" in
16197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198   *) ac_try_echo=$ac_try;;
16199 esac
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201   (eval "$ac_try") 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; }; then
16205   ac_header_compiler=yes
16206 else
16207   echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16209
16210         ac_header_compiler=no
16211 fi
16212
16213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16215 echo "${ECHO_T}$ac_header_compiler" >&6; }
16216
16217 # Is the header present?
16218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16220 cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h.  */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h.  */
16226 #include <$ac_header>
16227 _ACEOF
16228 if { (ac_try="$ac_cpp conftest.$ac_ext"
16229 case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16235   ac_status=$?
16236   grep -v '^ *+' conftest.er1 >conftest.err
16237   rm -f conftest.er1
16238   cat conftest.err >&5
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); } >/dev/null; then
16241   if test -s conftest.err; then
16242     ac_cpp_err=$ac_c_preproc_warn_flag
16243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16244   else
16245     ac_cpp_err=
16246   fi
16247 else
16248   ac_cpp_err=yes
16249 fi
16250 if test -z "$ac_cpp_err"; then
16251   ac_header_preproc=yes
16252 else
16253   echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16255
16256   ac_header_preproc=no
16257 fi
16258
16259 rm -f conftest.err conftest.$ac_ext
16260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16261 echo "${ECHO_T}$ac_header_preproc" >&6; }
16262
16263 # So?  What about this header?
16264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16265   yes:no: )
16266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16270     ac_header_preproc=yes
16271     ;;
16272   no:yes:* )
16273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16285     ( cat <<\_ASBOX
16286 ## ----------------------------------- ##
16287 ## Report this to llvmbugs@cs.uiuc.edu ##
16288 ## ----------------------------------- ##
16289 _ASBOX
16290      ) | sed "s/^/$as_me: WARNING:     /" >&2
16291     ;;
16292 esac
16293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16296   echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298   eval "$as_ac_Header=\$ac_header_preproc"
16299 fi
16300 ac_res=`eval echo '${'$as_ac_Header'}'`
16301                { echo "$as_me:$LINENO: result: $ac_res" >&5
16302 echo "${ECHO_T}$ac_res" >&6; }
16303
16304 fi
16305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16306   cat >>confdefs.h <<_ACEOF
16307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16308 _ACEOF
16309
16310 fi
16311
16312 done
16313
16314
16315
16316
16317
16318
16319 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16320 do
16321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16326   echo $ECHO_N "(cached) $ECHO_C" >&6
16327 fi
16328 ac_res=`eval echo '${'$as_ac_Header'}'`
16329                { echo "$as_me:$LINENO: result: $ac_res" >&5
16330 echo "${ECHO_T}$ac_res" >&6; }
16331 else
16332   # Is the header compilable?
16333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16335 cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h.  */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h.  */
16341 $ac_includes_default
16342 #include <$ac_header>
16343 _ACEOF
16344 rm -f conftest.$ac_objext
16345 if { (ac_try="$ac_compile"
16346 case "(($ac_try" in
16347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348   *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351   (eval "$ac_compile") 2>conftest.er1
16352   ac_status=$?
16353   grep -v '^ *+' conftest.er1 >conftest.err
16354   rm -f conftest.er1
16355   cat conftest.err >&5
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); } &&
16358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16359   { (case "(($ac_try" in
16360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361   *) ac_try_echo=$ac_try;;
16362 esac
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364   (eval "$ac_try") 2>&5
16365   ac_status=$?
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); }; } &&
16368          { ac_try='test -s conftest.$ac_objext'
16369   { (case "(($ac_try" in
16370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371   *) ac_try_echo=$ac_try;;
16372 esac
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374   (eval "$ac_try") 2>&5
16375   ac_status=$?
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); }; }; then
16378   ac_header_compiler=yes
16379 else
16380   echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16382
16383         ac_header_compiler=no
16384 fi
16385
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16388 echo "${ECHO_T}$ac_header_compiler" >&6; }
16389
16390 # Is the header present?
16391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h.  */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h.  */
16399 #include <$ac_header>
16400 _ACEOF
16401 if { (ac_try="$ac_cpp conftest.$ac_ext"
16402 case "(($ac_try" in
16403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404   *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16408   ac_status=$?
16409   grep -v '^ *+' conftest.er1 >conftest.err
16410   rm -f conftest.er1
16411   cat conftest.err >&5
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); } >/dev/null; then
16414   if test -s conftest.err; then
16415     ac_cpp_err=$ac_c_preproc_warn_flag
16416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16417   else
16418     ac_cpp_err=
16419   fi
16420 else
16421   ac_cpp_err=yes
16422 fi
16423 if test -z "$ac_cpp_err"; then
16424   ac_header_preproc=yes
16425 else
16426   echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16428
16429   ac_header_preproc=no
16430 fi
16431
16432 rm -f conftest.err conftest.$ac_ext
16433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16434 echo "${ECHO_T}$ac_header_preproc" >&6; }
16435
16436 # So?  What about this header?
16437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16438   yes:no: )
16439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16443     ac_header_preproc=yes
16444     ;;
16445   no:yes:* )
16446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16458     ( cat <<\_ASBOX
16459 ## ----------------------------------- ##
16460 ## Report this to llvmbugs@cs.uiuc.edu ##
16461 ## ----------------------------------- ##
16462 _ASBOX
16463      ) | sed "s/^/$as_me: WARNING:     /" >&2
16464     ;;
16465 esac
16466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469   echo $ECHO_N "(cached) $ECHO_C" >&6
16470 else
16471   eval "$as_ac_Header=\$ac_header_preproc"
16472 fi
16473 ac_res=`eval echo '${'$as_ac_Header'}'`
16474                { echo "$as_me:$LINENO: result: $ac_res" >&5
16475 echo "${ECHO_T}$ac_res" >&6; }
16476
16477 fi
16478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16479   cat >>confdefs.h <<_ACEOF
16480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16481 _ACEOF
16482
16483 fi
16484
16485 done
16486
16487
16488
16489
16490
16491 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16492 do
16493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498   echo $ECHO_N "(cached) $ECHO_C" >&6
16499 fi
16500 ac_res=`eval echo '${'$as_ac_Header'}'`
16501                { echo "$as_me:$LINENO: result: $ac_res" >&5
16502 echo "${ECHO_T}$ac_res" >&6; }
16503 else
16504   # Is the header compilable?
16505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h.  */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h.  */
16513 $ac_includes_default
16514 #include <$ac_header>
16515 _ACEOF
16516 rm -f conftest.$ac_objext
16517 if { (ac_try="$ac_compile"
16518 case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_compile") 2>conftest.er1
16524   ac_status=$?
16525   grep -v '^ *+' conftest.er1 >conftest.err
16526   rm -f conftest.er1
16527   cat conftest.err >&5
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); } &&
16530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16531   { (case "(($ac_try" in
16532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533   *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536   (eval "$ac_try") 2>&5
16537   ac_status=$?
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); }; } &&
16540          { ac_try='test -s conftest.$ac_objext'
16541   { (case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_try") 2>&5
16547   ac_status=$?
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); }; }; then
16550   ac_header_compiler=yes
16551 else
16552   echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16554
16555         ac_header_compiler=no
16556 fi
16557
16558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16560 echo "${ECHO_T}$ac_header_compiler" >&6; }
16561
16562 # Is the header present?
16563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16565 cat >conftest.$ac_ext <<_ACEOF
16566 /* confdefs.h.  */
16567 _ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h.  */
16571 #include <$ac_header>
16572 _ACEOF
16573 if { (ac_try="$ac_cpp conftest.$ac_ext"
16574 case "(($ac_try" in
16575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576   *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16580   ac_status=$?
16581   grep -v '^ *+' conftest.er1 >conftest.err
16582   rm -f conftest.er1
16583   cat conftest.err >&5
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } >/dev/null; then
16586   if test -s conftest.err; then
16587     ac_cpp_err=$ac_c_preproc_warn_flag
16588     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16589   else
16590     ac_cpp_err=
16591   fi
16592 else
16593   ac_cpp_err=yes
16594 fi
16595 if test -z "$ac_cpp_err"; then
16596   ac_header_preproc=yes
16597 else
16598   echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16600
16601   ac_header_preproc=no
16602 fi
16603
16604 rm -f conftest.err conftest.$ac_ext
16605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16606 echo "${ECHO_T}$ac_header_preproc" >&6; }
16607
16608 # So?  What about this header?
16609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16610   yes:no: )
16611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16615     ac_header_preproc=yes
16616     ;;
16617   no:yes:* )
16618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16620     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16621 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16624     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16625 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16630     ( cat <<\_ASBOX
16631 ## ----------------------------------- ##
16632 ## Report this to llvmbugs@cs.uiuc.edu ##
16633 ## ----------------------------------- ##
16634 _ASBOX
16635      ) | sed "s/^/$as_me: WARNING:     /" >&2
16636     ;;
16637 esac
16638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16641   echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643   eval "$as_ac_Header=\$ac_header_preproc"
16644 fi
16645 ac_res=`eval echo '${'$as_ac_Header'}'`
16646                { echo "$as_me:$LINENO: result: $ac_res" >&5
16647 echo "${ECHO_T}$ac_res" >&6; }
16648
16649 fi
16650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16651   cat >>confdefs.h <<_ACEOF
16652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16653 _ACEOF
16654
16655 fi
16656
16657 done
16658
16659
16660 for ac_header in valgrind/valgrind.h
16661 do
16662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16664   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16667   echo $ECHO_N "(cached) $ECHO_C" >&6
16668 fi
16669 ac_res=`eval echo '${'$as_ac_Header'}'`
16670                { echo "$as_me:$LINENO: result: $ac_res" >&5
16671 echo "${ECHO_T}$ac_res" >&6; }
16672 else
16673   # Is the header compilable?
16674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16676 cat >conftest.$ac_ext <<_ACEOF
16677 /* confdefs.h.  */
16678 _ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h.  */
16682 $ac_includes_default
16683 #include <$ac_header>
16684 _ACEOF
16685 rm -f conftest.$ac_objext
16686 if { (ac_try="$ac_compile"
16687 case "(($ac_try" in
16688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689   *) ac_try_echo=$ac_try;;
16690 esac
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692   (eval "$ac_compile") 2>conftest.er1
16693   ac_status=$?
16694   grep -v '^ *+' conftest.er1 >conftest.err
16695   rm -f conftest.er1
16696   cat conftest.err >&5
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); } &&
16699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700   { (case "(($ac_try" in
16701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702   *) ac_try_echo=$ac_try;;
16703 esac
16704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705   (eval "$ac_try") 2>&5
16706   ac_status=$?
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); }; } &&
16709          { ac_try='test -s conftest.$ac_objext'
16710   { (case "(($ac_try" in
16711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712   *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715   (eval "$ac_try") 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; }; then
16719   ac_header_compiler=yes
16720 else
16721   echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16723
16724         ac_header_compiler=no
16725 fi
16726
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16729 echo "${ECHO_T}$ac_header_compiler" >&6; }
16730
16731 # Is the header present?
16732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16734 cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740 #include <$ac_header>
16741 _ACEOF
16742 if { (ac_try="$ac_cpp conftest.$ac_ext"
16743 case "(($ac_try" in
16744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745   *) ac_try_echo=$ac_try;;
16746 esac
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16749   ac_status=$?
16750   grep -v '^ *+' conftest.er1 >conftest.err
16751   rm -f conftest.er1
16752   cat conftest.err >&5
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); } >/dev/null; then
16755   if test -s conftest.err; then
16756     ac_cpp_err=$ac_c_preproc_warn_flag
16757     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16758   else
16759     ac_cpp_err=
16760   fi
16761 else
16762   ac_cpp_err=yes
16763 fi
16764 if test -z "$ac_cpp_err"; then
16765   ac_header_preproc=yes
16766 else
16767   echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16769
16770   ac_header_preproc=no
16771 fi
16772
16773 rm -f conftest.err conftest.$ac_ext
16774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16775 echo "${ECHO_T}$ac_header_preproc" >&6; }
16776
16777 # So?  What about this header?
16778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16779   yes:no: )
16780     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16784     ac_header_preproc=yes
16785     ;;
16786   no:yes:* )
16787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16789     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16790 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16791     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16793     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16794 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16797     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16799     ( cat <<\_ASBOX
16800 ## ----------------------------------- ##
16801 ## Report this to llvmbugs@cs.uiuc.edu ##
16802 ## ----------------------------------- ##
16803 _ASBOX
16804      ) | sed "s/^/$as_me: WARNING:     /" >&2
16805     ;;
16806 esac
16807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16810   echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812   eval "$as_ac_Header=\$ac_header_preproc"
16813 fi
16814 ac_res=`eval echo '${'$as_ac_Header'}'`
16815                { echo "$as_me:$LINENO: result: $ac_res" >&5
16816 echo "${ECHO_T}$ac_res" >&6; }
16817
16818 fi
16819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16820   cat >>confdefs.h <<_ACEOF
16821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16822 _ACEOF
16823
16824 fi
16825
16826 done
16827
16828
16829 for ac_header in fenv.h
16830 do
16831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16833   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16836   echo $ECHO_N "(cached) $ECHO_C" >&6
16837 fi
16838 ac_res=`eval echo '${'$as_ac_Header'}'`
16839                { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16841 else
16842   # Is the header compilable?
16843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16845 cat >conftest.$ac_ext <<_ACEOF
16846 /* confdefs.h.  */
16847 _ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h.  */
16851 $ac_includes_default
16852 #include <$ac_header>
16853 _ACEOF
16854 rm -f conftest.$ac_objext
16855 if { (ac_try="$ac_compile"
16856 case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_compile") 2>conftest.er1
16862   ac_status=$?
16863   grep -v '^ *+' conftest.er1 >conftest.err
16864   rm -f conftest.er1
16865   cat conftest.err >&5
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } &&
16868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869   { (case "(($ac_try" in
16870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871   *) ac_try_echo=$ac_try;;
16872 esac
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874   (eval "$ac_try") 2>&5
16875   ac_status=$?
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); }; } &&
16878          { ac_try='test -s conftest.$ac_objext'
16879   { (case "(($ac_try" in
16880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881   *) ac_try_echo=$ac_try;;
16882 esac
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884   (eval "$ac_try") 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; }; then
16888   ac_header_compiler=yes
16889 else
16890   echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893         ac_header_compiler=no
16894 fi
16895
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16898 echo "${ECHO_T}$ac_header_compiler" >&6; }
16899
16900 # Is the header present?
16901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16903 cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h.  */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h.  */
16909 #include <$ac_header>
16910 _ACEOF
16911 if { (ac_try="$ac_cpp conftest.$ac_ext"
16912 case "(($ac_try" in
16913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914   *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16918   ac_status=$?
16919   grep -v '^ *+' conftest.er1 >conftest.err
16920   rm -f conftest.er1
16921   cat conftest.err >&5
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); } >/dev/null; then
16924   if test -s conftest.err; then
16925     ac_cpp_err=$ac_c_preproc_warn_flag
16926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16927   else
16928     ac_cpp_err=
16929   fi
16930 else
16931   ac_cpp_err=yes
16932 fi
16933 if test -z "$ac_cpp_err"; then
16934   ac_header_preproc=yes
16935 else
16936   echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939   ac_header_preproc=no
16940 fi
16941
16942 rm -f conftest.err conftest.$ac_ext
16943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16944 echo "${ECHO_T}$ac_header_preproc" >&6; }
16945
16946 # So?  What about this header?
16947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16948   yes:no: )
16949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16953     ac_header_preproc=yes
16954     ;;
16955   no:yes:* )
16956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16968     ( cat <<\_ASBOX
16969 ## ----------------------------------- ##
16970 ## Report this to llvmbugs@cs.uiuc.edu ##
16971 ## ----------------------------------- ##
16972 _ASBOX
16973      ) | sed "s/^/$as_me: WARNING:     /" >&2
16974     ;;
16975 esac
16976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16979   echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981   eval "$as_ac_Header=\$ac_header_preproc"
16982 fi
16983 ac_res=`eval echo '${'$as_ac_Header'}'`
16984                { echo "$as_me:$LINENO: result: $ac_res" >&5
16985 echo "${ECHO_T}$ac_res" >&6; }
16986
16987 fi
16988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16989   cat >>confdefs.h <<_ACEOF
16990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16991 _ACEOF
16992
16993 fi
16994
16995 done
16996
16997 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16998
16999 for ac_header in pthread.h
17000 do
17001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17003   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17006   echo $ECHO_N "(cached) $ECHO_C" >&6
17007 fi
17008 ac_res=`eval echo '${'$as_ac_Header'}'`
17009                { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011 else
17012   # Is the header compilable?
17013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h.  */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h.  */
17021 $ac_includes_default
17022 #include <$ac_header>
17023 _ACEOF
17024 rm -f conftest.$ac_objext
17025 if { (ac_try="$ac_compile"
17026 case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_compile") 2>conftest.er1
17032   ac_status=$?
17033   grep -v '^ *+' conftest.er1 >conftest.err
17034   rm -f conftest.er1
17035   cat conftest.err >&5
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); } &&
17038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17039   { (case "(($ac_try" in
17040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041   *) ac_try_echo=$ac_try;;
17042 esac
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044   (eval "$ac_try") 2>&5
17045   ac_status=$?
17046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047   (exit $ac_status); }; } &&
17048          { ac_try='test -s conftest.$ac_objext'
17049   { (case "(($ac_try" in
17050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051   *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054   (eval "$ac_try") 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); }; }; then
17058   ac_header_compiler=yes
17059 else
17060   echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17062
17063         ac_header_compiler=no
17064 fi
17065
17066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17068 echo "${ECHO_T}$ac_header_compiler" >&6; }
17069
17070 # Is the header present?
17071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079 #include <$ac_header>
17080 _ACEOF
17081 if { (ac_try="$ac_cpp conftest.$ac_ext"
17082 case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17088   ac_status=$?
17089   grep -v '^ *+' conftest.er1 >conftest.err
17090   rm -f conftest.er1
17091   cat conftest.err >&5
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); } >/dev/null; then
17094   if test -s conftest.err; then
17095     ac_cpp_err=$ac_c_preproc_warn_flag
17096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17097   else
17098     ac_cpp_err=
17099   fi
17100 else
17101   ac_cpp_err=yes
17102 fi
17103 if test -z "$ac_cpp_err"; then
17104   ac_header_preproc=yes
17105 else
17106   echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17108
17109   ac_header_preproc=no
17110 fi
17111
17112 rm -f conftest.err conftest.$ac_ext
17113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17114 echo "${ECHO_T}$ac_header_preproc" >&6; }
17115
17116 # So?  What about this header?
17117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17118   yes:no: )
17119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17123     ac_header_preproc=yes
17124     ;;
17125   no:yes:* )
17126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17138     ( cat <<\_ASBOX
17139 ## ----------------------------------- ##
17140 ## Report this to llvmbugs@cs.uiuc.edu ##
17141 ## ----------------------------------- ##
17142 _ASBOX
17143      ) | sed "s/^/$as_me: WARNING:     /" >&2
17144     ;;
17145 esac
17146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   eval "$as_ac_Header=\$ac_header_preproc"
17152 fi
17153 ac_res=`eval echo '${'$as_ac_Header'}'`
17154                { echo "$as_me:$LINENO: result: $ac_res" >&5
17155 echo "${ECHO_T}$ac_res" >&6; }
17156
17157 fi
17158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17159   cat >>confdefs.h <<_ACEOF
17160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17161 _ACEOF
17162  HAVE_PTHREAD=1
17163
17164 else
17165   HAVE_PTHREAD=0
17166
17167 fi
17168
17169 done
17170
17171 else
17172   HAVE_PTHREAD=0
17173
17174 fi
17175
17176 if test "$llvm_cv_enable_libffi" = "yes" ; then
17177
17178
17179 for ac_header in ffi.h ffi/ffi.h
17180 do
17181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17183   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17186   echo $ECHO_N "(cached) $ECHO_C" >&6
17187 fi
17188 ac_res=`eval echo '${'$as_ac_Header'}'`
17189                { echo "$as_me:$LINENO: result: $ac_res" >&5
17190 echo "${ECHO_T}$ac_res" >&6; }
17191 else
17192   # Is the header compilable?
17193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17195 cat >conftest.$ac_ext <<_ACEOF
17196 /* confdefs.h.  */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h.  */
17201 $ac_includes_default
17202 #include <$ac_header>
17203 _ACEOF
17204 rm -f conftest.$ac_objext
17205 if { (ac_try="$ac_compile"
17206 case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_compile") 2>conftest.er1
17212   ac_status=$?
17213   grep -v '^ *+' conftest.er1 >conftest.err
17214   rm -f conftest.er1
17215   cat conftest.err >&5
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); } &&
17218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17219   { (case "(($ac_try" in
17220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221   *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224   (eval "$ac_try") 2>&5
17225   ac_status=$?
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); }; } &&
17228          { ac_try='test -s conftest.$ac_objext'
17229   { (case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_try") 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); }; }; then
17238   ac_header_compiler=yes
17239 else
17240   echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17242
17243         ac_header_compiler=no
17244 fi
17245
17246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17248 echo "${ECHO_T}$ac_header_compiler" >&6; }
17249
17250 # Is the header present?
17251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17253 cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h.  */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h.  */
17259 #include <$ac_header>
17260 _ACEOF
17261 if { (ac_try="$ac_cpp conftest.$ac_ext"
17262 case "(($ac_try" in
17263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264   *) ac_try_echo=$ac_try;;
17265 esac
17266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17268   ac_status=$?
17269   grep -v '^ *+' conftest.er1 >conftest.err
17270   rm -f conftest.er1
17271   cat conftest.err >&5
17272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273   (exit $ac_status); } >/dev/null; then
17274   if test -s conftest.err; then
17275     ac_cpp_err=$ac_c_preproc_warn_flag
17276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17277   else
17278     ac_cpp_err=
17279   fi
17280 else
17281   ac_cpp_err=yes
17282 fi
17283 if test -z "$ac_cpp_err"; then
17284   ac_header_preproc=yes
17285 else
17286   echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17288
17289   ac_header_preproc=no
17290 fi
17291
17292 rm -f conftest.err conftest.$ac_ext
17293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17294 echo "${ECHO_T}$ac_header_preproc" >&6; }
17295
17296 # So?  What about this header?
17297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17298   yes:no: )
17299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17303     ac_header_preproc=yes
17304     ;;
17305   no:yes:* )
17306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17308     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17309 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17310     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17312     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17313 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17316     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17318     ( cat <<\_ASBOX
17319 ## ----------------------------------- ##
17320 ## Report this to llvmbugs@cs.uiuc.edu ##
17321 ## ----------------------------------- ##
17322 _ASBOX
17323      ) | sed "s/^/$as_me: WARNING:     /" >&2
17324     ;;
17325 esac
17326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17329   echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331   eval "$as_ac_Header=\$ac_header_preproc"
17332 fi
17333 ac_res=`eval echo '${'$as_ac_Header'}'`
17334                { echo "$as_me:$LINENO: result: $ac_res" >&5
17335 echo "${ECHO_T}$ac_res" >&6; }
17336
17337 fi
17338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17339   cat >>confdefs.h <<_ACEOF
17340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17341 _ACEOF
17342
17343 fi
17344
17345 done
17346
17347 fi
17348
17349
17350 for ac_header in CrashReporterClient.h
17351 do
17352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17354   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17357   echo $ECHO_N "(cached) $ECHO_C" >&6
17358 fi
17359 ac_res=`eval echo '${'$as_ac_Header'}'`
17360                { echo "$as_me:$LINENO: result: $ac_res" >&5
17361 echo "${ECHO_T}$ac_res" >&6; }
17362 else
17363   # Is the header compilable?
17364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h.  */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h.  */
17372 $ac_includes_default
17373 #include <$ac_header>
17374 _ACEOF
17375 rm -f conftest.$ac_objext
17376 if { (ac_try="$ac_compile"
17377 case "(($ac_try" in
17378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379   *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382   (eval "$ac_compile") 2>conftest.er1
17383   ac_status=$?
17384   grep -v '^ *+' conftest.er1 >conftest.err
17385   rm -f conftest.er1
17386   cat conftest.err >&5
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); } &&
17389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17390   { (case "(($ac_try" in
17391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392   *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395   (eval "$ac_try") 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }; } &&
17399          { ac_try='test -s conftest.$ac_objext'
17400   { (case "(($ac_try" in
17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402   *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405   (eval "$ac_try") 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; }; then
17409   ac_header_compiler=yes
17410 else
17411   echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17413
17414         ac_header_compiler=no
17415 fi
17416
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17419 echo "${ECHO_T}$ac_header_compiler" >&6; }
17420
17421 # Is the header present?
17422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h.  */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h.  */
17430 #include <$ac_header>
17431 _ACEOF
17432 if { (ac_try="$ac_cpp conftest.$ac_ext"
17433 case "(($ac_try" in
17434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435   *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17439   ac_status=$?
17440   grep -v '^ *+' conftest.er1 >conftest.err
17441   rm -f conftest.er1
17442   cat conftest.err >&5
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); } >/dev/null; then
17445   if test -s conftest.err; then
17446     ac_cpp_err=$ac_c_preproc_warn_flag
17447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17448   else
17449     ac_cpp_err=
17450   fi
17451 else
17452   ac_cpp_err=yes
17453 fi
17454 if test -z "$ac_cpp_err"; then
17455   ac_header_preproc=yes
17456 else
17457   echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460   ac_header_preproc=no
17461 fi
17462
17463 rm -f conftest.err conftest.$ac_ext
17464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17465 echo "${ECHO_T}$ac_header_preproc" >&6; }
17466
17467 # So?  What about this header?
17468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17469   yes:no: )
17470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17474     ac_header_preproc=yes
17475     ;;
17476   no:yes:* )
17477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17489     ( cat <<\_ASBOX
17490 ## ----------------------------------- ##
17491 ## Report this to llvmbugs@cs.uiuc.edu ##
17492 ## ----------------------------------- ##
17493 _ASBOX
17494      ) | sed "s/^/$as_me: WARNING:     /" >&2
17495     ;;
17496 esac
17497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   eval "$as_ac_Header=\$ac_header_preproc"
17503 fi
17504 ac_res=`eval echo '${'$as_ac_Header'}'`
17505                { echo "$as_me:$LINENO: result: $ac_res" >&5
17506 echo "${ECHO_T}$ac_res" >&6; }
17507
17508 fi
17509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17510   cat >>confdefs.h <<_ACEOF
17511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17512 _ACEOF
17513
17514 fi
17515
17516 done
17517
17518
17519 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17520 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17521 cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h.  */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h.  */
17527 extern const char *__crashreporter_info__;
17528       int main() {
17529         __crashreporter_info__ = "test";
17530         return 0;
17531       }
17532
17533 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538   *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541   (eval "$ac_link") 2>conftest.er1
17542   ac_status=$?
17543   grep -v '^ *+' conftest.er1 >conftest.err
17544   rm -f conftest.er1
17545   cat conftest.err >&5
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); } &&
17548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549   { (case "(($ac_try" in
17550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551   *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554   (eval "$ac_try") 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; } &&
17558          { ac_try='test -s conftest$ac_exeext'
17559   { (case "(($ac_try" in
17560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561   *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564   (eval "$ac_try") 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; }; then
17568   { echo "$as_me:$LINENO: result: yes" >&5
17569 echo "${ECHO_T}yes" >&6; }
17570
17571 cat >>confdefs.h <<\_ACEOF
17572 #define HAVE_CRASHREPORTER_INFO 1
17573 _ACEOF
17574
17575 else
17576   echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579         { echo "$as_me:$LINENO: result: no" >&5
17580 echo "${ECHO_T}no" >&6; }
17581
17582 cat >>confdefs.h <<\_ACEOF
17583 #define HAVE_CRASHREPORTER_INFO 0
17584 _ACEOF
17585
17586 fi
17587
17588 rm -f core conftest.err conftest.$ac_objext \
17589       conftest$ac_exeext conftest.$ac_ext
17590
17591
17592
17593
17594   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17595 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17596 if test "${ac_cv_huge_val_sanity+set}" = set; then
17597   echo $ECHO_N "(cached) $ECHO_C" >&6
17598 else
17599
17600     ac_ext=cpp
17601 ac_cpp='$CXXCPP $CPPFLAGS'
17602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17605
17606     ac_save_CXXFLAGS=$CXXFLAGS
17607     CXXFLAGS=-pedantic
17608     if test "$cross_compiling" = yes; then
17609   ac_cv_huge_val_sanity=yes
17610 else
17611   cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617 #include <math.h>
17618 int
17619 main ()
17620 {
17621 double x = HUGE_VAL; return x != x;
17622   ;
17623   return 0;
17624 }
17625 _ACEOF
17626 rm -f conftest$ac_exeext
17627 if { (ac_try="$ac_link"
17628 case "(($ac_try" in
17629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630   *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633   (eval "$ac_link") 2>&5
17634   ac_status=$?
17635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17637   { (case "(($ac_try" in
17638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639   *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642   (eval "$ac_try") 2>&5
17643   ac_status=$?
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); }; }; then
17646   ac_cv_huge_val_sanity=yes
17647 else
17648   echo "$as_me: program exited with status $ac_status" >&5
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652 ( exit $ac_status )
17653 ac_cv_huge_val_sanity=no
17654 fi
17655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17656 fi
17657
17658
17659     CXXFLAGS=$ac_save_CXXFLAGS
17660     ac_ext=c
17661 ac_cpp='$CPP $CPPFLAGS'
17662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17665
17666
17667 fi
17668 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17669 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17670   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17671
17672
17673 { echo "$as_me:$LINENO: checking for pid_t" >&5
17674 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17675 if test "${ac_cv_type_pid_t+set}" = set; then
17676   echo $ECHO_N "(cached) $ECHO_C" >&6
17677 else
17678   cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h.  */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h.  */
17684 $ac_includes_default
17685 typedef pid_t ac__type_new_;
17686 int
17687 main ()
17688 {
17689 if ((ac__type_new_ *) 0)
17690   return 0;
17691 if (sizeof (ac__type_new_))
17692   return 0;
17693   ;
17694   return 0;
17695 }
17696 _ACEOF
17697 rm -f conftest.$ac_objext
17698 if { (ac_try="$ac_compile"
17699 case "(($ac_try" in
17700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701   *) ac_try_echo=$ac_try;;
17702 esac
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704   (eval "$ac_compile") 2>conftest.er1
17705   ac_status=$?
17706   grep -v '^ *+' conftest.er1 >conftest.err
17707   rm -f conftest.er1
17708   cat conftest.err >&5
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); } &&
17711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712   { (case "(($ac_try" in
17713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714   *) ac_try_echo=$ac_try;;
17715 esac
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717   (eval "$ac_try") 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); }; } &&
17721          { ac_try='test -s conftest.$ac_objext'
17722   { (case "(($ac_try" in
17723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724   *) ac_try_echo=$ac_try;;
17725 esac
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727   (eval "$ac_try") 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; }; then
17731   ac_cv_type_pid_t=yes
17732 else
17733   echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17735
17736         ac_cv_type_pid_t=no
17737 fi
17738
17739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17740 fi
17741 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17742 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17743 if test $ac_cv_type_pid_t = yes; then
17744   :
17745 else
17746
17747 cat >>confdefs.h <<_ACEOF
17748 #define pid_t int
17749 _ACEOF
17750
17751 fi
17752
17753 { echo "$as_me:$LINENO: checking for size_t" >&5
17754 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17755 if test "${ac_cv_type_size_t+set}" = set; then
17756   echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758   cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h.  */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h.  */
17764 $ac_includes_default
17765 typedef size_t ac__type_new_;
17766 int
17767 main ()
17768 {
17769 if ((ac__type_new_ *) 0)
17770   return 0;
17771 if (sizeof (ac__type_new_))
17772   return 0;
17773   ;
17774   return 0;
17775 }
17776 _ACEOF
17777 rm -f conftest.$ac_objext
17778 if { (ac_try="$ac_compile"
17779 case "(($ac_try" in
17780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781   *) ac_try_echo=$ac_try;;
17782 esac
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784   (eval "$ac_compile") 2>conftest.er1
17785   ac_status=$?
17786   grep -v '^ *+' conftest.er1 >conftest.err
17787   rm -f conftest.er1
17788   cat conftest.err >&5
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); } &&
17791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17792   { (case "(($ac_try" in
17793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794   *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797   (eval "$ac_try") 2>&5
17798   ac_status=$?
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); }; } &&
17801          { ac_try='test -s conftest.$ac_objext'
17802   { (case "(($ac_try" in
17803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804   *) ac_try_echo=$ac_try;;
17805 esac
17806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807   (eval "$ac_try") 2>&5
17808   ac_status=$?
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); }; }; then
17811   ac_cv_type_size_t=yes
17812 else
17813   echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17815
17816         ac_cv_type_size_t=no
17817 fi
17818
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 fi
17821 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17822 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17823 if test $ac_cv_type_size_t = yes; then
17824   :
17825 else
17826
17827 cat >>confdefs.h <<_ACEOF
17828 #define size_t unsigned int
17829 _ACEOF
17830
17831 fi
17832
17833
17834 cat >>confdefs.h <<_ACEOF
17835 #define RETSIGTYPE void
17836 _ACEOF
17837
17838 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17839 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17840 if test "${ac_cv_struct_tm+set}" = set; then
17841   echo $ECHO_N "(cached) $ECHO_C" >&6
17842 else
17843   cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h.  */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h.  */
17849 #include <sys/types.h>
17850 #include <time.h>
17851
17852 int
17853 main ()
17854 {
17855 struct tm *tp; tp->tm_sec;
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext
17861 if { (ac_try="$ac_compile"
17862 case "(($ac_try" in
17863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864   *) ac_try_echo=$ac_try;;
17865 esac
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867   (eval "$ac_compile") 2>conftest.er1
17868   ac_status=$?
17869   grep -v '^ *+' conftest.er1 >conftest.err
17870   rm -f conftest.er1
17871   cat conftest.err >&5
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } &&
17874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17875   { (case "(($ac_try" in
17876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877   *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880   (eval "$ac_try") 2>&5
17881   ac_status=$?
17882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883   (exit $ac_status); }; } &&
17884          { ac_try='test -s conftest.$ac_objext'
17885   { (case "(($ac_try" in
17886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887   *) ac_try_echo=$ac_try;;
17888 esac
17889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890   (eval "$ac_try") 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; }; then
17894   ac_cv_struct_tm=time.h
17895 else
17896   echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17898
17899         ac_cv_struct_tm=sys/time.h
17900 fi
17901
17902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17903 fi
17904 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17905 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17906 if test $ac_cv_struct_tm = sys/time.h; then
17907
17908 cat >>confdefs.h <<\_ACEOF
17909 #define TM_IN_SYS_TIME 1
17910 _ACEOF
17911
17912 fi
17913
17914 { echo "$as_me:$LINENO: checking for int64_t" >&5
17915 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17916 if test "${ac_cv_type_int64_t+set}" = set; then
17917   echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919   cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h.  */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h.  */
17925 $ac_includes_default
17926 typedef int64_t ac__type_new_;
17927 int
17928 main ()
17929 {
17930 if ((ac__type_new_ *) 0)
17931   return 0;
17932 if (sizeof (ac__type_new_))
17933   return 0;
17934   ;
17935   return 0;
17936 }
17937 _ACEOF
17938 rm -f conftest.$ac_objext
17939 if { (ac_try="$ac_compile"
17940 case "(($ac_try" in
17941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942   *) ac_try_echo=$ac_try;;
17943 esac
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945   (eval "$ac_compile") 2>conftest.er1
17946   ac_status=$?
17947   grep -v '^ *+' conftest.er1 >conftest.err
17948   rm -f conftest.er1
17949   cat conftest.err >&5
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); } &&
17952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17953   { (case "(($ac_try" in
17954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955   *) ac_try_echo=$ac_try;;
17956 esac
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958   (eval "$ac_try") 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; } &&
17962          { ac_try='test -s conftest.$ac_objext'
17963   { (case "(($ac_try" in
17964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965   *) ac_try_echo=$ac_try;;
17966 esac
17967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968   (eval "$ac_try") 2>&5
17969   ac_status=$?
17970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971   (exit $ac_status); }; }; then
17972   ac_cv_type_int64_t=yes
17973 else
17974   echo "$as_me: failed program was:" >&5
17975 sed 's/^/| /' conftest.$ac_ext >&5
17976
17977         ac_cv_type_int64_t=no
17978 fi
17979
17980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17981 fi
17982 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17983 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17984 if test $ac_cv_type_int64_t = yes; then
17985
17986 cat >>confdefs.h <<_ACEOF
17987 #define HAVE_INT64_T 1
17988 _ACEOF
17989
17990
17991 else
17992   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17993 echo "$as_me: error: Type int64_t required but not found" >&2;}
17994    { (exit 1); exit 1; }; }
17995 fi
17996
17997 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17998 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17999 if test "${ac_cv_type_uint64_t+set}" = set; then
18000   echo $ECHO_N "(cached) $ECHO_C" >&6
18001 else
18002   cat >conftest.$ac_ext <<_ACEOF
18003 /* confdefs.h.  */
18004 _ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h.  */
18008 $ac_includes_default
18009 typedef uint64_t ac__type_new_;
18010 int
18011 main ()
18012 {
18013 if ((ac__type_new_ *) 0)
18014   return 0;
18015 if (sizeof (ac__type_new_))
18016   return 0;
18017   ;
18018   return 0;
18019 }
18020 _ACEOF
18021 rm -f conftest.$ac_objext
18022 if { (ac_try="$ac_compile"
18023 case "(($ac_try" in
18024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025   *) ac_try_echo=$ac_try;;
18026 esac
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028   (eval "$ac_compile") 2>conftest.er1
18029   ac_status=$?
18030   grep -v '^ *+' conftest.er1 >conftest.err
18031   rm -f conftest.er1
18032   cat conftest.err >&5
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); } &&
18035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18036   { (case "(($ac_try" in
18037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038   *) ac_try_echo=$ac_try;;
18039 esac
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041   (eval "$ac_try") 2>&5
18042   ac_status=$?
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); }; } &&
18045          { ac_try='test -s conftest.$ac_objext'
18046   { (case "(($ac_try" in
18047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048   *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051   (eval "$ac_try") 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); }; }; then
18055   ac_cv_type_uint64_t=yes
18056 else
18057   echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060         ac_cv_type_uint64_t=no
18061 fi
18062
18063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064 fi
18065 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18066 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18067 if test $ac_cv_type_uint64_t = yes; then
18068
18069 cat >>confdefs.h <<_ACEOF
18070 #define HAVE_UINT64_T 1
18071 _ACEOF
18072
18073
18074 else
18075   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18076 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18077 if test "${ac_cv_type_u_int64_t+set}" = set; then
18078   echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080   cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h.  */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h.  */
18086 $ac_includes_default
18087 typedef u_int64_t ac__type_new_;
18088 int
18089 main ()
18090 {
18091 if ((ac__type_new_ *) 0)
18092   return 0;
18093 if (sizeof (ac__type_new_))
18094   return 0;
18095   ;
18096   return 0;
18097 }
18098 _ACEOF
18099 rm -f conftest.$ac_objext
18100 if { (ac_try="$ac_compile"
18101 case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106   (eval "$ac_compile") 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114   { (case "(($ac_try" in
18115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116   *) ac_try_echo=$ac_try;;
18117 esac
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119   (eval "$ac_try") 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; } &&
18123          { ac_try='test -s conftest.$ac_objext'
18124   { (case "(($ac_try" in
18125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126   *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129   (eval "$ac_try") 2>&5
18130   ac_status=$?
18131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132   (exit $ac_status); }; }; then
18133   ac_cv_type_u_int64_t=yes
18134 else
18135   echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18137
18138         ac_cv_type_u_int64_t=no
18139 fi
18140
18141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18142 fi
18143 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18144 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18145 if test $ac_cv_type_u_int64_t = yes; then
18146
18147 cat >>confdefs.h <<_ACEOF
18148 #define HAVE_U_INT64_T 1
18149 _ACEOF
18150
18151
18152 else
18153   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18154 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18155    { (exit 1); exit 1; }; }
18156 fi
18157
18158 fi
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18170 do
18171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18175   echo $ECHO_N "(cached) $ECHO_C" >&6
18176 else
18177   cat >conftest.$ac_ext <<_ACEOF
18178 /* confdefs.h.  */
18179 _ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h.  */
18183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18185 #define $ac_func innocuous_$ac_func
18186
18187 /* System header to define __stub macros and hopefully few prototypes,
18188     which can conflict with char $ac_func (); below.
18189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18190     <limits.h> exists even on freestanding compilers.  */
18191
18192 #ifdef __STDC__
18193 # include <limits.h>
18194 #else
18195 # include <assert.h>
18196 #endif
18197
18198 #undef $ac_func
18199
18200 /* Override any GCC internal prototype to avoid an error.
18201    Use char because int might match the return type of a GCC
18202    builtin and then its argument prototype would still apply.  */
18203 #ifdef __cplusplus
18204 extern "C"
18205 #endif
18206 char $ac_func ();
18207 /* The GNU C library defines this for functions which it implements
18208     to always fail with ENOSYS.  Some functions are actually named
18209     something starting with __ and the normal name is an alias.  */
18210 #if defined __stub_$ac_func || defined __stub___$ac_func
18211 choke me
18212 #endif
18213
18214 int
18215 main ()
18216 {
18217 return $ac_func ();
18218   ;
18219   return 0;
18220 }
18221 _ACEOF
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (ac_try="$ac_link"
18224 case "(($ac_try" in
18225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226   *) ac_try_echo=$ac_try;;
18227 esac
18228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229   (eval "$ac_link") 2>conftest.er1
18230   ac_status=$?
18231   grep -v '^ *+' conftest.er1 >conftest.err
18232   rm -f conftest.er1
18233   cat conftest.err >&5
18234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); } &&
18236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18237   { (case "(($ac_try" in
18238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239   *) ac_try_echo=$ac_try;;
18240 esac
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242   (eval "$ac_try") 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); }; } &&
18246          { ac_try='test -s conftest$ac_exeext'
18247   { (case "(($ac_try" in
18248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249   *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252   (eval "$ac_try") 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; }; then
18256   eval "$as_ac_var=yes"
18257 else
18258   echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261         eval "$as_ac_var=no"
18262 fi
18263
18264 rm -f core conftest.err conftest.$ac_objext \
18265       conftest$ac_exeext conftest.$ac_ext
18266 fi
18267 ac_res=`eval echo '${'$as_ac_var'}'`
18268                { echo "$as_me:$LINENO: result: $ac_res" >&5
18269 echo "${ECHO_T}$ac_res" >&6; }
18270 if test `eval echo '${'$as_ac_var'}'` = yes; then
18271   cat >>confdefs.h <<_ACEOF
18272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18273 _ACEOF
18274
18275 fi
18276 done
18277
18278
18279
18280
18281
18282 for ac_func in powf fmodf strtof round
18283 do
18284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18288   echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290   cat >conftest.$ac_ext <<_ACEOF
18291 /* confdefs.h.  */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h.  */
18296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18298 #define $ac_func innocuous_$ac_func
18299
18300 /* System header to define __stub macros and hopefully few prototypes,
18301     which can conflict with char $ac_func (); below.
18302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18303     <limits.h> exists even on freestanding compilers.  */
18304
18305 #ifdef __STDC__
18306 # include <limits.h>
18307 #else
18308 # include <assert.h>
18309 #endif
18310
18311 #undef $ac_func
18312
18313 /* Override any GCC internal prototype to avoid an error.
18314    Use char because int might match the return type of a GCC
18315    builtin and then its argument prototype would still apply.  */
18316 #ifdef __cplusplus
18317 extern "C"
18318 #endif
18319 char $ac_func ();
18320 /* The GNU C library defines this for functions which it implements
18321     to always fail with ENOSYS.  Some functions are actually named
18322     something starting with __ and the normal name is an alias.  */
18323 #if defined __stub_$ac_func || defined __stub___$ac_func
18324 choke me
18325 #endif
18326
18327 int
18328 main ()
18329 {
18330 return $ac_func ();
18331   ;
18332   return 0;
18333 }
18334 _ACEOF
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339   *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342   (eval "$ac_link") 2>conftest.er1
18343   ac_status=$?
18344   grep -v '^ *+' conftest.er1 >conftest.err
18345   rm -f conftest.er1
18346   cat conftest.err >&5
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); } &&
18349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350   { (case "(($ac_try" in
18351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352   *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355   (eval "$ac_try") 2>&5
18356   ac_status=$?
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); }; } &&
18359          { ac_try='test -s conftest$ac_exeext'
18360   { (case "(($ac_try" in
18361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362   *) ac_try_echo=$ac_try;;
18363 esac
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365   (eval "$ac_try") 2>&5
18366   ac_status=$?
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); }; }; then
18369   eval "$as_ac_var=yes"
18370 else
18371   echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18373
18374         eval "$as_ac_var=no"
18375 fi
18376
18377 rm -f core conftest.err conftest.$ac_objext \
18378       conftest$ac_exeext conftest.$ac_ext
18379 fi
18380 ac_res=`eval echo '${'$as_ac_var'}'`
18381                { echo "$as_me:$LINENO: result: $ac_res" >&5
18382 echo "${ECHO_T}$ac_res" >&6; }
18383 if test `eval echo '${'$as_ac_var'}'` = yes; then
18384   cat >>confdefs.h <<_ACEOF
18385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18386 _ACEOF
18387
18388 fi
18389 done
18390
18391
18392
18393
18394
18395
18396 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18397 do
18398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404   cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h.  */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h.  */
18410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18412 #define $ac_func innocuous_$ac_func
18413
18414 /* System header to define __stub macros and hopefully few prototypes,
18415     which can conflict with char $ac_func (); below.
18416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18417     <limits.h> exists even on freestanding compilers.  */
18418
18419 #ifdef __STDC__
18420 # include <limits.h>
18421 #else
18422 # include <assert.h>
18423 #endif
18424
18425 #undef $ac_func
18426
18427 /* Override any GCC internal prototype to avoid an error.
18428    Use char because int might match the return type of a GCC
18429    builtin and then its argument prototype would still apply.  */
18430 #ifdef __cplusplus
18431 extern "C"
18432 #endif
18433 char $ac_func ();
18434 /* The GNU C library defines this for functions which it implements
18435     to always fail with ENOSYS.  Some functions are actually named
18436     something starting with __ and the normal name is an alias.  */
18437 #if defined __stub_$ac_func || defined __stub___$ac_func
18438 choke me
18439 #endif
18440
18441 int
18442 main ()
18443 {
18444 return $ac_func ();
18445   ;
18446   return 0;
18447 }
18448 _ACEOF
18449 rm -f conftest.$ac_objext conftest$ac_exeext
18450 if { (ac_try="$ac_link"
18451 case "(($ac_try" in
18452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453   *) ac_try_echo=$ac_try;;
18454 esac
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456   (eval "$ac_link") 2>conftest.er1
18457   ac_status=$?
18458   grep -v '^ *+' conftest.er1 >conftest.err
18459   rm -f conftest.er1
18460   cat conftest.err >&5
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); } &&
18463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18464   { (case "(($ac_try" in
18465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466   *) ac_try_echo=$ac_try;;
18467 esac
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469   (eval "$ac_try") 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); }; } &&
18473          { ac_try='test -s conftest$ac_exeext'
18474   { (case "(($ac_try" in
18475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476   *) ac_try_echo=$ac_try;;
18477 esac
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479   (eval "$ac_try") 2>&5
18480   ac_status=$?
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); }; }; then
18483   eval "$as_ac_var=yes"
18484 else
18485   echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18487
18488         eval "$as_ac_var=no"
18489 fi
18490
18491 rm -f core conftest.err conftest.$ac_objext \
18492       conftest$ac_exeext conftest.$ac_ext
18493 fi
18494 ac_res=`eval echo '${'$as_ac_var'}'`
18495                { echo "$as_me:$LINENO: result: $ac_res" >&5
18496 echo "${ECHO_T}$ac_res" >&6; }
18497 if test `eval echo '${'$as_ac_var'}'` = yes; then
18498   cat >>confdefs.h <<_ACEOF
18499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18500 _ACEOF
18501
18502 fi
18503 done
18504
18505
18506
18507
18508 for ac_func in isatty mkdtemp mkstemp
18509 do
18510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18514   echo $ECHO_N "(cached) $ECHO_C" >&6
18515 else
18516   cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h.  */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h.  */
18522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18524 #define $ac_func innocuous_$ac_func
18525
18526 /* System header to define __stub macros and hopefully few prototypes,
18527     which can conflict with char $ac_func (); below.
18528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18529     <limits.h> exists even on freestanding compilers.  */
18530
18531 #ifdef __STDC__
18532 # include <limits.h>
18533 #else
18534 # include <assert.h>
18535 #endif
18536
18537 #undef $ac_func
18538
18539 /* Override any GCC internal prototype to avoid an error.
18540    Use char because int might match the return type of a GCC
18541    builtin and then its argument prototype would still apply.  */
18542 #ifdef __cplusplus
18543 extern "C"
18544 #endif
18545 char $ac_func ();
18546 /* The GNU C library defines this for functions which it implements
18547     to always fail with ENOSYS.  Some functions are actually named
18548     something starting with __ and the normal name is an alias.  */
18549 #if defined __stub_$ac_func || defined __stub___$ac_func
18550 choke me
18551 #endif
18552
18553 int
18554 main ()
18555 {
18556 return $ac_func ();
18557   ;
18558   return 0;
18559 }
18560 _ACEOF
18561 rm -f conftest.$ac_objext conftest$ac_exeext
18562 if { (ac_try="$ac_link"
18563 case "(($ac_try" in
18564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565   *) ac_try_echo=$ac_try;;
18566 esac
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568   (eval "$ac_link") 2>conftest.er1
18569   ac_status=$?
18570   grep -v '^ *+' conftest.er1 >conftest.err
18571   rm -f conftest.er1
18572   cat conftest.err >&5
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); } &&
18575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18576   { (case "(($ac_try" in
18577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578   *) ac_try_echo=$ac_try;;
18579 esac
18580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581   (eval "$ac_try") 2>&5
18582   ac_status=$?
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); }; } &&
18585          { ac_try='test -s conftest$ac_exeext'
18586   { (case "(($ac_try" in
18587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588   *) ac_try_echo=$ac_try;;
18589 esac
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591   (eval "$ac_try") 2>&5
18592   ac_status=$?
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); }; }; then
18595   eval "$as_ac_var=yes"
18596 else
18597   echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18599
18600         eval "$as_ac_var=no"
18601 fi
18602
18603 rm -f core conftest.err conftest.$ac_objext \
18604       conftest$ac_exeext conftest.$ac_ext
18605 fi
18606 ac_res=`eval echo '${'$as_ac_var'}'`
18607                { echo "$as_me:$LINENO: result: $ac_res" >&5
18608 echo "${ECHO_T}$ac_res" >&6; }
18609 if test `eval echo '${'$as_ac_var'}'` = yes; then
18610   cat >>confdefs.h <<_ACEOF
18611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18612 _ACEOF
18613
18614 fi
18615 done
18616
18617
18618
18619
18620
18621
18622
18623 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18624 do
18625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18629   echo $ECHO_N "(cached) $ECHO_C" >&6
18630 else
18631   cat >conftest.$ac_ext <<_ACEOF
18632 /* confdefs.h.  */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h.  */
18637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18639 #define $ac_func innocuous_$ac_func
18640
18641 /* System header to define __stub macros and hopefully few prototypes,
18642     which can conflict with char $ac_func (); below.
18643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18644     <limits.h> exists even on freestanding compilers.  */
18645
18646 #ifdef __STDC__
18647 # include <limits.h>
18648 #else
18649 # include <assert.h>
18650 #endif
18651
18652 #undef $ac_func
18653
18654 /* Override any GCC internal prototype to avoid an error.
18655    Use char because int might match the return type of a GCC
18656    builtin and then its argument prototype would still apply.  */
18657 #ifdef __cplusplus
18658 extern "C"
18659 #endif
18660 char $ac_func ();
18661 /* The GNU C library defines this for functions which it implements
18662     to always fail with ENOSYS.  Some functions are actually named
18663     something starting with __ and the normal name is an alias.  */
18664 #if defined __stub_$ac_func || defined __stub___$ac_func
18665 choke me
18666 #endif
18667
18668 int
18669 main ()
18670 {
18671 return $ac_func ();
18672   ;
18673   return 0;
18674 }
18675 _ACEOF
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (ac_try="$ac_link"
18678 case "(($ac_try" in
18679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680   *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683   (eval "$ac_link") 2>conftest.er1
18684   ac_status=$?
18685   grep -v '^ *+' conftest.er1 >conftest.err
18686   rm -f conftest.er1
18687   cat conftest.err >&5
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); } &&
18690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18691   { (case "(($ac_try" in
18692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693   *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696   (eval "$ac_try") 2>&5
18697   ac_status=$?
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); }; } &&
18700          { ac_try='test -s conftest$ac_exeext'
18701   { (case "(($ac_try" in
18702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703   *) ac_try_echo=$ac_try;;
18704 esac
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706   (eval "$ac_try") 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; }; then
18710   eval "$as_ac_var=yes"
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715         eval "$as_ac_var=no"
18716 fi
18717
18718 rm -f core conftest.err conftest.$ac_objext \
18719       conftest$ac_exeext conftest.$ac_ext
18720 fi
18721 ac_res=`eval echo '${'$as_ac_var'}'`
18722                { echo "$as_me:$LINENO: result: $ac_res" >&5
18723 echo "${ECHO_T}$ac_res" >&6; }
18724 if test `eval echo '${'$as_ac_var'}'` = yes; then
18725   cat >>confdefs.h <<_ACEOF
18726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18727 _ACEOF
18728
18729 fi
18730 done
18731
18732
18733
18734
18735 for ac_func in strerror strerror_r setenv
18736 do
18737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18741   echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743   cat >conftest.$ac_ext <<_ACEOF
18744 /* confdefs.h.  */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h.  */
18749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18751 #define $ac_func innocuous_$ac_func
18752
18753 /* System header to define __stub macros and hopefully few prototypes,
18754     which can conflict with char $ac_func (); below.
18755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18756     <limits.h> exists even on freestanding compilers.  */
18757
18758 #ifdef __STDC__
18759 # include <limits.h>
18760 #else
18761 # include <assert.h>
18762 #endif
18763
18764 #undef $ac_func
18765
18766 /* Override any GCC internal prototype to avoid an error.
18767    Use char because int might match the return type of a GCC
18768    builtin and then its argument prototype would still apply.  */
18769 #ifdef __cplusplus
18770 extern "C"
18771 #endif
18772 char $ac_func ();
18773 /* The GNU C library defines this for functions which it implements
18774     to always fail with ENOSYS.  Some functions are actually named
18775     something starting with __ and the normal name is an alias.  */
18776 #if defined __stub_$ac_func || defined __stub___$ac_func
18777 choke me
18778 #endif
18779
18780 int
18781 main ()
18782 {
18783 return $ac_func ();
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (ac_try="$ac_link"
18790 case "(($ac_try" in
18791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792   *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795   (eval "$ac_link") 2>conftest.er1
18796   ac_status=$?
18797   grep -v '^ *+' conftest.er1 >conftest.err
18798   rm -f conftest.er1
18799   cat conftest.err >&5
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); } &&
18802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18803   { (case "(($ac_try" in
18804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805   *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808   (eval "$ac_try") 2>&5
18809   ac_status=$?
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); }; } &&
18812          { ac_try='test -s conftest$ac_exeext'
18813   { (case "(($ac_try" in
18814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815   *) ac_try_echo=$ac_try;;
18816 esac
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818   (eval "$ac_try") 2>&5
18819   ac_status=$?
18820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821   (exit $ac_status); }; }; then
18822   eval "$as_ac_var=yes"
18823 else
18824   echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18826
18827         eval "$as_ac_var=no"
18828 fi
18829
18830 rm -f core conftest.err conftest.$ac_objext \
18831       conftest$ac_exeext conftest.$ac_ext
18832 fi
18833 ac_res=`eval echo '${'$as_ac_var'}'`
18834                { echo "$as_me:$LINENO: result: $ac_res" >&5
18835 echo "${ECHO_T}$ac_res" >&6; }
18836 if test `eval echo '${'$as_ac_var'}'` = yes; then
18837   cat >>confdefs.h <<_ACEOF
18838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18839 _ACEOF
18840
18841 fi
18842 done
18843
18844
18845
18846
18847
18848 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18849 do
18850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856   cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18864 #define $ac_func innocuous_$ac_func
18865
18866 /* System header to define __stub macros and hopefully few prototypes,
18867     which can conflict with char $ac_func (); below.
18868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18869     <limits.h> exists even on freestanding compilers.  */
18870
18871 #ifdef __STDC__
18872 # include <limits.h>
18873 #else
18874 # include <assert.h>
18875 #endif
18876
18877 #undef $ac_func
18878
18879 /* Override any GCC internal prototype to avoid an error.
18880    Use char because int might match the return type of a GCC
18881    builtin and then its argument prototype would still apply.  */
18882 #ifdef __cplusplus
18883 extern "C"
18884 #endif
18885 char $ac_func ();
18886 /* The GNU C library defines this for functions which it implements
18887     to always fail with ENOSYS.  Some functions are actually named
18888     something starting with __ and the normal name is an alias.  */
18889 #if defined __stub_$ac_func || defined __stub___$ac_func
18890 choke me
18891 #endif
18892
18893 int
18894 main ()
18895 {
18896 return $ac_func ();
18897   ;
18898   return 0;
18899 }
18900 _ACEOF
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905   *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908   (eval "$ac_link") 2>conftest.er1
18909   ac_status=$?
18910   grep -v '^ *+' conftest.er1 >conftest.err
18911   rm -f conftest.er1
18912   cat conftest.err >&5
18913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); } &&
18915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18916   { (case "(($ac_try" in
18917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918   *) ac_try_echo=$ac_try;;
18919 esac
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921   (eval "$ac_try") 2>&5
18922   ac_status=$?
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); }; } &&
18925          { ac_try='test -s conftest$ac_exeext'
18926   { (case "(($ac_try" in
18927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928   *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931   (eval "$ac_try") 2>&5
18932   ac_status=$?
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); }; }; then
18935   eval "$as_ac_var=yes"
18936 else
18937   echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18939
18940         eval "$as_ac_var=no"
18941 fi
18942
18943 rm -f core conftest.err conftest.$ac_objext \
18944       conftest$ac_exeext conftest.$ac_ext
18945 fi
18946 ac_res=`eval echo '${'$as_ac_var'}'`
18947                { echo "$as_me:$LINENO: result: $ac_res" >&5
18948 echo "${ECHO_T}$ac_res" >&6; }
18949 if test `eval echo '${'$as_ac_var'}'` = yes; then
18950   cat >>confdefs.h <<_ACEOF
18951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18952 _ACEOF
18953
18954 fi
18955 done
18956
18957
18958
18959
18960
18961
18962 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18963 do
18964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18968   echo $ECHO_N "(cached) $ECHO_C" >&6
18969 else
18970   cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h.  */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h.  */
18976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18978 #define $ac_func innocuous_$ac_func
18979
18980 /* System header to define __stub macros and hopefully few prototypes,
18981     which can conflict with char $ac_func (); below.
18982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18983     <limits.h> exists even on freestanding compilers.  */
18984
18985 #ifdef __STDC__
18986 # include <limits.h>
18987 #else
18988 # include <assert.h>
18989 #endif
18990
18991 #undef $ac_func
18992
18993 /* Override any GCC internal prototype to avoid an error.
18994    Use char because int might match the return type of a GCC
18995    builtin and then its argument prototype would still apply.  */
18996 #ifdef __cplusplus
18997 extern "C"
18998 #endif
18999 char $ac_func ();
19000 /* The GNU C library defines this for functions which it implements
19001     to always fail with ENOSYS.  Some functions are actually named
19002     something starting with __ and the normal name is an alias.  */
19003 #if defined __stub_$ac_func || defined __stub___$ac_func
19004 choke me
19005 #endif
19006
19007 int
19008 main ()
19009 {
19010 return $ac_func ();
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (ac_try="$ac_link"
19017 case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_link") 2>conftest.er1
19023   ac_status=$?
19024   grep -v '^ *+' conftest.er1 >conftest.err
19025   rm -f conftest.er1
19026   cat conftest.err >&5
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } &&
19029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19030   { (case "(($ac_try" in
19031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032   *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035   (eval "$ac_try") 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; } &&
19039          { ac_try='test -s conftest$ac_exeext'
19040   { (case "(($ac_try" in
19041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042   *) ac_try_echo=$ac_try;;
19043 esac
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045   (eval "$ac_try") 2>&5
19046   ac_status=$?
19047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048   (exit $ac_status); }; }; then
19049   eval "$as_ac_var=yes"
19050 else
19051   echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19053
19054         eval "$as_ac_var=no"
19055 fi
19056
19057 rm -f core conftest.err conftest.$ac_objext \
19058       conftest$ac_exeext conftest.$ac_ext
19059 fi
19060 ac_res=`eval echo '${'$as_ac_var'}'`
19061                { echo "$as_me:$LINENO: result: $ac_res" >&5
19062 echo "${ECHO_T}$ac_res" >&6; }
19063 if test `eval echo '${'$as_ac_var'}'` = yes; then
19064   cat >>confdefs.h <<_ACEOF
19065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19066 _ACEOF
19067
19068 fi
19069 done
19070
19071 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19072 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19073 if test "${llvm_cv_c_printf_a+set}" = set; then
19074   echo $ECHO_N "(cached) $ECHO_C" >&6
19075 else
19076   ac_ext=c
19077 ac_cpp='$CPP $CPPFLAGS'
19078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19081
19082  if test "$cross_compiling" = yes; then
19083   llvmac_cv_c_printf_a=no
19084 else
19085   cat >conftest.$ac_ext <<_ACEOF
19086
19087   /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092
19093 #include <stdio.h>
19094 #include <stdlib.h>
19095
19096 int
19097 main ()
19098 {
19099
19100 volatile double A, B;
19101 char Buffer[100];
19102 A = 1;
19103 A /= 10.0;
19104 sprintf(Buffer, "%a", A);
19105 B = atof(Buffer);
19106 if (A != B)
19107   return (1);
19108 if (A != 0x1.999999999999ap-4)
19109   return (1);
19110 return (0);
19111   ;
19112   return 0;
19113 }
19114 _ACEOF
19115 rm -f conftest$ac_exeext
19116 if { (ac_try="$ac_link"
19117 case "(($ac_try" in
19118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119   *) ac_try_echo=$ac_try;;
19120 esac
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122   (eval "$ac_link") 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19126   { (case "(($ac_try" in
19127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128   *) ac_try_echo=$ac_try;;
19129 esac
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131   (eval "$ac_try") 2>&5
19132   ac_status=$?
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); }; }; then
19135   llvm_cv_c_printf_a=yes
19136 else
19137   echo "$as_me: program exited with status $ac_status" >&5
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19140
19141 ( exit $ac_status )
19142 llvmac_cv_c_printf_a=no
19143 fi
19144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19145 fi
19146
19147
19148  ac_ext=c
19149 ac_cpp='$CPP $CPPFLAGS'
19150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19153
19154 fi
19155 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19156 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19157  if test "$llvm_cv_c_printf_a" = "yes"; then
19158
19159 cat >>confdefs.h <<\_ACEOF
19160 #define HAVE_PRINTF_A 1
19161 _ACEOF
19162
19163  fi
19164
19165
19166 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19167 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19168 if test "${ac_cv_func_rand48+set}" = set; then
19169   echo $ECHO_N "(cached) $ECHO_C" >&6
19170 else
19171   ac_ext=cpp
19172 ac_cpp='$CXXCPP $CPPFLAGS'
19173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19176
19177    cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h.  */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h.  */
19183 #include <stdlib.h>
19184 int
19185 main ()
19186 {
19187 srand48(0);lrand48();drand48();
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 rm -f conftest.$ac_objext
19193 if { (ac_try="$ac_compile"
19194 case "(($ac_try" in
19195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196   *) ac_try_echo=$ac_try;;
19197 esac
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199   (eval "$ac_compile") 2>conftest.er1
19200   ac_status=$?
19201   grep -v '^ *+' conftest.er1 >conftest.err
19202   rm -f conftest.er1
19203   cat conftest.err >&5
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); } &&
19206          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19207   { (case "(($ac_try" in
19208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209   *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212   (eval "$ac_try") 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); }; } &&
19216          { ac_try='test -s conftest.$ac_objext'
19217   { (case "(($ac_try" in
19218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219   *) ac_try_echo=$ac_try;;
19220 esac
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222   (eval "$ac_try") 2>&5
19223   ac_status=$?
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); }; }; then
19226   ac_cv_func_rand48=yes
19227 else
19228   echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231         ac_cv_func_rand48=no
19232 fi
19233
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235   ac_ext=c
19236 ac_cpp='$CPP $CPPFLAGS'
19237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19240
19241 fi
19242 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19243 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19244
19245 if test "$ac_cv_func_rand48" = "yes" ; then
19246
19247 cat >>confdefs.h <<\_ACEOF
19248 #define HAVE_RAND48 1
19249 _ACEOF
19250
19251 fi
19252
19253
19254 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19255 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19256 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19257   echo $ECHO_N "(cached) $ECHO_C" >&6
19258 else
19259   cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h.  */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h.  */
19265 $ac_includes_default
19266 int
19267 main ()
19268 {
19269 #ifndef strerror_s
19270   char *p = (char *) strerror_s;
19271   return !p;
19272 #endif
19273
19274   ;
19275   return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext
19279 if { (ac_try="$ac_compile"
19280 case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_compile") 2>conftest.er1
19286   ac_status=$?
19287   grep -v '^ *+' conftest.er1 >conftest.err
19288   rm -f conftest.er1
19289   cat conftest.err >&5
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } &&
19292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293   { (case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_try") 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; } &&
19302          { ac_try='test -s conftest.$ac_objext'
19303   { (case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_try") 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   ac_cv_have_decl_strerror_s=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317         ac_cv_have_decl_strerror_s=no
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321 fi
19322 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19323 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19324 if test $ac_cv_have_decl_strerror_s = yes; then
19325
19326 cat >>confdefs.h <<_ACEOF
19327 #define HAVE_DECL_STRERROR_S 1
19328 _ACEOF
19329
19330
19331 else
19332   cat >>confdefs.h <<_ACEOF
19333 #define HAVE_DECL_STRERROR_S 0
19334 _ACEOF
19335
19336
19337 fi
19338
19339
19340
19341 if test "$llvm_cv_os_type" = "MingW" ; then
19342   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19343 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19344 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19345   echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347   ac_check_lib_save_LIBS=$LIBS
19348 LIBS="-lgcc  $LIBS"
19349 cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h.  */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h.  */
19355
19356 /* Override any GCC internal prototype to avoid an error.
19357    Use char because int might match the return type of a GCC
19358    builtin and then its argument prototype would still apply.  */
19359 #ifdef __cplusplus
19360 extern "C"
19361 #endif
19362 char _alloca ();
19363 int
19364 main ()
19365 {
19366 return _alloca ();
19367   ;
19368   return 0;
19369 }
19370 _ACEOF
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (ac_try="$ac_link"
19373 case "(($ac_try" in
19374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375   *) ac_try_echo=$ac_try;;
19376 esac
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378   (eval "$ac_link") 2>conftest.er1
19379   ac_status=$?
19380   grep -v '^ *+' conftest.er1 >conftest.err
19381   rm -f conftest.er1
19382   cat conftest.err >&5
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); } &&
19385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19386   { (case "(($ac_try" in
19387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388   *) ac_try_echo=$ac_try;;
19389 esac
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391   (eval "$ac_try") 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; } &&
19395          { ac_try='test -s conftest$ac_exeext'
19396   { (case "(($ac_try" in
19397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398   *) ac_try_echo=$ac_try;;
19399 esac
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401   (eval "$ac_try") 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }; }; then
19405   ac_cv_lib_gcc__alloca=yes
19406 else
19407   echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19409
19410         ac_cv_lib_gcc__alloca=no
19411 fi
19412
19413 rm -f core conftest.err conftest.$ac_objext \
19414       conftest$ac_exeext conftest.$ac_ext
19415 LIBS=$ac_check_lib_save_LIBS
19416 fi
19417 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19418 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19419 if test $ac_cv_lib_gcc__alloca = yes; then
19420
19421 cat >>confdefs.h <<\_ACEOF
19422 #define HAVE__ALLOCA 1
19423 _ACEOF
19424
19425 fi
19426
19427   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19428 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19429 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19430   echo $ECHO_N "(cached) $ECHO_C" >&6
19431 else
19432   ac_check_lib_save_LIBS=$LIBS
19433 LIBS="-lgcc  $LIBS"
19434 cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h.  */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h.  */
19440
19441 /* Override any GCC internal prototype to avoid an error.
19442    Use char because int might match the return type of a GCC
19443    builtin and then its argument prototype would still apply.  */
19444 #ifdef __cplusplus
19445 extern "C"
19446 #endif
19447 char __alloca ();
19448 int
19449 main ()
19450 {
19451 return __alloca ();
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 rm -f conftest.$ac_objext conftest$ac_exeext
19457 if { (ac_try="$ac_link"
19458 case "(($ac_try" in
19459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460   *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463   (eval "$ac_link") 2>conftest.er1
19464   ac_status=$?
19465   grep -v '^ *+' conftest.er1 >conftest.err
19466   rm -f conftest.er1
19467   cat conftest.err >&5
19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); } &&
19470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19471   { (case "(($ac_try" in
19472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473   *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476   (eval "$ac_try") 2>&5
19477   ac_status=$?
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); }; } &&
19480          { ac_try='test -s conftest$ac_exeext'
19481   { (case "(($ac_try" in
19482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483   *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486   (eval "$ac_try") 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); }; }; then
19490   ac_cv_lib_gcc___alloca=yes
19491 else
19492   echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19494
19495         ac_cv_lib_gcc___alloca=no
19496 fi
19497
19498 rm -f core conftest.err conftest.$ac_objext \
19499       conftest$ac_exeext conftest.$ac_ext
19500 LIBS=$ac_check_lib_save_LIBS
19501 fi
19502 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19503 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19504 if test $ac_cv_lib_gcc___alloca = yes; then
19505
19506 cat >>confdefs.h <<\_ACEOF
19507 #define HAVE___ALLOCA 1
19508 _ACEOF
19509
19510 fi
19511
19512   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19513 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19514 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19515   echo $ECHO_N "(cached) $ECHO_C" >&6
19516 else
19517   ac_check_lib_save_LIBS=$LIBS
19518 LIBS="-lgcc  $LIBS"
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h.  */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h.  */
19525
19526 /* Override any GCC internal prototype to avoid an error.
19527    Use char because int might match the return type of a GCC
19528    builtin and then its argument prototype would still apply.  */
19529 #ifdef __cplusplus
19530 extern "C"
19531 #endif
19532 char __chkstk ();
19533 int
19534 main ()
19535 {
19536 return __chkstk ();
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext conftest$ac_exeext
19542 if { (ac_try="$ac_link"
19543 case "(($ac_try" in
19544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545   *) ac_try_echo=$ac_try;;
19546 esac
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548   (eval "$ac_link") 2>conftest.er1
19549   ac_status=$?
19550   grep -v '^ *+' conftest.er1 >conftest.err
19551   rm -f conftest.er1
19552   cat conftest.err >&5
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } &&
19555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19556   { (case "(($ac_try" in
19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558   *) ac_try_echo=$ac_try;;
19559 esac
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561   (eval "$ac_try") 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; } &&
19565          { ac_try='test -s conftest$ac_exeext'
19566   { (case "(($ac_try" in
19567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568   *) ac_try_echo=$ac_try;;
19569 esac
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571   (eval "$ac_try") 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); }; }; then
19575   ac_cv_lib_gcc___chkstk=yes
19576 else
19577   echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580         ac_cv_lib_gcc___chkstk=no
19581 fi
19582
19583 rm -f core conftest.err conftest.$ac_objext \
19584       conftest$ac_exeext conftest.$ac_ext
19585 LIBS=$ac_check_lib_save_LIBS
19586 fi
19587 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19588 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19589 if test $ac_cv_lib_gcc___chkstk = yes; then
19590
19591 cat >>confdefs.h <<\_ACEOF
19592 #define HAVE___CHKSTK 1
19593 _ACEOF
19594
19595 fi
19596
19597   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19598 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19599 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19600   echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602   ac_check_lib_save_LIBS=$LIBS
19603 LIBS="-lgcc  $LIBS"
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610
19611 /* Override any GCC internal prototype to avoid an error.
19612    Use char because int might match the return type of a GCC
19613    builtin and then its argument prototype would still apply.  */
19614 #ifdef __cplusplus
19615 extern "C"
19616 #endif
19617 char ___chkstk ();
19618 int
19619 main ()
19620 {
19621 return ___chkstk ();
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (ac_try="$ac_link"
19628 case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_link") 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } &&
19640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641   { (case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_try") 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; } &&
19650          { ac_try='test -s conftest$ac_exeext'
19651   { (case "(($ac_try" in
19652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653   *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656   (eval "$ac_try") 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); }; }; then
19660   ac_cv_lib_gcc____chkstk=yes
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665         ac_cv_lib_gcc____chkstk=no
19666 fi
19667
19668 rm -f core conftest.err conftest.$ac_objext \
19669       conftest$ac_exeext conftest.$ac_ext
19670 LIBS=$ac_check_lib_save_LIBS
19671 fi
19672 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19673 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19674 if test $ac_cv_lib_gcc____chkstk = yes; then
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE____CHKSTK 1
19678 _ACEOF
19679
19680 fi
19681
19682
19683   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19684 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19685 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19686   echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688   ac_check_lib_save_LIBS=$LIBS
19689 LIBS="-lgcc  $LIBS"
19690 cat >conftest.$ac_ext <<_ACEOF
19691 /* confdefs.h.  */
19692 _ACEOF
19693 cat confdefs.h >>conftest.$ac_ext
19694 cat >>conftest.$ac_ext <<_ACEOF
19695 /* end confdefs.h.  */
19696
19697 /* Override any GCC internal prototype to avoid an error.
19698    Use char because int might match the return type of a GCC
19699    builtin and then its argument prototype would still apply.  */
19700 #ifdef __cplusplus
19701 extern "C"
19702 #endif
19703 char __ashldi3 ();
19704 int
19705 main ()
19706 {
19707 return __ashldi3 ();
19708   ;
19709   return 0;
19710 }
19711 _ACEOF
19712 rm -f conftest.$ac_objext conftest$ac_exeext
19713 if { (ac_try="$ac_link"
19714 case "(($ac_try" in
19715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716   *) ac_try_echo=$ac_try;;
19717 esac
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719   (eval "$ac_link") 2>conftest.er1
19720   ac_status=$?
19721   grep -v '^ *+' conftest.er1 >conftest.err
19722   rm -f conftest.er1
19723   cat conftest.err >&5
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); } &&
19726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19727   { (case "(($ac_try" in
19728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729   *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732   (eval "$ac_try") 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; } &&
19736          { ac_try='test -s conftest$ac_exeext'
19737   { (case "(($ac_try" in
19738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739   *) ac_try_echo=$ac_try;;
19740 esac
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742   (eval "$ac_try") 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; }; then
19746   ac_cv_lib_gcc___ashldi3=yes
19747 else
19748   echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751         ac_cv_lib_gcc___ashldi3=no
19752 fi
19753
19754 rm -f core conftest.err conftest.$ac_objext \
19755       conftest$ac_exeext conftest.$ac_ext
19756 LIBS=$ac_check_lib_save_LIBS
19757 fi
19758 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19759 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19760 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE___ASHLDI3 1
19764 _ACEOF
19765
19766 fi
19767
19768   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19769 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19770 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19771   echo $ECHO_N "(cached) $ECHO_C" >&6
19772 else
19773   ac_check_lib_save_LIBS=$LIBS
19774 LIBS="-lgcc  $LIBS"
19775 cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h.  */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h.  */
19781
19782 /* Override any GCC internal prototype to avoid an error.
19783    Use char because int might match the return type of a GCC
19784    builtin and then its argument prototype would still apply.  */
19785 #ifdef __cplusplus
19786 extern "C"
19787 #endif
19788 char __ashrdi3 ();
19789 int
19790 main ()
19791 {
19792 return __ashrdi3 ();
19793   ;
19794   return 0;
19795 }
19796 _ACEOF
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (ac_try="$ac_link"
19799 case "(($ac_try" in
19800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801   *) ac_try_echo=$ac_try;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804   (eval "$ac_link") 2>conftest.er1
19805   ac_status=$?
19806   grep -v '^ *+' conftest.er1 >conftest.err
19807   rm -f conftest.er1
19808   cat conftest.err >&5
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); } &&
19811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19812   { (case "(($ac_try" in
19813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814   *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817   (eval "$ac_try") 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; } &&
19821          { ac_try='test -s conftest$ac_exeext'
19822   { (case "(($ac_try" in
19823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824   *) ac_try_echo=$ac_try;;
19825 esac
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827   (eval "$ac_try") 2>&5
19828   ac_status=$?
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); }; }; then
19831   ac_cv_lib_gcc___ashrdi3=yes
19832 else
19833   echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19835
19836         ac_cv_lib_gcc___ashrdi3=no
19837 fi
19838
19839 rm -f core conftest.err conftest.$ac_objext \
19840       conftest$ac_exeext conftest.$ac_ext
19841 LIBS=$ac_check_lib_save_LIBS
19842 fi
19843 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19844 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19845 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19846
19847 cat >>confdefs.h <<\_ACEOF
19848 #define HAVE___ASHRDI3 1
19849 _ACEOF
19850
19851 fi
19852
19853   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19854 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19855 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19856   echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858   ac_check_lib_save_LIBS=$LIBS
19859 LIBS="-lgcc  $LIBS"
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h.  */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h.  */
19866
19867 /* Override any GCC internal prototype to avoid an error.
19868    Use char because int might match the return type of a GCC
19869    builtin and then its argument prototype would still apply.  */
19870 #ifdef __cplusplus
19871 extern "C"
19872 #endif
19873 char __divdi3 ();
19874 int
19875 main ()
19876 {
19877 return __divdi3 ();
19878   ;
19879   return 0;
19880 }
19881 _ACEOF
19882 rm -f conftest.$ac_objext conftest$ac_exeext
19883 if { (ac_try="$ac_link"
19884 case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_link") 2>conftest.er1
19890   ac_status=$?
19891   grep -v '^ *+' conftest.er1 >conftest.err
19892   rm -f conftest.er1
19893   cat conftest.err >&5
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); } &&
19896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19897   { (case "(($ac_try" in
19898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899   *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902   (eval "$ac_try") 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); }; } &&
19906          { ac_try='test -s conftest$ac_exeext'
19907   { (case "(($ac_try" in
19908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909   *) ac_try_echo=$ac_try;;
19910 esac
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912   (eval "$ac_try") 2>&5
19913   ac_status=$?
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); }; }; then
19916   ac_cv_lib_gcc___divdi3=yes
19917 else
19918   echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19920
19921         ac_cv_lib_gcc___divdi3=no
19922 fi
19923
19924 rm -f core conftest.err conftest.$ac_objext \
19925       conftest$ac_exeext conftest.$ac_ext
19926 LIBS=$ac_check_lib_save_LIBS
19927 fi
19928 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19929 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19930 if test $ac_cv_lib_gcc___divdi3 = yes; then
19931
19932 cat >>confdefs.h <<\_ACEOF
19933 #define HAVE___DIVDI3 1
19934 _ACEOF
19935
19936 fi
19937
19938   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19939 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19940 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19941   echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943   ac_check_lib_save_LIBS=$LIBS
19944 LIBS="-lgcc  $LIBS"
19945 cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951
19952 /* Override any GCC internal prototype to avoid an error.
19953    Use char because int might match the return type of a GCC
19954    builtin and then its argument prototype would still apply.  */
19955 #ifdef __cplusplus
19956 extern "C"
19957 #endif
19958 char __fixdfdi ();
19959 int
19960 main ()
19961 {
19962 return __fixdfdi ();
19963   ;
19964   return 0;
19965 }
19966 _ACEOF
19967 rm -f conftest.$ac_objext conftest$ac_exeext
19968 if { (ac_try="$ac_link"
19969 case "(($ac_try" in
19970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971   *) ac_try_echo=$ac_try;;
19972 esac
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974   (eval "$ac_link") 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } &&
19981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19982   { (case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_try") 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); }; } &&
19991          { ac_try='test -s conftest$ac_exeext'
19992   { (case "(($ac_try" in
19993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994   *) ac_try_echo=$ac_try;;
19995 esac
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997   (eval "$ac_try") 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); }; }; then
20001   ac_cv_lib_gcc___fixdfdi=yes
20002 else
20003   echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006         ac_cv_lib_gcc___fixdfdi=no
20007 fi
20008
20009 rm -f core conftest.err conftest.$ac_objext \
20010       conftest$ac_exeext conftest.$ac_ext
20011 LIBS=$ac_check_lib_save_LIBS
20012 fi
20013 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20014 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20015 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20016
20017 cat >>confdefs.h <<\_ACEOF
20018 #define HAVE___FIXDFDI 1
20019 _ACEOF
20020
20021 fi
20022
20023   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20024 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20025 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20026   echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028   ac_check_lib_save_LIBS=$LIBS
20029 LIBS="-lgcc  $LIBS"
20030 cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036
20037 /* Override any GCC internal prototype to avoid an error.
20038    Use char because int might match the return type of a GCC
20039    builtin and then its argument prototype would still apply.  */
20040 #ifdef __cplusplus
20041 extern "C"
20042 #endif
20043 char __fixsfdi ();
20044 int
20045 main ()
20046 {
20047 return __fixsfdi ();
20048   ;
20049   return 0;
20050 }
20051 _ACEOF
20052 rm -f conftest.$ac_objext conftest$ac_exeext
20053 if { (ac_try="$ac_link"
20054 case "(($ac_try" in
20055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056   *) ac_try_echo=$ac_try;;
20057 esac
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059   (eval "$ac_link") 2>conftest.er1
20060   ac_status=$?
20061   grep -v '^ *+' conftest.er1 >conftest.err
20062   rm -f conftest.er1
20063   cat conftest.err >&5
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); } &&
20066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20067   { (case "(($ac_try" in
20068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069   *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072   (eval "$ac_try") 2>&5
20073   ac_status=$?
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); }; } &&
20076          { ac_try='test -s conftest$ac_exeext'
20077   { (case "(($ac_try" in
20078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079   *) ac_try_echo=$ac_try;;
20080 esac
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082   (eval "$ac_try") 2>&5
20083   ac_status=$?
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); }; }; then
20086   ac_cv_lib_gcc___fixsfdi=yes
20087 else
20088   echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091         ac_cv_lib_gcc___fixsfdi=no
20092 fi
20093
20094 rm -f core conftest.err conftest.$ac_objext \
20095       conftest$ac_exeext conftest.$ac_ext
20096 LIBS=$ac_check_lib_save_LIBS
20097 fi
20098 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20099 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20100 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20101
20102 cat >>confdefs.h <<\_ACEOF
20103 #define HAVE___FIXSFDI 1
20104 _ACEOF
20105
20106 fi
20107
20108   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20109 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20110 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20111   echo $ECHO_N "(cached) $ECHO_C" >&6
20112 else
20113   ac_check_lib_save_LIBS=$LIBS
20114 LIBS="-lgcc  $LIBS"
20115 cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h.  */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h.  */
20121
20122 /* Override any GCC internal prototype to avoid an error.
20123    Use char because int might match the return type of a GCC
20124    builtin and then its argument prototype would still apply.  */
20125 #ifdef __cplusplus
20126 extern "C"
20127 #endif
20128 char __floatdidf ();
20129 int
20130 main ()
20131 {
20132 return __floatdidf ();
20133   ;
20134   return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest.$ac_objext conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141   *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144   (eval "$ac_link") 2>conftest.er1
20145   ac_status=$?
20146   grep -v '^ *+' conftest.er1 >conftest.err
20147   rm -f conftest.er1
20148   cat conftest.err >&5
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); } &&
20151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20152   { (case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_try") 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; } &&
20161          { ac_try='test -s conftest$ac_exeext'
20162   { (case "(($ac_try" in
20163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20164   *) ac_try_echo=$ac_try;;
20165 esac
20166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20167   (eval "$ac_try") 2>&5
20168   ac_status=$?
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); }; }; then
20171   ac_cv_lib_gcc___floatdidf=yes
20172 else
20173   echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176         ac_cv_lib_gcc___floatdidf=no
20177 fi
20178
20179 rm -f core conftest.err conftest.$ac_objext \
20180       conftest$ac_exeext conftest.$ac_ext
20181 LIBS=$ac_check_lib_save_LIBS
20182 fi
20183 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20184 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20185 if test $ac_cv_lib_gcc___floatdidf = yes; then
20186
20187 cat >>confdefs.h <<\_ACEOF
20188 #define HAVE___FLOATDIDF 1
20189 _ACEOF
20190
20191 fi
20192
20193   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20194 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20195 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   ac_check_lib_save_LIBS=$LIBS
20199 LIBS="-lgcc  $LIBS"
20200 cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h.  */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h.  */
20206
20207 /* Override any GCC internal prototype to avoid an error.
20208    Use char because int might match the return type of a GCC
20209    builtin and then its argument prototype would still apply.  */
20210 #ifdef __cplusplus
20211 extern "C"
20212 #endif
20213 char __lshrdi3 ();
20214 int
20215 main ()
20216 {
20217 return __lshrdi3 ();
20218   ;
20219   return 0;
20220 }
20221 _ACEOF
20222 rm -f conftest.$ac_objext conftest$ac_exeext
20223 if { (ac_try="$ac_link"
20224 case "(($ac_try" in
20225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226   *) ac_try_echo=$ac_try;;
20227 esac
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229   (eval "$ac_link") 2>conftest.er1
20230   ac_status=$?
20231   grep -v '^ *+' conftest.er1 >conftest.err
20232   rm -f conftest.er1
20233   cat conftest.err >&5
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); } &&
20236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20237   { (case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_try") 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; } &&
20246          { ac_try='test -s conftest$ac_exeext'
20247   { (case "(($ac_try" in
20248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249   *) ac_try_echo=$ac_try;;
20250 esac
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252   (eval "$ac_try") 2>&5
20253   ac_status=$?
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); }; }; then
20256   ac_cv_lib_gcc___lshrdi3=yes
20257 else
20258   echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20260
20261         ac_cv_lib_gcc___lshrdi3=no
20262 fi
20263
20264 rm -f core conftest.err conftest.$ac_objext \
20265       conftest$ac_exeext conftest.$ac_ext
20266 LIBS=$ac_check_lib_save_LIBS
20267 fi
20268 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20269 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20270 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20271
20272 cat >>confdefs.h <<\_ACEOF
20273 #define HAVE___LSHRDI3 1
20274 _ACEOF
20275
20276 fi
20277
20278   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20279 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20280 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20281   echo $ECHO_N "(cached) $ECHO_C" >&6
20282 else
20283   ac_check_lib_save_LIBS=$LIBS
20284 LIBS="-lgcc  $LIBS"
20285 cat >conftest.$ac_ext <<_ACEOF
20286 /* confdefs.h.  */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h.  */
20291
20292 /* Override any GCC internal prototype to avoid an error.
20293    Use char because int might match the return type of a GCC
20294    builtin and then its argument prototype would still apply.  */
20295 #ifdef __cplusplus
20296 extern "C"
20297 #endif
20298 char __moddi3 ();
20299 int
20300 main ()
20301 {
20302 return __moddi3 ();
20303   ;
20304   return 0;
20305 }
20306 _ACEOF
20307 rm -f conftest.$ac_objext conftest$ac_exeext
20308 if { (ac_try="$ac_link"
20309 case "(($ac_try" in
20310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311   *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314   (eval "$ac_link") 2>conftest.er1
20315   ac_status=$?
20316   grep -v '^ *+' conftest.er1 >conftest.err
20317   rm -f conftest.er1
20318   cat conftest.err >&5
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); } &&
20321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20322   { (case "(($ac_try" in
20323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324   *) ac_try_echo=$ac_try;;
20325 esac
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327   (eval "$ac_try") 2>&5
20328   ac_status=$?
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); }; } &&
20331          { ac_try='test -s conftest$ac_exeext'
20332   { (case "(($ac_try" in
20333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334   *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337   (eval "$ac_try") 2>&5
20338   ac_status=$?
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); }; }; then
20341   ac_cv_lib_gcc___moddi3=yes
20342 else
20343   echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20345
20346         ac_cv_lib_gcc___moddi3=no
20347 fi
20348
20349 rm -f core conftest.err conftest.$ac_objext \
20350       conftest$ac_exeext conftest.$ac_ext
20351 LIBS=$ac_check_lib_save_LIBS
20352 fi
20353 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20354 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20355 if test $ac_cv_lib_gcc___moddi3 = yes; then
20356
20357 cat >>confdefs.h <<\_ACEOF
20358 #define HAVE___MODDI3 1
20359 _ACEOF
20360
20361 fi
20362
20363   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20364 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20365 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20366   echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368   ac_check_lib_save_LIBS=$LIBS
20369 LIBS="-lgcc  $LIBS"
20370 cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h.  */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h.  */
20376
20377 /* Override any GCC internal prototype to avoid an error.
20378    Use char because int might match the return type of a GCC
20379    builtin and then its argument prototype would still apply.  */
20380 #ifdef __cplusplus
20381 extern "C"
20382 #endif
20383 char __udivdi3 ();
20384 int
20385 main ()
20386 {
20387 return __udivdi3 ();
20388   ;
20389   return 0;
20390 }
20391 _ACEOF
20392 rm -f conftest.$ac_objext conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396   *) ac_try_echo=$ac_try;;
20397 esac
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399   (eval "$ac_link") 2>conftest.er1
20400   ac_status=$?
20401   grep -v '^ *+' conftest.er1 >conftest.err
20402   rm -f conftest.er1
20403   cat conftest.err >&5
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); } &&
20406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20407   { (case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_try") 2>&5
20413   ac_status=$?
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); }; } &&
20416          { ac_try='test -s conftest$ac_exeext'
20417   { (case "(($ac_try" in
20418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419   *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422   (eval "$ac_try") 2>&5
20423   ac_status=$?
20424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425   (exit $ac_status); }; }; then
20426   ac_cv_lib_gcc___udivdi3=yes
20427 else
20428   echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20430
20431         ac_cv_lib_gcc___udivdi3=no
20432 fi
20433
20434 rm -f core conftest.err conftest.$ac_objext \
20435       conftest$ac_exeext conftest.$ac_ext
20436 LIBS=$ac_check_lib_save_LIBS
20437 fi
20438 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20439 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20440 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20441
20442 cat >>confdefs.h <<\_ACEOF
20443 #define HAVE___UDIVDI3 1
20444 _ACEOF
20445
20446 fi
20447
20448   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20449 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20450 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453   ac_check_lib_save_LIBS=$LIBS
20454 LIBS="-lgcc  $LIBS"
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461
20462 /* Override any GCC internal prototype to avoid an error.
20463    Use char because int might match the return type of a GCC
20464    builtin and then its argument prototype would still apply.  */
20465 #ifdef __cplusplus
20466 extern "C"
20467 #endif
20468 char __umoddi3 ();
20469 int
20470 main ()
20471 {
20472 return __umoddi3 ();
20473   ;
20474   return 0;
20475 }
20476 _ACEOF
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481   *) ac_try_echo=$ac_try;;
20482 esac
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484   (eval "$ac_link") 2>conftest.er1
20485   ac_status=$?
20486   grep -v '^ *+' conftest.er1 >conftest.err
20487   rm -f conftest.er1
20488   cat conftest.err >&5
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); } &&
20491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20492   { (case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497   (eval "$ac_try") 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; } &&
20501          { ac_try='test -s conftest$ac_exeext'
20502   { (case "(($ac_try" in
20503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504   *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507   (eval "$ac_try") 2>&5
20508   ac_status=$?
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); }; }; then
20511   ac_cv_lib_gcc___umoddi3=yes
20512 else
20513   echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20515
20516         ac_cv_lib_gcc___umoddi3=no
20517 fi
20518
20519 rm -f core conftest.err conftest.$ac_objext \
20520       conftest$ac_exeext conftest.$ac_ext
20521 LIBS=$ac_check_lib_save_LIBS
20522 fi
20523 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20524 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20525 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20526
20527 cat >>confdefs.h <<\_ACEOF
20528 #define HAVE___UMODDI3 1
20529 _ACEOF
20530
20531 fi
20532
20533
20534   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20535 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20536 if test "${ac_cv_lib_gcc___main+set}" = set; then
20537   echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539   ac_check_lib_save_LIBS=$LIBS
20540 LIBS="-lgcc  $LIBS"
20541 cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h.  */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h.  */
20547
20548 /* Override any GCC internal prototype to avoid an error.
20549    Use char because int might match the return type of a GCC
20550    builtin and then its argument prototype would still apply.  */
20551 #ifdef __cplusplus
20552 extern "C"
20553 #endif
20554 char __main ();
20555 int
20556 main ()
20557 {
20558 return __main ();
20559   ;
20560   return 0;
20561 }
20562 _ACEOF
20563 rm -f conftest.$ac_objext conftest$ac_exeext
20564 if { (ac_try="$ac_link"
20565 case "(($ac_try" in
20566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567   *) ac_try_echo=$ac_try;;
20568 esac
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570   (eval "$ac_link") 2>conftest.er1
20571   ac_status=$?
20572   grep -v '^ *+' conftest.er1 >conftest.err
20573   rm -f conftest.er1
20574   cat conftest.err >&5
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); } &&
20577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20578   { (case "(($ac_try" in
20579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580   *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583   (eval "$ac_try") 2>&5
20584   ac_status=$?
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); }; } &&
20587          { ac_try='test -s conftest$ac_exeext'
20588   { (case "(($ac_try" in
20589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590   *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593   (eval "$ac_try") 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; }; then
20597   ac_cv_lib_gcc___main=yes
20598 else
20599   echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20601
20602         ac_cv_lib_gcc___main=no
20603 fi
20604
20605 rm -f core conftest.err conftest.$ac_objext \
20606       conftest$ac_exeext conftest.$ac_ext
20607 LIBS=$ac_check_lib_save_LIBS
20608 fi
20609 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20610 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20611 if test $ac_cv_lib_gcc___main = yes; then
20612
20613 cat >>confdefs.h <<\_ACEOF
20614 #define HAVE___MAIN 1
20615 _ACEOF
20616
20617 fi
20618
20619   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20620 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20621 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20622   echo $ECHO_N "(cached) $ECHO_C" >&6
20623 else
20624   ac_check_lib_save_LIBS=$LIBS
20625 LIBS="-lgcc  $LIBS"
20626 cat >conftest.$ac_ext <<_ACEOF
20627 /* confdefs.h.  */
20628 _ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h.  */
20632
20633 /* Override any GCC internal prototype to avoid an error.
20634    Use char because int might match the return type of a GCC
20635    builtin and then its argument prototype would still apply.  */
20636 #ifdef __cplusplus
20637 extern "C"
20638 #endif
20639 char __cmpdi2 ();
20640 int
20641 main ()
20642 {
20643 return __cmpdi2 ();
20644   ;
20645   return 0;
20646 }
20647 _ACEOF
20648 rm -f conftest.$ac_objext conftest$ac_exeext
20649 if { (ac_try="$ac_link"
20650 case "(($ac_try" in
20651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652   *) ac_try_echo=$ac_try;;
20653 esac
20654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655   (eval "$ac_link") 2>conftest.er1
20656   ac_status=$?
20657   grep -v '^ *+' conftest.er1 >conftest.err
20658   rm -f conftest.er1
20659   cat conftest.err >&5
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); } &&
20662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20663   { (case "(($ac_try" in
20664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665   *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668   (eval "$ac_try") 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; } &&
20672          { ac_try='test -s conftest$ac_exeext'
20673   { (case "(($ac_try" in
20674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675   *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678   (eval "$ac_try") 2>&5
20679   ac_status=$?
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); }; }; then
20682   ac_cv_lib_gcc___cmpdi2=yes
20683 else
20684   echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20686
20687         ac_cv_lib_gcc___cmpdi2=no
20688 fi
20689
20690 rm -f core conftest.err conftest.$ac_objext \
20691       conftest$ac_exeext conftest.$ac_ext
20692 LIBS=$ac_check_lib_save_LIBS
20693 fi
20694 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20695 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20696 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20697
20698 cat >>confdefs.h <<\_ACEOF
20699 #define HAVE___CMPDI2 1
20700 _ACEOF
20701
20702 fi
20703
20704 fi
20705
20706 if test "$llvm_cv_os_type" = "MingW" ; then
20707   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20708 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20709   cat >conftest.$ac_ext <<_ACEOF
20710 #include <windows.h>
20711 #include <imagehlp.h>
20712 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20713 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20714 _ACEOF
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719   *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722   (eval "$ac_compile") 2>conftest.er1
20723   ac_status=$?
20724   grep -v '^ *+' conftest.er1 >conftest.err
20725   rm -f conftest.er1
20726   cat conftest.err >&5
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); } &&
20729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20730   { (case "(($ac_try" in
20731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732   *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735   (eval "$ac_try") 2>&5
20736   ac_status=$?
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); }; } &&
20739          { ac_try='test -s conftest.$ac_objext'
20740   { (case "(($ac_try" in
20741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742   *) ac_try_echo=$ac_try;;
20743 esac
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745   (eval "$ac_try") 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); }; }; then
20749
20750   { echo "$as_me:$LINENO: result: yes" >&5
20751 echo "${ECHO_T}yes" >&6; }
20752   llvm_cv_win32_elmcb_pcstr="PCSTR"
20753
20754 else
20755   echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758
20759   { echo "$as_me:$LINENO: result: no" >&5
20760 echo "${ECHO_T}no" >&6; }
20761   llvm_cv_win32_elmcb_pcstr="PSTR"
20762
20763 fi
20764
20765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766
20767 cat >>confdefs.h <<_ACEOF
20768 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20769 _ACEOF
20770
20771 fi
20772
20773
20774 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20775 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20776 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20777   echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779   ac_ext=cpp
20780 ac_cpp='$CXXCPP $CPPFLAGS'
20781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20784
20785    cat >conftest.$ac_ext <<_ACEOF
20786 /* confdefs.h.  */
20787 _ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h.  */
20791 #include <math.h>
20792 int
20793 main ()
20794 {
20795 float f; isnan(f);
20796   ;
20797   return 0;
20798 }
20799 _ACEOF
20800 rm -f conftest.$ac_objext
20801 if { (ac_try="$ac_compile"
20802 case "(($ac_try" in
20803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804   *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807   (eval "$ac_compile") 2>conftest.er1
20808   ac_status=$?
20809   grep -v '^ *+' conftest.er1 >conftest.err
20810   rm -f conftest.er1
20811   cat conftest.err >&5
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); } &&
20814          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20815   { (case "(($ac_try" in
20816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817   *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820   (eval "$ac_try") 2>&5
20821   ac_status=$?
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); }; } &&
20824          { ac_try='test -s conftest.$ac_objext'
20825   { (case "(($ac_try" in
20826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827   *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830   (eval "$ac_try") 2>&5
20831   ac_status=$?
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); }; }; then
20834   ac_cv_func_isnan_in_math_h=yes
20835 else
20836   echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20838
20839         ac_cv_func_isnan_in_math_h=no
20840 fi
20841
20842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843   ac_ext=c
20844 ac_cpp='$CPP $CPPFLAGS'
20845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20848
20849 fi
20850 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20851 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20852
20853
20854 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20855
20856 cat >>confdefs.h <<\_ACEOF
20857 #define HAVE_ISNAN_IN_MATH_H 1
20858 _ACEOF
20859
20860 fi
20861
20862 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20863 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20864 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20865   echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867   ac_ext=cpp
20868 ac_cpp='$CXXCPP $CPPFLAGS'
20869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20872
20873    cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879 #include <cmath>
20880 int
20881 main ()
20882 {
20883 float f; isnan(f);
20884   ;
20885   return 0;
20886 }
20887 _ACEOF
20888 rm -f conftest.$ac_objext
20889 if { (ac_try="$ac_compile"
20890 case "(($ac_try" in
20891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892   *) ac_try_echo=$ac_try;;
20893 esac
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895   (eval "$ac_compile") 2>conftest.er1
20896   ac_status=$?
20897   grep -v '^ *+' conftest.er1 >conftest.err
20898   rm -f conftest.er1
20899   cat conftest.err >&5
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); } &&
20902          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20903   { (case "(($ac_try" in
20904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905   *) ac_try_echo=$ac_try;;
20906 esac
20907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908   (eval "$ac_try") 2>&5
20909   ac_status=$?
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); }; } &&
20912          { ac_try='test -s conftest.$ac_objext'
20913   { (case "(($ac_try" in
20914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915   *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918   (eval "$ac_try") 2>&5
20919   ac_status=$?
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); }; }; then
20922   ac_cv_func_isnan_in_cmath=yes
20923 else
20924   echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927         ac_cv_func_isnan_in_cmath=no
20928 fi
20929
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20931   ac_ext=c
20932 ac_cpp='$CPP $CPPFLAGS'
20933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936
20937 fi
20938 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20939 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20940
20941 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20942
20943 cat >>confdefs.h <<\_ACEOF
20944 #define HAVE_ISNAN_IN_CMATH 1
20945 _ACEOF
20946
20947 fi
20948
20949 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20950 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20951 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20952   echo $ECHO_N "(cached) $ECHO_C" >&6
20953 else
20954   ac_ext=cpp
20955 ac_cpp='$CXXCPP $CPPFLAGS'
20956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20959
20960    cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h.  */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h.  */
20966 #include <cmath>
20967 int
20968 main ()
20969 {
20970 float f; std::isnan(f);
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982   (eval "$ac_compile") 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } &&
20989          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20990   { (case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_try") 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; } &&
20999          { ac_try='test -s conftest.$ac_objext'
21000   { (case "(($ac_try" in
21001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002   *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005   (eval "$ac_try") 2>&5
21006   ac_status=$?
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); }; }; then
21009   ac_cv_func_std_isnan_in_cmath=yes
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014         ac_cv_func_std_isnan_in_cmath=no
21015 fi
21016
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018   ac_ext=c
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024 fi
21025 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21026 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21027
21028 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21029
21030 cat >>confdefs.h <<\_ACEOF
21031 #define HAVE_STD_ISNAN_IN_CMATH 1
21032 _ACEOF
21033
21034 fi
21035
21036
21037 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21038 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21039 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21040   echo $ECHO_N "(cached) $ECHO_C" >&6
21041 else
21042   ac_ext=cpp
21043 ac_cpp='$CXXCPP $CPPFLAGS'
21044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21047
21048    cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h.  */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h.  */
21054 #include <math.h>
21055 int
21056 main ()
21057 {
21058 float f; isinf(f);
21059   ;
21060   return 0;
21061 }
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (ac_try="$ac_compile"
21065 case "(($ac_try" in
21066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067   *) ac_try_echo=$ac_try;;
21068 esac
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070   (eval "$ac_compile") 2>conftest.er1
21071   ac_status=$?
21072   grep -v '^ *+' conftest.er1 >conftest.err
21073   rm -f conftest.er1
21074   cat conftest.err >&5
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); } &&
21077          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21078   { (case "(($ac_try" in
21079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080   *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083   (eval "$ac_try") 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); }; } &&
21087          { ac_try='test -s conftest.$ac_objext'
21088   { (case "(($ac_try" in
21089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090   *) ac_try_echo=$ac_try;;
21091 esac
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093   (eval "$ac_try") 2>&5
21094   ac_status=$?
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); }; }; then
21097   ac_cv_func_isinf_in_math_h=yes
21098 else
21099   echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102         ac_cv_func_isinf_in_math_h=no
21103 fi
21104
21105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106   ac_ext=c
21107 ac_cpp='$CPP $CPPFLAGS'
21108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111
21112 fi
21113 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21114 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21115
21116 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21117
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_ISINF_IN_MATH_H 1
21120 _ACEOF
21121
21122 fi
21123
21124 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21125 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21126 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21127   echo $ECHO_N "(cached) $ECHO_C" >&6
21128 else
21129   ac_ext=cpp
21130 ac_cpp='$CXXCPP $CPPFLAGS'
21131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21134
21135    cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141 #include <cmath>
21142 int
21143 main ()
21144 {
21145 float f; isinf(f);
21146   ;
21147   return 0;
21148 }
21149 _ACEOF
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154   *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157   (eval "$ac_compile") 2>conftest.er1
21158   ac_status=$?
21159   grep -v '^ *+' conftest.er1 >conftest.err
21160   rm -f conftest.er1
21161   cat conftest.err >&5
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); } &&
21164          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21165   { (case "(($ac_try" in
21166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167   *) ac_try_echo=$ac_try;;
21168 esac
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170   (eval "$ac_try") 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; } &&
21174          { ac_try='test -s conftest.$ac_objext'
21175   { (case "(($ac_try" in
21176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177   *) ac_try_echo=$ac_try;;
21178 esac
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180   (eval "$ac_try") 2>&5
21181   ac_status=$?
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); }; }; then
21184   ac_cv_func_isinf_in_cmath=yes
21185 else
21186   echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189         ac_cv_func_isinf_in_cmath=no
21190 fi
21191
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21193   ac_ext=c
21194 ac_cpp='$CPP $CPPFLAGS'
21195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198
21199 fi
21200 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21201 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21202
21203 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21204
21205 cat >>confdefs.h <<\_ACEOF
21206 #define HAVE_ISINF_IN_CMATH 1
21207 _ACEOF
21208
21209 fi
21210
21211 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21212 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21213 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21214   echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216   ac_ext=cpp
21217 ac_cpp='$CXXCPP $CPPFLAGS'
21218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21221
21222    cat >conftest.$ac_ext <<_ACEOF
21223 /* confdefs.h.  */
21224 _ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h.  */
21228 #include <cmath>
21229 int
21230 main ()
21231 {
21232 float f; std::isinf(f)}
21233   ;
21234   return 0;
21235 }
21236 _ACEOF
21237 rm -f conftest.$ac_objext
21238 if { (ac_try="$ac_compile"
21239 case "(($ac_try" in
21240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241   *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244   (eval "$ac_compile") 2>conftest.er1
21245   ac_status=$?
21246   grep -v '^ *+' conftest.er1 >conftest.err
21247   rm -f conftest.er1
21248   cat conftest.err >&5
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); } &&
21251          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21252   { (case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257   (eval "$ac_try") 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); }; } &&
21261          { ac_try='test -s conftest.$ac_objext'
21262   { (case "(($ac_try" in
21263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264   *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267   (eval "$ac_try") 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; }; then
21271   ac_cv_func_std_isinf_in_cmath=yes
21272 else
21273   echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276         ac_cv_func_std_isinf_in_cmath=no
21277 fi
21278
21279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21280   ac_ext=c
21281 ac_cpp='$CPP $CPPFLAGS'
21282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21285
21286 fi
21287 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21288 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21289
21290 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21291
21292 cat >>confdefs.h <<\_ACEOF
21293 #define HAVE_STD_ISINF_IN_CMATH 1
21294 _ACEOF
21295
21296 fi
21297
21298 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21299 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21300 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21301   echo $ECHO_N "(cached) $ECHO_C" >&6
21302 else
21303   ac_ext=cpp
21304 ac_cpp='$CXXCPP $CPPFLAGS'
21305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21308
21309    cat >conftest.$ac_ext <<_ACEOF
21310 /* confdefs.h.  */
21311 _ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h.  */
21315 #include <ieeefp.h>
21316 int
21317 main ()
21318 {
21319 float f; finite(f);
21320   ;
21321   return 0;
21322 }
21323 _ACEOF
21324 rm -f conftest.$ac_objext
21325 if { (ac_try="$ac_compile"
21326 case "(($ac_try" in
21327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328   *) ac_try_echo=$ac_try;;
21329 esac
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331   (eval "$ac_compile") 2>conftest.er1
21332   ac_status=$?
21333   grep -v '^ *+' conftest.er1 >conftest.err
21334   rm -f conftest.er1
21335   cat conftest.err >&5
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } &&
21338          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21339   { (case "(($ac_try" in
21340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341   *) ac_try_echo=$ac_try;;
21342 esac
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344   (eval "$ac_try") 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); }; } &&
21348          { ac_try='test -s conftest.$ac_objext'
21349   { (case "(($ac_try" in
21350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351   *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354   (eval "$ac_try") 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); }; }; then
21358   ac_cv_func_finite_in_ieeefp_h=yes
21359 else
21360   echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21362
21363         ac_cv_func_finite_in_ieeefp_h=no
21364 fi
21365
21366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21367   ac_ext=c
21368 ac_cpp='$CPP $CPPFLAGS'
21369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21372
21373 fi
21374 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21375 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21376
21377 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21378
21379 cat >>confdefs.h <<\_ACEOF
21380 #define HAVE_FINITE_IN_IEEEFP_H 1
21381 _ACEOF
21382
21383 fi
21384
21385
21386
21387 if test "$llvm_cv_platform_type" = "Unix" ; then
21388
21389
21390 for ac_header in stdlib.h unistd.h
21391 do
21392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21394   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21397   echo $ECHO_N "(cached) $ECHO_C" >&6
21398 fi
21399 ac_res=`eval echo '${'$as_ac_Header'}'`
21400                { echo "$as_me:$LINENO: result: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21402 else
21403   # Is the header compilable?
21404 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412 $ac_includes_default
21413 #include <$ac_header>
21414 _ACEOF
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419   *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422   (eval "$ac_compile") 2>conftest.er1
21423   ac_status=$?
21424   grep -v '^ *+' conftest.er1 >conftest.err
21425   rm -f conftest.er1
21426   cat conftest.err >&5
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } &&
21429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21430   { (case "(($ac_try" in
21431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432   *) ac_try_echo=$ac_try;;
21433 esac
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435   (eval "$ac_try") 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); }; } &&
21439          { ac_try='test -s conftest.$ac_objext'
21440   { (case "(($ac_try" in
21441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442   *) ac_try_echo=$ac_try;;
21443 esac
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445   (eval "$ac_try") 2>&5
21446   ac_status=$?
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); }; }; then
21449   ac_header_compiler=yes
21450 else
21451   echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21453
21454         ac_header_compiler=no
21455 fi
21456
21457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21459 echo "${ECHO_T}$ac_header_compiler" >&6; }
21460
21461 # Is the header present?
21462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21464 cat >conftest.$ac_ext <<_ACEOF
21465 /* confdefs.h.  */
21466 _ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h.  */
21470 #include <$ac_header>
21471 _ACEOF
21472 if { (ac_try="$ac_cpp conftest.$ac_ext"
21473 case "(($ac_try" in
21474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475   *) ac_try_echo=$ac_try;;
21476 esac
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21479   ac_status=$?
21480   grep -v '^ *+' conftest.er1 >conftest.err
21481   rm -f conftest.er1
21482   cat conftest.err >&5
21483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484   (exit $ac_status); } >/dev/null; then
21485   if test -s conftest.err; then
21486     ac_cpp_err=$ac_c_preproc_warn_flag
21487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21488   else
21489     ac_cpp_err=
21490   fi
21491 else
21492   ac_cpp_err=yes
21493 fi
21494 if test -z "$ac_cpp_err"; then
21495   ac_header_preproc=yes
21496 else
21497   echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500   ac_header_preproc=no
21501 fi
21502
21503 rm -f conftest.err conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505 echo "${ECHO_T}$ac_header_preproc" >&6; }
21506
21507 # So?  What about this header?
21508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21509   yes:no: )
21510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21514     ac_header_preproc=yes
21515     ;;
21516   no:yes:* )
21517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21529     ( cat <<\_ASBOX
21530 ## ----------------------------------- ##
21531 ## Report this to llvmbugs@cs.uiuc.edu ##
21532 ## ----------------------------------- ##
21533 _ASBOX
21534      ) | sed "s/^/$as_me: WARNING:     /" >&2
21535     ;;
21536 esac
21537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540   echo $ECHO_N "(cached) $ECHO_C" >&6
21541 else
21542   eval "$as_ac_Header=\$ac_header_preproc"
21543 fi
21544 ac_res=`eval echo '${'$as_ac_Header'}'`
21545                { echo "$as_me:$LINENO: result: $ac_res" >&5
21546 echo "${ECHO_T}$ac_res" >&6; }
21547
21548 fi
21549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21550   cat >>confdefs.h <<_ACEOF
21551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21552 _ACEOF
21553
21554 fi
21555
21556 done
21557
21558
21559 for ac_func in getpagesize
21560 do
21561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21565   echo $ECHO_N "(cached) $ECHO_C" >&6
21566 else
21567   cat >conftest.$ac_ext <<_ACEOF
21568 /* confdefs.h.  */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h.  */
21573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21575 #define $ac_func innocuous_$ac_func
21576
21577 /* System header to define __stub macros and hopefully few prototypes,
21578     which can conflict with char $ac_func (); below.
21579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21580     <limits.h> exists even on freestanding compilers.  */
21581
21582 #ifdef __STDC__
21583 # include <limits.h>
21584 #else
21585 # include <assert.h>
21586 #endif
21587
21588 #undef $ac_func
21589
21590 /* Override any GCC internal prototype to avoid an error.
21591    Use char because int might match the return type of a GCC
21592    builtin and then its argument prototype would still apply.  */
21593 #ifdef __cplusplus
21594 extern "C"
21595 #endif
21596 char $ac_func ();
21597 /* The GNU C library defines this for functions which it implements
21598     to always fail with ENOSYS.  Some functions are actually named
21599     something starting with __ and the normal name is an alias.  */
21600 #if defined __stub_$ac_func || defined __stub___$ac_func
21601 choke me
21602 #endif
21603
21604 int
21605 main ()
21606 {
21607 return $ac_func ();
21608   ;
21609   return 0;
21610 }
21611 _ACEOF
21612 rm -f conftest.$ac_objext conftest$ac_exeext
21613 if { (ac_try="$ac_link"
21614 case "(($ac_try" in
21615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616   *) ac_try_echo=$ac_try;;
21617 esac
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619   (eval "$ac_link") 2>conftest.er1
21620   ac_status=$?
21621   grep -v '^ *+' conftest.er1 >conftest.err
21622   rm -f conftest.er1
21623   cat conftest.err >&5
21624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); } &&
21626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21627   { (case "(($ac_try" in
21628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629   *) ac_try_echo=$ac_try;;
21630 esac
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632   (eval "$ac_try") 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); }; } &&
21636          { ac_try='test -s conftest$ac_exeext'
21637   { (case "(($ac_try" in
21638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639   *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642   (eval "$ac_try") 2>&5
21643   ac_status=$?
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); }; }; then
21646   eval "$as_ac_var=yes"
21647 else
21648   echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651         eval "$as_ac_var=no"
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext \
21655       conftest$ac_exeext conftest.$ac_ext
21656 fi
21657 ac_res=`eval echo '${'$as_ac_var'}'`
21658                { echo "$as_me:$LINENO: result: $ac_res" >&5
21659 echo "${ECHO_T}$ac_res" >&6; }
21660 if test `eval echo '${'$as_ac_var'}'` = yes; then
21661   cat >>confdefs.h <<_ACEOF
21662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21663 _ACEOF
21664
21665 fi
21666 done
21667
21668 { echo "$as_me:$LINENO: checking for working mmap" >&5
21669 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21670 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21671   echo $ECHO_N "(cached) $ECHO_C" >&6
21672 else
21673   if test "$cross_compiling" = yes; then
21674   ac_cv_func_mmap_fixed_mapped=no
21675 else
21676   cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h.  */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h.  */
21682 $ac_includes_default
21683 /* malloc might have been renamed as rpl_malloc. */
21684 #undef malloc
21685
21686 /* Thanks to Mike Haertel and Jim Avera for this test.
21687    Here is a matrix of mmap possibilities:
21688         mmap private not fixed
21689         mmap private fixed at somewhere currently unmapped
21690         mmap private fixed at somewhere already mapped
21691         mmap shared not fixed
21692         mmap shared fixed at somewhere currently unmapped
21693         mmap shared fixed at somewhere already mapped
21694    For private mappings, we should verify that changes cannot be read()
21695    back from the file, nor mmap's back from the file at a different
21696    address.  (There have been systems where private was not correctly
21697    implemented like the infamous i386 svr4.0, and systems where the
21698    VM page cache was not coherent with the file system buffer cache
21699    like early versions of FreeBSD and possibly contemporary NetBSD.)
21700    For shared mappings, we should conversely verify that changes get
21701    propagated back to all the places they're supposed to be.
21702
21703    Grep wants private fixed already mapped.
21704    The main things grep needs to know about mmap are:
21705    * does it exist and is it safe to write into the mmap'd area
21706    * how to use it (BSD variants)  */
21707
21708 #include <fcntl.h>
21709 #include <sys/mman.h>
21710
21711 #if !STDC_HEADERS && !HAVE_STDLIB_H
21712 char *malloc ();
21713 #endif
21714
21715 /* This mess was copied from the GNU getpagesize.h.  */
21716 #if !HAVE_GETPAGESIZE
21717 /* Assume that all systems that can run configure have sys/param.h.  */
21718 # if !HAVE_SYS_PARAM_H
21719 #  define HAVE_SYS_PARAM_H 1
21720 # endif
21721
21722 # ifdef _SC_PAGESIZE
21723 #  define getpagesize() sysconf(_SC_PAGESIZE)
21724 # else /* no _SC_PAGESIZE */
21725 #  if HAVE_SYS_PARAM_H
21726 #   include <sys/param.h>
21727 #   ifdef EXEC_PAGESIZE
21728 #    define getpagesize() EXEC_PAGESIZE
21729 #   else /* no EXEC_PAGESIZE */
21730 #    ifdef NBPG
21731 #     define getpagesize() NBPG * CLSIZE
21732 #     ifndef CLSIZE
21733 #      define CLSIZE 1
21734 #     endif /* no CLSIZE */
21735 #    else /* no NBPG */
21736 #     ifdef NBPC
21737 #      define getpagesize() NBPC
21738 #     else /* no NBPC */
21739 #      ifdef PAGESIZE
21740 #       define getpagesize() PAGESIZE
21741 #      endif /* PAGESIZE */
21742 #     endif /* no NBPC */
21743 #    endif /* no NBPG */
21744 #   endif /* no EXEC_PAGESIZE */
21745 #  else /* no HAVE_SYS_PARAM_H */
21746 #   define getpagesize() 8192   /* punt totally */
21747 #  endif /* no HAVE_SYS_PARAM_H */
21748 # endif /* no _SC_PAGESIZE */
21749
21750 #endif /* no HAVE_GETPAGESIZE */
21751
21752 int
21753 main ()
21754 {
21755   char *data, *data2, *data3;
21756   int i, pagesize;
21757   int fd;
21758
21759   pagesize = getpagesize ();
21760
21761   /* First, make a file with some known garbage in it. */
21762   data = (char *) malloc (pagesize);
21763   if (!data)
21764     return 1;
21765   for (i = 0; i < pagesize; ++i)
21766     *(data + i) = rand ();
21767   umask (0);
21768   fd = creat ("conftest.mmap", 0600);
21769   if (fd < 0)
21770     return 1;
21771   if (write (fd, data, pagesize) != pagesize)
21772     return 1;
21773   close (fd);
21774
21775   /* Next, try to mmap the file at a fixed address which already has
21776      something else allocated at it.  If we can, also make sure that
21777      we see the same garbage.  */
21778   fd = open ("conftest.mmap", O_RDWR);
21779   if (fd < 0)
21780     return 1;
21781   data2 = (char *) malloc (2 * pagesize);
21782   if (!data2)
21783     return 1;
21784   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21785   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21786                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21787     return 1;
21788   for (i = 0; i < pagesize; ++i)
21789     if (*(data + i) != *(data2 + i))
21790       return 1;
21791
21792   /* Finally, make sure that changes to the mapped area do not
21793      percolate back to the file as seen by read().  (This is a bug on
21794      some variants of i386 svr4.0.)  */
21795   for (i = 0; i < pagesize; ++i)
21796     *(data2 + i) = *(data2 + i) + 1;
21797   data3 = (char *) malloc (pagesize);
21798   if (!data3)
21799     return 1;
21800   if (read (fd, data3, pagesize) != pagesize)
21801     return 1;
21802   for (i = 0; i < pagesize; ++i)
21803     if (*(data + i) != *(data3 + i))
21804       return 1;
21805   close (fd);
21806   return 0;
21807 }
21808 _ACEOF
21809 rm -f conftest$ac_exeext
21810 if { (ac_try="$ac_link"
21811 case "(($ac_try" in
21812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813   *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816   (eval "$ac_link") 2>&5
21817   ac_status=$?
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21820   { (case "(($ac_try" in
21821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822   *) ac_try_echo=$ac_try;;
21823 esac
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825   (eval "$ac_try") 2>&5
21826   ac_status=$?
21827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828   (exit $ac_status); }; }; then
21829   ac_cv_func_mmap_fixed_mapped=yes
21830 else
21831   echo "$as_me: program exited with status $ac_status" >&5
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21834
21835 ( exit $ac_status )
21836 ac_cv_func_mmap_fixed_mapped=no
21837 fi
21838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21839 fi
21840
21841
21842 fi
21843 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21844 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21845 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21846
21847 cat >>confdefs.h <<\_ACEOF
21848 #define HAVE_MMAP 1
21849 _ACEOF
21850
21851 fi
21852 rm -f conftest.mmap
21853
21854   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21855 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21856 if test "${ac_cv_func_mmap_file+set}" = set; then
21857   echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859    ac_ext=c
21860 ac_cpp='$CPP $CPPFLAGS'
21861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21864
21865   if test "$cross_compiling" = yes; then
21866   ac_cv_func_mmap_file=no
21867 else
21868   cat >conftest.$ac_ext <<_ACEOF
21869
21870     /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875
21876 #include <sys/types.h>
21877 #include <sys/mman.h>
21878 #include <fcntl.h>
21879
21880 int
21881 main ()
21882 {
21883
21884   int fd;
21885   fd = creat ("foo",0777);
21886   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21887   unlink ("foo");
21888   return (fd != (int) MAP_FAILED);
21889   ;
21890   return 0;
21891 }
21892 _ACEOF
21893 rm -f conftest$ac_exeext
21894 if { (ac_try="$ac_link"
21895 case "(($ac_try" in
21896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897   *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900   (eval "$ac_link") 2>&5
21901   ac_status=$?
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21904   { (case "(($ac_try" in
21905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906   *) ac_try_echo=$ac_try;;
21907 esac
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909   (eval "$ac_try") 2>&5
21910   ac_status=$?
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); }; }; then
21913   ac_cv_func_mmap_file=yes
21914 else
21915   echo "$as_me: program exited with status $ac_status" >&5
21916 echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21918
21919 ( exit $ac_status )
21920 ac_cv_func_mmap_file=no
21921 fi
21922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21923 fi
21924
21925
21926   ac_ext=c
21927 ac_cpp='$CPP $CPPFLAGS'
21928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21931
21932
21933 fi
21934 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21935 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21936 if test "$ac_cv_func_mmap_file" = yes; then
21937
21938 cat >>confdefs.h <<\_ACEOF
21939 #define HAVE_MMAP_FILE
21940 _ACEOF
21941
21942    MMAP_FILE=yes
21943
21944 fi
21945
21946   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21947 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21948 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21949   echo $ECHO_N "(cached) $ECHO_C" >&6
21950 else
21951   if test "$llvm_cv_os_type" = "Interix" ; then
21952    ac_cv_need_dev_zero_for_mmap=yes
21953  else
21954    ac_cv_need_dev_zero_for_mmap=no
21955  fi
21956
21957 fi
21958 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21959 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21960 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21961
21962 cat >>confdefs.h <<\_ACEOF
21963 #define NEED_DEV_ZERO_FOR_MMAP 1
21964 _ACEOF
21965
21966 fi
21967
21968   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21969   then
21970     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21971 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21972   fi
21973   if test "$ac_cv_func_mmap_file" = "no"
21974   then
21975     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21976 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21977   fi
21978 fi
21979
21980 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21981 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21982 ac_ext=cpp
21983 ac_cpp='$CXXCPP $CPPFLAGS'
21984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21987
21988 cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h.  */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h.  */
21994 int main() {
21995         volatile unsigned long val = 1;
21996         __sync_synchronize();
21997         __sync_val_compare_and_swap(&val, 1, 0);
21998         __sync_add_and_fetch(&val, 1);
21999         __sync_sub_and_fetch(&val, 1);
22000         return 0;
22001       }
22002
22003 _ACEOF
22004 rm -f conftest.$ac_objext conftest$ac_exeext
22005 if { (ac_try="$ac_link"
22006 case "(($ac_try" in
22007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008   *) ac_try_echo=$ac_try;;
22009 esac
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011   (eval "$ac_link") 2>conftest.er1
22012   ac_status=$?
22013   grep -v '^ *+' conftest.er1 >conftest.err
22014   rm -f conftest.er1
22015   cat conftest.err >&5
22016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017   (exit $ac_status); } &&
22018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22019   { (case "(($ac_try" in
22020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021   *) ac_try_echo=$ac_try;;
22022 esac
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024   (eval "$ac_try") 2>&5
22025   ac_status=$?
22026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); }; } &&
22028          { ac_try='test -s conftest$ac_exeext'
22029   { (case "(($ac_try" in
22030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031   *) ac_try_echo=$ac_try;;
22032 esac
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034   (eval "$ac_try") 2>&5
22035   ac_status=$?
22036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037   (exit $ac_status); }; }; then
22038   ac_ext=c
22039 ac_cpp='$CPP $CPPFLAGS'
22040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22043
22044   { echo "$as_me:$LINENO: result: yes" >&5
22045 echo "${ECHO_T}yes" >&6; }
22046
22047 cat >>confdefs.h <<\_ACEOF
22048 #define LLVM_MULTITHREADED 1
22049 _ACEOF
22050
22051 else
22052   echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055         { echo "$as_me:$LINENO: result: no" >&5
22056 echo "${ECHO_T}no" >&6; }
22057
22058 cat >>confdefs.h <<\_ACEOF
22059 #define LLVM_MULTITHREADED 0
22060 _ACEOF
22061
22062   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22063 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22064 fi
22065
22066 rm -f core conftest.err conftest.$ac_objext \
22067       conftest$ac_exeext conftest.$ac_ext
22068
22069
22070 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22071   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22072 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22073 if test "${llvm_cv_linux_mixed+set}" = set; then
22074   echo $ECHO_N "(cached) $ECHO_C" >&6
22075 else
22076    ac_ext=c
22077 ac_cpp='$CPP $CPPFLAGS'
22078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22081
22082   cat >conftest.$ac_ext <<_ACEOF
22083 /* confdefs.h.  */
22084 _ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h.  */
22088 #ifndef __x86_64__
22089        error: Not x86-64 even if uname says so!
22090       #endif
22091
22092 int
22093 main ()
22094 {
22095
22096   ;
22097   return 0;
22098 }
22099 _ACEOF
22100 rm -f conftest.$ac_objext
22101 if { (ac_try="$ac_compile"
22102 case "(($ac_try" in
22103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104   *) ac_try_echo=$ac_try;;
22105 esac
22106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107   (eval "$ac_compile") 2>conftest.er1
22108   ac_status=$?
22109   grep -v '^ *+' conftest.er1 >conftest.err
22110   rm -f conftest.er1
22111   cat conftest.err >&5
22112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); } &&
22114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22115   { (case "(($ac_try" in
22116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117   *) ac_try_echo=$ac_try;;
22118 esac
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120   (eval "$ac_try") 2>&5
22121   ac_status=$?
22122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123   (exit $ac_status); }; } &&
22124          { ac_try='test -s conftest.$ac_objext'
22125   { (case "(($ac_try" in
22126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127   *) ac_try_echo=$ac_try;;
22128 esac
22129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130   (eval "$ac_try") 2>&5
22131   ac_status=$?
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); }; }; then
22134   llvm_cv_linux_mixed=no
22135 else
22136   echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22138
22139         llvm_cv_linux_mixed=yes
22140 fi
22141
22142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143   ac_ext=c
22144 ac_cpp='$CPP $CPPFLAGS'
22145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22148
22149
22150 fi
22151 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22152 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22153
22154   if test "$llvm_cv_linux_mixed" = "yes"; then
22155     llvm_cv_target_arch="x86"
22156     ARCH="x86"
22157   fi
22158 fi
22159
22160
22161 for ac_func in __dso_handle
22162 do
22163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22167   echo $ECHO_N "(cached) $ECHO_C" >&6
22168 else
22169   cat >conftest.$ac_ext <<_ACEOF
22170 /* confdefs.h.  */
22171 _ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h.  */
22175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22177 #define $ac_func innocuous_$ac_func
22178
22179 /* System header to define __stub macros and hopefully few prototypes,
22180     which can conflict with char $ac_func (); below.
22181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22182     <limits.h> exists even on freestanding compilers.  */
22183
22184 #ifdef __STDC__
22185 # include <limits.h>
22186 #else
22187 # include <assert.h>
22188 #endif
22189
22190 #undef $ac_func
22191
22192 /* Override any GCC internal prototype to avoid an error.
22193    Use char because int might match the return type of a GCC
22194    builtin and then its argument prototype would still apply.  */
22195 #ifdef __cplusplus
22196 extern "C"
22197 #endif
22198 char $ac_func ();
22199 /* The GNU C library defines this for functions which it implements
22200     to always fail with ENOSYS.  Some functions are actually named
22201     something starting with __ and the normal name is an alias.  */
22202 #if defined __stub_$ac_func || defined __stub___$ac_func
22203 choke me
22204 #endif
22205
22206 int
22207 main ()
22208 {
22209 return $ac_func ();
22210   ;
22211   return 0;
22212 }
22213 _ACEOF
22214 rm -f conftest.$ac_objext conftest$ac_exeext
22215 if { (ac_try="$ac_link"
22216 case "(($ac_try" in
22217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218   *) ac_try_echo=$ac_try;;
22219 esac
22220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221   (eval "$ac_link") 2>conftest.er1
22222   ac_status=$?
22223   grep -v '^ *+' conftest.er1 >conftest.err
22224   rm -f conftest.er1
22225   cat conftest.err >&5
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); } &&
22228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22229   { (case "(($ac_try" in
22230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231   *) ac_try_echo=$ac_try;;
22232 esac
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234   (eval "$ac_try") 2>&5
22235   ac_status=$?
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); }; } &&
22238          { ac_try='test -s conftest$ac_exeext'
22239   { (case "(($ac_try" in
22240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241   *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244   (eval "$ac_try") 2>&5
22245   ac_status=$?
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); }; }; then
22248   eval "$as_ac_var=yes"
22249 else
22250   echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22252
22253         eval "$as_ac_var=no"
22254 fi
22255
22256 rm -f core conftest.err conftest.$ac_objext \
22257       conftest$ac_exeext conftest.$ac_ext
22258 fi
22259 ac_res=`eval echo '${'$as_ac_var'}'`
22260                { echo "$as_me:$LINENO: result: $ac_res" >&5
22261 echo "${ECHO_T}$ac_res" >&6; }
22262 if test `eval echo '${'$as_ac_var'}'` = yes; then
22263   cat >>confdefs.h <<_ACEOF
22264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22265 _ACEOF
22266
22267 fi
22268 done
22269
22270
22271 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22272 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22273 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22274   echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22276   llvm_cv_llvmgcc_dragonegg="no"
22277 if test -n "$LLVMGCC" ; then
22278   cp /dev/null conftest.c
22279   $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22280   if test $? -eq 0 ; then
22281     llvm_cv_llvmgcc_dragonegg="yes"
22282   fi
22283   rm conftest.c
22284 fi
22285 fi
22286 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22287 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22288
22289 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22290   LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22291   LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22292 else
22293   LLVMCC_EMITIR_FLAG="-emit-llvm"
22294   LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22295 fi
22296
22297
22298
22299 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22300 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22301 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22302   echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304   llvm_cv_llvmgcc_sanity="no"
22305 if test -n "$LLVMGCC" ; then
22306   cp /dev/null conftest.c
22307   $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22308       grep 'target datalayout =' > /dev/null 2>&1
22309   if test $? -eq 0 ; then
22310     llvm_cv_llvmgcc_sanity="yes"
22311   fi
22312   rm conftest.c
22313 fi
22314 fi
22315 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22316 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22317
22318 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22319   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22320 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22321   llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22322   LLVMCC1=$llvmcc1path
22323
22324   llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22325   LLVMCC1PLUS=$llvmcc1pluspath
22326
22327   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22328   LLVMGCCDIR=$llvmgccdir
22329
22330   llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22331   LLVMGCC_LANGS=$llvmgcclangs
22332
22333   LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22334
22335
22336   { echo "$as_me:$LINENO: result: ok" >&5
22337 echo "${ECHO_T}ok" >&6; }
22338 fi
22339
22340 SHLIBEXT=$libltdl_cv_shlibext
22341
22342
22343 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22344
22345
22346 # Translate the various configuration directories and other basic
22347 # information into substitutions that will end up in Makefile.config.in
22348 # that these configured values can be used by the makefiles
22349 if test "${prefix}" = "NONE" ; then
22350   prefix="/usr/local"
22351 fi
22352 eval LLVM_PREFIX="${prefix}";
22353 eval LLVM_BINDIR="${prefix}/bin";
22354 eval LLVM_LIBDIR="${prefix}/lib";
22355 eval LLVM_DATADIR="${prefix}/share/llvm";
22356 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22357 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22358 eval LLVM_INCLUDEDIR="${prefix}/include";
22359 eval LLVM_INFODIR="${prefix}/info";
22360 eval LLVM_MANDIR="${prefix}/man";
22361 LLVM_CONFIGTIME=`date`
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373 # Place the various directores into the config.h file as #defines so that we
22374 # can know about the installation paths within LLVM.
22375
22376 cat >>confdefs.h <<_ACEOF
22377 #define LLVM_PREFIX "$LLVM_PREFIX"
22378 _ACEOF
22379
22380
22381 cat >>confdefs.h <<_ACEOF
22382 #define LLVM_BINDIR "$LLVM_BINDIR"
22383 _ACEOF
22384
22385
22386 cat >>confdefs.h <<_ACEOF
22387 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22388 _ACEOF
22389
22390
22391 cat >>confdefs.h <<_ACEOF
22392 #define LLVM_DATADIR "$LLVM_DATADIR"
22393 _ACEOF
22394
22395
22396 cat >>confdefs.h <<_ACEOF
22397 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22398 _ACEOF
22399
22400
22401 cat >>confdefs.h <<_ACEOF
22402 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22403 _ACEOF
22404
22405
22406 cat >>confdefs.h <<_ACEOF
22407 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22408 _ACEOF
22409
22410
22411 cat >>confdefs.h <<_ACEOF
22412 #define LLVM_INFODIR "$LLVM_INFODIR"
22413 _ACEOF
22414
22415
22416 cat >>confdefs.h <<_ACEOF
22417 #define LLVM_MANDIR "$LLVM_MANDIR"
22418 _ACEOF
22419
22420
22421 cat >>confdefs.h <<_ACEOF
22422 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22423 _ACEOF
22424
22425
22426 cat >>confdefs.h <<_ACEOF
22427 #define LLVM_HOSTTRIPLE "$host"
22428 _ACEOF
22429
22430
22431 # Determine which bindings to build.
22432 if test "$BINDINGS_TO_BUILD" = auto ; then
22433   BINDINGS_TO_BUILD=""
22434   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22435     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22436   fi
22437 fi
22438 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22439
22440
22441 # This isn't really configurey, but it avoids having to repeat the list in
22442 # other files.
22443 ALL_BINDINGS=ocaml
22444
22445
22446 # Do any work necessary to ensure that bindings have what they need.
22447 binding_prereqs_failed=0
22448 for a_binding in $BINDINGS_TO_BUILD ; do
22449   case "$a_binding" in
22450   ocaml)
22451     if test "x$OCAMLC" = x ; then
22452       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22453 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22454       binding_prereqs_failed=1
22455     fi
22456     if test "x$OCAMLDEP" = x ; then
22457       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22458 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22459       binding_prereqs_failed=1
22460     fi
22461     if test "x$OCAMLOPT" = x ; then
22462       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22463 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22464           fi
22465     if test "x$with_ocaml_libdir" != xauto ; then
22466       OCAML_LIBDIR=$with_ocaml_libdir
22467
22468     else
22469       ocaml_stdlib="`"$OCAMLC" -where`"
22470       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22471       then
22472         # ocaml stdlib is beneath our prefix; use stdlib
22473         OCAML_LIBDIR=$ocaml_stdlib
22474
22475       else
22476         # ocaml stdlib is outside our prefix; use libdir/ocaml
22477         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22478
22479       fi
22480     fi
22481     ;;
22482   esac
22483 done
22484 if test "$binding_prereqs_failed" = 1 ; then
22485   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22486 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22487    { (exit 1); exit 1; }; }
22488 fi
22489
22490 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22491 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22492 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22493   echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495    ac_ext=cpp
22496 ac_cpp='$CXXCPP $CPPFLAGS'
22497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22500
22501   oldcxxflags="$CXXFLAGS"
22502   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22503   cat >conftest.$ac_ext <<_ACEOF
22504 /* confdefs.h.  */
22505 _ACEOF
22506 cat confdefs.h >>conftest.$ac_ext
22507 cat >>conftest.$ac_ext <<_ACEOF
22508 /* end confdefs.h.  */
22509
22510 int
22511 main ()
22512 {
22513
22514   ;
22515   return 0;
22516 }
22517 _ACEOF
22518 rm -f conftest.$ac_objext
22519 if { (ac_try="$ac_compile"
22520 case "(($ac_try" in
22521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522   *) ac_try_echo=$ac_try;;
22523 esac
22524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22525   (eval "$ac_compile") 2>conftest.er1
22526   ac_status=$?
22527   grep -v '^ *+' conftest.er1 >conftest.err
22528   rm -f conftest.er1
22529   cat conftest.err >&5
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); } &&
22532          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22533   { (case "(($ac_try" in
22534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535   *) ac_try_echo=$ac_try;;
22536 esac
22537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538   (eval "$ac_try") 2>&5
22539   ac_status=$?
22540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541   (exit $ac_status); }; } &&
22542          { ac_try='test -s conftest.$ac_objext'
22543   { (case "(($ac_try" in
22544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545   *) ac_try_echo=$ac_try;;
22546 esac
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548   (eval "$ac_try") 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); }; }; then
22552   llvm_cv_cxx_visibility_inlines_hidden=yes
22553 else
22554   echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22556
22557         llvm_cv_cxx_visibility_inlines_hidden=no
22558 fi
22559
22560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561   CXXFLAGS="$oldcxxflags"
22562   ac_ext=c
22563 ac_cpp='$CPP $CPPFLAGS'
22564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22567
22568
22569 fi
22570 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22571 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22572 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22573   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22574
22575 else
22576   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22577
22578 fi
22579
22580
22581 if test "$llvm_cv_link_use_r" = "yes" ; then
22582   RPATH="-Wl,-R"
22583 else
22584   RPATH="-Wl,-rpath"
22585 fi
22586
22587
22588 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22589   RDYNAMIC="-Wl,-export-dynamic"
22590 else
22591   RDYNAMIC=""
22592 fi
22593
22594
22595
22596 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22597
22598
22599
22600
22601
22602
22603 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22604
22605 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22606
22607 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22608
22609 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22610
22611 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22612
22613
22614 ac_config_files="$ac_config_files Makefile.config"
22615
22616
22617 ac_config_files="$ac_config_files llvm.spec"
22618
22619
22620 ac_config_files="$ac_config_files docs/doxygen.cfg"
22621
22622 if test -f ${srcdir}/tools/clang/README.txt; then
22623   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22624
22625 fi
22626
22627 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22628
22629
22630 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22631
22632
22633 ac_config_commands="$ac_config_commands setup"
22634
22635 ac_config_commands="$ac_config_commands Makefile"
22636
22637
22638 ac_config_commands="$ac_config_commands Makefile.common"
22639
22640
22641 ac_config_commands="$ac_config_commands examples/Makefile"
22642
22643
22644 ac_config_commands="$ac_config_commands lib/Makefile"
22645
22646
22647 ac_config_commands="$ac_config_commands runtime/Makefile"
22648
22649
22650 ac_config_commands="$ac_config_commands test/Makefile"
22651
22652
22653 ac_config_commands="$ac_config_commands test/Makefile.tests"
22654
22655
22656 ac_config_commands="$ac_config_commands unittests/Makefile"
22657
22658
22659 ac_config_commands="$ac_config_commands tools/Makefile"
22660
22661
22662 ac_config_commands="$ac_config_commands utils/Makefile"
22663
22664
22665 ac_config_commands="$ac_config_commands projects/Makefile"
22666
22667
22668 ac_config_commands="$ac_config_commands bindings/Makefile"
22669
22670
22671 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22672
22673
22674
22675 cat >confcache <<\_ACEOF
22676 # This file is a shell script that caches the results of configure
22677 # tests run on this system so they can be shared between configure
22678 # scripts and configure runs, see configure's option --config-cache.
22679 # It is not useful on other systems.  If it contains results you don't
22680 # want to keep, you may remove or edit it.
22681 #
22682 # config.status only pays attention to the cache file if you give it
22683 # the --recheck option to rerun configure.
22684 #
22685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22687 # following values.
22688
22689 _ACEOF
22690
22691 # The following way of writing the cache mishandles newlines in values,
22692 # but we know of no workaround that is simple, portable, and efficient.
22693 # So, we kill variables containing newlines.
22694 # Ultrix sh set writes to stderr and can't be redirected directly,
22695 # and sets the high bit in the cache file unless we assign to the vars.
22696 (
22697   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22698     eval ac_val=\$$ac_var
22699     case $ac_val in #(
22700     *${as_nl}*)
22701       case $ac_var in #(
22702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22704       esac
22705       case $ac_var in #(
22706       _ | IFS | as_nl) ;; #(
22707       *) $as_unset $ac_var ;;
22708       esac ;;
22709     esac
22710   done
22711
22712   (set) 2>&1 |
22713     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22714     *${as_nl}ac_space=\ *)
22715       # `set' does not quote correctly, so add quotes (double-quote
22716       # substitution turns \\\\ into \\, and sed turns \\ into \).
22717       sed -n \
22718         "s/'/'\\\\''/g;
22719           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22720       ;; #(
22721     *)
22722       # `set' quotes correctly as required by POSIX, so do not add quotes.
22723       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22724       ;;
22725     esac |
22726     sort
22727 ) |
22728   sed '
22729      /^ac_cv_env_/b end
22730      t clear
22731      :clear
22732      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22733      t end
22734      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22735      :end' >>confcache
22736 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22737   if test -w "$cache_file"; then
22738     test "x$cache_file" != "x/dev/null" &&
22739       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22740 echo "$as_me: updating cache $cache_file" >&6;}
22741     cat confcache >$cache_file
22742   else
22743     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22744 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22745   fi
22746 fi
22747 rm -f confcache
22748
22749 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22750 # Let make expand exec_prefix.
22751 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22752
22753 DEFS=-DHAVE_CONFIG_H
22754
22755 ac_libobjs=
22756 ac_ltlibobjs=
22757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22758   # 1. Remove the extension, and $U if already installed.
22759   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22760   ac_i=`echo "$ac_i" | sed "$ac_script"`
22761   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22762   #    will be set to the directory where LIBOBJS objects are built.
22763   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22764   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22765 done
22766 LIBOBJS=$ac_libobjs
22767
22768 LTLIBOBJS=$ac_ltlibobjs
22769
22770
22771 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22772   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22773 Usually this means the macro was only invoked conditionally." >&5
22774 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22775 Usually this means the macro was only invoked conditionally." >&2;}
22776    { (exit 1); exit 1; }; }
22777 fi
22778 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22779   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22780 Usually this means the macro was only invoked conditionally." >&5
22781 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22782 Usually this means the macro was only invoked conditionally." >&2;}
22783    { (exit 1); exit 1; }; }
22784 fi
22785
22786 : ${CONFIG_STATUS=./config.status}
22787 ac_clean_files_save=$ac_clean_files
22788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22789 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22790 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22791 cat >$CONFIG_STATUS <<_ACEOF
22792 #! $SHELL
22793 # Generated by $as_me.
22794 # Run this file to recreate the current configuration.
22795 # Compiler output produced by configure, useful for debugging
22796 # configure, is in config.log if it exists.
22797
22798 debug=false
22799 ac_cs_recheck=false
22800 ac_cs_silent=false
22801 SHELL=\${CONFIG_SHELL-$SHELL}
22802 _ACEOF
22803
22804 cat >>$CONFIG_STATUS <<\_ACEOF
22805 ## --------------------- ##
22806 ## M4sh Initialization.  ##
22807 ## --------------------- ##
22808
22809 # Be Bourne compatible
22810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22811   emulate sh
22812   NULLCMD=:
22813   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22814   # is contrary to our usage.  Disable this feature.
22815   alias -g '${1+"$@"}'='"$@"'
22816   setopt NO_GLOB_SUBST
22817 else
22818   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22819 fi
22820 BIN_SH=xpg4; export BIN_SH # for Tru64
22821 DUALCASE=1; export DUALCASE # for MKS sh
22822
22823
22824 # PATH needs CR
22825 # Avoid depending upon Character Ranges.
22826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22829 as_cr_digits='0123456789'
22830 as_cr_alnum=$as_cr_Letters$as_cr_digits
22831
22832 # The user is always right.
22833 if test "${PATH_SEPARATOR+set}" != set; then
22834   echo "#! /bin/sh" >conf$$.sh
22835   echo  "exit 0"   >>conf$$.sh
22836   chmod +x conf$$.sh
22837   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22838     PATH_SEPARATOR=';'
22839   else
22840     PATH_SEPARATOR=:
22841   fi
22842   rm -f conf$$.sh
22843 fi
22844
22845 # Support unset when possible.
22846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22847   as_unset=unset
22848 else
22849   as_unset=false
22850 fi
22851
22852
22853 # IFS
22854 # We need space, tab and new line, in precisely that order.  Quoting is
22855 # there to prevent editors from complaining about space-tab.
22856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22857 # splitting by setting IFS to empty value.)
22858 as_nl='
22859 '
22860 IFS=" ""        $as_nl"
22861
22862 # Find who we are.  Look in the path if we contain no directory separator.
22863 case $0 in
22864   *[\\/]* ) as_myself=$0 ;;
22865   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22866 for as_dir in $PATH
22867 do
22868   IFS=$as_save_IFS
22869   test -z "$as_dir" && as_dir=.
22870   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22871 done
22872 IFS=$as_save_IFS
22873
22874      ;;
22875 esac
22876 # We did not find ourselves, most probably we were run as `sh COMMAND'
22877 # in which case we are not to be found in the path.
22878 if test "x$as_myself" = x; then
22879   as_myself=$0
22880 fi
22881 if test ! -f "$as_myself"; then
22882   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22883   { (exit 1); exit 1; }
22884 fi
22885
22886 # Work around bugs in pre-3.0 UWIN ksh.
22887 for as_var in ENV MAIL MAILPATH
22888 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22889 done
22890 PS1='$ '
22891 PS2='> '
22892 PS4='+ '
22893
22894 # NLS nuisances.
22895 for as_var in \
22896   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22897   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22898   LC_TELEPHONE LC_TIME
22899 do
22900   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22901     eval $as_var=C; export $as_var
22902   else
22903     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22904   fi
22905 done
22906
22907 # Required to use basename.
22908 if expr a : '\(a\)' >/dev/null 2>&1 &&
22909    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22910   as_expr=expr
22911 else
22912   as_expr=false
22913 fi
22914
22915 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22916   as_basename=basename
22917 else
22918   as_basename=false
22919 fi
22920
22921
22922 # Name of the executable.
22923 as_me=`$as_basename -- "$0" ||
22924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22925          X"$0" : 'X\(//\)$' \| \
22926          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22927 echo X/"$0" |
22928     sed '/^.*\/\([^/][^/]*\)\/*$/{
22929             s//\1/
22930             q
22931           }
22932           /^X\/\(\/\/\)$/{
22933             s//\1/
22934             q
22935           }
22936           /^X\/\(\/\).*/{
22937             s//\1/
22938             q
22939           }
22940           s/.*/./; q'`
22941
22942 # CDPATH.
22943 $as_unset CDPATH
22944
22945
22946
22947   as_lineno_1=$LINENO
22948   as_lineno_2=$LINENO
22949   test "x$as_lineno_1" != "x$as_lineno_2" &&
22950   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22951
22952   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22953   # uniformly replaced by the line number.  The first 'sed' inserts a
22954   # line-number line after each line using $LINENO; the second 'sed'
22955   # does the real work.  The second script uses 'N' to pair each
22956   # line-number line with the line containing $LINENO, and appends
22957   # trailing '-' during substitution so that $LINENO is not a special
22958   # case at line end.
22959   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22960   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22961   # E. McMahon (1931-1989) for sed's syntax.  :-)
22962   sed -n '
22963     p
22964     /[$]LINENO/=
22965   ' <$as_myself |
22966     sed '
22967       s/[$]LINENO.*/&-/
22968       t lineno
22969       b
22970       :lineno
22971       N
22972       :loop
22973       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22974       t loop
22975       s/-\n.*//
22976     ' >$as_me.lineno &&
22977   chmod +x "$as_me.lineno" ||
22978     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22979    { (exit 1); exit 1; }; }
22980
22981   # Don't try to exec as it changes $[0], causing all sort of problems
22982   # (the dirname of $[0] is not the place where we might find the
22983   # original and so on.  Autoconf is especially sensitive to this).
22984   . "./$as_me.lineno"
22985   # Exit status is that of the last command.
22986   exit
22987 }
22988
22989
22990 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22991   as_dirname=dirname
22992 else
22993   as_dirname=false
22994 fi
22995
22996 ECHO_C= ECHO_N= ECHO_T=
22997 case `echo -n x` in
22998 -n*)
22999   case `echo 'x\c'` in
23000   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23001   *)   ECHO_C='\c';;
23002   esac;;
23003 *)
23004   ECHO_N='-n';;
23005 esac
23006
23007 if expr a : '\(a\)' >/dev/null 2>&1 &&
23008    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23009   as_expr=expr
23010 else
23011   as_expr=false
23012 fi
23013
23014 rm -f conf$$ conf$$.exe conf$$.file
23015 if test -d conf$$.dir; then
23016   rm -f conf$$.dir/conf$$.file
23017 else
23018   rm -f conf$$.dir
23019   mkdir conf$$.dir
23020 fi
23021 echo >conf$$.file
23022 if ln -s conf$$.file conf$$ 2>/dev/null; then
23023   as_ln_s='ln -s'
23024   # ... but there are two gotchas:
23025   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23026   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23027   # In both cases, we have to default to `cp -p'.
23028   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23029     as_ln_s='cp -p'
23030 elif ln conf$$.file conf$$ 2>/dev/null; then
23031   as_ln_s=ln
23032 else
23033   as_ln_s='cp -p'
23034 fi
23035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23036 rmdir conf$$.dir 2>/dev/null
23037
23038 if mkdir -p . 2>/dev/null; then
23039   as_mkdir_p=:
23040 else
23041   test -d ./-p && rmdir ./-p
23042   as_mkdir_p=false
23043 fi
23044
23045 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23046 # systems may use methods other than mode bits to determine executability.
23047 cat >conf$$.file <<_ASEOF
23048 #! /bin/sh
23049 exit 0
23050 _ASEOF
23051 chmod +x conf$$.file
23052 if test -x conf$$.file >/dev/null 2>&1; then
23053   as_executable_p="test -x"
23054 else
23055   as_executable_p=:
23056 fi
23057 rm -f conf$$.file
23058
23059 # Sed expression to map a string onto a valid CPP name.
23060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23061
23062 # Sed expression to map a string onto a valid variable name.
23063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23064
23065
23066 exec 6>&1
23067
23068 # Save the log message, to keep $[0] and so on meaningful, and to
23069 # report actual input values of CONFIG_FILES etc. instead of their
23070 # values after options handling.
23071 ac_log="
23072 This file was extended by llvm $as_me 3.0svn, which was
23073 generated by GNU Autoconf 2.60.  Invocation command line was
23074
23075   CONFIG_FILES    = $CONFIG_FILES
23076   CONFIG_HEADERS  = $CONFIG_HEADERS
23077   CONFIG_LINKS    = $CONFIG_LINKS
23078   CONFIG_COMMANDS = $CONFIG_COMMANDS
23079   $ $0 $@
23080
23081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23082 "
23083
23084 _ACEOF
23085
23086 cat >>$CONFIG_STATUS <<_ACEOF
23087 # Files that config.status was made for.
23088 config_files="$ac_config_files"
23089 config_headers="$ac_config_headers"
23090 config_commands="$ac_config_commands"
23091
23092 _ACEOF
23093
23094 cat >>$CONFIG_STATUS <<\_ACEOF
23095 ac_cs_usage="\
23096 \`$as_me' instantiates files from templates according to the
23097 current configuration.
23098
23099 Usage: $0 [OPTIONS] [FILE]...
23100
23101   -h, --help       print this help, then exit
23102   -V, --version    print version number, then exit
23103   -q, --quiet      do not print progress messages
23104   -d, --debug      don't remove temporary files
23105       --recheck    update $as_me by reconfiguring in the same conditions
23106   --file=FILE[:TEMPLATE]
23107                    instantiate the configuration file FILE
23108   --header=FILE[:TEMPLATE]
23109                    instantiate the configuration header FILE
23110
23111 Configuration files:
23112 $config_files
23113
23114 Configuration headers:
23115 $config_headers
23116
23117 Configuration commands:
23118 $config_commands
23119
23120 Report bugs to <bug-autoconf@gnu.org>."
23121
23122 _ACEOF
23123 cat >>$CONFIG_STATUS <<_ACEOF
23124 ac_cs_version="\\
23125 llvm config.status 3.0svn
23126 configured by $0, generated by GNU Autoconf 2.60,
23127   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23128
23129 Copyright (C) 2006 Free Software Foundation, Inc.
23130 This config.status script is free software; the Free Software Foundation
23131 gives unlimited permission to copy, distribute and modify it."
23132
23133 ac_pwd='$ac_pwd'
23134 srcdir='$srcdir'
23135 INSTALL='$INSTALL'
23136 _ACEOF
23137
23138 cat >>$CONFIG_STATUS <<\_ACEOF
23139 # If no file are specified by the user, then we need to provide default
23140 # value.  By we need to know if files were specified by the user.
23141 ac_need_defaults=:
23142 while test $# != 0
23143 do
23144   case $1 in
23145   --*=*)
23146     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23147     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23148     ac_shift=:
23149     ;;
23150   *)
23151     ac_option=$1
23152     ac_optarg=$2
23153     ac_shift=shift
23154     ;;
23155   esac
23156
23157   case $ac_option in
23158   # Handling of the options.
23159   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23160     ac_cs_recheck=: ;;
23161   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23162     echo "$ac_cs_version"; exit ;;
23163   --debug | --debu | --deb | --de | --d | -d )
23164     debug=: ;;
23165   --file | --fil | --fi | --f )
23166     $ac_shift
23167     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23168     ac_need_defaults=false;;
23169   --header | --heade | --head | --hea )
23170     $ac_shift
23171     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23172     ac_need_defaults=false;;
23173   --he | --h)
23174     # Conflict between --help and --header
23175     { echo "$as_me: error: ambiguous option: $1
23176 Try \`$0 --help' for more information." >&2
23177    { (exit 1); exit 1; }; };;
23178   --help | --hel | -h )
23179     echo "$ac_cs_usage"; exit ;;
23180   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23181   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23182     ac_cs_silent=: ;;
23183
23184   # This is an error.
23185   -*) { echo "$as_me: error: unrecognized option: $1
23186 Try \`$0 --help' for more information." >&2
23187    { (exit 1); exit 1; }; } ;;
23188
23189   *) ac_config_targets="$ac_config_targets $1"
23190      ac_need_defaults=false ;;
23191
23192   esac
23193   shift
23194 done
23195
23196 ac_configure_extra_args=
23197
23198 if $ac_cs_silent; then
23199   exec 6>/dev/null
23200   ac_configure_extra_args="$ac_configure_extra_args --silent"
23201 fi
23202
23203 _ACEOF
23204 cat >>$CONFIG_STATUS <<_ACEOF
23205 if \$ac_cs_recheck; then
23206   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23207   CONFIG_SHELL=$SHELL
23208   export CONFIG_SHELL
23209   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23210 fi
23211
23212 _ACEOF
23213 cat >>$CONFIG_STATUS <<\_ACEOF
23214 exec 5>>config.log
23215 {
23216   echo
23217   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23218 ## Running $as_me. ##
23219 _ASBOX
23220   echo "$ac_log"
23221 } >&5
23222
23223 _ACEOF
23224 cat >>$CONFIG_STATUS <<_ACEOF
23225 #
23226 # INIT-COMMANDS
23227 #
23228 llvm_src="${srcdir}"
23229
23230 _ACEOF
23231
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23233
23234 # Handling of arguments.
23235 for ac_config_target in $ac_config_targets
23236 do
23237   case $ac_config_target in
23238     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23239     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23240     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23241     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23242     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23243     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23244     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23245     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23246     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23247     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23248     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23249     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23250     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23251     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23252     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23253     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23254     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23255     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23256     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23257     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23258     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23259     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23260     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23261     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23262     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23263     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23264     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23265
23266   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23267 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23268    { (exit 1); exit 1; }; };;
23269   esac
23270 done
23271
23272
23273 # If the user did not use the arguments to specify the items to instantiate,
23274 # then the envvar interface is used.  Set only those that are not.
23275 # We use the long form for the default assignment because of an extremely
23276 # bizarre bug on SunOS 4.1.3.
23277 if $ac_need_defaults; then
23278   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23279   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23280   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23281 fi
23282
23283 # Have a temporary directory for convenience.  Make it in the build tree
23284 # simply because there is no reason against having it here, and in addition,
23285 # creating and moving files from /tmp can sometimes cause problems.
23286 # Hook for its removal unless debugging.
23287 # Note that there is a small window in which the directory will not be cleaned:
23288 # after its creation but before its name has been assigned to `$tmp'.
23289 $debug ||
23290 {
23291   tmp=
23292   trap 'exit_status=$?
23293   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23294 ' 0
23295   trap '{ (exit 1); exit 1; }' 1 2 13 15
23296 }
23297 # Create a (secure) tmp directory for tmp files.
23298
23299 {
23300   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23301   test -n "$tmp" && test -d "$tmp"
23302 }  ||
23303 {
23304   tmp=./conf$$-$RANDOM
23305   (umask 077 && mkdir "$tmp")
23306 } ||
23307 {
23308    echo "$me: cannot create a temporary directory in ." >&2
23309    { (exit 1); exit 1; }
23310 }
23311
23312 #
23313 # Set up the sed scripts for CONFIG_FILES section.
23314 #
23315
23316 # No need to generate the scripts if there are no CONFIG_FILES.
23317 # This happens for instance when ./config.status config.h
23318 if test -n "$CONFIG_FILES"; then
23319
23320 _ACEOF
23321
23322
23323
23324 ac_delim='%!_!# '
23325 for ac_last_try in false false false false false :; do
23326   cat >conf$$subs.sed <<_ACEOF
23327 SHELL!$SHELL$ac_delim
23328 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23329 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23330 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23331 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23332 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23333 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23334 exec_prefix!$exec_prefix$ac_delim
23335 prefix!$prefix$ac_delim
23336 program_transform_name!$program_transform_name$ac_delim
23337 bindir!$bindir$ac_delim
23338 sbindir!$sbindir$ac_delim
23339 libexecdir!$libexecdir$ac_delim
23340 datarootdir!$datarootdir$ac_delim
23341 datadir!$datadir$ac_delim
23342 sysconfdir!$sysconfdir$ac_delim
23343 sharedstatedir!$sharedstatedir$ac_delim
23344 localstatedir!$localstatedir$ac_delim
23345 includedir!$includedir$ac_delim
23346 oldincludedir!$oldincludedir$ac_delim
23347 docdir!$docdir$ac_delim
23348 infodir!$infodir$ac_delim
23349 htmldir!$htmldir$ac_delim
23350 dvidir!$dvidir$ac_delim
23351 pdfdir!$pdfdir$ac_delim
23352 psdir!$psdir$ac_delim
23353 libdir!$libdir$ac_delim
23354 localedir!$localedir$ac_delim
23355 mandir!$mandir$ac_delim
23356 DEFS!$DEFS$ac_delim
23357 ECHO_C!$ECHO_C$ac_delim
23358 ECHO_N!$ECHO_N$ac_delim
23359 ECHO_T!$ECHO_T$ac_delim
23360 LIBS!$LIBS$ac_delim
23361 build_alias!$build_alias$ac_delim
23362 host_alias!$host_alias$ac_delim
23363 target_alias!$target_alias$ac_delim
23364 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23365 subdirs!$subdirs$ac_delim
23366 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23367 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23368 build!$build$ac_delim
23369 build_cpu!$build_cpu$ac_delim
23370 build_vendor!$build_vendor$ac_delim
23371 build_os!$build_os$ac_delim
23372 host!$host$ac_delim
23373 host_cpu!$host_cpu$ac_delim
23374 host_vendor!$host_vendor$ac_delim
23375 host_os!$host_os$ac_delim
23376 target!$target$ac_delim
23377 target_cpu!$target_cpu$ac_delim
23378 target_vendor!$target_vendor$ac_delim
23379 target_os!$target_os$ac_delim
23380 OS!$OS$ac_delim
23381 HOST_OS!$HOST_OS$ac_delim
23382 TARGET_OS!$TARGET_OS$ac_delim
23383 LINKALL!$LINKALL$ac_delim
23384 NOLINKALL!$NOLINKALL$ac_delim
23385 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23386 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23387 ARCH!$ARCH$ac_delim
23388 ENDIAN!$ENDIAN$ac_delim
23389 CC!$CC$ac_delim
23390 CFLAGS!$CFLAGS$ac_delim
23391 LDFLAGS!$LDFLAGS$ac_delim
23392 CPPFLAGS!$CPPFLAGS$ac_delim
23393 ac_ct_CC!$ac_ct_CC$ac_delim
23394 EXEEXT!$EXEEXT$ac_delim
23395 OBJEXT!$OBJEXT$ac_delim
23396 CPP!$CPP$ac_delim
23397 GREP!$GREP$ac_delim
23398 EGREP!$EGREP$ac_delim
23399 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23400 BUILD_CC!$BUILD_CC$ac_delim
23401 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23402 BUILD_CXX!$BUILD_CXX$ac_delim
23403 CVSBUILD!$CVSBUILD$ac_delim
23404 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23405 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23406 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23407 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23408 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23409 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23410 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23411 JIT!$JIT$ac_delim
23412 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23413 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23414 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23415 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23416 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23417 ENABLE_PIC!$ENABLE_PIC$ac_delim
23418 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23419 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23420 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23421 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23422 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23423 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23424 _ACEOF
23425
23426   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23427     break
23428   elif $ac_last_try; then
23429     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23430 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23431    { (exit 1); exit 1; }; }
23432   else
23433     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23434   fi
23435 done
23436
23437 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23438 if test -n "$ac_eof"; then
23439   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23440   ac_eof=`expr $ac_eof + 1`
23441 fi
23442
23443 cat >>$CONFIG_STATUS <<_ACEOF
23444 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23445 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23446 _ACEOF
23447 sed '
23448 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23449 s/^/s,@/; s/!/@,|#_!!_#|/
23450 :n
23451 t n
23452 s/'"$ac_delim"'$/,g/; t
23453 s/$/\\/; p
23454 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23455 ' >>$CONFIG_STATUS <conf$$subs.sed
23456 rm -f conf$$subs.sed
23457 cat >>$CONFIG_STATUS <<_ACEOF
23458 CEOF$ac_eof
23459 _ACEOF
23460
23461
23462 ac_delim='%!_!# '
23463 for ac_last_try in false false false false false :; do
23464   cat >conf$$subs.sed <<_ACEOF
23465 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23466 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23467 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23468 CLANGPATH!$CLANGPATH$ac_delim
23469 CLANGXXPATH!$CLANGXXPATH$ac_delim
23470 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23471 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23472 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23473 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23474 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23475 CXX!$CXX$ac_delim
23476 CXXFLAGS!$CXXFLAGS$ac_delim
23477 ac_ct_CXX!$ac_ct_CXX$ac_delim
23478 NM!$NM$ac_delim
23479 ifGNUmake!$ifGNUmake$ac_delim
23480 LN_S!$LN_S$ac_delim
23481 CMP!$CMP$ac_delim
23482 CP!$CP$ac_delim
23483 DATE!$DATE$ac_delim
23484 FIND!$FIND$ac_delim
23485 MKDIR!$MKDIR$ac_delim
23486 MV!$MV$ac_delim
23487 RANLIB!$RANLIB$ac_delim
23488 AR!$AR$ac_delim
23489 RM!$RM$ac_delim
23490 SED!$SED$ac_delim
23491 TAR!$TAR$ac_delim
23492 BINPWD!$BINPWD$ac_delim
23493 GRAPHVIZ!$GRAPHVIZ$ac_delim
23494 DOT!$DOT$ac_delim
23495 FDP!$FDP$ac_delim
23496 NEATO!$NEATO$ac_delim
23497 TWOPI!$TWOPI$ac_delim
23498 CIRCO!$CIRCO$ac_delim
23499 GV!$GV$ac_delim
23500 DOTTY!$DOTTY$ac_delim
23501 XDOT_PY!$XDOT_PY$ac_delim
23502 PERL!$PERL$ac_delim
23503 HAVE_PERL!$HAVE_PERL$ac_delim
23504 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23505 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23506 INSTALL_DATA!$INSTALL_DATA$ac_delim
23507 BZIP2!$BZIP2$ac_delim
23508 CAT!$CAT$ac_delim
23509 DOXYGEN!$DOXYGEN$ac_delim
23510 GROFF!$GROFF$ac_delim
23511 GZIPBIN!$GZIPBIN$ac_delim
23512 POD2HTML!$POD2HTML$ac_delim
23513 POD2MAN!$POD2MAN$ac_delim
23514 PDFROFF!$PDFROFF$ac_delim
23515 RUNTEST!$RUNTEST$ac_delim
23516 TCLSH!$TCLSH$ac_delim
23517 ZIP!$ZIP$ac_delim
23518 OCAMLC!$OCAMLC$ac_delim
23519 OCAMLOPT!$OCAMLOPT$ac_delim
23520 OCAMLDEP!$OCAMLDEP$ac_delim
23521 OCAMLDOC!$OCAMLDOC$ac_delim
23522 GAS!$GAS$ac_delim
23523 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23524 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23525 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23526 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23527 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23528 LIBADD_DL!$LIBADD_DL$ac_delim
23529 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23530 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23531 LLVMGCC!$LLVMGCC$ac_delim
23532 LLVMGXX!$LLVMGXX$ac_delim
23533 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23534 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23535 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23536 USE_UDIS86!$USE_UDIS86$ac_delim
23537 USE_OPROFILE!$USE_OPROFILE$ac_delim
23538 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23539 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23540 MMAP_FILE!$MMAP_FILE$ac_delim
23541 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23542 LLVMCC1!$LLVMCC1$ac_delim
23543 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23544 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23545 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23546 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23547 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23548 SHLIBEXT!$SHLIBEXT$ac_delim
23549 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23550 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23551 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23552 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23553 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23554 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23555 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23556 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23557 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23558 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23559 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23560 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23561 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23562 _ACEOF
23563
23564   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23565     break
23566   elif $ac_last_try; then
23567     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23568 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23569    { (exit 1); exit 1; }; }
23570   else
23571     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23572   fi
23573 done
23574
23575 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23576 if test -n "$ac_eof"; then
23577   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23578   ac_eof=`expr $ac_eof + 1`
23579 fi
23580
23581 cat >>$CONFIG_STATUS <<_ACEOF
23582 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23584 _ACEOF
23585 sed '
23586 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23587 s/^/s,@/; s/!/@,|#_!!_#|/
23588 :n
23589 t n
23590 s/'"$ac_delim"'$/,g/; t
23591 s/$/\\/; p
23592 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23593 ' >>$CONFIG_STATUS <conf$$subs.sed
23594 rm -f conf$$subs.sed
23595 cat >>$CONFIG_STATUS <<_ACEOF
23596 CEOF$ac_eof
23597 _ACEOF
23598
23599
23600 ac_delim='%!_!# '
23601 for ac_last_try in false false false false false :; do
23602   cat >conf$$subs.sed <<_ACEOF
23603 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23604 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23605 RPATH!$RPATH$ac_delim
23606 RDYNAMIC!$RDYNAMIC$ac_delim
23607 LIBOBJS!$LIBOBJS$ac_delim
23608 LTLIBOBJS!$LTLIBOBJS$ac_delim
23609 _ACEOF
23610
23611   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23612     break
23613   elif $ac_last_try; then
23614     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23615 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23616    { (exit 1); exit 1; }; }
23617   else
23618     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23619   fi
23620 done
23621
23622 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23623 if test -n "$ac_eof"; then
23624   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23625   ac_eof=`expr $ac_eof + 1`
23626 fi
23627
23628 cat >>$CONFIG_STATUS <<_ACEOF
23629 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23630 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23631 _ACEOF
23632 sed '
23633 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23634 s/^/s,@/; s/!/@,|#_!!_#|/
23635 :n
23636 t n
23637 s/'"$ac_delim"'$/,g/; t
23638 s/$/\\/; p
23639 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23640 ' >>$CONFIG_STATUS <conf$$subs.sed
23641 rm -f conf$$subs.sed
23642 cat >>$CONFIG_STATUS <<_ACEOF
23643 :end
23644 s/|#_!!_#|//g
23645 CEOF$ac_eof
23646 _ACEOF
23647
23648
23649 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23650 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23651 # trailing colons and then remove the whole line if VPATH becomes empty
23652 # (actually we leave an empty line to preserve line numbers).
23653 if test "x$srcdir" = x.; then
23654   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23655 s/:*\$(srcdir):*/:/
23656 s/:*\${srcdir}:*/:/
23657 s/:*@srcdir@:*/:/
23658 s/^\([^=]*=[     ]*\):*/\1/
23659 s/:*$//
23660 s/^[^=]*=[       ]*$//
23661 }'
23662 fi
23663
23664 cat >>$CONFIG_STATUS <<\_ACEOF
23665 fi # test -n "$CONFIG_FILES"
23666
23667
23668 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23669 do
23670   case $ac_tag in
23671   :[FHLC]) ac_mode=$ac_tag; continue;;
23672   esac
23673   case $ac_mode$ac_tag in
23674   :[FHL]*:*);;
23675   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23676 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23677    { (exit 1); exit 1; }; };;
23678   :[FH]-) ac_tag=-:-;;
23679   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23680   esac
23681   ac_save_IFS=$IFS
23682   IFS=:
23683   set x $ac_tag
23684   IFS=$ac_save_IFS
23685   shift
23686   ac_file=$1
23687   shift
23688
23689   case $ac_mode in
23690   :L) ac_source=$1;;
23691   :[FH])
23692     ac_file_inputs=
23693     for ac_f
23694     do
23695       case $ac_f in
23696       -) ac_f="$tmp/stdin";;
23697       *) # Look for the file first in the build tree, then in the source tree
23698          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23699          # because $ac_f cannot contain `:'.
23700          test -f "$ac_f" ||
23701            case $ac_f in
23702            [\\/$]*) false;;
23703            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23704            esac ||
23705            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23706 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23707    { (exit 1); exit 1; }; };;
23708       esac
23709       ac_file_inputs="$ac_file_inputs $ac_f"
23710     done
23711
23712     # Let's still pretend it is `configure' which instantiates (i.e., don't
23713     # use $as_me), people would be surprised to read:
23714     #    /* config.h.  Generated by config.status.  */
23715     configure_input="Generated from "`IFS=:
23716           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23717     if test x"$ac_file" != x-; then
23718       configure_input="$ac_file.  $configure_input"
23719       { echo "$as_me:$LINENO: creating $ac_file" >&5
23720 echo "$as_me: creating $ac_file" >&6;}
23721     fi
23722
23723     case $ac_tag in
23724     *:-:* | *:-) cat >"$tmp/stdin";;
23725     esac
23726     ;;
23727   esac
23728
23729   ac_dir=`$as_dirname -- "$ac_file" ||
23730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23731          X"$ac_file" : 'X\(//\)[^/]' \| \
23732          X"$ac_file" : 'X\(//\)$' \| \
23733          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23734 echo X"$ac_file" |
23735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23736             s//\1/
23737             q
23738           }
23739           /^X\(\/\/\)[^/].*/{
23740             s//\1/
23741             q
23742           }
23743           /^X\(\/\/\)$/{
23744             s//\1/
23745             q
23746           }
23747           /^X\(\/\).*/{
23748             s//\1/
23749             q
23750           }
23751           s/.*/./; q'`
23752   { as_dir="$ac_dir"
23753   case $as_dir in #(
23754   -*) as_dir=./$as_dir;;
23755   esac
23756   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23757     as_dirs=
23758     while :; do
23759       case $as_dir in #(
23760       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23761       *) as_qdir=$as_dir;;
23762       esac
23763       as_dirs="'$as_qdir' $as_dirs"
23764       as_dir=`$as_dirname -- "$as_dir" ||
23765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23766          X"$as_dir" : 'X\(//\)[^/]' \| \
23767          X"$as_dir" : 'X\(//\)$' \| \
23768          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23769 echo X"$as_dir" |
23770     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23771             s//\1/
23772             q
23773           }
23774           /^X\(\/\/\)[^/].*/{
23775             s//\1/
23776             q
23777           }
23778           /^X\(\/\/\)$/{
23779             s//\1/
23780             q
23781           }
23782           /^X\(\/\).*/{
23783             s//\1/
23784             q
23785           }
23786           s/.*/./; q'`
23787       test -d "$as_dir" && break
23788     done
23789     test -z "$as_dirs" || eval "mkdir $as_dirs"
23790   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23791 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23792    { (exit 1); exit 1; }; }; }
23793   ac_builddir=.
23794
23795 case "$ac_dir" in
23796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23797 *)
23798   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23799   # A ".." for each directory in $ac_dir_suffix.
23800   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23801   case $ac_top_builddir_sub in
23802   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23803   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23804   esac ;;
23805 esac
23806 ac_abs_top_builddir=$ac_pwd
23807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23808 # for backward compatibility:
23809 ac_top_builddir=$ac_top_build_prefix
23810
23811 case $srcdir in
23812   .)  # We are building in place.
23813     ac_srcdir=.
23814     ac_top_srcdir=$ac_top_builddir_sub
23815     ac_abs_top_srcdir=$ac_pwd ;;
23816   [\\/]* | ?:[\\/]* )  # Absolute name.
23817     ac_srcdir=$srcdir$ac_dir_suffix;
23818     ac_top_srcdir=$srcdir
23819     ac_abs_top_srcdir=$srcdir ;;
23820   *) # Relative name.
23821     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23822     ac_top_srcdir=$ac_top_build_prefix$srcdir
23823     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23824 esac
23825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23826
23827
23828   case $ac_mode in
23829   :F)
23830   #
23831   # CONFIG_FILE
23832   #
23833
23834   case $INSTALL in
23835   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23836   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23837   esac
23838 _ACEOF
23839
23840 cat >>$CONFIG_STATUS <<\_ACEOF
23841 # If the template does not know about datarootdir, expand it.
23842 # FIXME: This hack should be removed a few years after 2.60.
23843 ac_datarootdir_hack=; ac_datarootdir_seen=
23844
23845 case `sed -n '/datarootdir/ {
23846   p
23847   q
23848 }
23849 /@datadir@/p
23850 /@docdir@/p
23851 /@infodir@/p
23852 /@localedir@/p
23853 /@mandir@/p
23854 ' $ac_file_inputs` in
23855 *datarootdir*) ac_datarootdir_seen=yes;;
23856 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23857   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23858 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23859 _ACEOF
23860 cat >>$CONFIG_STATUS <<_ACEOF
23861   ac_datarootdir_hack='
23862   s&@datadir@&$datadir&g
23863   s&@docdir@&$docdir&g
23864   s&@infodir@&$infodir&g
23865   s&@localedir@&$localedir&g
23866   s&@mandir@&$mandir&g
23867     s&\\\${datarootdir}&$datarootdir&g' ;;
23868 esac
23869 _ACEOF
23870
23871 # Neutralize VPATH when `$srcdir' = `.'.
23872 # Shell code in configure.ac might set extrasub.
23873 # FIXME: do we really want to maintain this feature?
23874 cat >>$CONFIG_STATUS <<_ACEOF
23875   sed "$ac_vpsub
23876 $extrasub
23877 _ACEOF
23878 cat >>$CONFIG_STATUS <<\_ACEOF
23879 :t
23880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23881 s&@configure_input@&$configure_input&;t t
23882 s&@top_builddir@&$ac_top_builddir_sub&;t t
23883 s&@srcdir@&$ac_srcdir&;t t
23884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23885 s&@top_srcdir@&$ac_top_srcdir&;t t
23886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23887 s&@builddir@&$ac_builddir&;t t
23888 s&@abs_builddir@&$ac_abs_builddir&;t t
23889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23890 s&@INSTALL@&$ac_INSTALL&;t t
23891 $ac_datarootdir_hack
23892 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23893
23894 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23895   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23896   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23897   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23898 which seems to be undefined.  Please make sure it is defined." >&5
23899 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23900 which seems to be undefined.  Please make sure it is defined." >&2;}
23901
23902   rm -f "$tmp/stdin"
23903   case $ac_file in
23904   -) cat "$tmp/out"; rm -f "$tmp/out";;
23905   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23906   esac
23907  ;;
23908   :H)
23909   #
23910   # CONFIG_HEADER
23911   #
23912 _ACEOF
23913
23914 # Transform confdefs.h into a sed script `conftest.defines', that
23915 # substitutes the proper values into config.h.in to produce config.h.
23916 rm -f conftest.defines conftest.tail
23917 # First, append a space to every undef/define line, to ease matching.
23918 echo 's/$/ /' >conftest.defines
23919 # Then, protect against being on the right side of a sed subst, or in
23920 # an unquoted here document, in config.status.  If some macros were
23921 # called several times there might be several #defines for the same
23922 # symbol, which is useless.  But do not sort them, since the last
23923 # AC_DEFINE must be honored.
23924 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23925 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23926 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23927 # PARAMS is the parameter list in the macro definition--in most cases, it's
23928 # just an empty string.
23929 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23930 ac_dB='\\)[      (].*,\\1define\\2'
23931 ac_dC=' '
23932 ac_dD=' ,'
23933
23934 uniq confdefs.h |
23935   sed -n '
23936         t rset
23937         :rset
23938         s/^[     ]*#[    ]*define[       ][      ]*//
23939         t ok
23940         d
23941         :ok
23942         s/[\\&,]/\\&/g
23943         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23944         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23945   ' >>conftest.defines
23946
23947 # Remove the space that was appended to ease matching.
23948 # Then replace #undef with comments.  This is necessary, for
23949 # example, in the case of _POSIX_SOURCE, which is predefined and required
23950 # on some systems where configure will not decide to define it.
23951 # (The regexp can be short, since the line contains either #define or #undef.)
23952 echo 's/ $//
23953 s,^[     #]*u.*,/* & */,' >>conftest.defines
23954
23955 # Break up conftest.defines:
23956 ac_max_sed_lines=50
23957
23958 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23959 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23960 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23961 # et cetera.
23962 ac_in='$ac_file_inputs'
23963 ac_out='"$tmp/out1"'
23964 ac_nxt='"$tmp/out2"'
23965
23966 while :
23967 do
23968   # Write a here document:
23969     cat >>$CONFIG_STATUS <<_ACEOF
23970     # First, check the format of the line:
23971     cat >"\$tmp/defines.sed" <<\\CEOF
23972 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23973 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23974 b
23975 :def
23976 _ACEOF
23977   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23978   echo 'CEOF
23979     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23980   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23981   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23982   grep . conftest.tail >/dev/null || break
23983   rm -f conftest.defines
23984   mv conftest.tail conftest.defines
23985 done
23986 rm -f conftest.defines conftest.tail
23987
23988 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23989 cat >>$CONFIG_STATUS <<\_ACEOF
23990   if test x"$ac_file" != x-; then
23991     echo "/* $configure_input  */" >"$tmp/config.h"
23992     cat "$ac_result" >>"$tmp/config.h"
23993     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23994       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23995 echo "$as_me: $ac_file is unchanged" >&6;}
23996     else
23997       rm -f $ac_file
23998       mv "$tmp/config.h" $ac_file
23999     fi
24000   else
24001     echo "/* $configure_input  */"
24002     cat "$ac_result"
24003   fi
24004   rm -f "$tmp/out12"
24005  ;;
24006
24007   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24008 echo "$as_me: executing $ac_file commands" >&6;}
24009  ;;
24010   esac
24011
24012
24013   case $ac_file$ac_mode in
24014     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24015    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24016     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24017    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24018     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24019    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24020     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24021    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24022     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24023    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24024     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24025    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24026     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24027    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24028     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24029    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24030     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24031    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24032     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24033    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24034     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24035    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24036     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24037    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24038     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24039    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24040
24041   esac
24042 done # for ac_tag
24043
24044
24045 { (exit 0); exit 0; }
24046 _ACEOF
24047 chmod +x $CONFIG_STATUS
24048 ac_clean_files=$ac_clean_files_save
24049
24050
24051 # configure is writing to config.log, and then calls config.status.
24052 # config.status does its own redirection, appending to config.log.
24053 # Unfortunately, on DOS this fails, as config.log is still kept open
24054 # by configure, so config.status won't be able to write to it; its
24055 # output is simply discarded.  So we exec the FD to /dev/null,
24056 # effectively closing config.log, so it can be properly (re)opened and
24057 # appended to by config.status.  When coming back to configure, we
24058 # need to make the FD available again.
24059 if test "$no_create" != yes; then
24060   ac_cs_success=:
24061   ac_config_status_args=
24062   test "$silent" = yes &&
24063     ac_config_status_args="$ac_config_status_args --quiet"
24064   exec 5>/dev/null
24065   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24066   exec 5>>config.log
24067   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24068   # would make configure fail if this is the last instruction.
24069   $ac_cs_success || { (exit 1); exit 1; }
24070 fi
24071
24072 #
24073 # CONFIG_SUBDIRS section.
24074 #
24075 if test "$no_recursion" != yes; then
24076
24077   # Remove --cache-file and --srcdir arguments so they do not pile up.
24078   ac_sub_configure_args=
24079   ac_prev=
24080   eval "set x $ac_configure_args"
24081   shift
24082   for ac_arg
24083   do
24084     if test -n "$ac_prev"; then
24085       ac_prev=
24086       continue
24087     fi
24088     case $ac_arg in
24089     -cache-file | --cache-file | --cache-fil | --cache-fi \
24090     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24091       ac_prev=cache_file ;;
24092     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24093     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24094     | --c=*)
24095       ;;
24096     --config-cache | -C)
24097       ;;
24098     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24099       ac_prev=srcdir ;;
24100     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24101       ;;
24102     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24103       ac_prev=prefix ;;
24104     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24105       ;;
24106     *)
24107       case $ac_arg in
24108       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24109       esac
24110       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24111     esac
24112   done
24113
24114   # Always prepend --prefix to ensure using the same prefix
24115   # in subdir configurations.
24116   ac_arg="--prefix=$prefix"
24117   case $ac_arg in
24118   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24119   esac
24120   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24121
24122   ac_popdir=`pwd`
24123   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24124
24125     # Do not complain, so a configure script can configure whichever
24126     # parts of a large source tree are present.
24127     test -d "$srcdir/$ac_dir" || continue
24128
24129     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24130     echo "$as_me:$LINENO: $ac_msg" >&5
24131     echo "$ac_msg" >&6
24132     { as_dir="$ac_dir"
24133   case $as_dir in #(
24134   -*) as_dir=./$as_dir;;
24135   esac
24136   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24137     as_dirs=
24138     while :; do
24139       case $as_dir in #(
24140       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24141       *) as_qdir=$as_dir;;
24142       esac
24143       as_dirs="'$as_qdir' $as_dirs"
24144       as_dir=`$as_dirname -- "$as_dir" ||
24145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24146          X"$as_dir" : 'X\(//\)[^/]' \| \
24147          X"$as_dir" : 'X\(//\)$' \| \
24148          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24149 echo X"$as_dir" |
24150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24151             s//\1/
24152             q
24153           }
24154           /^X\(\/\/\)[^/].*/{
24155             s//\1/
24156             q
24157           }
24158           /^X\(\/\/\)$/{
24159             s//\1/
24160             q
24161           }
24162           /^X\(\/\).*/{
24163             s//\1/
24164             q
24165           }
24166           s/.*/./; q'`
24167       test -d "$as_dir" && break
24168     done
24169     test -z "$as_dirs" || eval "mkdir $as_dirs"
24170   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24171 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24172    { (exit 1); exit 1; }; }; }
24173     ac_builddir=.
24174
24175 case "$ac_dir" in
24176 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24177 *)
24178   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24179   # A ".." for each directory in $ac_dir_suffix.
24180   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24181   case $ac_top_builddir_sub in
24182   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24183   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24184   esac ;;
24185 esac
24186 ac_abs_top_builddir=$ac_pwd
24187 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24188 # for backward compatibility:
24189 ac_top_builddir=$ac_top_build_prefix
24190
24191 case $srcdir in
24192   .)  # We are building in place.
24193     ac_srcdir=.
24194     ac_top_srcdir=$ac_top_builddir_sub
24195     ac_abs_top_srcdir=$ac_pwd ;;
24196   [\\/]* | ?:[\\/]* )  # Absolute name.
24197     ac_srcdir=$srcdir$ac_dir_suffix;
24198     ac_top_srcdir=$srcdir
24199     ac_abs_top_srcdir=$srcdir ;;
24200   *) # Relative name.
24201     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24202     ac_top_srcdir=$ac_top_build_prefix$srcdir
24203     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24204 esac
24205 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24206
24207
24208     cd "$ac_dir"
24209
24210     # Check for guested configure; otherwise get Cygnus style configure.
24211     if test -f "$ac_srcdir/configure.gnu"; then
24212       ac_sub_configure=$ac_srcdir/configure.gnu
24213     elif test -f "$ac_srcdir/configure"; then
24214       ac_sub_configure=$ac_srcdir/configure
24215     elif test -f "$ac_srcdir/configure.in"; then
24216       # This should be Cygnus configure.
24217       ac_sub_configure=$ac_aux_dir/configure
24218     else
24219       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24220 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24221       ac_sub_configure=
24222     fi
24223
24224     # The recursion is here.
24225     if test -n "$ac_sub_configure"; then
24226       # Make the cache file name correct relative to the subdirectory.
24227       case $cache_file in
24228       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24229       *) # Relative name.
24230         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24231       esac
24232
24233       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24234 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24235       # The eval makes quoting arguments work.
24236       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24237            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24238         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24239 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24240    { (exit 1); exit 1; }; }
24241     fi
24242
24243     cd "$ac_popdir"
24244   done
24245 fi
24246