Introduce MCCodeGenInfo, which keeps information that can affect codegen
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 subdirs
644 ENABLE_POLLY
645 LLVM_HAS_POLLY
646 build
647 build_cpu
648 build_vendor
649 build_os
650 host
651 host_cpu
652 host_vendor
653 host_os
654 target
655 target_cpu
656 target_vendor
657 target_os
658 OS
659 HOST_OS
660 TARGET_OS
661 LINKALL
662 NOLINKALL
663 LLVM_ON_UNIX
664 LLVM_ON_WIN32
665 ARCH
666 ENDIAN
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LLVM_CROSS_COMPILING
678 BUILD_CC
679 BUILD_EXEEXT
680 BUILD_CXX
681 CVSBUILD
682 ENABLE_OPTIMIZED
683 ENABLE_PROFILING
684 DISABLE_ASSERTIONS
685 ENABLE_EXPENSIVE_CHECKS
686 EXPENSIVE_CHECKS
687 DEBUG_RUNTIME
688 DEBUG_SYMBOLS
689 JIT
690 TARGET_HAS_JIT
691 ENABLE_DOCS
692 ENABLE_DOXYGEN
693 ENABLE_THREADS
694 ENABLE_PTHREADS
695 ENABLE_PIC
696 ENABLE_SHARED
697 ENABLE_EMBED_STDCXX
698 ENABLE_TIMESTAMPS
699 TARGETS_TO_BUILD
700 LLVM_ENUM_TARGETS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
704 ENABLE_CBE_PRINTF_A
705 CLANGPATH
706 CLANGXXPATH
707 ENABLE_BUILT_CLANG
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
712 CXX
713 CXXFLAGS
714 ac_ct_CXX
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
745 CAT
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 LLVMGCCCOMMAND
767 LLVMGXXCOMMAND
768 LLVMGCC
769 LLVMGXX
770 LLVMCC_OPTION
771 NO_VARIADIC_MACROS
772 NO_MISSING_FIELD_INITIALIZERS
773 USE_UDIS86
774 USE_OPROFILE
775 HAVE_PTHREAD
776 HUGE_VAL_SANITY
777 MMAP_FILE
778 LLVMCC_EMITIR_FLAG
779 LLVMCC1
780 LLVMCC1PLUS
781 LLVMGCCDIR
782 LLVMGCC_LANGS
783 LLVMGCC_DRAGONEGG
784 LLVMCC_DISABLEOPT_FLAGS
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_LIBDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
813 CPP
814 CXX
815 CXXFLAGS
816 CCC'
817 ac_subdirs_all='projects/llvm-gcc
818 projects/test-suite
819 projects/llvm-test
820 projects/poolalloc
821 projects/llvm-poolalloc
822 projects/sample
823 projects/privbracket
824 projects/llvm-stacker
825 projects/llvm-reopt
826 projects/llvm-java
827 projects/llvm-tv
828 projects/safecode
829 projects/llvm-kernel
830 tools/polly'
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
877
878 ac_prev=
879 ac_dashdash=
880 for ac_option
881 do
882   # If the previous option needs an argument, assign it.
883   if test -n "$ac_prev"; then
884     eval $ac_prev=\$ac_option
885     ac_prev=
886     continue
887   fi
888
889   case $ac_option in
890   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891   *)    ac_optarg=yes ;;
892   esac
893
894   # Accept the important Cygnus configure options, so we can diagnose typos.
895
896   case $ac_dashdash$ac_option in
897   --)
898     ac_dashdash=yes ;;
899
900   -bindir | --bindir | --bindi | --bind | --bin | --bi)
901     ac_prev=bindir ;;
902   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903     bindir=$ac_optarg ;;
904
905   -build | --build | --buil | --bui | --bu)
906     ac_prev=build_alias ;;
907   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908     build_alias=$ac_optarg ;;
909
910   -cache-file | --cache-file | --cache-fil | --cache-fi \
911   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912     ac_prev=cache_file ;;
913   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915     cache_file=$ac_optarg ;;
916
917   --config-cache | -C)
918     cache_file=config.cache ;;
919
920   -datadir | --datadir | --datadi | --datad)
921     ac_prev=datadir ;;
922   -datadir=* | --datadir=* | --datadi=* | --datad=*)
923     datadir=$ac_optarg ;;
924
925   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926   | --dataroo | --dataro | --datar)
927     ac_prev=datarootdir ;;
928   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930     datarootdir=$ac_optarg ;;
931
932   -disable-* | --disable-*)
933     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937    { (exit 1); exit 1; }; }
938     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939     eval enable_$ac_feature=no ;;
940
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
945
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
950
951   -enable-* | --enable-*)
952     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956    { (exit 1); exit 1; }; }
957     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958     eval enable_$ac_feature=\$ac_optarg ;;
959
960   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962   | --exec | --exe | --ex)
963     ac_prev=exec_prefix ;;
964   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966   | --exec=* | --exe=* | --ex=*)
967     exec_prefix=$ac_optarg ;;
968
969   -gas | --gas | --ga | --g)
970     # Obsolete; use --with-gas.
971     with_gas=yes ;;
972
973   -help | --help | --hel | --he | -h)
974     ac_init_help=long ;;
975   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976     ac_init_help=recursive ;;
977   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978     ac_init_help=short ;;
979
980   -host | --host | --hos | --ho)
981     ac_prev=host_alias ;;
982   -host=* | --host=* | --hos=* | --ho=*)
983     host_alias=$ac_optarg ;;
984
985   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986     ac_prev=htmldir ;;
987   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988   | --ht=*)
989     htmldir=$ac_optarg ;;
990
991   -includedir | --includedir | --includedi | --included | --include \
992   | --includ | --inclu | --incl | --inc)
993     ac_prev=includedir ;;
994   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995   | --includ=* | --inclu=* | --incl=* | --inc=*)
996     includedir=$ac_optarg ;;
997
998   -infodir | --infodir | --infodi | --infod | --info | --inf)
999     ac_prev=infodir ;;
1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001     infodir=$ac_optarg ;;
1002
1003   -libdir | --libdir | --libdi | --libd)
1004     ac_prev=libdir ;;
1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006     libdir=$ac_optarg ;;
1007
1008   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009   | --libexe | --libex | --libe)
1010     ac_prev=libexecdir ;;
1011   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012   | --libexe=* | --libex=* | --libe=*)
1013     libexecdir=$ac_optarg ;;
1014
1015   -localedir | --localedir | --localedi | --localed | --locale)
1016     ac_prev=localedir ;;
1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018     localedir=$ac_optarg ;;
1019
1020   -localstatedir | --localstatedir | --localstatedi | --localstated \
1021   | --localstate | --localstat | --localsta | --localst | --locals)
1022     ac_prev=localstatedir ;;
1023   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025     localstatedir=$ac_optarg ;;
1026
1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028     ac_prev=mandir ;;
1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030     mandir=$ac_optarg ;;
1031
1032   -nfp | --nfp | --nf)
1033     # Obsolete; use --without-fp.
1034     with_fp=no ;;
1035
1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037   | --no-cr | --no-c | -n)
1038     no_create=yes ;;
1039
1040   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042     no_recursion=yes ;;
1043
1044   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046   | --oldin | --oldi | --old | --ol | --o)
1047     ac_prev=oldincludedir ;;
1048   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051     oldincludedir=$ac_optarg ;;
1052
1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054     ac_prev=prefix ;;
1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056     prefix=$ac_optarg ;;
1057
1058   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059   | --program-pre | --program-pr | --program-p)
1060     ac_prev=program_prefix ;;
1061   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063     program_prefix=$ac_optarg ;;
1064
1065   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066   | --program-suf | --program-su | --program-s)
1067     ac_prev=program_suffix ;;
1068   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070     program_suffix=$ac_optarg ;;
1071
1072   -program-transform-name | --program-transform-name \
1073   | --program-transform-nam | --program-transform-na \
1074   | --program-transform-n | --program-transform- \
1075   | --program-transform | --program-transfor \
1076   | --program-transfo | --program-transf \
1077   | --program-trans | --program-tran \
1078   | --progr-tra | --program-tr | --program-t)
1079     ac_prev=program_transform_name ;;
1080   -program-transform-name=* | --program-transform-name=* \
1081   | --program-transform-nam=* | --program-transform-na=* \
1082   | --program-transform-n=* | --program-transform-=* \
1083   | --program-transform=* | --program-transfor=* \
1084   | --program-transfo=* | --program-transf=* \
1085   | --program-trans=* | --program-tran=* \
1086   | --progr-tra=* | --program-tr=* | --program-t=*)
1087     program_transform_name=$ac_optarg ;;
1088
1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090     ac_prev=pdfdir ;;
1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092     pdfdir=$ac_optarg ;;
1093
1094   -psdir | --psdir | --psdi | --psd | --ps)
1095     ac_prev=psdir ;;
1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097     psdir=$ac_optarg ;;
1098
1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100   | -silent | --silent | --silen | --sile | --sil)
1101     silent=yes ;;
1102
1103   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104     ac_prev=sbindir ;;
1105   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106   | --sbi=* | --sb=*)
1107     sbindir=$ac_optarg ;;
1108
1109   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111   | --sharedst | --shareds | --shared | --share | --shar \
1112   | --sha | --sh)
1113     ac_prev=sharedstatedir ;;
1114   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117   | --sha=* | --sh=*)
1118     sharedstatedir=$ac_optarg ;;
1119
1120   -site | --site | --sit)
1121     ac_prev=site ;;
1122   -site=* | --site=* | --sit=*)
1123     site=$ac_optarg ;;
1124
1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126     ac_prev=srcdir ;;
1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128     srcdir=$ac_optarg ;;
1129
1130   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131   | --syscon | --sysco | --sysc | --sys | --sy)
1132     ac_prev=sysconfdir ;;
1133   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135     sysconfdir=$ac_optarg ;;
1136
1137   -target | --target | --targe | --targ | --tar | --ta | --t)
1138     ac_prev=target_alias ;;
1139   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140     target_alias=$ac_optarg ;;
1141
1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143     verbose=yes ;;
1144
1145   -version | --version | --versio | --versi | --vers | -V)
1146     ac_init_version=: ;;
1147
1148   -with-* | --with-*)
1149     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152       { echo "$as_me: error: invalid package name: $ac_package" >&2
1153    { (exit 1); exit 1; }; }
1154     ac_package=`echo $ac_package| sed 's/-/_/g'`
1155     eval with_$ac_package=\$ac_optarg ;;
1156
1157   -without-* | --without-*)
1158     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161       { echo "$as_me: error: invalid package name: $ac_package" >&2
1162    { (exit 1); exit 1; }; }
1163     ac_package=`echo $ac_package | sed 's/-/_/g'`
1164     eval with_$ac_package=no ;;
1165
1166   --x)
1167     # Obsolete; use --with-x.
1168     with_x=yes ;;
1169
1170   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171   | --x-incl | --x-inc | --x-in | --x-i)
1172     ac_prev=x_includes ;;
1173   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175     x_includes=$ac_optarg ;;
1176
1177   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179     ac_prev=x_libraries ;;
1180   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182     x_libraries=$ac_optarg ;;
1183
1184   -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186    { (exit 1); exit 1; }; }
1187     ;;
1188
1189   *=*)
1190     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194    { (exit 1); exit 1; }; }
1195     eval $ac_envvar=\$ac_optarg
1196     export $ac_envvar ;;
1197
1198   *)
1199     # FIXME: should be removed in autoconf 3.0.
1200     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204     ;;
1205
1206   esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211   { echo "$as_me: error: missing argument to $ac_option" >&2
1212    { (exit 1); exit 1; }; }
1213 fi
1214
1215 # Be sure to have absolute directory names.
1216 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217                 datadir sysconfdir sharedstatedir localstatedir includedir \
1218                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219                 libdir localedir mandir
1220 do
1221   eval ac_val=\$$ac_var
1222   case $ac_val in
1223     [\\/$]* | ?:[\\/]* )  continue;;
1224     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225   esac
1226   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227    { (exit 1); exit 1; }; }
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239   if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242     If a cross compiler is detected then cross compile mode will be used." >&2
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   { echo "$as_me: error: Working directory cannot be determined" >&2
1258    { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260   { echo "$as_me: error: pwd does not report name of working directory" >&2
1261    { (exit 1); exit 1; }; }
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266   ac_srcdir_defaulted=yes
1267   # Try the directory containing this script, then the parent directory.
1268   ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270          X"$0" : 'X\(//\)[^/]' \| \
1271          X"$0" : 'X\(//\)$' \| \
1272          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)[^/].*/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)$/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\).*/{
1287             s//\1/
1288             q
1289           }
1290           s/.*/./; q'`
1291   srcdir=$ac_confdir
1292   if test ! -r "$srcdir/$ac_unique_file"; then
1293     srcdir=..
1294   fi
1295 else
1296   ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301    { (exit 1); exit 1; }; }
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306    { (exit 1); exit 1; }; }
1307         pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310   srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_env_${ac_var}_value=\$${ac_var}
1321   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329   # Omit some internal or obsolete options to make the list less imposing.
1330   # This message is too long to be a string in the A/UX 3.1 sh.
1331   cat <<_ACEOF
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342   -h, --help              display this help and exit
1343       --help=short        display options specific to this package
1344       --help=recursive    display the short help of all the included packages
1345   -V, --version           display version information and exit
1346   -q, --quiet, --silent   do not print \`checking...' messages
1347       --cache-file=FILE   cache test results in FILE [disabled]
1348   -C, --config-cache      alias for \`--cache-file=config.cache'
1349   -n, --no-create         do not create output files
1350       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353   --prefix=PREFIX         install architecture-independent files in PREFIX
1354                           [$ac_default_prefix]
1355   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                           [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366   --bindir=DIR           user executables [EPREFIX/bin]
1367   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1368   --libexecdir=DIR       program executables [EPREFIX/libexec]
1369   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1370   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1371   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1372   --libdir=DIR           object code libraries [EPREFIX/lib]
1373   --includedir=DIR       C header files [PREFIX/include]
1374   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1375   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1376   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1377   --infodir=DIR          info documentation [DATAROOTDIR/info]
1378   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1379   --mandir=DIR           man documentation [DATAROOTDIR/man]
1380   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1381   --htmldir=DIR          html documentation [DOCDIR]
1382   --dvidir=DIR           dvi documentation [DOCDIR]
1383   --pdfdir=DIR           pdf documentation [DOCDIR]
1384   --psdir=DIR            ps documentation [DOCDIR]
1385 _ACEOF
1386
1387   cat <<\_ACEOF
1388
1389 System types:
1390   --build=BUILD     configure for building on BUILD [guessed]
1391   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392   --target=TARGET   configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397   case $ac_init_help in
1398      short | recursive ) echo "Configuration of llvm 3.0svn:";;
1399    esac
1400   cat <<\_ACEOF
1401
1402 Optional Features:
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-polly          Use polly if available (default is YES)
1406   --enable-optimized      Compile with optimizations enabled (default is NO)
1407   --enable-profiling      Compile with profiling enabled (default is NO)
1408   --enable-assertions     Compile with assertion checks enabled (default is
1409                           YES)
1410   --enable-expensive-checks
1411                           Compile with expensive debug checks enabled (default
1412                           is NO)
1413   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1414                           NO)
1415   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1416                           optimization is on and YES if it's off)
1417   --enable-jit            Enable Just In Time Compiling (default is YES)
1418   --enable-docs           Build documents (default is YES)
1419   --enable-doxygen        Build doxygen documentation (default is NO)
1420   --enable-threads        Use threads if available (default is YES)
1421   --enable-pthreads       Use pthreads if available (default is YES)
1422   --enable-pic            Build LLVM with Position Independent Code (default
1423                           is YES)
1424   --enable-shared         Build a shared library and link tools against it
1425                           (default is NO)
1426   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1427                           Win32 DLL (default is YES)
1428   --enable-timestamps     Enable embedding timestamp information in build
1429                           (default is YES)
1430   --enable-targets        Build specific host targets: all or
1431                           target1,target2,... Valid targets are: host, x86,
1432                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434                           (default=all)
1435   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1436                           %a (default is YES)
1437   --enable-bindings       Build specific language bindings:
1438                           all,auto,none,{binding-name} (default=auto)
1439   --enable-libffi         Check for the presence of libffi (default is NO)
1440   --enable-ltdl-install   install libltdl
1441
1442 Optional Packages:
1443   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1446                           searches PATH)
1447   --with-llvmgcc          Specify location of llvm-gcc driver (default
1448                           searches PATH)
1449   --with-llvmgxx          Specify location of llvm-g++ driver (default
1450                           searches PATH)
1451   --with-clang            Specify location of clang compiler (default is
1452                           --with-built-clang)
1453   --with-built-clang      Use the compiled Clang as the LLVM compiler
1454                           (default=check)
1455   --with-optimize-option  Select the compiler options to use for optimized
1456                           builds
1457   --with-extra-options    Specify additional options to compile LLVM with
1458   --with-extra-ld-options Specify additional options to link LLVM with
1459   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1460                           is stdlib)
1461   --with-clang-resource-dir
1462                           Relative directory from the Clang binary for
1463                           resource files
1464   --with-c-include-dirs   Colon separated list of directories clang will
1465                           search for headers
1466   --with-cxx-include-root Directory with the libstdc++ headers.
1467   --with-cxx-include-arch Architecture of the libstdc++ headers.
1468   --with-cxx-include-32bit-dir
1469                           32 bit multilib dir.
1470   --with-cxx-include-64bit-dir
1471                           64 bit multilib directory.
1472   --with-binutils-include Specify path to binutils/include/ containing
1473                           plugin-api.h file for gold plugin.
1474   --with-tclinclude       directory where tcl headers are
1475   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1476                           clang, or none; default=check)
1477   --with-udis86=<path>    Use udis86 external x86 disassembler library
1478   --with-oprofile=<prefix>
1479                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1480
1481 Some influential environment variables:
1482   CC          C compiler command
1483   CFLAGS      C compiler flags
1484   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1485               nonstandard directory <lib dir>
1486   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487               you have headers in a nonstandard directory <include dir>
1488   CPP         C preprocessor
1489   CXX         C++ compiler command
1490   CXXFLAGS    C++ compiler flags
1491
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1494
1495 Report bugs to <llvmbugs@cs.uiuc.edu>.
1496 _ACEOF
1497 ac_status=$?
1498 fi
1499
1500 if test "$ac_init_help" = "recursive"; then
1501   # If there are subdirs, report their specific --help.
1502   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503     test -d "$ac_dir" || continue
1504     ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510   # A ".." for each directory in $ac_dir_suffix.
1511   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512   case $ac_top_builddir_sub in
1513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515   esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523   .)  # We are building in place.
1524     ac_srcdir=.
1525     ac_top_srcdir=$ac_top_builddir_sub
1526     ac_abs_top_srcdir=$ac_pwd ;;
1527   [\\/]* | ?:[\\/]* )  # Absolute name.
1528     ac_srcdir=$srcdir$ac_dir_suffix;
1529     ac_top_srcdir=$srcdir
1530     ac_abs_top_srcdir=$srcdir ;;
1531   *) # Relative name.
1532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533     ac_top_srcdir=$ac_top_build_prefix$srcdir
1534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538     cd "$ac_dir" || { ac_status=$?; continue; }
1539     # Check for guested configure.
1540     if test -f "$ac_srcdir/configure.gnu"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543     elif test -f "$ac_srcdir/configure"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure" --help=recursive
1546     else
1547       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548     fi || ac_status=$?
1549     cd "$ac_pwd" || { ac_status=$?; break; }
1550   done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555   cat <<\_ACEOF
1556 llvm configure 3.0svn
1557 generated by GNU Autoconf 2.60
1558
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1563
1564 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1565 _ACEOF
1566   exit
1567 fi
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1571
1572 It was created by llvm $as_me 3.0svn, which was
1573 generated by GNU Autoconf 2.60.  Invocation command line was
1574
1575   $ $0 $@
1576
1577 _ACEOF
1578 exec 5>>config.log
1579 {
1580 cat <<_ASUNAME
1581 ## --------- ##
1582 ## Platform. ##
1583 ## --------- ##
1584
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1593
1594 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1595 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1598 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1599 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1600 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1601
1602 _ASUNAME
1603
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1606 do
1607   IFS=$as_save_IFS
1608   test -z "$as_dir" && as_dir=.
1609   echo "PATH: $as_dir"
1610 done
1611 IFS=$as_save_IFS
1612
1613 } >&5
1614
1615 cat >&5 <<_ACEOF
1616
1617
1618 ## ----------- ##
1619 ## Core tests. ##
1620 ## ----------- ##
1621
1622 _ACEOF
1623
1624
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_configure_args=
1631 ac_configure_args0=
1632 ac_configure_args1=
1633 ac_must_keep_next=false
1634 for ac_pass in 1 2
1635 do
1636   for ac_arg
1637   do
1638     case $ac_arg in
1639     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641     | -silent | --silent | --silen | --sile | --sil)
1642       continue ;;
1643     *\'*)
1644       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645     esac
1646     case $ac_pass in
1647     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1648     2)
1649       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650       if test $ac_must_keep_next = true; then
1651         ac_must_keep_next=false # Got value, back to normal.
1652       else
1653         case $ac_arg in
1654           *=* | --config-cache | -C | -disable-* | --disable-* \
1655           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657           | -with-* | --with-* | -without-* | --without-* | --x)
1658             case "$ac_configure_args0 " in
1659               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660             esac
1661             ;;
1662           -* ) ac_must_keep_next=true ;;
1663         esac
1664       fi
1665       ac_configure_args="$ac_configure_args '$ac_arg'"
1666       ;;
1667     esac
1668   done
1669 done
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1672
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log.  We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679   # Save into config.log some information that might help in debugging.
1680   {
1681     echo
1682
1683     cat <<\_ASBOX
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1687 _ASBOX
1688     echo
1689     # The following way of writing the cache mishandles newlines in values,
1690 (
1691   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692     eval ac_val=\$$ac_var
1693     case $ac_val in #(
1694     *${as_nl}*)
1695       case $ac_var in #(
1696       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698       esac
1699       case $ac_var in #(
1700       _ | IFS | as_nl) ;; #(
1701       *) $as_unset $ac_var ;;
1702       esac ;;
1703     esac
1704   done
1705   (set) 2>&1 |
1706     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707     *${as_nl}ac_space=\ *)
1708       sed -n \
1709         "s/'\''/'\''\\\\'\'''\''/g;
1710           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711       ;; #(
1712     *)
1713       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714       ;;
1715     esac |
1716     sort
1717 )
1718     echo
1719
1720     cat <<\_ASBOX
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1724 _ASBOX
1725     echo
1726     for ac_var in $ac_subst_vars
1727     do
1728       eval ac_val=\$$ac_var
1729       case $ac_val in
1730       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731       esac
1732       echo "$ac_var='\''$ac_val'\''"
1733     done | sort
1734     echo
1735
1736     if test -n "$ac_subst_files"; then
1737       cat <<\_ASBOX
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1741 _ASBOX
1742       echo
1743       for ac_var in $ac_subst_files
1744       do
1745         eval ac_val=\$$ac_var
1746         case $ac_val in
1747         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748         esac
1749         echo "$ac_var='\''$ac_val'\''"
1750       done | sort
1751       echo
1752     fi
1753
1754     if test -s confdefs.h; then
1755       cat <<\_ASBOX
1756 ## ----------- ##
1757 ## confdefs.h. ##
1758 ## ----------- ##
1759 _ASBOX
1760       echo
1761       cat confdefs.h
1762       echo
1763     fi
1764     test "$ac_signal" != 0 &&
1765       echo "$as_me: caught signal $ac_signal"
1766     echo "$as_me: exit $exit_status"
1767   } >&5
1768   rm -f core *.core core.conftest.* &&
1769     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770     exit $exit_status
1771 ' 0
1772 for ac_signal in 1 2 13 15; do
1773   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 done
1775 ac_signal=0
1776
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1779
1780 # Predefined preprocessor variables.
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 _ACEOF
1805
1806
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810   set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 else
1814   set x "$ac_default_prefix/share/config.site" \
1815         "$ac_default_prefix/etc/config.site"
1816 fi
1817 shift
1818 for ac_site_file
1819 do
1820   if test -r "$ac_site_file"; then
1821     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823     sed 's/^/| /' "$ac_site_file" >&5
1824     . "$ac_site_file"
1825   fi
1826 done
1827
1828 if test -r "$cache_file"; then
1829   # Some versions of bash will fail to source /dev/null (special
1830   # files actually), so we avoid doing that.
1831   if test -f "$cache_file"; then
1832     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1834     case $cache_file in
1835       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836       *)                      . "./$cache_file";;
1837     esac
1838   fi
1839 else
1840   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1842   >$cache_file
1843 fi
1844
1845 # Check that the precious variables saved in the cache have kept the same
1846 # value.
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850   eval ac_new_set=\$ac_env_${ac_var}_set
1851   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852   eval ac_new_val=\$ac_env_${ac_var}_value
1853   case $ac_old_set,$ac_new_set in
1854     set,)
1855       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857       ac_cache_corrupted=: ;;
1858     ,set)
1859       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861       ac_cache_corrupted=: ;;
1862     ,);;
1863     *)
1864       if test "x$ac_old_val" != "x$ac_new_val"; then
1865         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1868 echo "$as_me:   former value:  $ac_old_val" >&2;}
1869         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1870 echo "$as_me:   current value: $ac_new_val" >&2;}
1871         ac_cache_corrupted=:
1872       fi;;
1873   esac
1874   # Pass precious variables to config.status.
1875   if test "$ac_new_set" = set; then
1876     case $ac_new_val in
1877     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878     *) ac_arg=$ac_var=$ac_new_val ;;
1879     esac
1880     case " $ac_configure_args " in
1881       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1882       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883     esac
1884   fi
1885 done
1886 if $ac_cache_corrupted; then
1887   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891    { (exit 1); exit 1; }; }
1892 fi
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
1926 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1927
1928
1929
1930
1931
1932
1933
1934 ac_aux_dir=
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936   if test -f "$ac_dir/install-sh"; then
1937     ac_aux_dir=$ac_dir
1938     ac_install_sh="$ac_aux_dir/install-sh -c"
1939     break
1940   elif test -f "$ac_dir/install.sh"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/install.sh -c"
1943     break
1944   elif test -f "$ac_dir/shtool"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/shtool install -c"
1947     break
1948   fi
1949 done
1950 if test -z "$ac_aux_dir"; then
1951   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953    { (exit 1); exit 1; }; }
1954 fi
1955
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1963
1964
1965
1966 if test ${srcdir} != "." ; then
1967   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1968     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970    { (exit 1); exit 1; }; }
1971   fi
1972 fi
1973
1974
1975
1976 if test -d ${srcdir}/projects/llvm-gcc ; then
1977   subdirs="$subdirs projects/llvm-gcc"
1978
1979 fi
1980
1981 if test -d ${srcdir}/projects/test-suite ; then
1982   subdirs="$subdirs projects/test-suite"
1983
1984 fi
1985
1986 if test -d ${srcdir}/projects/llvm-test ; then
1987   subdirs="$subdirs projects/llvm-test"
1988
1989 fi
1990
1991 if test -d ${srcdir}/projects/poolalloc ; then
1992   subdirs="$subdirs projects/poolalloc"
1993
1994 fi
1995
1996 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1997   subdirs="$subdirs projects/llvm-poolalloc"
1998
1999 fi
2000
2001 for i in `ls ${srcdir}/projects`
2002 do
2003   if test -d ${srcdir}/projects/${i} ; then
2004     case ${i} in
2005       sample)       subdirs="$subdirs projects/sample"
2006     ;;
2007       privbracket)  subdirs="$subdirs projects/privbracket"
2008  ;;
2009       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2010  ;;
2011       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2012 ;;
2013       llvm-java)    subdirs="$subdirs projects/llvm-java"
2014  ;;
2015       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2016    ;;
2017       safecode)     subdirs="$subdirs projects/safecode"
2018  ;;
2019       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2020  ;;
2021       llvm-gcc)       ;;
2022       test-suite)     ;;
2023       llvm-test)      ;;
2024       poolalloc)      ;;
2025       llvm-poolalloc) ;;
2026       *)
2027         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2029         ;;
2030     esac
2031   fi
2032 done
2033
2034 # Check whether --enable-polly was given.
2035 if test "${enable_polly+set}" = set; then
2036   enableval=$enable_polly;
2037 else
2038   enableval=default
2039 fi
2040
2041 case "$enableval" in
2042   yes) ENABLE_POLLY=1
2043  ;;
2044   no)  ENABLE_POLLY=0
2045  ;;
2046   default) ENABLE_POLLY=1
2047  ;;
2048   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050    { (exit 1); exit 1; }; } ;;
2051 esac
2052
2053
2054 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2055   LLVM_HAS_POLLY=1
2056
2057   subdirs="$subdirs tools/polly"
2058
2059 fi
2060
2061
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2064   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066    { (exit 1); exit 1; }; }
2067
2068 { echo "$as_me:$LINENO: checking build system type" >&5
2069 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   ac_build_alias=$build_alias
2074 test "x$ac_build_alias" = x &&
2075   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x &&
2077   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079    { (exit 1); exit 1; }; }
2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083    { (exit 1); exit 1; }; }
2084
2085 fi
2086 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 echo "${ECHO_T}$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2089 *-*-*) ;;
2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 echo "$as_me: error: invalid value of canonical build" >&2;}
2092    { (exit 1); exit 1; }; };;
2093 esac
2094 build=$ac_cv_build
2095 ac_save_IFS=$IFS; IFS='-'
2096 set x $ac_cv_build
2097 shift
2098 build_cpu=$1
2099 build_vendor=$2
2100 shift; shift
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2103 build_os=$*
2104 IFS=$ac_save_IFS
2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106
2107
2108 { echo "$as_me:$LINENO: checking host system type" >&5
2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   if test "x$host_alias" = x; then
2114   ac_cv_host=$ac_cv_build
2115 else
2116   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119    { (exit 1); exit 1; }; }
2120 fi
2121
2122 fi
2123 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 echo "${ECHO_T}$ac_cv_host" >&6; }
2125 case $ac_cv_host in
2126 *-*-*) ;;
2127 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 echo "$as_me: error: invalid value of canonical host" >&2;}
2129    { (exit 1); exit 1; }; };;
2130 esac
2131 host=$ac_cv_host
2132 ac_save_IFS=$IFS; IFS='-'
2133 set x $ac_cv_host
2134 shift
2135 host_cpu=$1
2136 host_vendor=$2
2137 shift; shift
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2140 host_os=$*
2141 IFS=$ac_save_IFS
2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2143
2144
2145 { echo "$as_me:$LINENO: checking target system type" >&5
2146 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_target+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   if test "x$target_alias" = x; then
2151   ac_cv_target=$ac_cv_host
2152 else
2153   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2154     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156    { (exit 1); exit 1; }; }
2157 fi
2158
2159 fi
2160 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161 echo "${ECHO_T}$ac_cv_target" >&6; }
2162 case $ac_cv_target in
2163 *-*-*) ;;
2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165 echo "$as_me: error: invalid value of canonical target" >&2;}
2166    { (exit 1); exit 1; }; };;
2167 esac
2168 target=$ac_cv_target
2169 ac_save_IFS=$IFS; IFS='-'
2170 set x $ac_cv_target
2171 shift
2172 target_cpu=$1
2173 target_vendor=$2
2174 shift; shift
2175 # Remember, the first character of IFS is used to create $*,
2176 # except with old shells:
2177 target_os=$*
2178 IFS=$ac_save_IFS
2179 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2180
2181
2182 # The aliases save the names the user supplied, while $host etc.
2183 # will get canonicalized.
2184 test -n "$target_alias" &&
2185   test "$program_prefix$program_suffix$program_transform_name" = \
2186     NONENONEs,x,x, &&
2187   program_prefix=${target_alias}-
2188
2189 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191 if test "${llvm_cv_os_type+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   case $host in
2195   *-*-aix*)
2196     llvm_cv_link_all_option="-Wl,--whole-archive"
2197     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198     llvm_cv_os_type="AIX"
2199     llvm_cv_platform_type="Unix" ;;
2200   *-*-irix*)
2201     llvm_cv_link_all_option="-Wl,--whole-archive"
2202     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203     llvm_cv_os_type="IRIX"
2204     llvm_cv_platform_type="Unix" ;;
2205   *-*-cygwin*)
2206     llvm_cv_link_all_option="-Wl,--whole-archive"
2207     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208     llvm_cv_os_type="Cygwin"
2209     llvm_cv_platform_type="Unix" ;;
2210   *-*-darwin*)
2211     llvm_cv_link_all_option="-Wl,-all_load"
2212     llvm_cv_no_link_all_option="-Wl,-noall_load"
2213     llvm_cv_os_type="Darwin"
2214     llvm_cv_platform_type="Unix" ;;
2215   *-*-minix*)
2216     llvm_cv_link_all_option="-Wl,-all_load"
2217     llvm_cv_no_link_all_option="-Wl,-noall_load"
2218     llvm_cv_os_type="Minix"
2219     llvm_cv_platform_type="Unix" ;;
2220   *-*-freebsd*)
2221     llvm_cv_link_all_option="-Wl,--whole-archive"
2222     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223     llvm_cv_os_type="FreeBSD"
2224     llvm_cv_platform_type="Unix" ;;
2225   *-*-openbsd*)
2226     llvm_cv_link_all_option="-Wl,--whole-archive"
2227     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228     llvm_cv_os_type="OpenBSD"
2229     llvm_cv_platform_type="Unix" ;;
2230   *-*-netbsd*)
2231     llvm_cv_link_all_option="-Wl,--whole-archive"
2232     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233     llvm_cv_os_type="NetBSD"
2234     llvm_cv_platform_type="Unix" ;;
2235   *-*-dragonfly*)
2236     llvm_cv_link_all_option="-Wl,--whole-archive"
2237     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238     llvm_cv_os_type="DragonFly"
2239     llvm_cv_platform_type="Unix" ;;
2240   *-*-hpux*)
2241     llvm_cv_link_all_option="-Wl,--whole-archive"
2242     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243     llvm_cv_os_type="HP-UX"
2244     llvm_cv_platform_type="Unix" ;;
2245   *-*-interix*)
2246     llvm_cv_link_all_option="-Wl,--whole-archive"
2247     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248     llvm_cv_os_type="Interix"
2249     llvm_cv_platform_type="Unix" ;;
2250   *-*-linux*)
2251     llvm_cv_link_all_option="-Wl,--whole-archive"
2252     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253     llvm_cv_os_type="Linux"
2254     llvm_cv_platform_type="Unix" ;;
2255   *-*-solaris*)
2256     llvm_cv_link_all_option="-Wl,-z,allextract"
2257     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2258     llvm_cv_os_type="SunOS"
2259     llvm_cv_platform_type="Unix" ;;
2260   *-*-auroraux*)
2261     llvm_cv_link_all_option="-Wl,-z,allextract"
2262     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2263     llvm_cv_os_type="AuroraUX"
2264     llvm_cv_platform_type="Unix" ;;
2265   *-*-win32*)
2266     llvm_cv_link_all_option="-Wl,--whole-archive"
2267     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268     llvm_cv_os_type="Win32"
2269     llvm_cv_platform_type="Win32" ;;
2270   *-*-mingw*)
2271     llvm_cv_link_all_option="-Wl,--whole-archive"
2272     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273     llvm_cv_os_type="MingW"
2274     llvm_cv_platform_type="Win32" ;;
2275   *-*-haiku*)
2276     llvm_cv_link_all_option="-Wl,--whole-archive"
2277     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278     llvm_cv_os_type="Haiku"
2279     llvm_cv_platform_type="Unix" ;;
2280   *-unknown-eabi*)
2281     llvm_cv_link_all_option="-Wl,--whole-archive"
2282     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283     llvm_cv_os_type="Freestanding"
2284     llvm_cv_platform_type="Unix" ;;
2285   *-unknown-elf*)
2286     llvm_cv_link_all_option="-Wl,--whole-archive"
2287     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288     llvm_cv_os_type="Freestanding"
2289     llvm_cv_platform_type="Unix" ;;
2290   *)
2291     llvm_cv_link_all_option=""
2292     llvm_cv_no_link_all_option=""
2293     llvm_cv_os_type="Unknown"
2294     llvm_cv_platform_type="Unknown" ;;
2295 esac
2296 fi
2297 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2299
2300 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302 if test "${llvm_cv_target_os_type+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   case $target in
2306   *-*-aix*)
2307     llvm_cv_target_os_type="AIX" ;;
2308   *-*-irix*)
2309     llvm_cv_target_os_type="IRIX" ;;
2310   *-*-cygwin*)
2311     llvm_cv_target_os_type="Cygwin" ;;
2312   *-*-darwin*)
2313     llvm_cv_target_os_type="Darwin" ;;
2314   *-*-minix*)
2315     llvm_cv_target_os_type="Minix" ;;
2316   *-*-freebsd*)
2317     llvm_cv_target_os_type="FreeBSD" ;;
2318   *-*-openbsd*)
2319     llvm_cv_target_os_type="OpenBSD" ;;
2320   *-*-netbsd*)
2321     llvm_cv_target_os_type="NetBSD" ;;
2322   *-*-dragonfly*)
2323     llvm_cv_target_os_type="DragonFly" ;;
2324   *-*-hpux*)
2325     llvm_cv_target_os_type="HP-UX" ;;
2326   *-*-interix*)
2327     llvm_cv_target_os_type="Interix" ;;
2328   *-*-linux*)
2329     llvm_cv_target_os_type="Linux" ;;
2330   *-*-solaris*)
2331     llvm_cv_target_os_type="SunOS" ;;
2332   *-*-auroraux*)
2333     llvm_cv_target_os_type="AuroraUX" ;;
2334   *-*-win32*)
2335     llvm_cv_target_os_type="Win32" ;;
2336   *-*-mingw*)
2337     llvm_cv_target_os_type="MingW" ;;
2338   *-*-haiku*)
2339     llvm_cv_target_os_type="Haiku" ;;
2340   *-*-rtems*)
2341     llvm_cv_target_os_type="RTEMS" ;;
2342   *-unknown-eabi*)
2343     llvm_cv_target_os_type="Freestanding" ;;
2344   *)
2345     llvm_cv_target_os_type="Unknown" ;;
2346 esac
2347 fi
2348 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2349 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2350
2351 if test "$llvm_cv_os_type" = "Unknown" ; then
2352   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2353 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357 OS=$llvm_cv_os_type
2358
2359 HOST_OS=$llvm_cv_os_type
2360
2361 TARGET_OS=$llvm_cv_target_os_type
2362
2363
2364 LINKALL=$llvm_cv_link_all_option
2365
2366 NOLINKALL=$llvm_cv_no_link_all_option
2367
2368
2369 case $llvm_cv_platform_type in
2370   Unix)
2371
2372 cat >>confdefs.h <<\_ACEOF
2373 #define LLVM_ON_UNIX 1
2374 _ACEOF
2375
2376     LLVM_ON_UNIX=1
2377
2378     LLVM_ON_WIN32=0
2379
2380     ;;
2381   Win32)
2382
2383 cat >>confdefs.h <<\_ACEOF
2384 #define LLVM_ON_WIN32 1
2385 _ACEOF
2386
2387     LLVM_ON_UNIX=0
2388
2389     LLVM_ON_WIN32=1
2390
2391     ;;
2392 esac
2393
2394 { echo "$as_me:$LINENO: checking target architecture" >&5
2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_arch+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   case $target in
2400   i?86-*)                 llvm_cv_target_arch="x86" ;;
2401   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2402   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2403   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2404   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2405   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2406   mips-*)                 llvm_cv_target_arch="Mips" ;;
2407   xcore-*)                llvm_cv_target_arch="XCore" ;;
2408   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2409   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2410   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2411   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2412   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2413   *)                      llvm_cv_target_arch="Unknown" ;;
2414 esac
2415 fi
2416 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2417 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2418
2419 if test "$llvm_cv_target_arch" = "Unknown" ; then
2420   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2421 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2422 fi
2423
2424 # Determine the LLVM native architecture for the target
2425 case "$llvm_cv_target_arch" in
2426     x86)     LLVM_NATIVE_ARCH="X86" ;;
2427     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2428     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2429 esac
2430
2431 ARCH=$llvm_cv_target_arch
2432
2433
2434 ac_ext=c
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_CC+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   if test -n "$CC"; then
2448   ac_cv_prog_CC="$CC" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453   IFS=$as_save_IFS
2454   test -z "$as_dir" && as_dir=.
2455   for ac_exec_ext in '' $ac_executable_extensions; do
2456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2457     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459     break 2
2460   fi
2461 done
2462 done
2463 IFS=$as_save_IFS
2464
2465 fi
2466 fi
2467 CC=$ac_cv_prog_CC
2468 if test -n "$CC"; then
2469   { echo "$as_me:$LINENO: result: $CC" >&5
2470 echo "${ECHO_T}$CC" >&6; }
2471 else
2472   { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2474 fi
2475
2476
2477 fi
2478 if test -z "$ac_cv_prog_CC"; then
2479   ac_ct_CC=$CC
2480   # Extract the first word of "gcc", so it can be a program name with args.
2481 set dummy gcc; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test -n "$ac_ct_CC"; then
2488   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     ac_cv_prog_ac_ct_CC="gcc"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508 if test -n "$ac_ct_CC"; then
2509   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510 echo "${ECHO_T}$ac_ct_CC" >&6; }
2511 else
2512   { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2514 fi
2515
2516   if test "x$ac_ct_CC" = x; then
2517     CC=""
2518   else
2519     case $cross_compiling:$ac_tool_warned in
2520 yes:)
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet.  If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet.  If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned=yes ;;
2528 esac
2529     CC=$ac_ct_CC
2530   fi
2531 else
2532   CC="$ac_cv_prog_CC"
2533 fi
2534
2535 if test -z "$CC"; then
2536           if test -n "$ac_tool_prefix"; then
2537     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}cc; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   if test -n "$CC"; then
2545   ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552   for ac_exec_ext in '' $ac_executable_extensions; do
2553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2554     ac_cv_prog_CC="${ac_tool_prefix}cc"
2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566   { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2568 else
2569   { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2571 fi
2572
2573
2574   fi
2575 fi
2576 if test -z "$CC"; then
2577   # Extract the first word of "cc", so it can be a program name with args.
2578 set dummy cc; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   if test -n "$CC"; then
2585   ac_cv_prog_CC="$CC" # Let the user override the test.
2586 else
2587   ac_prog_rejected=no
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593   for ac_exec_ext in '' $ac_executable_extensions; do
2594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2595     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2596        ac_prog_rejected=yes
2597        continue
2598      fi
2599     ac_cv_prog_CC="cc"
2600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 if test $ac_prog_rejected = yes; then
2608   # We found a bogon in the path, so make sure we never use it.
2609   set dummy $ac_cv_prog_CC
2610   shift
2611   if test $# != 0; then
2612     # We chose a different compiler from the bogus one.
2613     # However, it has the same basename, so the bogon will be chosen
2614     # first if we set CC to just the basename; use the full file name.
2615     shift
2616     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617   fi
2618 fi
2619 fi
2620 fi
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623   { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2625 else
2626   { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2628 fi
2629
2630
2631 fi
2632 if test -z "$CC"; then
2633   if test -n "$ac_tool_prefix"; then
2634   for ac_prog in cl.exe
2635   do
2636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643   if test -n "$CC"; then
2644   ac_cv_prog_CC="$CC" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649   IFS=$as_save_IFS
2650   test -z "$as_dir" && as_dir=.
2651   for ac_exec_ext in '' $ac_executable_extensions; do
2652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2653     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655     break 2
2656   fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 CC=$ac_cv_prog_CC
2664 if test -n "$CC"; then
2665   { echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6; }
2667 else
2668   { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2670 fi
2671
2672
2673     test -n "$CC" && break
2674   done
2675 fi
2676 if test -z "$CC"; then
2677   ac_ct_CC=$CC
2678   for ac_prog in cl.exe
2679 do
2680   # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   if test -n "$ac_ct_CC"; then
2688   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     ac_cv_prog_ac_ct_CC="$ac_prog"
2698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 echo "${ECHO_T}$ac_ct_CC" >&6; }
2711 else
2712   { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2714 fi
2715
2716
2717   test -n "$ac_ct_CC" && break
2718 done
2719
2720   if test "x$ac_ct_CC" = x; then
2721     CC=""
2722   else
2723     case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2726 whose name does not start with the host triplet.  If you think this
2727 configuration is useful to you, please write to autoconf@gnu.org." >&5
2728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2729 whose name does not start with the host triplet.  If you think this
2730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2731 ac_tool_warned=yes ;;
2732 esac
2733     CC=$ac_ct_CC
2734   fi
2735 fi
2736
2737 fi
2738
2739
2740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&2;}
2744    { (exit 1); exit 1; }; }
2745
2746 # Provide some information about the compiler.
2747 echo "$as_me:$LINENO: checking for C compiler version" >&5
2748 ac_compiler=`set X $ac_compile; echo $2`
2749 { (ac_try="$ac_compiler --version >&5"
2750 case "(($ac_try" in
2751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752   *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755   (eval "$ac_compiler --version >&5") 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }
2759 { (ac_try="$ac_compiler -v >&5"
2760 case "(($ac_try" in
2761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762   *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765   (eval "$ac_compiler -v >&5") 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }
2769 { (ac_try="$ac_compiler -V >&5"
2770 case "(($ac_try" in
2771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772   *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775   (eval "$ac_compiler -V >&5") 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }
2779
2780 cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h.  */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h.  */
2786
2787 int
2788 main ()
2789 {
2790
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 ac_clean_files_save=$ac_clean_files
2796 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2797 # Try to create an executable without -o first, disregard a.out.
2798 # It will help us diagnose broken compilers, and finding out an intuition
2799 # of exeext.
2800 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2802 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2803 #
2804 # List of possible output files, starting from the most likely.
2805 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2806 # only as a last resort.  b.out is created by i960 compilers.
2807 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2808 #
2809 # The IRIX 6 linker writes into existing files which may not be
2810 # executable, retaining their permissions.  Remove them first so a
2811 # subsequent execution test works.
2812 ac_rmfiles=
2813 for ac_file in $ac_files
2814 do
2815   case $ac_file in
2816     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2817     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818   esac
2819 done
2820 rm -f $ac_rmfiles
2821
2822 if { (ac_try="$ac_link_default"
2823 case "(($ac_try" in
2824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825   *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828   (eval "$ac_link_default") 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; then
2832   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2835 # so that the user can short-circuit this test for compilers unknown to
2836 # Autoconf.
2837 for ac_file in $ac_files
2838 do
2839   test -f "$ac_file" || continue
2840   case $ac_file in
2841     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2842         ;;
2843     [ab].out )
2844         # We found the default executable, but exeext='' is most
2845         # certainly right.
2846         break;;
2847     *.* )
2848         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2849         then :; else
2850            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851         fi
2852         # We set ac_cv_exeext here because the later test for it is not
2853         # safe: cross compilers may not add the suffix if given an `-o'
2854         # argument, so we may need to know it at that point already.
2855         # Even if this section looks crufty: it has the advantage of
2856         # actually working.
2857         break;;
2858     * )
2859         break;;
2860   esac
2861 done
2862 test "$ac_cv_exeext" = no && ac_cv_exeext=
2863
2864 else
2865   echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&2;}
2872    { (exit 77); exit 77; }; }
2873 fi
2874
2875 ac_exeext=$ac_cv_exeext
2876 { echo "$as_me:$LINENO: result: $ac_file" >&5
2877 echo "${ECHO_T}$ac_file" >&6; }
2878
2879 # Check that the compiler produces executables we can run.  If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884 # If not cross compiling, check that we can run a simple program.
2885 if test "$cross_compiling" != yes; then
2886   if { ac_try='./$ac_file'
2887   { (case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_try") 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }; }; then
2896     cross_compiling=no
2897   else
2898     if test "$cross_compiling" = maybe; then
2899         cross_compiling=yes
2900     else
2901         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&2;}
2907    { (exit 1); exit 1; }; }
2908     fi
2909   fi
2910 fi
2911 { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2913
2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 # Check that the compiler produces executables we can run.  If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6; }
2922
2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925 if { (ac_try="$ac_link"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_link") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }; then
2935   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2937 # work properly (i.e., refer to `conftest.exe'), while it won't with
2938 # `rm'.
2939 for ac_file in conftest.exe conftest conftest.*; do
2940   test -f "$ac_file" || continue
2941   case $ac_file in
2942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944           break;;
2945     * ) break;;
2946   esac
2947 done
2948 else
2949   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&2;}
2953    { (exit 1); exit 1; }; }
2954 fi
2955
2956 rm -f conftest$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2959
2960 rm -f conftest.$ac_ext
2961 EXEEXT=$ac_cv_exeext
2962 ac_exeext=$EXEEXT
2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965 if test "${ac_cv_objext+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974
2975 int
2976 main ()
2977 {
2978
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 rm -f conftest.o conftest.obj
2984 if { (ac_try="$ac_compile"
2985 case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990   (eval "$ac_compile") 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; then
2994   for ac_file in conftest.o conftest.obj conftest.*; do
2995   test -f "$ac_file" || continue;
2996   case $ac_file in
2997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2998     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999        break;;
3000   esac
3001 done
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&2;}
3010    { (exit 1); exit 1; }; }
3011 fi
3012
3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016 echo "${ECHO_T}$ac_cv_objext" >&6; }
3017 OBJEXT=$ac_cv_objext
3018 ac_objext=$OBJEXT
3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034 #ifndef __GNUC__
3035        choke me
3036 #endif
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_compile") 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } &&
3056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057   { (case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_try") 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; } &&
3066          { ac_try='test -s conftest.$ac_objext'
3067   { (case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072   (eval "$ac_try") 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   ac_compiler_gnu=yes
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081         ac_compiler_gnu=no
3082 fi
3083
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3086
3087 fi
3088 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3089 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3090 GCC=`test $ac_compiler_gnu = yes && echo yes`
3091 ac_test_CFLAGS=${CFLAGS+set}
3092 ac_save_CFLAGS=$CFLAGS
3093 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3094 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3095 if test "${ac_cv_prog_cc_g+set}" = set; then
3096   echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098   ac_save_c_werror_flag=$ac_c_werror_flag
3099    ac_c_werror_flag=yes
3100    ac_cv_prog_cc_g=no
3101    CFLAGS="-g"
3102    cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108
3109 int
3110 main ()
3111 {
3112
3113   ;
3114   return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_compile") 2>conftest.er1
3125   ac_status=$?
3126   grep -v '^ *+' conftest.er1 >conftest.err
3127   rm -f conftest.er1
3128   cat conftest.err >&5
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); } &&
3131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132   { (case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_try") 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; } &&
3141          { ac_try='test -s conftest.$ac_objext'
3142   { (case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_try") 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; }; then
3151   ac_cv_prog_cc_g=yes
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156         CFLAGS=""
3157       cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_compile") 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187   { (case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_try") 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; } &&
3196          { ac_try='test -s conftest.$ac_objext'
3197   { (case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202   (eval "$ac_try") 2>&5
3203   ac_status=$?
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); }; }; then
3206   :
3207 else
3208   echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211         ac_c_werror_flag=$ac_save_c_werror_flag
3212          CFLAGS="-g"
3213          cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 int
3221 main ()
3222 {
3223
3224   ;
3225   return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235   (eval "$ac_compile") 2>conftest.er1
3236   ac_status=$?
3237   grep -v '^ *+' conftest.er1 >conftest.err
3238   rm -f conftest.er1
3239   cat conftest.err >&5
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); } &&
3242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243   { (case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248   (eval "$ac_try") 2>&5
3249   ac_status=$?
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); }; } &&
3252          { ac_try='test -s conftest.$ac_objext'
3253   { (case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258   (eval "$ac_try") 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }; }; then
3262   ac_cv_prog_cc_g=yes
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267
3268 fi
3269
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 fi
3272
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 fi
3275
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277    ac_c_werror_flag=$ac_save_c_werror_flag
3278 fi
3279 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3281 if test "$ac_test_CFLAGS" = set; then
3282   CFLAGS=$ac_save_CFLAGS
3283 elif test $ac_cv_prog_cc_g = yes; then
3284   if test "$GCC" = yes; then
3285     CFLAGS="-g -O2"
3286   else
3287     CFLAGS="-g"
3288   fi
3289 else
3290   if test "$GCC" = yes; then
3291     CFLAGS="-O2"
3292   else
3293     CFLAGS=
3294   fi
3295 fi
3296 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3297 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_cc_c89+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   ac_cv_prog_cc_c89=no
3302 ac_save_CC=$CC
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <stdarg.h>
3310 #include <stdio.h>
3311 #include <sys/types.h>
3312 #include <sys/stat.h>
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3317      char **p;
3318      int i;
3319 {
3320   return p[i];
3321 }
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3323 {
3324   char *s;
3325   va_list v;
3326   va_start (v,p);
3327   s = g (p, va_arg (v,int));
3328   va_end (v);
3329   return s;
3330 }
3331
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3333    function prototypes and stuff, but not '\xHH' hex character constants.
3334    These don't provoke an error unfortunately, instead are silently treated
3335    as 'x'.  The following induces an error, until -std is added to get
3336    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3337    array size at least.  It's necessary to write '\x00'==0 to get something
3338    that's true only with -std.  */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3340
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342    inside strings and character constants.  */
3343 #define FOO(x) 'x'
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3345
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 int argc;
3351 char **argv;
3352 int
3353 main ()
3354 {
3355 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3362 do
3363   CC="$ac_save_CC $ac_arg"
3364   rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371   (eval "$ac_compile") 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } &&
3378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3379   { (case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_try") 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }; } &&
3388          { ac_try='test -s conftest.$ac_objext'
3389   { (case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_try") 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }; }; then
3398   ac_cv_prog_cc_c89=$ac_arg
3399 else
3400   echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403
3404 fi
3405
3406 rm -f core conftest.err conftest.$ac_objext
3407   test "x$ac_cv_prog_cc_c89" != "xno" && break
3408 done
3409 rm -f conftest.$ac_ext
3410 CC=$ac_save_CC
3411
3412 fi
3413 # AC_CACHE_VAL
3414 case "x$ac_cv_prog_cc_c89" in
3415   x)
3416     { echo "$as_me:$LINENO: result: none needed" >&5
3417 echo "${ECHO_T}none needed" >&6; } ;;
3418   xno)
3419     { echo "$as_me:$LINENO: result: unsupported" >&5
3420 echo "${ECHO_T}unsupported" >&6; } ;;
3421   *)
3422     CC="$CC $ac_cv_prog_cc_c89"
3423     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3424 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3425 esac
3426
3427
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434
3435 ac_ext=c
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3442 # On Suns, sometimes $CPP names a directory.
3443 if test -n "$CPP" && test -d "$CPP"; then
3444   CPP=
3445 fi
3446 if test -z "$CPP"; then
3447   if test "${ac_cv_prog_CPP+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450       # Double quotes because CPP needs to be expanded
3451     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3452     do
3453       ac_preproc_ok=false
3454 for ac_c_preproc_warn_flag in '' yes
3455 do
3456   # Use a header file that comes with gcc, so configuring glibc
3457   # with a fresh cross-compiler works.
3458   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459   # <limits.h> exists even on freestanding compilers.
3460   # On the NeXT, cc -E runs the code through the compiler's parser,
3461   # not just through cpp. "Syntax error" is here to catch this case.
3462   cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468 #ifdef __STDC__
3469 # include <limits.h>
3470 #else
3471 # include <assert.h>
3472 #endif
3473                      Syntax error
3474 _ACEOF
3475 if { (ac_try="$ac_cpp conftest.$ac_ext"
3476 case "(($ac_try" in
3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478   *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482   ac_status=$?
3483   grep -v '^ *+' conftest.er1 >conftest.err
3484   rm -f conftest.er1
3485   cat conftest.err >&5
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); } >/dev/null; then
3488   if test -s conftest.err; then
3489     ac_cpp_err=$ac_c_preproc_warn_flag
3490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491   else
3492     ac_cpp_err=
3493   fi
3494 else
3495   ac_cpp_err=yes
3496 fi
3497 if test -z "$ac_cpp_err"; then
3498   :
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503   # Broken: fails on valid input.
3504 continue
3505 fi
3506
3507 rm -f conftest.err conftest.$ac_ext
3508
3509   # OK, works on sane cases.  Now check whether nonexistent headers
3510   # can be detected and how.
3511   cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h.  */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h.  */
3517 #include <ac_nonexistent.h>
3518 _ACEOF
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } >/dev/null; then
3532   if test -s conftest.err; then
3533     ac_cpp_err=$ac_c_preproc_warn_flag
3534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535   else
3536     ac_cpp_err=
3537   fi
3538 else
3539   ac_cpp_err=yes
3540 fi
3541 if test -z "$ac_cpp_err"; then
3542   # Broken: success on invalid input.
3543 continue
3544 else
3545   echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548   # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3551 fi
3552
3553 rm -f conftest.err conftest.$ac_ext
3554
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559   break
3560 fi
3561
3562     done
3563     ac_cv_prog_CPP=$CPP
3564
3565 fi
3566   CPP=$ac_cv_prog_CPP
3567 else
3568   ac_cv_prog_CPP=$CPP
3569 fi
3570 { echo "$as_me:$LINENO: result: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6; }
3572 ac_preproc_ok=false
3573 for ac_c_preproc_warn_flag in '' yes
3574 do
3575   # Use a header file that comes with gcc, so configuring glibc
3576   # with a fresh cross-compiler works.
3577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578   # <limits.h> exists even on freestanding compilers.
3579   # On the NeXT, cc -E runs the code through the compiler's parser,
3580   # not just through cpp. "Syntax error" is here to catch this case.
3581   cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592                      Syntax error
3593 _ACEOF
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601   ac_status=$?
3602   grep -v '^ *+' conftest.er1 >conftest.err
3603   rm -f conftest.er1
3604   cat conftest.err >&5
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); } >/dev/null; then
3607   if test -s conftest.err; then
3608     ac_cpp_err=$ac_c_preproc_warn_flag
3609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610   else
3611     ac_cpp_err=
3612   fi
3613 else
3614   ac_cpp_err=yes
3615 fi
3616 if test -z "$ac_cpp_err"; then
3617   :
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622   # Broken: fails on valid input.
3623 continue
3624 fi
3625
3626 rm -f conftest.err conftest.$ac_ext
3627
3628   # OK, works on sane cases.  Now check whether nonexistent headers
3629   # can be detected and how.
3630   cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 #include <ac_nonexistent.h>
3637 _ACEOF
3638 if { (ac_try="$ac_cpp conftest.$ac_ext"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645   ac_status=$?
3646   grep -v '^ *+' conftest.er1 >conftest.err
3647   rm -f conftest.er1
3648   cat conftest.err >&5
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } >/dev/null; then
3651   if test -s conftest.err; then
3652     ac_cpp_err=$ac_c_preproc_warn_flag
3653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3654   else
3655     ac_cpp_err=
3656   fi
3657 else
3658   ac_cpp_err=yes
3659 fi
3660 if test -z "$ac_cpp_err"; then
3661   # Broken: success on invalid input.
3662 continue
3663 else
3664   echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667   # Passes both tests.
3668 ac_preproc_ok=:
3669 break
3670 fi
3671
3672 rm -f conftest.err conftest.$ac_ext
3673
3674 done
3675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3676 rm -f conftest.err conftest.$ac_ext
3677 if $ac_preproc_ok; then
3678   :
3679 else
3680   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details." >&5
3682 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log' for more details." >&2;}
3684    { (exit 1); exit 1; }; }
3685 fi
3686
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693
3694 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3695 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_GREP+set}" = set; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   # Extract the first word of "grep ggrep" to use in msg output
3700 if test -z "$GREP"; then
3701 set dummy grep ggrep; ac_prog_name=$2
3702 if test "${ac_cv_path_GREP+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   ac_path_GREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712   for ac_prog in grep ggrep; do
3713   for ac_exec_ext in '' $ac_executable_extensions; do
3714     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3716     # Check for GNU ac_path_GREP and select it if it is found.
3717   # Check for GNU $ac_path_GREP
3718 case `"$ac_path_GREP" --version 2>&1` in
3719 *GNU*)
3720   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3721 *)
3722   ac_count=0
3723   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3724   while :
3725   do
3726     cat "conftest.in" "conftest.in" >"conftest.tmp"
3727     mv "conftest.tmp" "conftest.in"
3728     cp "conftest.in" "conftest.nl"
3729     echo 'GREP' >> "conftest.nl"
3730     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732     ac_count=`expr $ac_count + 1`
3733     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734       # Best one so far, save it but keep looking for a better one
3735       ac_cv_path_GREP="$ac_path_GREP"
3736       ac_path_GREP_max=$ac_count
3737     fi
3738     # 10*(2^10) chars as input seems more than enough
3739     test $ac_count -gt 10 && break
3740   done
3741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742 esac
3743
3744
3745     $ac_path_GREP_found && break 3
3746   done
3747 done
3748
3749 done
3750 IFS=$as_save_IFS
3751
3752
3753 fi
3754
3755 GREP="$ac_cv_path_GREP"
3756 if test -z "$GREP"; then
3757   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759    { (exit 1); exit 1; }; }
3760 fi
3761
3762 else
3763   ac_cv_path_GREP=$GREP
3764 fi
3765
3766
3767 fi
3768 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3769 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3770  GREP="$ac_cv_path_GREP"
3771
3772
3773 { echo "$as_me:$LINENO: checking for egrep" >&5
3774 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_EGREP+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3779    then ac_cv_path_EGREP="$GREP -E"
3780    else
3781      # Extract the first word of "egrep" to use in msg output
3782 if test -z "$EGREP"; then
3783 set dummy egrep; ac_prog_name=$2
3784 if test "${ac_cv_path_EGREP+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   ac_path_EGREP_found=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794   for ac_prog in egrep; do
3795   for ac_exec_ext in '' $ac_executable_extensions; do
3796     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3797     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3798     # Check for GNU ac_path_EGREP and select it if it is found.
3799   # Check for GNU $ac_path_EGREP
3800 case `"$ac_path_EGREP" --version 2>&1` in
3801 *GNU*)
3802   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3803 *)
3804   ac_count=0
3805   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3806   while :
3807   do
3808     cat "conftest.in" "conftest.in" >"conftest.tmp"
3809     mv "conftest.tmp" "conftest.in"
3810     cp "conftest.in" "conftest.nl"
3811     echo 'EGREP' >> "conftest.nl"
3812     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814     ac_count=`expr $ac_count + 1`
3815     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816       # Best one so far, save it but keep looking for a better one
3817       ac_cv_path_EGREP="$ac_path_EGREP"
3818       ac_path_EGREP_max=$ac_count
3819     fi
3820     # 10*(2^10) chars as input seems more than enough
3821     test $ac_count -gt 10 && break
3822   done
3823   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 esac
3825
3826
3827     $ac_path_EGREP_found && break 3
3828   done
3829 done
3830
3831 done
3832 IFS=$as_save_IFS
3833
3834
3835 fi
3836
3837 EGREP="$ac_cv_path_EGREP"
3838 if test -z "$EGREP"; then
3839   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841    { (exit 1); exit 1; }; }
3842 fi
3843
3844 else
3845   ac_cv_path_EGREP=$EGREP
3846 fi
3847
3848
3849    fi
3850 fi
3851 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3852 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3853  EGREP="$ac_cv_path_EGREP"
3854
3855
3856 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3858 if test "${ac_cv_header_stdc+set}" = set; then
3859   echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861   cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h.  */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h.  */
3867 #include <stdlib.h>
3868 #include <stdarg.h>
3869 #include <string.h>
3870 #include <float.h>
3871
3872 int
3873 main ()
3874 {
3875
3876   ;
3877   return 0;
3878 }
3879 _ACEOF
3880 rm -f conftest.$ac_objext
3881 if { (ac_try="$ac_compile"
3882 case "(($ac_try" in
3883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884   *) ac_try_echo=$ac_try;;
3885 esac
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887   (eval "$ac_compile") 2>conftest.er1
3888   ac_status=$?
3889   grep -v '^ *+' conftest.er1 >conftest.err
3890   rm -f conftest.er1
3891   cat conftest.err >&5
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); } &&
3894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3895   { (case "(($ac_try" in
3896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897   *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900   (eval "$ac_try") 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }; } &&
3904          { ac_try='test -s conftest.$ac_objext'
3905   { (case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910   (eval "$ac_try") 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }; }; then
3914   ac_cv_header_stdc=yes
3915 else
3916   echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919         ac_cv_header_stdc=no
3920 fi
3921
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923
3924 if test $ac_cv_header_stdc = yes; then
3925   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3926   cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h.  */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h.  */
3932 #include <string.h>
3933
3934 _ACEOF
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936   $EGREP "memchr" >/dev/null 2>&1; then
3937   :
3938 else
3939   ac_cv_header_stdc=no
3940 fi
3941 rm -f conftest*
3942
3943 fi
3944
3945 if test $ac_cv_header_stdc = yes; then
3946   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3947   cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953 #include <stdlib.h>
3954
3955 _ACEOF
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957   $EGREP "free" >/dev/null 2>&1; then
3958   :
3959 else
3960   ac_cv_header_stdc=no
3961 fi
3962 rm -f conftest*
3963
3964 fi
3965
3966 if test $ac_cv_header_stdc = yes; then
3967   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968   if test "$cross_compiling" = yes; then
3969   :
3970 else
3971   cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h.  */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h.  */
3977 #include <ctype.h>
3978 #include <stdlib.h>
3979 #if ((' ' & 0x0FF) == 0x020)
3980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3982 #else
3983 # define ISLOWER(c) \
3984                    (('a' <= (c) && (c) <= 'i') \
3985                      || ('j' <= (c) && (c) <= 'r') \
3986                      || ('s' <= (c) && (c) <= 'z'))
3987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3988 #endif
3989
3990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991 int
3992 main ()
3993 {
3994   int i;
3995   for (i = 0; i < 256; i++)
3996     if (XOR (islower (i), ISLOWER (i))
3997         || toupper (i) != TOUPPER (i))
3998       return 2;
3999   return 0;
4000 }
4001 _ACEOF
4002 rm -f conftest$ac_exeext
4003 if { (ac_try="$ac_link"
4004 case "(($ac_try" in
4005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006   *) ac_try_echo=$ac_try;;
4007 esac
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009   (eval "$ac_link") 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013   { (case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018   (eval "$ac_try") 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); }; }; then
4022   :
4023 else
4024   echo "$as_me: program exited with status $ac_status" >&5
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 ( exit $ac_status )
4029 ac_cv_header_stdc=no
4030 fi
4031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4032 fi
4033
4034
4035 fi
4036 fi
4037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4039 if test $ac_cv_header_stdc = yes; then
4040
4041 cat >>confdefs.h <<\_ACEOF
4042 #define STDC_HEADERS 1
4043 _ACEOF
4044
4045 fi
4046
4047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058                   inttypes.h stdint.h unistd.h
4059 do
4060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h.  */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h.  */
4072 $ac_includes_default
4073
4074 #include <$ac_header>
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4078 case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083   (eval "$ac_compile") 2>conftest.er1
4084   ac_status=$?
4085   grep -v '^ *+' conftest.er1 >conftest.err
4086   rm -f conftest.er1
4087   cat conftest.err >&5
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); } &&
4090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091   { (case "(($ac_try" in
4092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093   *) ac_try_echo=$ac_try;;
4094 esac
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096   (eval "$ac_try") 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; } &&
4100          { ac_try='test -s conftest.$ac_objext'
4101   { (case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106   (eval "$ac_try") 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; }; then
4110   eval "$as_ac_Header=yes"
4111 else
4112   echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115         eval "$as_ac_Header=no"
4116 fi
4117
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 fi
4120 ac_res=`eval echo '${'$as_ac_Header'}'`
4121                { echo "$as_me:$LINENO: result: $ac_res" >&5
4122 echo "${ECHO_T}$ac_res" >&6; }
4123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4124   cat >>confdefs.h <<_ACEOF
4125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4126 _ACEOF
4127
4128 fi
4129
4130 done
4131
4132
4133 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4135 if test "${ac_cv_c_bigendian+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138   # See if sys/param.h defines the BYTE_ORDER macro.
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 #include <sys/types.h>
4146 #include <sys/param.h>
4147
4148 int
4149 main ()
4150 {
4151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4152  bogus endian macros
4153 #endif
4154
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166   (eval "$ac_compile") 2>conftest.er1
4167   ac_status=$?
4168   grep -v '^ *+' conftest.er1 >conftest.err
4169   rm -f conftest.er1
4170   cat conftest.err >&5
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); } &&
4173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174   { (case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179   (eval "$ac_try") 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; } &&
4183          { ac_try='test -s conftest.$ac_objext'
4184   { (case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_try") 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); }; }; then
4193   # It does; now see whether it defined to BIG_ENDIAN or not.
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200 #include <sys/types.h>
4201 #include <sys/param.h>
4202
4203 int
4204 main ()
4205 {
4206 #if BYTE_ORDER != BIG_ENDIAN
4207  not big endian
4208 #endif
4209
4210   ;
4211   return 0;
4212 }
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4216 case "(($ac_try" in
4217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218   *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221   (eval "$ac_compile") 2>conftest.er1
4222   ac_status=$?
4223   grep -v '^ *+' conftest.er1 >conftest.err
4224   rm -f conftest.er1
4225   cat conftest.err >&5
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } &&
4228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229   { (case "(($ac_try" in
4230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231   *) ac_try_echo=$ac_try;;
4232 esac
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234   (eval "$ac_try") 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; } &&
4238          { ac_try='test -s conftest.$ac_objext'
4239   { (case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244   (eval "$ac_try") 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); }; }; then
4248   ac_cv_c_bigendian=yes
4249 else
4250   echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253         ac_cv_c_bigendian=no
4254 fi
4255
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 else
4258   echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261         # It does not; compile a test program.
4262 if test "$cross_compiling" = yes; then
4263   # try to guess the endianness by grepping values into an object file
4264   ac_cv_c_bigendian=unknown
4265   cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h.  */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h.  */
4271 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4272 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4273 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4274 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4275 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4276 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4277 int
4278 main ()
4279 {
4280  _ascii (); _ebcdic ();
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (ac_try="$ac_compile"
4287 case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_compile") 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4300   { (case "(($ac_try" in
4301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302   *) ac_try_echo=$ac_try;;
4303 esac
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305   (eval "$ac_try") 2>&5
4306   ac_status=$?
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); }; } &&
4309          { ac_try='test -s conftest.$ac_objext'
4310   { (case "(($ac_try" in
4311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312   *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315   (eval "$ac_try") 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then
4319   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4320   ac_cv_c_bigendian=yes
4321 fi
4322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4323   if test "$ac_cv_c_bigendian" = unknown; then
4324     ac_cv_c_bigendian=no
4325   else
4326     # finding both strings is unlikely to happen, but who knows?
4327     ac_cv_c_bigendian=unknown
4328   fi
4329 fi
4330 else
4331   echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334
4335 fi
4336
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 else
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 $ac_includes_default
4346 int
4347 main ()
4348 {
4349
4350   /* Are we little or big endian?  From Harbison&Steele.  */
4351   union
4352   {
4353     long int l;
4354     char c[sizeof (long int)];
4355   } u;
4356   u.l = 1;
4357   return u.c[sizeof (long int) - 1] == 1;
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4365 case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370   (eval "$ac_link") 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374   { (case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379   (eval "$ac_try") 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   ac_cv_c_bigendian=no
4384 else
4385   echo "$as_me: program exited with status $ac_status" >&5
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 ( exit $ac_status )
4390 ac_cv_c_bigendian=yes
4391 fi
4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4393 fi
4394
4395
4396 fi
4397
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 fi
4400 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4401 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4402 case $ac_cv_c_bigendian in
4403   yes)
4404     ENDIAN=big
4405  ;;
4406   no)
4407     ENDIAN=little
4408  ;;
4409   *)
4410     { { echo "$as_me:$LINENO: error: unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4412 echo "$as_me: error: unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4414    { (exit 1); exit 1; }; } ;;
4415 esac
4416
4417
4418 if test "$cross_compiling" = yes; then
4419   LLVM_CROSS_COMPILING=1
4420
4421
4422 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4423 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4424 if test "${ac_cv_build_exeext+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4428   ac_cv_build_exeext=.exe
4429 else
4430   ac_build_prefix=${build_alias}-
4431
4432   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_build_prefix}gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   if test -n "$BUILD_CC"; then
4440   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447   for ac_exec_ext in '' $ac_executable_extensions; do
4448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454 done
4455 IFS=$as_save_IFS
4456
4457 fi
4458 fi
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469   if test -z "$BUILD_CC"; then
4470      # Extract the first word of "gcc", so it can be a program name with args.
4471 set dummy gcc; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test -n "$BUILD_CC"; then
4478   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4487     ac_cv_prog_BUILD_CC="gcc"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 fi
4496 fi
4497 BUILD_CC=$ac_cv_prog_BUILD_CC
4498 if test -n "$BUILD_CC"; then
4499   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500 echo "${ECHO_T}$BUILD_CC" >&6; }
4501 else
4502   { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4504 fi
4505
4506
4507      if test -z "$BUILD_CC"; then
4508        # Extract the first word of "cc", so it can be a program name with args.
4509 set dummy cc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   if test -n "$BUILD_CC"; then
4516   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4517 else
4518   ac_prog_rejected=no
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524   for ac_exec_ext in '' $ac_executable_extensions; do
4525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4526     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527        ac_prog_rejected=yes
4528        continue
4529      fi
4530     ac_cv_prog_BUILD_CC="cc"
4531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535 done
4536 IFS=$as_save_IFS
4537
4538 if test $ac_prog_rejected = yes; then
4539   # We found a bogon in the path, so make sure we never use it.
4540   set dummy $ac_cv_prog_BUILD_CC
4541   shift
4542   if test $# != 0; then
4543     # We chose a different compiler from the bogus one.
4544     # However, it has the same basename, so the bogon will be chosen
4545     # first if we set BUILD_CC to just the basename; use the full file name.
4546     shift
4547     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548   fi
4549 fi
4550 fi
4551 fi
4552 BUILD_CC=$ac_cv_prog_BUILD_CC
4553 if test -n "$BUILD_CC"; then
4554   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4555 echo "${ECHO_T}$BUILD_CC" >&6; }
4556 else
4557   { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4559 fi
4560
4561
4562      fi
4563   fi
4564   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4565 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4566    { (exit 1); exit 1; }; }
4567   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4568   rm -f conftest*
4569   echo 'int main () { return 0; }' > conftest.$ac_ext
4570   ac_cv_build_exeext=
4571   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4572   (eval $ac_build_link) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; then
4576     for file in conftest.*; do
4577       case $file in
4578       *.c | *.o | *.obj | *.dSYM) ;;
4579       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4580       esac
4581     done
4582   else
4583     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4584 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4585    { (exit 1); exit 1; }; }
4586   fi
4587   rm -f conftest*
4588   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4589 fi
4590 fi
4591
4592 BUILD_EXEEXT=""
4593 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4594 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4595 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4596 ac_build_exeext=$BUILD_EXEEXT
4597
4598   ac_build_prefix=${build_alias}-
4599   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4600 set dummy ${ac_build_prefix}g++; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   if test -n "$BUILD_CXX"; then
4607   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612   IFS=$as_save_IFS
4613   test -z "$as_dir" && as_dir=.
4614   for ac_exec_ext in '' $ac_executable_extensions; do
4615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618     break 2
4619   fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 fi
4625 fi
4626 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627 if test -n "$BUILD_CXX"; then
4628   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629 echo "${ECHO_T}$BUILD_CXX" >&6; }
4630 else
4631   { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4633 fi
4634
4635
4636   if test -z "$BUILD_CXX"; then
4637      # Extract the first word of "g++", so it can be a program name with args.
4638 set dummy g++; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   if test -n "$BUILD_CXX"; then
4645   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652   for ac_exec_ext in '' $ac_executable_extensions; do
4653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4654     ac_cv_prog_BUILD_CXX="g++"
4655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665 if test -n "$BUILD_CXX"; then
4666   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667 echo "${ECHO_T}$BUILD_CXX" >&6; }
4668 else
4669   { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4671 fi
4672
4673
4674      if test -z "$BUILD_CXX"; then
4675        # Extract the first word of "c++", so it can be a program name with args.
4676 set dummy c++; ac_word=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682   if test -n "$BUILD_CXX"; then
4683   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4684 else
4685   ac_prog_rejected=no
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691   for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4694        ac_prog_rejected=yes
4695        continue
4696      fi
4697     ac_cv_prog_BUILD_CXX="c++"
4698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 if test $ac_prog_rejected = yes; then
4706   # We found a bogon in the path, so make sure we never use it.
4707   set dummy $ac_cv_prog_BUILD_CXX
4708   shift
4709   if test $# != 0; then
4710     # We chose a different compiler from the bogus one.
4711     # However, it has the same basename, so the bogon will be chosen
4712     # first if we set BUILD_CXX to just the basename; use the full file name.
4713     shift
4714     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715   fi
4716 fi
4717 fi
4718 fi
4719 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4720 if test -n "$BUILD_CXX"; then
4721   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4722 echo "${ECHO_T}$BUILD_CXX" >&6; }
4723 else
4724   { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4726 fi
4727
4728
4729      fi
4730   fi
4731 else
4732   LLVM_CROSS_COMPILING=0
4733
4734 fi
4735
4736 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4737   cvsbuild="yes"
4738   optimize="no"
4739   CVSBUILD=CVSBUILD=1
4740
4741 else
4742   cvsbuild="no"
4743   optimize="yes"
4744 fi
4745
4746
4747 # Check whether --enable-optimized was given.
4748 if test "${enable_optimized+set}" = set; then
4749   enableval=$enable_optimized;
4750 else
4751   enableval=$optimize
4752 fi
4753
4754 if test ${enableval} = "no" ; then
4755   ENABLE_OPTIMIZED=
4756
4757 else
4758   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4759
4760 fi
4761
4762 # Check whether --enable-profiling was given.
4763 if test "${enable_profiling+set}" = set; then
4764   enableval=$enable_profiling;
4765 else
4766   enableval="no"
4767 fi
4768
4769 if test ${enableval} = "no" ; then
4770   ENABLE_PROFILING=
4771
4772 else
4773   ENABLE_PROFILING=ENABLE_PROFILING=1
4774
4775 fi
4776
4777 # Check whether --enable-assertions was given.
4778 if test "${enable_assertions+set}" = set; then
4779   enableval=$enable_assertions;
4780 else
4781   enableval="yes"
4782 fi
4783
4784 if test ${enableval} = "yes" ; then
4785   DISABLE_ASSERTIONS=
4786
4787 else
4788   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4789
4790 fi
4791
4792 # Check whether --enable-expensive-checks was given.
4793 if test "${enable_expensive_checks+set}" = set; then
4794   enableval=$enable_expensive_checks;
4795 else
4796   enableval="no"
4797 fi
4798
4799 if test ${enableval} = "yes" ; then
4800   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4801
4802   EXPENSIVE_CHECKS=yes
4803
4804 else
4805   ENABLE_EXPENSIVE_CHECKS=
4806
4807   EXPENSIVE_CHECKS=no
4808
4809 fi
4810
4811 # Check whether --enable-debug-runtime was given.
4812 if test "${enable_debug_runtime+set}" = set; then
4813   enableval=$enable_debug_runtime;
4814 else
4815   enableval=no
4816 fi
4817
4818 if test ${enableval} = "no" ; then
4819   DEBUG_RUNTIME=
4820
4821 else
4822   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4823
4824 fi
4825
4826 # Check whether --enable-debug-symbols was given.
4827 if test "${enable_debug_symbols+set}" = set; then
4828   enableval=$enable_debug_symbols;
4829 else
4830   enableval=no
4831 fi
4832
4833 if test ${enableval} = "no" ; then
4834   DEBUG_SYMBOLS=
4835
4836 else
4837   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4838
4839 fi
4840
4841 # Check whether --enable-jit was given.
4842 if test "${enable_jit+set}" = set; then
4843   enableval=$enable_jit;
4844 else
4845   enableval=default
4846 fi
4847
4848 if test ${enableval} = "no"
4849 then
4850   JIT=
4851
4852 else
4853   case "$llvm_cv_target_arch" in
4854     x86)         TARGET_HAS_JIT=1
4855  ;;
4856     Sparc)       TARGET_HAS_JIT=0
4857  ;;
4858     PowerPC)     TARGET_HAS_JIT=1
4859  ;;
4860     x86_64)      TARGET_HAS_JIT=1
4861  ;;
4862     Alpha)       TARGET_HAS_JIT=0
4863  ;;
4864     ARM)         TARGET_HAS_JIT=1
4865  ;;
4866     Mips)        TARGET_HAS_JIT=0
4867  ;;
4868     XCore)       TARGET_HAS_JIT=0
4869  ;;
4870     MSP430)      TARGET_HAS_JIT=0
4871  ;;
4872     SystemZ)     TARGET_HAS_JIT=0
4873  ;;
4874     Blackfin)    TARGET_HAS_JIT=0
4875  ;;
4876     MBlaze)      TARGET_HAS_JIT=0
4877  ;;
4878     PTX)         TARGET_HAS_JIT=0
4879  ;;
4880     *)           TARGET_HAS_JIT=0
4881  ;;
4882   esac
4883 fi
4884
4885 # Check whether --enable-docs was given.
4886 if test "${enable_docs+set}" = set; then
4887   enableval=$enable_docs;
4888 else
4889   enableval=default
4890 fi
4891
4892 case "$enableval" in
4893   yes) ENABLE_DOCS=1
4894  ;;
4895   no)  ENABLE_DOCS=0
4896  ;;
4897   default) ENABLE_DOCS=1
4898  ;;
4899   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4901    { (exit 1); exit 1; }; } ;;
4902 esac
4903
4904 # Check whether --enable-doxygen was given.
4905 if test "${enable_doxygen+set}" = set; then
4906   enableval=$enable_doxygen;
4907 else
4908   enableval=default
4909 fi
4910
4911 case "$enableval" in
4912   yes) ENABLE_DOXYGEN=1
4913  ;;
4914   no)  ENABLE_DOXYGEN=0
4915  ;;
4916   default) ENABLE_DOXYGEN=0
4917  ;;
4918   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4920    { (exit 1); exit 1; }; } ;;
4921 esac
4922
4923 # Check whether --enable-threads was given.
4924 if test "${enable_threads+set}" = set; then
4925   enableval=$enable_threads;
4926 else
4927   enableval=default
4928 fi
4929
4930 case "$enableval" in
4931   yes) ENABLE_THREADS=1
4932  ;;
4933   no)  ENABLE_THREADS=0
4934  ;;
4935   default) ENABLE_THREADS=1
4936  ;;
4937   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4938 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4939    { (exit 1); exit 1; }; } ;;
4940 esac
4941
4942 cat >>confdefs.h <<_ACEOF
4943 #define ENABLE_THREADS $ENABLE_THREADS
4944 _ACEOF
4945
4946
4947 # Check whether --enable-pthreads was given.
4948 if test "${enable_pthreads+set}" = set; then
4949   enableval=$enable_pthreads;
4950 else
4951   enableval=default
4952 fi
4953
4954 case "$enableval" in
4955   yes) ENABLE_PTHREADS=1
4956  ;;
4957   no)  ENABLE_PTHREADS=0
4958  ;;
4959   default) ENABLE_PTHREADS=1
4960  ;;
4961   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4963    { (exit 1); exit 1; }; } ;;
4964 esac
4965
4966 # Check whether --enable-pic was given.
4967 if test "${enable_pic+set}" = set; then
4968   enableval=$enable_pic;
4969 else
4970   enableval=default
4971 fi
4972
4973 case "$enableval" in
4974   yes) ENABLE_PIC=1
4975  ;;
4976   no)  ENABLE_PIC=0
4977  ;;
4978   default) ENABLE_PIC=1
4979  ;;
4980   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4981 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4982    { (exit 1); exit 1; }; } ;;
4983 esac
4984
4985 cat >>confdefs.h <<_ACEOF
4986 #define ENABLE_PIC $ENABLE_PIC
4987 _ACEOF
4988
4989
4990 # Check whether --enable-shared was given.
4991 if test "${enable_shared+set}" = set; then
4992   enableval=$enable_shared;
4993 else
4994   enableval=default
4995 fi
4996
4997 case "$enableval" in
4998   yes) ENABLE_SHARED=1
4999  ;;
5000   no)  ENABLE_SHARED=0
5001  ;;
5002   default) ENABLE_SHARED=0
5003  ;;
5004   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5005 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5006    { (exit 1); exit 1; }; } ;;
5007 esac
5008
5009 # Check whether --enable-embed-stdcxx was given.
5010 if test "${enable_embed_stdcxx+set}" = set; then
5011   enableval=$enable_embed_stdcxx;
5012 else
5013   enableval=default
5014 fi
5015
5016 case "$enableval" in
5017   yes) ENABLE_EMBED_STDCXX=1
5018  ;;
5019   no)  ENABLE_EMBED_STDCXX=0
5020  ;;
5021   default) ENABLE_EMBED_STDCXX=1
5022  ;;
5023   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5024 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5025    { (exit 1); exit 1; }; } ;;
5026 esac
5027
5028 # Check whether --enable-timestamps was given.
5029 if test "${enable_timestamps+set}" = set; then
5030   enableval=$enable_timestamps;
5031 else
5032   enableval=default
5033 fi
5034
5035 case "$enableval" in
5036   yes) ENABLE_TIMESTAMPS=1
5037  ;;
5038   no)  ENABLE_TIMESTAMPS=0
5039  ;;
5040   default) ENABLE_TIMESTAMPS=1
5041  ;;
5042   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5043 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5044    { (exit 1); exit 1; }; } ;;
5045 esac
5046
5047 cat >>confdefs.h <<_ACEOF
5048 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5049 _ACEOF
5050
5051
5052 TARGETS_TO_BUILD=""
5053 # Check whether --enable-targets was given.
5054 if test "${enable_targets+set}" = set; then
5055   enableval=$enable_targets;
5056 else
5057   enableval=all
5058 fi
5059
5060 if test "$enableval" = host-only ; then
5061   enableval=host
5062 fi
5063 case "$enableval" in
5064   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5065   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5066       case "$a_target" in
5067         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5068         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5069         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5070         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5071         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5072         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5073         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5074         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5075         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5076         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5077         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5078         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5079         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5080         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5081         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5082         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5083         host) case "$llvm_cv_target_arch" in
5084             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5085             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5086             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5087             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5088             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5089             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5090             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5091             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5092             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5093             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5094             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5095             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5096             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5097             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5098             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5099 echo "$as_me: error: Can not set target to build" >&2;}
5100    { (exit 1); exit 1; }; } ;;
5101           esac ;;
5102         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5103 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5104    { (exit 1); exit 1; }; } ;;
5105       esac
5106   done
5107   ;;
5108 esac
5109 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5110
5111
5112 # Determine whether we are building LLVM support for the native architecture.
5113 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5114 for a_target in $TARGETS_TO_BUILD; do
5115   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5116
5117 cat >>confdefs.h <<_ACEOF
5118 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5119 _ACEOF
5120
5121     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5122     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5123     LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo"
5124     LLVM_NATIVE_MCCODEGENINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCCodeGenInfo"
5125     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5126     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5127       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5128     fi
5129
5130 cat >>confdefs.h <<_ACEOF
5131 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5132 _ACEOF
5133
5134
5135 cat >>confdefs.h <<_ACEOF
5136 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5137 _ACEOF
5138
5139
5140 cat >>confdefs.h <<_ACEOF
5141 #define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO
5142 _ACEOF
5143
5144
5145 cat >>confdefs.h <<_ACEOF
5146 #define LLVM_NATIVE_MCCODEGENINFO $LLVM_NATIVE_MCCODEGENINFO
5147 _ACEOF
5148
5149
5150 cat >>confdefs.h <<_ACEOF
5151 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5152 _ACEOF
5153
5154     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5155
5156 cat >>confdefs.h <<_ACEOF
5157 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5158 _ACEOF
5159
5160     fi
5161   fi
5162 done
5163
5164 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5165 # target feature def files.
5166 LLVM_ENUM_TARGETS=""
5167 LLVM_ENUM_ASM_PRINTERS=""
5168 LLVM_ENUM_ASM_PARSERS=""
5169 LLVM_ENUM_DISASSEMBLERS=""
5170 for target_to_build in $TARGETS_TO_BUILD; do
5171   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5172   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5173     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5174   fi
5175   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5176     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5177   fi
5178   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5179     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5180   fi
5181 done
5182
5183
5184
5185
5186
5187 # Check whether --enable-cbe-printf-a was given.
5188 if test "${enable_cbe_printf_a+set}" = set; then
5189   enableval=$enable_cbe_printf_a;
5190 else
5191   enableval=default
5192 fi
5193
5194 case "$enableval" in
5195   yes) ENABLE_CBE_PRINTF_A=1
5196  ;;
5197   no)  ENABLE_CBE_PRINTF_A=0
5198  ;;
5199   default)  ENABLE_CBE_PRINTF_A=1
5200  ;;
5201   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5202 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5203    { (exit 1); exit 1; }; } ;;
5204 esac
5205
5206 cat >>confdefs.h <<_ACEOF
5207 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5208 _ACEOF
5209
5210
5211
5212 # Check whether --with-llvmgccdir was given.
5213 if test "${with_llvmgccdir+set}" = set; then
5214   withval=$with_llvmgccdir;
5215 else
5216   withval=default
5217 fi
5218
5219 case "$withval" in
5220   default) WITH_LLVMGCCDIR=default ;;
5221   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5222   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5223 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5224    { (exit 1); exit 1; }; } ;;
5225 esac
5226
5227
5228 # Check whether --with-llvmgcc was given.
5229 if test "${with_llvmgcc+set}" = set; then
5230   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5231       WITH_LLVMGCCDIR=""
5232 fi
5233
5234
5235
5236 # Check whether --with-llvmgxx was given.
5237 if test "${with_llvmgxx+set}" = set; then
5238   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5239     WITH_LLVMGCCDIR=""
5240 fi
5241
5242
5243 if test -n "$LLVMGCC"; then
5244    LLVMGCCCOMMAND="$LLVMGCC"
5245 fi
5246
5247 if test -n "$LLVMGXX"; then
5248    LLVMGXXCOMMAND="$LLVMGXX"
5249 fi
5250
5251 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5252    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5253 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5254    { (exit 1); exit 1; }; };
5255 fi
5256
5257 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5258    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5259 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5260    { (exit 1); exit 1; }; };
5261 fi
5262
5263
5264 # Check whether --with-clang was given.
5265 if test "${with_clang+set}" = set; then
5266   withval=$with_clang;
5267 else
5268   with_clang=default
5269 fi
5270
5271
5272
5273 # Check whether --with-built-clang was given.
5274 if test "${with_built_clang+set}" = set; then
5275   withval=$with_built_clang;
5276 else
5277   with_built_clang=check
5278 fi
5279
5280
5281 { echo "$as_me:$LINENO: checking clang compiler" >&5
5282 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5283 WITH_CLANGPATH=""
5284 WITH_BUILT_CLANG=0
5285 if test "$with_clang" != "default"; then
5286    WITH_CLANGPATH="$with_clang"
5287    if ! test -x "$WITH_CLANGPATH"; then
5288      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5289 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5290    { (exit 1); exit 1; }; }
5291    fi
5292 elif test "$with_built_clang" = "yes"; then
5293    WITH_BUILT_CLANG=1
5294 elif test "$with_built_clang" = "no"; then
5295    WITH_BUILT_CLANG=0
5296 else
5297    if test "$with_built_clang" != "check"; then
5298       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5299 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5300    { (exit 1); exit 1; }; }
5301    fi
5302
5303    if test -f ${srcdir}/tools/clang/README.txt; then
5304      WITH_BUILT_CLANG=1
5305    fi
5306 fi
5307
5308 if ! test -z "$WITH_CLANGPATH"; then
5309    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5310 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5311    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5312 elif test "$WITH_BUILT_CLANG" = "1"; then
5313    { echo "$as_me:$LINENO: result: built" >&5
5314 echo "${ECHO_T}built" >&6; }
5315 else
5316    { echo "$as_me:$LINENO: result: none" >&5
5317 echo "${ECHO_T}none" >&6; }
5318 fi
5319 CLANGPATH=$WITH_CLANGPATH
5320
5321 CLANGXXPATH=$WITH_CLANGXXPATH
5322
5323 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5324
5325
5326
5327 # Check whether --with-optimize-option was given.
5328 if test "${with_optimize_option+set}" = set; then
5329   withval=$with_optimize_option;
5330 else
5331   withval=default
5332 fi
5333
5334 { echo "$as_me:$LINENO: checking optimization flags" >&5
5335 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5336 case "$withval" in
5337   default)
5338     case "$llvm_cv_os_type" in
5339     FreeBSD) optimize_option=-O2 ;;
5340     MingW) optimize_option=-O2 ;;
5341     *)     optimize_option=-O3 ;;
5342     esac ;;
5343   *) optimize_option="$withval" ;;
5344 esac
5345 OPTIMIZE_OPTION=$optimize_option
5346
5347 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5348 echo "${ECHO_T}$optimize_option" >&6; }
5349
5350
5351 # Check whether --with-extra-options was given.
5352 if test "${with_extra_options+set}" = set; then
5353   withval=$with_extra_options;
5354 else
5355   withval=default
5356 fi
5357
5358 case "$withval" in
5359   default) EXTRA_OPTIONS= ;;
5360   *) EXTRA_OPTIONS=$withval ;;
5361 esac
5362 EXTRA_OPTIONS=$EXTRA_OPTIONS
5363
5364
5365
5366 # Check whether --with-extra-ld-options was given.
5367 if test "${with_extra_ld_options+set}" = set; then
5368   withval=$with_extra_ld_options;
5369 else
5370   withval=default
5371 fi
5372
5373 case "$withval" in
5374   default) EXTRA_LD_OPTIONS= ;;
5375   *) EXTRA_LD_OPTIONS=$withval ;;
5376 esac
5377 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5378
5379
5380 # Check whether --enable-bindings was given.
5381 if test "${enable_bindings+set}" = set; then
5382   enableval=$enable_bindings;
5383 else
5384   enableval=default
5385 fi
5386
5387 BINDINGS_TO_BUILD=""
5388 case "$enableval" in
5389   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5390   all ) BINDINGS_TO_BUILD="ocaml" ;;
5391   none | no) BINDINGS_TO_BUILD="" ;;
5392   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5393       case "$a_binding" in
5394         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5395         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5396 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5397    { (exit 1); exit 1; }; } ;;
5398       esac
5399   done
5400   ;;
5401 esac
5402
5403
5404 # Check whether --with-ocaml-libdir was given.
5405 if test "${with_ocaml_libdir+set}" = set; then
5406   withval=$with_ocaml_libdir;
5407 else
5408   withval=auto
5409 fi
5410
5411 case "$withval" in
5412   auto) with_ocaml_libdir="$withval" ;;
5413   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5414   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5415 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5416    { (exit 1); exit 1; }; } ;;
5417 esac
5418
5419
5420 # Check whether --with-clang-resource-dir was given.
5421 if test "${with_clang_resource_dir+set}" = set; then
5422   withval=$with_clang_resource_dir;
5423 else
5424   withval=""
5425 fi
5426
5427
5428 cat >>confdefs.h <<_ACEOF
5429 #define CLANG_RESOURCE_DIR "$withval"
5430 _ACEOF
5431
5432
5433
5434 # Check whether --with-c-include-dirs was given.
5435 if test "${with_c_include_dirs+set}" = set; then
5436   withval=$with_c_include_dirs;
5437 else
5438   withval=""
5439 fi
5440
5441
5442 cat >>confdefs.h <<_ACEOF
5443 #define C_INCLUDE_DIRS "$withval"
5444 _ACEOF
5445
5446
5447
5448 # Check whether --with-cxx-include-root was given.
5449 if test "${with_cxx_include_root+set}" = set; then
5450   withval=$with_cxx_include_root;
5451 else
5452   withval=""
5453 fi
5454
5455
5456 cat >>confdefs.h <<_ACEOF
5457 #define CXX_INCLUDE_ROOT "$withval"
5458 _ACEOF
5459
5460
5461
5462 # Check whether --with-cxx-include-arch was given.
5463 if test "${with_cxx_include_arch+set}" = set; then
5464   withval=$with_cxx_include_arch;
5465 else
5466   withval=""
5467 fi
5468
5469
5470 cat >>confdefs.h <<_ACEOF
5471 #define CXX_INCLUDE_ARCH "$withval"
5472 _ACEOF
5473
5474
5475
5476 # Check whether --with-cxx-include-32bit-dir was given.
5477 if test "${with_cxx_include_32bit_dir+set}" = set; then
5478   withval=$with_cxx_include_32bit_dir;
5479 else
5480   withval=""
5481 fi
5482
5483
5484 cat >>confdefs.h <<_ACEOF
5485 #define CXX_INCLUDE_32BIT_DIR "$withval"
5486 _ACEOF
5487
5488
5489
5490 # Check whether --with-cxx-include-64bit-dir was given.
5491 if test "${with_cxx_include_64bit_dir+set}" = set; then
5492   withval=$with_cxx_include_64bit_dir;
5493 else
5494   withval=""
5495 fi
5496
5497
5498 cat >>confdefs.h <<_ACEOF
5499 #define CXX_INCLUDE_64BIT_DIR "$withval"
5500 _ACEOF
5501
5502
5503
5504 # Check whether --with-binutils-include was given.
5505 if test "${with_binutils_include+set}" = set; then
5506   withval=$with_binutils_include;
5507 else
5508   withval=default
5509 fi
5510
5511 case "$withval" in
5512   default) WITH_BINUTILS_INCDIR=default ;;
5513   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5514   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5515 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5516    { (exit 1); exit 1; }; } ;;
5517 esac
5518 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5519   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5520
5521   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5522      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5523      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5524 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5525    { (exit 1); exit 1; }; };
5526   fi
5527 fi
5528
5529 # Check whether --enable-libffi was given.
5530 if test "${enable_libffi+set}" = set; then
5531   enableval=$enable_libffi; case "$enableval" in
5532     yes) llvm_cv_enable_libffi="yes" ;;
5533     no)  llvm_cv_enable_libffi="no"  ;;
5534     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5535 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5536    { (exit 1); exit 1; }; } ;;
5537   esac
5538 else
5539   llvm_cv_enable_libffi=no
5540 fi
5541
5542
5543
5544 ac_ext=c
5545 ac_cpp='$CPP $CPPFLAGS'
5546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5549 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5550 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5551 # On Suns, sometimes $CPP names a directory.
5552 if test -n "$CPP" && test -d "$CPP"; then
5553   CPP=
5554 fi
5555 if test -z "$CPP"; then
5556   if test "${ac_cv_prog_CPP+set}" = set; then
5557   echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559       # Double quotes because CPP needs to be expanded
5560     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5561     do
5562       ac_preproc_ok=false
5563 for ac_c_preproc_warn_flag in '' yes
5564 do
5565   # Use a header file that comes with gcc, so configuring glibc
5566   # with a fresh cross-compiler works.
5567   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5568   # <limits.h> exists even on freestanding compilers.
5569   # On the NeXT, cc -E runs the code through the compiler's parser,
5570   # not just through cpp. "Syntax error" is here to catch this case.
5571   cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577 #ifdef __STDC__
5578 # include <limits.h>
5579 #else
5580 # include <assert.h>
5581 #endif
5582                      Syntax error
5583 _ACEOF
5584 if { (ac_try="$ac_cpp conftest.$ac_ext"
5585 case "(($ac_try" in
5586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587   *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5591   ac_status=$?
5592   grep -v '^ *+' conftest.er1 >conftest.err
5593   rm -f conftest.er1
5594   cat conftest.err >&5
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } >/dev/null; then
5597   if test -s conftest.err; then
5598     ac_cpp_err=$ac_c_preproc_warn_flag
5599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5600   else
5601     ac_cpp_err=
5602   fi
5603 else
5604   ac_cpp_err=yes
5605 fi
5606 if test -z "$ac_cpp_err"; then
5607   :
5608 else
5609   echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612   # Broken: fails on valid input.
5613 continue
5614 fi
5615
5616 rm -f conftest.err conftest.$ac_ext
5617
5618   # OK, works on sane cases.  Now check whether nonexistent headers
5619   # can be detected and how.
5620   cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h.  */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h.  */
5626 #include <ac_nonexistent.h>
5627 _ACEOF
5628 if { (ac_try="$ac_cpp conftest.$ac_ext"
5629 case "(($ac_try" in
5630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631   *) ac_try_echo=$ac_try;;
5632 esac
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5635   ac_status=$?
5636   grep -v '^ *+' conftest.er1 >conftest.err
5637   rm -f conftest.er1
5638   cat conftest.err >&5
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); } >/dev/null; then
5641   if test -s conftest.err; then
5642     ac_cpp_err=$ac_c_preproc_warn_flag
5643     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5644   else
5645     ac_cpp_err=
5646   fi
5647 else
5648   ac_cpp_err=yes
5649 fi
5650 if test -z "$ac_cpp_err"; then
5651   # Broken: success on invalid input.
5652 continue
5653 else
5654   echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5656
5657   # Passes both tests.
5658 ac_preproc_ok=:
5659 break
5660 fi
5661
5662 rm -f conftest.err conftest.$ac_ext
5663
5664 done
5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5666 rm -f conftest.err conftest.$ac_ext
5667 if $ac_preproc_ok; then
5668   break
5669 fi
5670
5671     done
5672     ac_cv_prog_CPP=$CPP
5673
5674 fi
5675   CPP=$ac_cv_prog_CPP
5676 else
5677   ac_cv_prog_CPP=$CPP
5678 fi
5679 { echo "$as_me:$LINENO: result: $CPP" >&5
5680 echo "${ECHO_T}$CPP" >&6; }
5681 ac_preproc_ok=false
5682 for ac_c_preproc_warn_flag in '' yes
5683 do
5684   # Use a header file that comes with gcc, so configuring glibc
5685   # with a fresh cross-compiler works.
5686   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687   # <limits.h> exists even on freestanding compilers.
5688   # On the NeXT, cc -E runs the code through the compiler's parser,
5689   # not just through cpp. "Syntax error" is here to catch this case.
5690   cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5696 #ifdef __STDC__
5697 # include <limits.h>
5698 #else
5699 # include <assert.h>
5700 #endif
5701                      Syntax error
5702 _ACEOF
5703 if { (ac_try="$ac_cpp conftest.$ac_ext"
5704 case "(($ac_try" in
5705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706   *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } >/dev/null; then
5716   if test -s conftest.err; then
5717     ac_cpp_err=$ac_c_preproc_warn_flag
5718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5719   else
5720     ac_cpp_err=
5721   fi
5722 else
5723   ac_cpp_err=yes
5724 fi
5725 if test -z "$ac_cpp_err"; then
5726   :
5727 else
5728   echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731   # Broken: fails on valid input.
5732 continue
5733 fi
5734
5735 rm -f conftest.err conftest.$ac_ext
5736
5737   # OK, works on sane cases.  Now check whether nonexistent headers
5738   # can be detected and how.
5739   cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h.  */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h.  */
5745 #include <ac_nonexistent.h>
5746 _ACEOF
5747 if { (ac_try="$ac_cpp conftest.$ac_ext"
5748 case "(($ac_try" in
5749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750   *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5754   ac_status=$?
5755   grep -v '^ *+' conftest.er1 >conftest.err
5756   rm -f conftest.er1
5757   cat conftest.err >&5
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); } >/dev/null; then
5760   if test -s conftest.err; then
5761     ac_cpp_err=$ac_c_preproc_warn_flag
5762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5763   else
5764     ac_cpp_err=
5765   fi
5766 else
5767   ac_cpp_err=yes
5768 fi
5769 if test -z "$ac_cpp_err"; then
5770   # Broken: success on invalid input.
5771 continue
5772 else
5773   echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776   # Passes both tests.
5777 ac_preproc_ok=:
5778 break
5779 fi
5780
5781 rm -f conftest.err conftest.$ac_ext
5782
5783 done
5784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5785 rm -f conftest.err conftest.$ac_ext
5786 if $ac_preproc_ok; then
5787   :
5788 else
5789   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5790 See \`config.log' for more details." >&5
5791 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5792 See \`config.log' for more details." >&2;}
5793    { (exit 1); exit 1; }; }
5794 fi
5795
5796 ac_ext=c
5797 ac_cpp='$CPP $CPPFLAGS'
5798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5801
5802 ac_ext=c
5803 ac_cpp='$CPP $CPPFLAGS'
5804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807 if test -n "$ac_tool_prefix"; then
5808   for ac_prog in gcc
5809   do
5810     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5814 if test "${ac_cv_prog_CC+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   if test -n "$CC"; then
5818   ac_cv_prog_CC="$CC" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823   IFS=$as_save_IFS
5824   test -z "$as_dir" && as_dir=.
5825   for ac_exec_ext in '' $ac_executable_extensions; do
5826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5827     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829     break 2
5830   fi
5831 done
5832 done
5833 IFS=$as_save_IFS
5834
5835 fi
5836 fi
5837 CC=$ac_cv_prog_CC
5838 if test -n "$CC"; then
5839   { echo "$as_me:$LINENO: result: $CC" >&5
5840 echo "${ECHO_T}$CC" >&6; }
5841 else
5842   { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5844 fi
5845
5846
5847     test -n "$CC" && break
5848   done
5849 fi
5850 if test -z "$CC"; then
5851   ac_ct_CC=$CC
5852   for ac_prog in gcc
5853 do
5854   # Extract the first word of "$ac_prog", so it can be a program name with args.
5855 set dummy $ac_prog; ac_word=$2
5856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   if test -n "$ac_ct_CC"; then
5862   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869   for ac_exec_ext in '' $ac_executable_extensions; do
5870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5871     ac_cv_prog_ac_ct_CC="$ac_prog"
5872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873     break 2
5874   fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5878
5879 fi
5880 fi
5881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5882 if test -n "$ac_ct_CC"; then
5883   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5884 echo "${ECHO_T}$ac_ct_CC" >&6; }
5885 else
5886   { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5888 fi
5889
5890
5891   test -n "$ac_ct_CC" && break
5892 done
5893
5894   if test "x$ac_ct_CC" = x; then
5895     CC=""
5896   else
5897     case $cross_compiling:$ac_tool_warned in
5898 yes:)
5899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5900 whose name does not start with the host triplet.  If you think this
5901 configuration is useful to you, please write to autoconf@gnu.org." >&5
5902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5903 whose name does not start with the host triplet.  If you think this
5904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5905 ac_tool_warned=yes ;;
5906 esac
5907     CC=$ac_ct_CC
5908   fi
5909 fi
5910
5911
5912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5913 See \`config.log' for more details." >&5
5914 echo "$as_me: error: no acceptable C compiler found in \$PATH
5915 See \`config.log' for more details." >&2;}
5916    { (exit 1); exit 1; }; }
5917
5918 # Provide some information about the compiler.
5919 echo "$as_me:$LINENO: checking for C compiler version" >&5
5920 ac_compiler=`set X $ac_compile; echo $2`
5921 { (ac_try="$ac_compiler --version >&5"
5922 case "(($ac_try" in
5923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924   *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927   (eval "$ac_compiler --version >&5") 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }
5931 { (ac_try="$ac_compiler -v >&5"
5932 case "(($ac_try" in
5933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934   *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937   (eval "$ac_compiler -v >&5") 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }
5941 { (ac_try="$ac_compiler -V >&5"
5942 case "(($ac_try" in
5943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944   *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947   (eval "$ac_compiler -V >&5") 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }
5951
5952 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5953 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5954 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963
5964 int
5965 main ()
5966 {
5967 #ifndef __GNUC__
5968        choke me
5969 #endif
5970
5971   ;
5972   return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5977 case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982   (eval "$ac_compile") 2>conftest.er1
5983   ac_status=$?
5984   grep -v '^ *+' conftest.er1 >conftest.err
5985   rm -f conftest.er1
5986   cat conftest.err >&5
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); } &&
5989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5990   { (case "(($ac_try" in
5991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992   *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995   (eval "$ac_try") 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest.$ac_objext'
6000   { (case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005   (eval "$ac_try") 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   ac_compiler_gnu=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014         ac_compiler_gnu=no
6015 fi
6016
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6019
6020 fi
6021 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6023 GCC=`test $ac_compiler_gnu = yes && echo yes`
6024 ac_test_CFLAGS=${CFLAGS+set}
6025 ac_save_CFLAGS=$CFLAGS
6026 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6028 if test "${ac_cv_prog_cc_g+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031   ac_save_c_werror_flag=$ac_c_werror_flag
6032    ac_c_werror_flag=yes
6033    ac_cv_prog_cc_g=no
6034    CFLAGS="-g"
6035    cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h.  */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h.  */
6041
6042 int
6043 main ()
6044 {
6045
6046   ;
6047   return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057   (eval "$ac_compile") 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } &&
6064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6065   { (case "(($ac_try" in
6066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067   *) ac_try_echo=$ac_try;;
6068 esac
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070   (eval "$ac_try") 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; } &&
6074          { ac_try='test -s conftest.$ac_objext'
6075   { (case "(($ac_try" in
6076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077   *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080   (eval "$ac_try") 2>&5
6081   ac_status=$?
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); }; }; then
6084   ac_cv_prog_cc_g=yes
6085 else
6086   echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6088
6089         CFLAGS=""
6090       cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h.  */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h.  */
6096
6097 int
6098 main ()
6099 {
6100
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109   *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112   (eval "$ac_compile") 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120   { (case "(($ac_try" in
6121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122   *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125   (eval "$ac_try") 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; } &&
6129          { ac_try='test -s conftest.$ac_objext'
6130   { (case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_try") 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   :
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144         ac_c_werror_flag=$ac_save_c_werror_flag
6145          CFLAGS="-g"
6146          cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h.  */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h.  */
6152
6153 int
6154 main ()
6155 {
6156
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6163 case "(($ac_try" in
6164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165   *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168   (eval "$ac_compile") 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } &&
6175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6176   { (case "(($ac_try" in
6177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178   *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181   (eval "$ac_try") 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); }; } &&
6185          { ac_try='test -s conftest.$ac_objext'
6186   { (case "(($ac_try" in
6187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188   *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191   (eval "$ac_try") 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); }; }; then
6195   ac_cv_prog_cc_g=yes
6196 else
6197   echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6199
6200
6201 fi
6202
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 fi
6205
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 fi
6208
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210    ac_c_werror_flag=$ac_save_c_werror_flag
6211 fi
6212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6213 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6214 if test "$ac_test_CFLAGS" = set; then
6215   CFLAGS=$ac_save_CFLAGS
6216 elif test $ac_cv_prog_cc_g = yes; then
6217   if test "$GCC" = yes; then
6218     CFLAGS="-g -O2"
6219   else
6220     CFLAGS="-g"
6221   fi
6222 else
6223   if test "$GCC" = yes; then
6224     CFLAGS="-O2"
6225   else
6226     CFLAGS=
6227   fi
6228 fi
6229 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6230 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6231 if test "${ac_cv_prog_cc_c89+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   ac_cv_prog_cc_c89=no
6235 ac_save_CC=$CC
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 #include <stdarg.h>
6243 #include <stdio.h>
6244 #include <sys/types.h>
6245 #include <sys/stat.h>
6246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6247 struct buf { int x; };
6248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6249 static char *e (p, i)
6250      char **p;
6251      int i;
6252 {
6253   return p[i];
6254 }
6255 static char *f (char * (*g) (char **, int), char **p, ...)
6256 {
6257   char *s;
6258   va_list v;
6259   va_start (v,p);
6260   s = g (p, va_arg (v,int));
6261   va_end (v);
6262   return s;
6263 }
6264
6265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6266    function prototypes and stuff, but not '\xHH' hex character constants.
6267    These don't provoke an error unfortunately, instead are silently treated
6268    as 'x'.  The following induces an error, until -std is added to get
6269    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6270    array size at least.  It's necessary to write '\x00'==0 to get something
6271    that's true only with -std.  */
6272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6273
6274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6275    inside strings and character constants.  */
6276 #define FOO(x) 'x'
6277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6278
6279 int test (int i, double x);
6280 struct s1 {int (*f) (int a);};
6281 struct s2 {int (*f) (double a);};
6282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6283 int argc;
6284 char **argv;
6285 int
6286 main ()
6287 {
6288 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6294         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6295 do
6296   CC="$ac_save_CC $ac_arg"
6297   rm -f conftest.$ac_objext
6298 if { (ac_try="$ac_compile"
6299 case "(($ac_try" in
6300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301   *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304   (eval "$ac_compile") 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } &&
6311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6312   { (case "(($ac_try" in
6313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314   *) ac_try_echo=$ac_try;;
6315 esac
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317   (eval "$ac_try") 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; } &&
6321          { ac_try='test -s conftest.$ac_objext'
6322   { (case "(($ac_try" in
6323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324   *) ac_try_echo=$ac_try;;
6325 esac
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327   (eval "$ac_try") 2>&5
6328   ac_status=$?
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); }; }; then
6331   ac_cv_prog_cc_c89=$ac_arg
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336
6337 fi
6338
6339 rm -f core conftest.err conftest.$ac_objext
6340   test "x$ac_cv_prog_cc_c89" != "xno" && break
6341 done
6342 rm -f conftest.$ac_ext
6343 CC=$ac_save_CC
6344
6345 fi
6346 # AC_CACHE_VAL
6347 case "x$ac_cv_prog_cc_c89" in
6348   x)
6349     { echo "$as_me:$LINENO: result: none needed" >&5
6350 echo "${ECHO_T}none needed" >&6; } ;;
6351   xno)
6352     { echo "$as_me:$LINENO: result: unsupported" >&5
6353 echo "${ECHO_T}unsupported" >&6; } ;;
6354   *)
6355     CC="$CC $ac_cv_prog_cc_c89"
6356     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6357 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6358 esac
6359
6360
6361 ac_ext=c
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366
6367 ac_ext=cpp
6368 ac_cpp='$CXXCPP $CPPFLAGS'
6369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6372 if test -z "$CXX"; then
6373   if test -n "$CCC"; then
6374     CXX=$CCC
6375   else
6376     if test -n "$ac_tool_prefix"; then
6377   for ac_prog in g++
6378   do
6379     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_CXX+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   if test -n "$CXX"; then
6387   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394   for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 CXX=$ac_cv_prog_CXX
6407 if test -n "$CXX"; then
6408   { echo "$as_me:$LINENO: result: $CXX" >&5
6409 echo "${ECHO_T}$CXX" >&6; }
6410 else
6411   { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6413 fi
6414
6415
6416     test -n "$CXX" && break
6417   done
6418 fi
6419 if test -z "$CXX"; then
6420   ac_ct_CXX=$CXX
6421   for ac_prog in g++
6422 do
6423   # Extract the first word of "$ac_prog", so it can be a program name with args.
6424 set dummy $ac_prog; ac_word=$2
6425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6428   echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430   if test -n "$ac_ct_CXX"; then
6431   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438   for ac_exec_ext in '' $ac_executable_extensions; do
6439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6440     ac_cv_prog_ac_ct_CXX="$ac_prog"
6441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442     break 2
6443   fi
6444 done
6445 done
6446 IFS=$as_save_IFS
6447
6448 fi
6449 fi
6450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6451 if test -n "$ac_ct_CXX"; then
6452   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6453 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6454 else
6455   { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6457 fi
6458
6459
6460   test -n "$ac_ct_CXX" && break
6461 done
6462
6463   if test "x$ac_ct_CXX" = x; then
6464     CXX="g++"
6465   else
6466     case $cross_compiling:$ac_tool_warned in
6467 yes:)
6468 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6469 whose name does not start with the host triplet.  If you think this
6470 configuration is useful to you, please write to autoconf@gnu.org." >&5
6471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6472 whose name does not start with the host triplet.  If you think this
6473 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6474 ac_tool_warned=yes ;;
6475 esac
6476     CXX=$ac_ct_CXX
6477   fi
6478 fi
6479
6480   fi
6481 fi
6482 # Provide some information about the compiler.
6483 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6484 ac_compiler=`set X $ac_compile; echo $2`
6485 { (ac_try="$ac_compiler --version >&5"
6486 case "(($ac_try" in
6487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488   *) ac_try_echo=$ac_try;;
6489 esac
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491   (eval "$ac_compiler --version >&5") 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }
6495 { (ac_try="$ac_compiler -v >&5"
6496 case "(($ac_try" in
6497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498   *) ac_try_echo=$ac_try;;
6499 esac
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501   (eval "$ac_compiler -v >&5") 2>&5
6502   ac_status=$?
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); }
6505 { (ac_try="$ac_compiler -V >&5"
6506 case "(($ac_try" in
6507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508   *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511   (eval "$ac_compiler -V >&5") 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); }
6515
6516 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6517 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6519   echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521   cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h.  */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h.  */
6527
6528 int
6529 main ()
6530 {
6531 #ifndef __GNUC__
6532        choke me
6533 #endif
6534
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6541 case "(($ac_try" in
6542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543   *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546   (eval "$ac_compile") 2>conftest.er1
6547   ac_status=$?
6548   grep -v '^ *+' conftest.er1 >conftest.err
6549   rm -f conftest.er1
6550   cat conftest.err >&5
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); } &&
6553          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6554   { (case "(($ac_try" in
6555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556   *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559   (eval "$ac_try") 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; } &&
6563          { ac_try='test -s conftest.$ac_objext'
6564   { (case "(($ac_try" in
6565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566   *) ac_try_echo=$ac_try;;
6567 esac
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569   (eval "$ac_try") 2>&5
6570   ac_status=$?
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); }; }; then
6573   ac_compiler_gnu=yes
6574 else
6575   echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578         ac_compiler_gnu=no
6579 fi
6580
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6583
6584 fi
6585 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6586 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6587 GXX=`test $ac_compiler_gnu = yes && echo yes`
6588 ac_test_CXXFLAGS=${CXXFLAGS+set}
6589 ac_save_CXXFLAGS=$CXXFLAGS
6590 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6591 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6592 if test "${ac_cv_prog_cxx_g+set}" = set; then
6593   echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6596    ac_cxx_werror_flag=yes
6597    ac_cv_prog_cxx_g=no
6598    CXXFLAGS="-g"
6599    cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h.  */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h.  */
6605
6606 int
6607 main ()
6608 {
6609
6610   ;
6611   return 0;
6612 }
6613 _ACEOF
6614 rm -f conftest.$ac_objext
6615 if { (ac_try="$ac_compile"
6616 case "(($ac_try" in
6617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618   *) ac_try_echo=$ac_try;;
6619 esac
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621   (eval "$ac_compile") 2>conftest.er1
6622   ac_status=$?
6623   grep -v '^ *+' conftest.er1 >conftest.err
6624   rm -f conftest.er1
6625   cat conftest.err >&5
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); } &&
6628          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6629   { (case "(($ac_try" in
6630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631   *) ac_try_echo=$ac_try;;
6632 esac
6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634   (eval "$ac_try") 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; } &&
6638          { ac_try='test -s conftest.$ac_objext'
6639   { (case "(($ac_try" in
6640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641   *) ac_try_echo=$ac_try;;
6642 esac
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644   (eval "$ac_try") 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; }; then
6648   ac_cv_prog_cxx_g=yes
6649 else
6650   echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653         CXXFLAGS=""
6654       cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h.  */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h.  */
6660
6661 int
6662 main ()
6663 {
6664
6665   ;
6666   return 0;
6667 }
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (ac_try="$ac_compile"
6671 case "(($ac_try" in
6672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673   *) ac_try_echo=$ac_try;;
6674 esac
6675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6676   (eval "$ac_compile") 2>conftest.er1
6677   ac_status=$?
6678   grep -v '^ *+' conftest.er1 >conftest.err
6679   rm -f conftest.er1
6680   cat conftest.err >&5
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); } &&
6683          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6684   { (case "(($ac_try" in
6685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686   *) ac_try_echo=$ac_try;;
6687 esac
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689   (eval "$ac_try") 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); }; } &&
6693          { ac_try='test -s conftest.$ac_objext'
6694   { (case "(($ac_try" in
6695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696   *) ac_try_echo=$ac_try;;
6697 esac
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699   (eval "$ac_try") 2>&5
6700   ac_status=$?
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); }; }; then
6703   :
6704 else
6705   echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6709          CXXFLAGS="-g"
6710          cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h.  */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h.  */
6716
6717 int
6718 main ()
6719 {
6720
6721   ;
6722   return 0;
6723 }
6724 _ACEOF
6725 rm -f conftest.$ac_objext
6726 if { (ac_try="$ac_compile"
6727 case "(($ac_try" in
6728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729   *) ac_try_echo=$ac_try;;
6730 esac
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732   (eval "$ac_compile") 2>conftest.er1
6733   ac_status=$?
6734   grep -v '^ *+' conftest.er1 >conftest.err
6735   rm -f conftest.er1
6736   cat conftest.err >&5
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); } &&
6739          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6740   { (case "(($ac_try" in
6741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742   *) ac_try_echo=$ac_try;;
6743 esac
6744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6745   (eval "$ac_try") 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; } &&
6749          { ac_try='test -s conftest.$ac_objext'
6750   { (case "(($ac_try" in
6751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752   *) ac_try_echo=$ac_try;;
6753 esac
6754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6755   (eval "$ac_try") 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759   ac_cv_prog_cxx_g=yes
6760 else
6761   echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6763
6764
6765 fi
6766
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 fi
6769
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 fi
6772
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6775 fi
6776 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6777 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6778 if test "$ac_test_CXXFLAGS" = set; then
6779   CXXFLAGS=$ac_save_CXXFLAGS
6780 elif test $ac_cv_prog_cxx_g = yes; then
6781   if test "$GXX" = yes; then
6782     CXXFLAGS="-g -O2"
6783   else
6784     CXXFLAGS="-g"
6785   fi
6786 else
6787   if test "$GXX" = yes; then
6788     CXXFLAGS="-O2"
6789   else
6790     CXXFLAGS=
6791   fi
6792 fi
6793 ac_ext=c
6794 ac_cpp='$CPP $CPPFLAGS'
6795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6798
6799
6800 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6801 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6802 if test "${lt_cv_path_NM+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   if test -n "$NM"; then
6806   # Let the user override the test.
6807   lt_cv_path_NM="$NM"
6808 else
6809   lt_nm_to_check="${ac_tool_prefix}nm"
6810   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6811     lt_nm_to_check="$lt_nm_to_check nm"
6812   fi
6813   for lt_tmp_nm in $lt_nm_to_check; do
6814     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6815     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6816       IFS="$lt_save_ifs"
6817       test -z "$ac_dir" && ac_dir=.
6818       tmp_nm="$ac_dir/$lt_tmp_nm"
6819       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6820         # Check to see if the nm accepts a BSD-compat flag.
6821         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6822         #   nm: unknown option "B" ignored
6823         # Tru64's nm complains that /dev/null is an invalid object file
6824         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6825         */dev/null* | *'Invalid file or object type'*)
6826           lt_cv_path_NM="$tmp_nm -B"
6827           break
6828           ;;
6829         *)
6830           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6831           */dev/null*)
6832             lt_cv_path_NM="$tmp_nm -p"
6833             break
6834             ;;
6835           *)
6836             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6837             continue # so that we can try to find one that supports BSD flags
6838             ;;
6839           esac
6840           ;;
6841         esac
6842       fi
6843     done
6844     IFS="$lt_save_ifs"
6845   done
6846   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6847 fi
6848 fi
6849 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6850 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6851 NM="$lt_cv_path_NM"
6852
6853
6854
6855 { echo "$as_me:$LINENO: checking for GNU make" >&5
6856 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6857 if test "${llvm_cv_gnu_make_command+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   llvm_cv_gnu_make_command=''
6861  for a in "$MAKE" make gmake gnumake ; do
6862   if test -z "$a" ; then continue ; fi ;
6863   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6864   then
6865    llvm_cv_gnu_make_command=$a ;
6866    break;
6867   fi
6868  done
6869 fi
6870 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6871 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6872  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6873    ifGNUmake='' ;
6874  else
6875    ifGNUmake='#' ;
6876    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6877 echo "${ECHO_T}\"Not found\"" >&6; };
6878  fi
6879
6880
6881 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6882 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6883 LN_S=$as_ln_s
6884 if test "$LN_S" = "ln -s"; then
6885   { echo "$as_me:$LINENO: result: yes" >&5
6886 echo "${ECHO_T}yes" >&6; }
6887 else
6888   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6889 echo "${ECHO_T}no, using $LN_S" >&6; }
6890 fi
6891
6892 # Extract the first word of "cmp", so it can be a program name with args.
6893 set dummy cmp; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_path_CMP+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   case $CMP in
6900   [\\/]* | ?:[\\/]*)
6901   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6902   ;;
6903   *)
6904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909   for ac_exec_ext in '' $ac_executable_extensions; do
6910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916 done
6917 IFS=$as_save_IFS
6918
6919   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6920   ;;
6921 esac
6922 fi
6923 CMP=$ac_cv_path_CMP
6924 if test -n "$CMP"; then
6925   { echo "$as_me:$LINENO: result: $CMP" >&5
6926 echo "${ECHO_T}$CMP" >&6; }
6927 else
6928   { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6930 fi
6931
6932
6933 # Extract the first word of "cp", so it can be a program name with args.
6934 set dummy cp; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_CP+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   case $CP in
6941   [\\/]* | ?:[\\/]*)
6942   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6943   ;;
6944   *)
6945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950   for ac_exec_ext in '' $ac_executable_extensions; do
6951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954     break 2
6955   fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6961   ;;
6962 esac
6963 fi
6964 CP=$ac_cv_path_CP
6965 if test -n "$CP"; then
6966   { echo "$as_me:$LINENO: result: $CP" >&5
6967 echo "${ECHO_T}$CP" >&6; }
6968 else
6969   { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6971 fi
6972
6973
6974 # Extract the first word of "date", so it can be a program name with args.
6975 set dummy date; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_DATE+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   case $DATE in
6982   [\\/]* | ?:[\\/]*)
6983   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6984   ;;
6985   *)
6986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989   IFS=$as_save_IFS
6990   test -z "$as_dir" && as_dir=.
6991   for ac_exec_ext in '' $ac_executable_extensions; do
6992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6993     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995     break 2
6996   fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7002   ;;
7003 esac
7004 fi
7005 DATE=$ac_cv_path_DATE
7006 if test -n "$DATE"; then
7007   { echo "$as_me:$LINENO: result: $DATE" >&5
7008 echo "${ECHO_T}$DATE" >&6; }
7009 else
7010   { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7012 fi
7013
7014
7015 # Extract the first word of "find", so it can be a program name with args.
7016 set dummy find; ac_word=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_path_FIND+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   case $FIND in
7023   [\\/]* | ?:[\\/]*)
7024   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7025   ;;
7026   *)
7027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032   for ac_exec_ext in '' $ac_executable_extensions; do
7033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7034     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7043   ;;
7044 esac
7045 fi
7046 FIND=$ac_cv_path_FIND
7047 if test -n "$FIND"; then
7048   { echo "$as_me:$LINENO: result: $FIND" >&5
7049 echo "${ECHO_T}$FIND" >&6; }
7050 else
7051   { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7053 fi
7054
7055
7056 # Extract the first word of "grep", so it can be a program name with args.
7057 set dummy grep; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_GREP+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   case $GREP in
7064   [\\/]* | ?:[\\/]*)
7065   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7066   ;;
7067   *)
7068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071   IFS=$as_save_IFS
7072   test -z "$as_dir" && as_dir=.
7073   for ac_exec_ext in '' $ac_executable_extensions; do
7074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077     break 2
7078   fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7084   ;;
7085 esac
7086 fi
7087 GREP=$ac_cv_path_GREP
7088 if test -n "$GREP"; then
7089   { echo "$as_me:$LINENO: result: $GREP" >&5
7090 echo "${ECHO_T}$GREP" >&6; }
7091 else
7092   { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7094 fi
7095
7096
7097 # Extract the first word of "mkdir", so it can be a program name with args.
7098 set dummy mkdir; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_MKDIR+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   case $MKDIR in
7105   [\\/]* | ?:[\\/]*)
7106   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7107   ;;
7108   *)
7109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114   for ac_exec_ext in '' $ac_executable_extensions; do
7115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7123
7124   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7125   ;;
7126 esac
7127 fi
7128 MKDIR=$ac_cv_path_MKDIR
7129 if test -n "$MKDIR"; then
7130   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7131 echo "${ECHO_T}$MKDIR" >&6; }
7132 else
7133   { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7135 fi
7136
7137
7138 # Extract the first word of "mv", so it can be a program name with args.
7139 set dummy mv; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_path_MV+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   case $MV in
7146   [\\/]* | ?:[\\/]*)
7147   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7148   ;;
7149   *)
7150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153   IFS=$as_save_IFS
7154   test -z "$as_dir" && as_dir=.
7155   for ac_exec_ext in '' $ac_executable_extensions; do
7156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159     break 2
7160   fi
7161 done
7162 done
7163 IFS=$as_save_IFS
7164
7165   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7166   ;;
7167 esac
7168 fi
7169 MV=$ac_cv_path_MV
7170 if test -n "$MV"; then
7171   { echo "$as_me:$LINENO: result: $MV" >&5
7172 echo "${ECHO_T}$MV" >&6; }
7173 else
7174   { echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6; }
7176 fi
7177
7178
7179 if test -n "$ac_tool_prefix"; then
7180   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_prog_RANLIB+set}" = set; then
7185   echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187   if test -n "$RANLIB"; then
7188   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195   for ac_exec_ext in '' $ac_executable_extensions; do
7196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 RANLIB=$ac_cv_prog_RANLIB
7208 if test -n "$RANLIB"; then
7209   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7210 echo "${ECHO_T}$RANLIB" >&6; }
7211 else
7212   { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7214 fi
7215
7216
7217 fi
7218 if test -z "$ac_cv_prog_RANLIB"; then
7219   ac_ct_RANLIB=$RANLIB
7220   # Extract the first word of "ranlib", so it can be a program name with args.
7221 set dummy ranlib; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   if test -n "$ac_ct_RANLIB"; then
7228   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235   for ac_exec_ext in '' $ac_executable_extensions; do
7236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237     ac_cv_prog_ac_ct_RANLIB="ranlib"
7238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242 done
7243 IFS=$as_save_IFS
7244
7245 fi
7246 fi
7247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7248 if test -n "$ac_ct_RANLIB"; then
7249   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7250 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7251 else
7252   { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7254 fi
7255
7256   if test "x$ac_ct_RANLIB" = x; then
7257     RANLIB=":"
7258   else
7259     case $cross_compiling:$ac_tool_warned in
7260 yes:)
7261 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7262 whose name does not start with the host triplet.  If you think this
7263 configuration is useful to you, please write to autoconf@gnu.org." >&5
7264 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7265 whose name does not start with the host triplet.  If you think this
7266 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7267 ac_tool_warned=yes ;;
7268 esac
7269     RANLIB=$ac_ct_RANLIB
7270   fi
7271 else
7272   RANLIB="$ac_cv_prog_RANLIB"
7273 fi
7274
7275 if test -n "$ac_tool_prefix"; then
7276   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7277 set dummy ${ac_tool_prefix}ar; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_prog_AR+set}" = set; then
7281   echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283   if test -n "$AR"; then
7284   ac_cv_prog_AR="$AR" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289   IFS=$as_save_IFS
7290   test -z "$as_dir" && as_dir=.
7291   for ac_exec_ext in '' $ac_executable_extensions; do
7292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7293     ac_cv_prog_AR="${ac_tool_prefix}ar"
7294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295     break 2
7296   fi
7297 done
7298 done
7299 IFS=$as_save_IFS
7300
7301 fi
7302 fi
7303 AR=$ac_cv_prog_AR
7304 if test -n "$AR"; then
7305   { echo "$as_me:$LINENO: result: $AR" >&5
7306 echo "${ECHO_T}$AR" >&6; }
7307 else
7308   { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7310 fi
7311
7312
7313 fi
7314 if test -z "$ac_cv_prog_AR"; then
7315   ac_ct_AR=$AR
7316   # Extract the first word of "ar", so it can be a program name with args.
7317 set dummy ar; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   if test -n "$ac_ct_AR"; then
7324   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331   for ac_exec_ext in '' $ac_executable_extensions; do
7332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7333     ac_cv_prog_ac_ct_AR="ar"
7334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338 done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7344 if test -n "$ac_ct_AR"; then
7345   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7346 echo "${ECHO_T}$ac_ct_AR" >&6; }
7347 else
7348   { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7350 fi
7351
7352   if test "x$ac_ct_AR" = x; then
7353     AR="false"
7354   else
7355     case $cross_compiling:$ac_tool_warned in
7356 yes:)
7357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7358 whose name does not start with the host triplet.  If you think this
7359 configuration is useful to you, please write to autoconf@gnu.org." >&5
7360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7361 whose name does not start with the host triplet.  If you think this
7362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7363 ac_tool_warned=yes ;;
7364 esac
7365     AR=$ac_ct_AR
7366   fi
7367 else
7368   AR="$ac_cv_prog_AR"
7369 fi
7370
7371 # Extract the first word of "rm", so it can be a program name with args.
7372 set dummy rm; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_RM+set}" = set; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   case $RM in
7379   [\\/]* | ?:[\\/]*)
7380   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7381   ;;
7382   *)
7383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388   for ac_exec_ext in '' $ac_executable_extensions; do
7389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7399   ;;
7400 esac
7401 fi
7402 RM=$ac_cv_path_RM
7403 if test -n "$RM"; then
7404   { echo "$as_me:$LINENO: result: $RM" >&5
7405 echo "${ECHO_T}$RM" >&6; }
7406 else
7407   { echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6; }
7409 fi
7410
7411
7412 # Extract the first word of "sed", so it can be a program name with args.
7413 set dummy sed; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_SED+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   case $SED in
7420   [\\/]* | ?:[\\/]*)
7421   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7422   ;;
7423   *)
7424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429   for ac_exec_ext in '' $ac_executable_extensions; do
7430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7438
7439   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7440   ;;
7441 esac
7442 fi
7443 SED=$ac_cv_path_SED
7444 if test -n "$SED"; then
7445   { echo "$as_me:$LINENO: result: $SED" >&5
7446 echo "${ECHO_T}$SED" >&6; }
7447 else
7448   { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7450 fi
7451
7452
7453 # Extract the first word of "tar", so it can be a program name with args.
7454 set dummy tar; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_path_TAR+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   case $TAR in
7461   [\\/]* | ?:[\\/]*)
7462   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7463   ;;
7464   *)
7465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468   IFS=$as_save_IFS
7469   test -z "$as_dir" && as_dir=.
7470   for ac_exec_ext in '' $ac_executable_extensions; do
7471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7472     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474     break 2
7475   fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7481   ;;
7482 esac
7483 fi
7484 TAR=$ac_cv_path_TAR
7485 if test -n "$TAR"; then
7486   { echo "$as_me:$LINENO: result: $TAR" >&5
7487 echo "${ECHO_T}$TAR" >&6; }
7488 else
7489   { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7491 fi
7492
7493
7494 # Extract the first word of "pwd", so it can be a program name with args.
7495 set dummy pwd; ac_word=$2
7496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498 if test "${ac_cv_path_BINPWD+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   case $BINPWD in
7502   [\\/]* | ?:[\\/]*)
7503   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7504   ;;
7505   *)
7506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509   IFS=$as_save_IFS
7510   test -z "$as_dir" && as_dir=.
7511   for ac_exec_ext in '' $ac_executable_extensions; do
7512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515     break 2
7516   fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7522   ;;
7523 esac
7524 fi
7525 BINPWD=$ac_cv_path_BINPWD
7526 if test -n "$BINPWD"; then
7527   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7528 echo "${ECHO_T}$BINPWD" >&6; }
7529 else
7530   { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7532 fi
7533
7534
7535
7536 # Extract the first word of "Graphviz", so it can be a program name with args.
7537 set dummy Graphviz; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   case $GRAPHVIZ in
7544   [\\/]* | ?:[\\/]*)
7545   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7546   ;;
7547   *)
7548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553   for ac_exec_ext in '' $ac_executable_extensions; do
7554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7564   ;;
7565 esac
7566 fi
7567 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7568 if test -n "$GRAPHVIZ"; then
7569   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7570 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7571 else
7572   { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7574 fi
7575
7576
7577 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7578
7579 cat >>confdefs.h <<\_ACEOF
7580 #define HAVE_GRAPHVIZ 1
7581 _ACEOF
7582
7583     if test "$llvm_cv_os_type" = "MingW" ; then
7584     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7585   fi
7586
7587 cat >>confdefs.h <<_ACEOF
7588 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7589 _ACEOF
7590
7591 fi
7592 # Extract the first word of "dot", so it can be a program name with args.
7593 set dummy dot; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_DOT+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   case $DOT in
7600   [\\/]* | ?:[\\/]*)
7601   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7602   ;;
7603   *)
7604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609   for ac_exec_ext in '' $ac_executable_extensions; do
7610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613     break 2
7614   fi
7615 done
7616 done
7617 IFS=$as_save_IFS
7618
7619   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7620   ;;
7621 esac
7622 fi
7623 DOT=$ac_cv_path_DOT
7624 if test -n "$DOT"; then
7625   { echo "$as_me:$LINENO: result: $DOT" >&5
7626 echo "${ECHO_T}$DOT" >&6; }
7627 else
7628   { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7630 fi
7631
7632
7633 if test "$DOT" != "echo dot" ; then
7634
7635 cat >>confdefs.h <<\_ACEOF
7636 #define HAVE_DOT 1
7637 _ACEOF
7638
7639     if test "$llvm_cv_os_type" = "MingW" ; then
7640     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7641   fi
7642
7643 cat >>confdefs.h <<_ACEOF
7644 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7645 _ACEOF
7646
7647 fi
7648 # Extract the first word of "fdp", so it can be a program name with args.
7649 set dummy fdp; ac_word=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_path_FDP+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   case $FDP in
7656   [\\/]* | ?:[\\/]*)
7657   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7658   ;;
7659   *)
7660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663   IFS=$as_save_IFS
7664   test -z "$as_dir" && as_dir=.
7665   for ac_exec_ext in '' $ac_executable_extensions; do
7666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7667     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669     break 2
7670   fi
7671 done
7672 done
7673 IFS=$as_save_IFS
7674
7675   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7676   ;;
7677 esac
7678 fi
7679 FDP=$ac_cv_path_FDP
7680 if test -n "$FDP"; then
7681   { echo "$as_me:$LINENO: result: $FDP" >&5
7682 echo "${ECHO_T}$FDP" >&6; }
7683 else
7684   { echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6; }
7686 fi
7687
7688
7689 if test "$FDP" != "echo fdp" ; then
7690
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_FDP 1
7693 _ACEOF
7694
7695     if test "$llvm_cv_os_type" = "MingW" ; then
7696     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7697   fi
7698
7699 cat >>confdefs.h <<_ACEOF
7700 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7701 _ACEOF
7702
7703 fi
7704 # Extract the first word of "neato", so it can be a program name with args.
7705 set dummy neato; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_NEATO+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   case $NEATO in
7712   [\\/]* | ?:[\\/]*)
7713   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7714   ;;
7715   *)
7716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721   for ac_exec_ext in '' $ac_executable_extensions; do
7722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7732   ;;
7733 esac
7734 fi
7735 NEATO=$ac_cv_path_NEATO
7736 if test -n "$NEATO"; then
7737   { echo "$as_me:$LINENO: result: $NEATO" >&5
7738 echo "${ECHO_T}$NEATO" >&6; }
7739 else
7740   { echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6; }
7742 fi
7743
7744
7745 if test "$NEATO" != "echo neato" ; then
7746
7747 cat >>confdefs.h <<\_ACEOF
7748 #define HAVE_NEATO 1
7749 _ACEOF
7750
7751     if test "$llvm_cv_os_type" = "MingW" ; then
7752     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7753   fi
7754
7755 cat >>confdefs.h <<_ACEOF
7756 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7757 _ACEOF
7758
7759 fi
7760 # Extract the first word of "twopi", so it can be a program name with args.
7761 set dummy twopi; ac_word=$2
7762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764 if test "${ac_cv_path_TWOPI+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767   case $TWOPI in
7768   [\\/]* | ?:[\\/]*)
7769   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7770   ;;
7771   *)
7772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777   for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784 done
7785 IFS=$as_save_IFS
7786
7787   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7788   ;;
7789 esac
7790 fi
7791 TWOPI=$ac_cv_path_TWOPI
7792 if test -n "$TWOPI"; then
7793   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7794 echo "${ECHO_T}$TWOPI" >&6; }
7795 else
7796   { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7798 fi
7799
7800
7801 if test "$TWOPI" != "echo twopi" ; then
7802
7803 cat >>confdefs.h <<\_ACEOF
7804 #define HAVE_TWOPI 1
7805 _ACEOF
7806
7807     if test "$llvm_cv_os_type" = "MingW" ; then
7808     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7809   fi
7810
7811 cat >>confdefs.h <<_ACEOF
7812 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7813 _ACEOF
7814
7815 fi
7816 # Extract the first word of "circo", so it can be a program name with args.
7817 set dummy circo; ac_word=$2
7818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7820 if test "${ac_cv_path_CIRCO+set}" = set; then
7821   echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823   case $CIRCO in
7824   [\\/]* | ?:[\\/]*)
7825   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7826   ;;
7827   *)
7828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831   IFS=$as_save_IFS
7832   test -z "$as_dir" && as_dir=.
7833   for ac_exec_ext in '' $ac_executable_extensions; do
7834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7835     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837     break 2
7838   fi
7839 done
7840 done
7841 IFS=$as_save_IFS
7842
7843   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7844   ;;
7845 esac
7846 fi
7847 CIRCO=$ac_cv_path_CIRCO
7848 if test -n "$CIRCO"; then
7849   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7850 echo "${ECHO_T}$CIRCO" >&6; }
7851 else
7852   { echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6; }
7854 fi
7855
7856
7857 if test "$CIRCO" != "echo circo" ; then
7858
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_CIRCO 1
7861 _ACEOF
7862
7863     if test "$llvm_cv_os_type" = "MingW" ; then
7864     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7865   fi
7866
7867 cat >>confdefs.h <<_ACEOF
7868 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7869 _ACEOF
7870
7871 fi
7872 for ac_prog in gv gsview32
7873 do
7874   # Extract the first word of "$ac_prog", so it can be a program name with args.
7875 set dummy $ac_prog; ac_word=$2
7876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7878 if test "${ac_cv_path_GV+set}" = set; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881   case $GV in
7882   [\\/]* | ?:[\\/]*)
7883   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7884   ;;
7885   *)
7886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889   IFS=$as_save_IFS
7890   test -z "$as_dir" && as_dir=.
7891   for ac_exec_ext in '' $ac_executable_extensions; do
7892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7893     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895     break 2
7896   fi
7897 done
7898 done
7899 IFS=$as_save_IFS
7900
7901   ;;
7902 esac
7903 fi
7904 GV=$ac_cv_path_GV
7905 if test -n "$GV"; then
7906   { echo "$as_me:$LINENO: result: $GV" >&5
7907 echo "${ECHO_T}$GV" >&6; }
7908 else
7909   { echo "$as_me:$LINENO: result: no" >&5
7910 echo "${ECHO_T}no" >&6; }
7911 fi
7912
7913
7914   test -n "$GV" && break
7915 done
7916 test -n "$GV" || GV="echo gv"
7917
7918 if test "$GV" != "echo gv" ; then
7919
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_GV 1
7922 _ACEOF
7923
7924     if test "$llvm_cv_os_type" = "MingW" ; then
7925     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7926   fi
7927
7928 cat >>confdefs.h <<_ACEOF
7929 #define LLVM_PATH_GV "$GV${EXEEXT}"
7930 _ACEOF
7931
7932 fi
7933 # Extract the first word of "dotty", so it can be a program name with args.
7934 set dummy dotty; ac_word=$2
7935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7937 if test "${ac_cv_path_DOTTY+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   case $DOTTY in
7941   [\\/]* | ?:[\\/]*)
7942   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7943   ;;
7944   *)
7945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948   IFS=$as_save_IFS
7949   test -z "$as_dir" && as_dir=.
7950   for ac_exec_ext in '' $ac_executable_extensions; do
7951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7952     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7954     break 2
7955   fi
7956 done
7957 done
7958 IFS=$as_save_IFS
7959
7960   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7961   ;;
7962 esac
7963 fi
7964 DOTTY=$ac_cv_path_DOTTY
7965 if test -n "$DOTTY"; then
7966   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7967 echo "${ECHO_T}$DOTTY" >&6; }
7968 else
7969   { echo "$as_me:$LINENO: result: no" >&5
7970 echo "${ECHO_T}no" >&6; }
7971 fi
7972
7973
7974 if test "$DOTTY" != "echo dotty" ; then
7975
7976 cat >>confdefs.h <<\_ACEOF
7977 #define HAVE_DOTTY 1
7978 _ACEOF
7979
7980     if test "$llvm_cv_os_type" = "MingW" ; then
7981     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7982   fi
7983
7984 cat >>confdefs.h <<_ACEOF
7985 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7986 _ACEOF
7987
7988 fi
7989 # Extract the first word of "xdot.py", so it can be a program name with args.
7990 set dummy xdot.py; ac_word=$2
7991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996   case $XDOT_PY in
7997   [\\/]* | ?:[\\/]*)
7998   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7999   ;;
8000   *)
8001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004   IFS=$as_save_IFS
8005   test -z "$as_dir" && as_dir=.
8006   for ac_exec_ext in '' $ac_executable_extensions; do
8007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8008     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8010     break 2
8011   fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8017   ;;
8018 esac
8019 fi
8020 XDOT_PY=$ac_cv_path_XDOT_PY
8021 if test -n "$XDOT_PY"; then
8022   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8023 echo "${ECHO_T}$XDOT_PY" >&6; }
8024 else
8025   { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8027 fi
8028
8029
8030 if test "$XDOT_PY" != "echo xdot.py" ; then
8031
8032 cat >>confdefs.h <<\_ACEOF
8033 #define HAVE_XDOT_PY 1
8034 _ACEOF
8035
8036     if test "$llvm_cv_os_type" = "MingW" ; then
8037     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8038   fi
8039
8040 cat >>confdefs.h <<_ACEOF
8041 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8042 _ACEOF
8043
8044 fi
8045
8046
8047 # Extract the first word of "perl", so it can be a program name with args.
8048 set dummy perl; ac_word=$2
8049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_PERL+set}" = set; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054   case $PERL in
8055   [\\/]* | ?:[\\/]*)
8056   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8057   ;;
8058   *)
8059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064   for ac_exec_ext in '' $ac_executable_extensions; do
8065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8066     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071 done
8072 IFS=$as_save_IFS
8073
8074   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8075   ;;
8076 esac
8077 fi
8078 PERL=$ac_cv_path_PERL
8079 if test -n "$PERL"; then
8080   { echo "$as_me:$LINENO: result: $PERL" >&5
8081 echo "${ECHO_T}$PERL" >&6; }
8082 else
8083   { echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6; }
8085 fi
8086
8087
8088 if test "$PERL" != "none"; then
8089   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8090 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8091   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8092     { echo "$as_me:$LINENO: result: yes" >&5
8093 echo "${ECHO_T}yes" >&6; }
8094   else
8095     PERL=none
8096     { echo "$as_me:$LINENO: result: not found" >&5
8097 echo "${ECHO_T}not found" >&6; }
8098   fi
8099 fi
8100
8101
8102 if test x"$PERL" = xnone; then
8103    HAVE_PERL=0
8104
8105    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8106 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8107    { (exit 1); exit 1; }; }
8108 else
8109    HAVE_PERL=1
8110
8111 fi
8112
8113 # Find a good install program.  We prefer a C program (faster),
8114 # so one script is as good as another.  But avoid the broken or
8115 # incompatible versions:
8116 # SysV /etc/install, /usr/sbin/install
8117 # SunOS /usr/etc/install
8118 # IRIX /sbin/install
8119 # AIX /bin/install
8120 # AmigaOS /C/install, which installs bootblocks on floppy discs
8121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8124 # OS/2's system install, which has a completely different semantic
8125 # ./install, which can be erroneously created by make from ./install.sh.
8126 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8127 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8128 if test -z "$INSTALL"; then
8129 if test "${ac_cv_path_install+set}" = set; then
8130   echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8134 do
8135   IFS=$as_save_IFS
8136   test -z "$as_dir" && as_dir=.
8137   # Account for people who put trailing slashes in PATH elements.
8138 case $as_dir/ in
8139   ./ | .// | /cC/* | \
8140   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8141   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8142   /usr/ucb/* ) ;;
8143   *)
8144     # OSF1 and SCO ODT 3.0 have their own names for install.
8145     # Don't use installbsd from OSF since it installs stuff as root
8146     # by default.
8147     for ac_prog in ginstall scoinst install; do
8148       for ac_exec_ext in '' $ac_executable_extensions; do
8149         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8150           if test $ac_prog = install &&
8151             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8152             # AIX install.  It has an incompatible calling convention.
8153             :
8154           elif test $ac_prog = install &&
8155             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8156             # program-specific install script used by HP pwplus--don't use.
8157             :
8158           else
8159             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8160             break 3
8161           fi
8162         fi
8163       done
8164     done
8165     ;;
8166 esac
8167 done
8168 IFS=$as_save_IFS
8169
8170
8171 fi
8172   if test "${ac_cv_path_install+set}" = set; then
8173     INSTALL=$ac_cv_path_install
8174   else
8175     # As a last resort, use the slow shell script.  Don't cache a
8176     # value for INSTALL within a source directory, because that will
8177     # break other packages using the cache if that directory is
8178     # removed, or if the value is a relative name.
8179     INSTALL=$ac_install_sh
8180   fi
8181 fi
8182 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8183 echo "${ECHO_T}$INSTALL" >&6; }
8184
8185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8186 # It thinks the first close brace ends the variable substitution.
8187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8188
8189 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8190
8191 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8192
8193 case "$INSTALL" in
8194  [\\/$]* | ?:[\\/]* ) ;;
8195  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8196 esac
8197
8198 # Extract the first word of "bzip2", so it can be a program name with args.
8199 set dummy bzip2; ac_word=$2
8200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202 if test "${ac_cv_path_BZIP2+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   case $BZIP2 in
8206   [\\/]* | ?:[\\/]*)
8207   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8208   ;;
8209   *)
8210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213   IFS=$as_save_IFS
8214   test -z "$as_dir" && as_dir=.
8215   for ac_exec_ext in '' $ac_executable_extensions; do
8216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8217     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8219     break 2
8220   fi
8221 done
8222 done
8223 IFS=$as_save_IFS
8224
8225   ;;
8226 esac
8227 fi
8228 BZIP2=$ac_cv_path_BZIP2
8229 if test -n "$BZIP2"; then
8230   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8231 echo "${ECHO_T}$BZIP2" >&6; }
8232 else
8233   { echo "$as_me:$LINENO: result: no" >&5
8234 echo "${ECHO_T}no" >&6; }
8235 fi
8236
8237
8238 # Extract the first word of "cat", so it can be a program name with args.
8239 set dummy cat; ac_word=$2
8240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8242 if test "${ac_cv_path_CAT+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   case $CAT in
8246   [\\/]* | ?:[\\/]*)
8247   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8248   ;;
8249   *)
8250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253   IFS=$as_save_IFS
8254   test -z "$as_dir" && as_dir=.
8255   for ac_exec_ext in '' $ac_executable_extensions; do
8256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8257     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262 done
8263 IFS=$as_save_IFS
8264
8265   ;;
8266 esac
8267 fi
8268 CAT=$ac_cv_path_CAT
8269 if test -n "$CAT"; then
8270   { echo "$as_me:$LINENO: result: $CAT" >&5
8271 echo "${ECHO_T}$CAT" >&6; }
8272 else
8273   { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8275 fi
8276
8277
8278 # Extract the first word of "doxygen", so it can be a program name with args.
8279 set dummy doxygen; ac_word=$2
8280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8282 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8283   echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285   case $DOXYGEN in
8286   [\\/]* | ?:[\\/]*)
8287   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8288   ;;
8289   *)
8290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293   IFS=$as_save_IFS
8294   test -z "$as_dir" && as_dir=.
8295   for ac_exec_ext in '' $ac_executable_extensions; do
8296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8297     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8299     break 2
8300   fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305   ;;
8306 esac
8307 fi
8308 DOXYGEN=$ac_cv_path_DOXYGEN
8309 if test -n "$DOXYGEN"; then
8310   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8311 echo "${ECHO_T}$DOXYGEN" >&6; }
8312 else
8313   { echo "$as_me:$LINENO: result: no" >&5
8314 echo "${ECHO_T}no" >&6; }
8315 fi
8316
8317
8318 # Extract the first word of "groff", so it can be a program name with args.
8319 set dummy groff; ac_word=$2
8320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8322 if test "${ac_cv_path_GROFF+set}" = set; then
8323   echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325   case $GROFF in
8326   [\\/]* | ?:[\\/]*)
8327   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8328   ;;
8329   *)
8330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333   IFS=$as_save_IFS
8334   test -z "$as_dir" && as_dir=.
8335   for ac_exec_ext in '' $ac_executable_extensions; do
8336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8337     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8339     break 2
8340   fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345   ;;
8346 esac
8347 fi
8348 GROFF=$ac_cv_path_GROFF
8349 if test -n "$GROFF"; then
8350   { echo "$as_me:$LINENO: result: $GROFF" >&5
8351 echo "${ECHO_T}$GROFF" >&6; }
8352 else
8353   { echo "$as_me:$LINENO: result: no" >&5
8354 echo "${ECHO_T}no" >&6; }
8355 fi
8356
8357
8358 # Extract the first word of "gzip", so it can be a program name with args.
8359 set dummy gzip; ac_word=$2
8360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   case $GZIPBIN in
8366   [\\/]* | ?:[\\/]*)
8367   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8368   ;;
8369   *)
8370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373   IFS=$as_save_IFS
8374   test -z "$as_dir" && as_dir=.
8375   for ac_exec_ext in '' $ac_executable_extensions; do
8376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8377     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385   ;;
8386 esac
8387 fi
8388 GZIPBIN=$ac_cv_path_GZIPBIN
8389 if test -n "$GZIPBIN"; then
8390   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8391 echo "${ECHO_T}$GZIPBIN" >&6; }
8392 else
8393   { echo "$as_me:$LINENO: result: no" >&5
8394 echo "${ECHO_T}no" >&6; }
8395 fi
8396
8397
8398 # Extract the first word of "pod2html", so it can be a program name with args.
8399 set dummy pod2html; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_path_POD2HTML+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   case $POD2HTML in
8406   [\\/]* | ?:[\\/]*)
8407   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8408   ;;
8409   *)
8410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415   for ac_exec_ext in '' $ac_executable_extensions; do
8416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8417     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419     break 2
8420   fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425   ;;
8426 esac
8427 fi
8428 POD2HTML=$ac_cv_path_POD2HTML
8429 if test -n "$POD2HTML"; then
8430   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8431 echo "${ECHO_T}$POD2HTML" >&6; }
8432 else
8433   { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8435 fi
8436
8437
8438 # Extract the first word of "pod2man", so it can be a program name with args.
8439 set dummy pod2man; ac_word=$2
8440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8442 if test "${ac_cv_path_POD2MAN+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   case $POD2MAN in
8446   [\\/]* | ?:[\\/]*)
8447   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8448   ;;
8449   *)
8450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8452 do
8453   IFS=$as_save_IFS
8454   test -z "$as_dir" && as_dir=.
8455   for ac_exec_ext in '' $ac_executable_extensions; do
8456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8457     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8459     break 2
8460   fi
8461 done
8462 done
8463 IFS=$as_save_IFS
8464
8465   ;;
8466 esac
8467 fi
8468 POD2MAN=$ac_cv_path_POD2MAN
8469 if test -n "$POD2MAN"; then
8470   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8471 echo "${ECHO_T}$POD2MAN" >&6; }
8472 else
8473   { echo "$as_me:$LINENO: result: no" >&5
8474 echo "${ECHO_T}no" >&6; }
8475 fi
8476
8477
8478 # Extract the first word of "pdfroff", so it can be a program name with args.
8479 set dummy pdfroff; ac_word=$2
8480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8482 if test "${ac_cv_path_PDFROFF+set}" = set; then
8483   echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485   case $PDFROFF in
8486   [\\/]* | ?:[\\/]*)
8487   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8488   ;;
8489   *)
8490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 for as_dir in $PATH
8492 do
8493   IFS=$as_save_IFS
8494   test -z "$as_dir" && as_dir=.
8495   for ac_exec_ext in '' $ac_executable_extensions; do
8496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8497     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8499     break 2
8500   fi
8501 done
8502 done
8503 IFS=$as_save_IFS
8504
8505   ;;
8506 esac
8507 fi
8508 PDFROFF=$ac_cv_path_PDFROFF
8509 if test -n "$PDFROFF"; then
8510   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8511 echo "${ECHO_T}$PDFROFF" >&6; }
8512 else
8513   { echo "$as_me:$LINENO: result: no" >&5
8514 echo "${ECHO_T}no" >&6; }
8515 fi
8516
8517
8518 # Extract the first word of "runtest", so it can be a program name with args.
8519 set dummy runtest; ac_word=$2
8520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8522 if test "${ac_cv_path_RUNTEST+set}" = set; then
8523   echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525   case $RUNTEST in
8526   [\\/]* | ?:[\\/]*)
8527   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8528   ;;
8529   *)
8530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8532 do
8533   IFS=$as_save_IFS
8534   test -z "$as_dir" && as_dir=.
8535   for ac_exec_ext in '' $ac_executable_extensions; do
8536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8537     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8539     break 2
8540   fi
8541 done
8542 done
8543 IFS=$as_save_IFS
8544
8545   ;;
8546 esac
8547 fi
8548 RUNTEST=$ac_cv_path_RUNTEST
8549 if test -n "$RUNTEST"; then
8550   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8551 echo "${ECHO_T}$RUNTEST" >&6; }
8552 else
8553   { echo "$as_me:$LINENO: result: no" >&5
8554 echo "${ECHO_T}no" >&6; }
8555 fi
8556
8557
8558
8559 no_itcl=true
8560 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8561 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8562
8563 # Check whether --with-tclinclude was given.
8564 if test "${with_tclinclude+set}" = set; then
8565   withval=$with_tclinclude; with_tclinclude=${withval}
8566 else
8567   with_tclinclude=''
8568 fi
8569
8570 if test "${ac_cv_path_tclsh+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573
8574 if test x"${with_tclinclude}" != x ; then
8575   if test -f ${with_tclinclude}/tclsh ; then
8576     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8577   elif test -f ${with_tclinclude}/src/tclsh ; then
8578     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8579   else
8580     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8581 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8582    { (exit 1); exit 1; }; }
8583   fi
8584 fi
8585 fi
8586
8587
8588 if test x"${ac_cv_path_tclsh}" = x ; then
8589   { echo "$as_me:$LINENO: result: none" >&5
8590 echo "${ECHO_T}none" >&6; }
8591   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
8592 do
8593   # Extract the first word of "$ac_prog", so it can be a program name with args.
8594 set dummy $ac_prog; ac_word=$2
8595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8597 if test "${ac_cv_path_TCLSH+set}" = set; then
8598   echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600   case $TCLSH in
8601   [\\/]* | ?:[\\/]*)
8602   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8603   ;;
8604   *)
8605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 for as_dir in $PATH
8607 do
8608   IFS=$as_save_IFS
8609   test -z "$as_dir" && as_dir=.
8610   for ac_exec_ext in '' $ac_executable_extensions; do
8611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8612     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8614     break 2
8615   fi
8616 done
8617 done
8618 IFS=$as_save_IFS
8619
8620   ;;
8621 esac
8622 fi
8623 TCLSH=$ac_cv_path_TCLSH
8624 if test -n "$TCLSH"; then
8625   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8626 echo "${ECHO_T}$TCLSH" >&6; }
8627 else
8628   { echo "$as_me:$LINENO: result: no" >&5
8629 echo "${ECHO_T}no" >&6; }
8630 fi
8631
8632
8633   test -n "$TCLSH" && break
8634 done
8635
8636   if test x"${TCLSH}" = x ; then
8637     ac_cv_path_tclsh='';
8638   else
8639     ac_cv_path_tclsh="${TCLSH}";
8640   fi
8641 else
8642   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8643 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8644   TCLSH="${ac_cv_path_tclsh}"
8645
8646 fi
8647
8648 # Extract the first word of "zip", so it can be a program name with args.
8649 set dummy zip; ac_word=$2
8650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8652 if test "${ac_cv_path_ZIP+set}" = set; then
8653   echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655   case $ZIP in
8656   [\\/]* | ?:[\\/]*)
8657   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8658   ;;
8659   *)
8660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8662 do
8663   IFS=$as_save_IFS
8664   test -z "$as_dir" && as_dir=.
8665   for ac_exec_ext in '' $ac_executable_extensions; do
8666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8667     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8669     break 2
8670   fi
8671 done
8672 done
8673 IFS=$as_save_IFS
8674
8675   ;;
8676 esac
8677 fi
8678 ZIP=$ac_cv_path_ZIP
8679 if test -n "$ZIP"; then
8680   { echo "$as_me:$LINENO: result: $ZIP" >&5
8681 echo "${ECHO_T}$ZIP" >&6; }
8682 else
8683   { echo "$as_me:$LINENO: result: no" >&5
8684 echo "${ECHO_T}no" >&6; }
8685 fi
8686
8687
8688 for ac_prog in ocamlc
8689 do
8690   # Extract the first word of "$ac_prog", so it can be a program name with args.
8691 set dummy $ac_prog; ac_word=$2
8692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8694 if test "${ac_cv_path_OCAMLC+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   case $OCAMLC in
8698   [\\/]* | ?:[\\/]*)
8699   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8700   ;;
8701   *)
8702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705   IFS=$as_save_IFS
8706   test -z "$as_dir" && as_dir=.
8707   for ac_exec_ext in '' $ac_executable_extensions; do
8708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8709     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711     break 2
8712   fi
8713 done
8714 done
8715 IFS=$as_save_IFS
8716
8717   ;;
8718 esac
8719 fi
8720 OCAMLC=$ac_cv_path_OCAMLC
8721 if test -n "$OCAMLC"; then
8722   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8723 echo "${ECHO_T}$OCAMLC" >&6; }
8724 else
8725   { echo "$as_me:$LINENO: result: no" >&5
8726 echo "${ECHO_T}no" >&6; }
8727 fi
8728
8729
8730   test -n "$OCAMLC" && break
8731 done
8732
8733 for ac_prog in ocamlopt
8734 do
8735   # Extract the first word of "$ac_prog", so it can be a program name with args.
8736 set dummy $ac_prog; ac_word=$2
8737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8739 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742   case $OCAMLOPT in
8743   [\\/]* | ?:[\\/]*)
8744   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8745   ;;
8746   *)
8747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8749 do
8750   IFS=$as_save_IFS
8751   test -z "$as_dir" && as_dir=.
8752   for ac_exec_ext in '' $ac_executable_extensions; do
8753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8754     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8756     break 2
8757   fi
8758 done
8759 done
8760 IFS=$as_save_IFS
8761
8762   ;;
8763 esac
8764 fi
8765 OCAMLOPT=$ac_cv_path_OCAMLOPT
8766 if test -n "$OCAMLOPT"; then
8767   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8768 echo "${ECHO_T}$OCAMLOPT" >&6; }
8769 else
8770   { echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6; }
8772 fi
8773
8774
8775   test -n "$OCAMLOPT" && break
8776 done
8777
8778 for ac_prog in ocamldep
8779 do
8780   # Extract the first word of "$ac_prog", so it can be a program name with args.
8781 set dummy $ac_prog; ac_word=$2
8782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8784 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787   case $OCAMLDEP in
8788   [\\/]* | ?:[\\/]*)
8789   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8790   ;;
8791   *)
8792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795   IFS=$as_save_IFS
8796   test -z "$as_dir" && as_dir=.
8797   for ac_exec_ext in '' $ac_executable_extensions; do
8798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8799     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8801     break 2
8802   fi
8803 done
8804 done
8805 IFS=$as_save_IFS
8806
8807   ;;
8808 esac
8809 fi
8810 OCAMLDEP=$ac_cv_path_OCAMLDEP
8811 if test -n "$OCAMLDEP"; then
8812   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8813 echo "${ECHO_T}$OCAMLDEP" >&6; }
8814 else
8815   { echo "$as_me:$LINENO: result: no" >&5
8816 echo "${ECHO_T}no" >&6; }
8817 fi
8818
8819
8820   test -n "$OCAMLDEP" && break
8821 done
8822
8823 for ac_prog in ocamldoc
8824 do
8825   # Extract the first word of "$ac_prog", so it can be a program name with args.
8826 set dummy $ac_prog; ac_word=$2
8827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8829 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8830   echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832   case $OCAMLDOC in
8833   [\\/]* | ?:[\\/]*)
8834   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8835   ;;
8836   *)
8837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8839 do
8840   IFS=$as_save_IFS
8841   test -z "$as_dir" && as_dir=.
8842   for ac_exec_ext in '' $ac_executable_extensions; do
8843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8844     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8846     break 2
8847   fi
8848 done
8849 done
8850 IFS=$as_save_IFS
8851
8852   ;;
8853 esac
8854 fi
8855 OCAMLDOC=$ac_cv_path_OCAMLDOC
8856 if test -n "$OCAMLDOC"; then
8857   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8858 echo "${ECHO_T}$OCAMLDOC" >&6; }
8859 else
8860   { echo "$as_me:$LINENO: result: no" >&5
8861 echo "${ECHO_T}no" >&6; }
8862 fi
8863
8864
8865   test -n "$OCAMLDOC" && break
8866 done
8867
8868 for ac_prog in gas as
8869 do
8870   # Extract the first word of "$ac_prog", so it can be a program name with args.
8871 set dummy $ac_prog; ac_word=$2
8872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8874 if test "${ac_cv_path_GAS+set}" = set; then
8875   echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877   case $GAS in
8878   [\\/]* | ?:[\\/]*)
8879   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8880   ;;
8881   *)
8882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8884 do
8885   IFS=$as_save_IFS
8886   test -z "$as_dir" && as_dir=.
8887   for ac_exec_ext in '' $ac_executable_extensions; do
8888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8889     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8891     break 2
8892   fi
8893 done
8894 done
8895 IFS=$as_save_IFS
8896
8897   ;;
8898 esac
8899 fi
8900 GAS=$ac_cv_path_GAS
8901 if test -n "$GAS"; then
8902   { echo "$as_me:$LINENO: result: $GAS" >&5
8903 echo "${ECHO_T}$GAS" >&6; }
8904 else
8905   { echo "$as_me:$LINENO: result: no" >&5
8906 echo "${ECHO_T}no" >&6; }
8907 fi
8908
8909
8910   test -n "$GAS" && break
8911 done
8912
8913
8914 { echo "$as_me:$LINENO: checking for linker version" >&5
8915 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8916 if test "${llvm_cv_link_version+set}" = set; then
8917   echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919
8920    version_string="$(ld -v 2>&1 | head -1)"
8921
8922    # Check for ld64.
8923    if (echo "$version_string" | grep -q "ld64"); then
8924      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8925    else
8926      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8927    fi
8928
8929 fi
8930 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8931 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8932
8933 cat >>confdefs.h <<_ACEOF
8934 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8935 _ACEOF
8936
8937
8938
8939 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8940 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8941 if test "${llvm_cv_link_use_r+set}" = set; then
8942   echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944    ac_ext=c
8945 ac_cpp='$CPP $CPPFLAGS'
8946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8949
8950   oldcflags="$CFLAGS"
8951   CFLAGS="$CFLAGS -Wl,-R."
8952   cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h.  */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h.  */
8958
8959 int
8960 main ()
8961 {
8962
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (ac_try="$ac_link"
8969 case "(($ac_try" in
8970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971   *) ac_try_echo=$ac_try;;
8972 esac
8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974   (eval "$ac_link") 2>conftest.er1
8975   ac_status=$?
8976   grep -v '^ *+' conftest.er1 >conftest.err
8977   rm -f conftest.er1
8978   cat conftest.err >&5
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); } &&
8981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8982   { (case "(($ac_try" in
8983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984   *) ac_try_echo=$ac_try;;
8985 esac
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987   (eval "$ac_try") 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); }; } &&
8991          { ac_try='test -s conftest$ac_exeext'
8992   { (case "(($ac_try" in
8993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994   *) ac_try_echo=$ac_try;;
8995 esac
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997   (eval "$ac_try") 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; }; then
9001   llvm_cv_link_use_r=yes
9002 else
9003   echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006         llvm_cv_link_use_r=no
9007 fi
9008
9009 rm -f core conftest.err conftest.$ac_objext \
9010       conftest$ac_exeext conftest.$ac_ext
9011   CFLAGS="$oldcflags"
9012   ac_ext=c
9013 ac_cpp='$CPP $CPPFLAGS'
9014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9017
9018
9019 fi
9020 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9021 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9022 if test "$llvm_cv_link_use_r" = yes ; then
9023
9024 cat >>confdefs.h <<\_ACEOF
9025 #define HAVE_LINK_R 1
9026 _ACEOF
9027
9028   fi
9029
9030
9031 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9032 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9033 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9034   echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036    ac_ext=c
9037 ac_cpp='$CPP $CPPFLAGS'
9038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9041
9042   oldcflags="$CFLAGS"
9043   CFLAGS="$CFLAGS -Wl,-export-dynamic"
9044   cat >conftest.$ac_ext <<_ACEOF
9045 /* confdefs.h.  */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h.  */
9050
9051 int
9052 main ()
9053 {
9054
9055   ;
9056   return 0;
9057 }
9058 _ACEOF
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (ac_try="$ac_link"
9061 case "(($ac_try" in
9062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063   *) ac_try_echo=$ac_try;;
9064 esac
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066   (eval "$ac_link") 2>conftest.er1
9067   ac_status=$?
9068   grep -v '^ *+' conftest.er1 >conftest.err
9069   rm -f conftest.er1
9070   cat conftest.err >&5
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); } &&
9073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9074   { (case "(($ac_try" in
9075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076   *) ac_try_echo=$ac_try;;
9077 esac
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079   (eval "$ac_try") 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; } &&
9083          { ac_try='test -s conftest$ac_exeext'
9084   { (case "(($ac_try" in
9085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086   *) ac_try_echo=$ac_try;;
9087 esac
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089   (eval "$ac_try") 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; }; then
9093   llvm_cv_link_use_export_dynamic=yes
9094 else
9095   echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098         llvm_cv_link_use_export_dynamic=no
9099 fi
9100
9101 rm -f core conftest.err conftest.$ac_objext \
9102       conftest$ac_exeext conftest.$ac_ext
9103   CFLAGS="$oldcflags"
9104   ac_ext=c
9105 ac_cpp='$CPP $CPPFLAGS'
9106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9109
9110
9111 fi
9112 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9113 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9114 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9115
9116 cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_LINK_EXPORT_DYNAMIC 1
9118 _ACEOF
9119
9120   fi
9121
9122
9123 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9124 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9125 if test "${llvm_cv_link_use_version_script+set}" = set; then
9126   echo $ECHO_N "(cached) $ECHO_C" >&6
9127 else
9128    ac_ext=c
9129 ac_cpp='$CPP $CPPFLAGS'
9130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9133
9134   oldcflags="$CFLAGS"
9135
9136   # The following code is from the autoconf manual,
9137   # "11.13: Limitations of Usual Tools".
9138   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9139   # Use mktemp if possible; otherwise fall back on mkdir,
9140   # with $RANDOM to make collisions less likely.
9141   : ${TMPDIR=/tmp}
9142   {
9143     tmp=`
9144       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9145     ` &&
9146     test -n "$tmp" && test -d "$tmp"
9147   } || {
9148     tmp=$TMPDIR/foo$$-$RANDOM
9149     (umask 077 && mkdir "$tmp")
9150   } || exit $?
9151
9152   echo "{" > "$tmp/export.map"
9153   echo "  global: main;" >> "$tmp/export.map"
9154   echo "  local: *;" >> "$tmp/export.map"
9155   echo "};" >> "$tmp/export.map"
9156
9157   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9158   cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164
9165 int
9166 main ()
9167 {
9168
9169   ;
9170   return 0;
9171 }
9172 _ACEOF
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (ac_try="$ac_link"
9175 case "(($ac_try" in
9176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177   *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180   (eval "$ac_link") 2>conftest.er1
9181   ac_status=$?
9182   grep -v '^ *+' conftest.er1 >conftest.err
9183   rm -f conftest.er1
9184   cat conftest.err >&5
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); } &&
9187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9188   { (case "(($ac_try" in
9189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190   *) ac_try_echo=$ac_try;;
9191 esac
9192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193   (eval "$ac_try") 2>&5
9194   ac_status=$?
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); }; } &&
9197          { ac_try='test -s conftest$ac_exeext'
9198   { (case "(($ac_try" in
9199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200   *) ac_try_echo=$ac_try;;
9201 esac
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203   (eval "$ac_try") 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); }; }; then
9207   llvm_cv_link_use_version_script=yes
9208 else
9209   echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212         llvm_cv_link_use_version_script=no
9213 fi
9214
9215 rm -f core conftest.err conftest.$ac_objext \
9216       conftest$ac_exeext conftest.$ac_ext
9217   rm "$tmp/export.map"
9218   rmdir "$tmp"
9219   CFLAGS="$oldcflags"
9220   ac_ext=c
9221 ac_cpp='$CPP $CPPFLAGS'
9222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9225
9226
9227 fi
9228 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9229 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9230 if test "$llvm_cv_link_use_version_script" = yes ; then
9231   HAVE_LINK_VERSION_SCRIPT=1
9232
9233   fi
9234
9235
9236
9237
9238 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9239 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9240 if test "${ac_cv_c_const+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243   cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h.  */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h.  */
9249
9250 int
9251 main ()
9252 {
9253 /* FIXME: Include the comments suggested by Paul. */
9254 #ifndef __cplusplus
9255   /* Ultrix mips cc rejects this.  */
9256   typedef int charset[2];
9257   const charset x;
9258   /* SunOS 4.1.1 cc rejects this.  */
9259   char const *const *ccp;
9260   char **p;
9261   /* NEC SVR4.0.2 mips cc rejects this.  */
9262   struct point {int x, y;};
9263   static struct point const zero = {0,0};
9264   /* AIX XL C 1.02.0.0 rejects this.
9265      It does not let you subtract one const X* pointer from another in
9266      an arm of an if-expression whose if-part is not a constant
9267      expression */
9268   const char *g = "string";
9269   ccp = &g + (g ? g-g : 0);
9270   /* HPUX 7.0 cc rejects these. */
9271   ++ccp;
9272   p = (char**) ccp;
9273   ccp = (char const *const *) p;
9274   { /* SCO 3.2v4 cc rejects this.  */
9275     char *t;
9276     char const *s = 0 ? (char *) 0 : (char const *) 0;
9277
9278     *t++ = 0;
9279     if (s) return 0;
9280   }
9281   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9282     int x[] = {25, 17};
9283     const int *foo = &x[0];
9284     ++foo;
9285   }
9286   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9287     typedef const int *iptr;
9288     iptr p = 0;
9289     ++p;
9290   }
9291   { /* AIX XL C 1.02.0.0 rejects this saying
9292        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9293     struct s { int j; const int *ap[3]; };
9294     struct s *b; b->j = 5;
9295   }
9296   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9297     const int foo = 10;
9298     if (!foo) return 0;
9299   }
9300   return !x[0] && !zero.x;
9301 #endif
9302
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 rm -f conftest.$ac_objext
9308 if { (ac_try="$ac_compile"
9309 case "(($ac_try" in
9310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311   *) ac_try_echo=$ac_try;;
9312 esac
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314   (eval "$ac_compile") 2>conftest.er1
9315   ac_status=$?
9316   grep -v '^ *+' conftest.er1 >conftest.err
9317   rm -f conftest.er1
9318   cat conftest.err >&5
9319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320   (exit $ac_status); } &&
9321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9322   { (case "(($ac_try" in
9323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324   *) ac_try_echo=$ac_try;;
9325 esac
9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327   (eval "$ac_try") 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); }; } &&
9331          { ac_try='test -s conftest.$ac_objext'
9332   { (case "(($ac_try" in
9333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334   *) ac_try_echo=$ac_try;;
9335 esac
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337   (eval "$ac_try") 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); }; }; then
9341   ac_cv_c_const=yes
9342 else
9343   echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346         ac_cv_c_const=no
9347 fi
9348
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350 fi
9351 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9352 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9353 if test $ac_cv_c_const = no; then
9354
9355 cat >>confdefs.h <<\_ACEOF
9356 #define const
9357 _ACEOF
9358
9359 fi
9360
9361
9362
9363
9364
9365
9366 ac_header_dirent=no
9367 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9368   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9369 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9370 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374   cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h.  */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h.  */
9380 #include <sys/types.h>
9381 #include <$ac_hdr>
9382
9383 int
9384 main ()
9385 {
9386 if ((DIR *) 0)
9387 return 0;
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (ac_try="$ac_compile"
9394 case "(($ac_try" in
9395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396   *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399   (eval "$ac_compile") 2>conftest.er1
9400   ac_status=$?
9401   grep -v '^ *+' conftest.er1 >conftest.err
9402   rm -f conftest.er1
9403   cat conftest.err >&5
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); } &&
9406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9407   { (case "(($ac_try" in
9408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409   *) ac_try_echo=$ac_try;;
9410 esac
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412   (eval "$ac_try") 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); }; } &&
9416          { ac_try='test -s conftest.$ac_objext'
9417   { (case "(($ac_try" in
9418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419   *) ac_try_echo=$ac_try;;
9420 esac
9421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422   (eval "$ac_try") 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); }; }; then
9426   eval "$as_ac_Header=yes"
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431         eval "$as_ac_Header=no"
9432 fi
9433
9434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 fi
9436 ac_res=`eval echo '${'$as_ac_Header'}'`
9437                { echo "$as_me:$LINENO: result: $ac_res" >&5
9438 echo "${ECHO_T}$ac_res" >&6; }
9439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9440   cat >>confdefs.h <<_ACEOF
9441 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9442 _ACEOF
9443
9444 ac_header_dirent=$ac_hdr; break
9445 fi
9446
9447 done
9448 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9449 if test $ac_header_dirent = dirent.h; then
9450   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9451 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9452 if test "${ac_cv_search_opendir+set}" = set; then
9453   echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455   ac_func_search_save_LIBS=$LIBS
9456 cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h.  */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h.  */
9462
9463 /* Override any GCC internal prototype to avoid an error.
9464    Use char because int might match the return type of a GCC
9465    builtin and then its argument prototype would still apply.  */
9466 #ifdef __cplusplus
9467 extern "C"
9468 #endif
9469 char opendir ();
9470 int
9471 main ()
9472 {
9473 return opendir ();
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 for ac_lib in '' dir; do
9479   if test -z "$ac_lib"; then
9480     ac_res="none required"
9481   else
9482     ac_res=-l$ac_lib
9483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9484   fi
9485   rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9487 case "(($ac_try" in
9488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489   *) ac_try_echo=$ac_try;;
9490 esac
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492   (eval "$ac_link") 2>conftest.er1
9493   ac_status=$?
9494   grep -v '^ *+' conftest.er1 >conftest.err
9495   rm -f conftest.er1
9496   cat conftest.err >&5
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); } &&
9499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9500   { (case "(($ac_try" in
9501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502   *) ac_try_echo=$ac_try;;
9503 esac
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505   (eval "$ac_try") 2>&5
9506   ac_status=$?
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); }; } &&
9509          { ac_try='test -s conftest$ac_exeext'
9510   { (case "(($ac_try" in
9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512   *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515   (eval "$ac_try") 2>&5
9516   ac_status=$?
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); }; }; then
9519   ac_cv_search_opendir=$ac_res
9520 else
9521   echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9523
9524
9525 fi
9526
9527 rm -f core conftest.err conftest.$ac_objext \
9528       conftest$ac_exeext
9529   if test "${ac_cv_search_opendir+set}" = set; then
9530   break
9531 fi
9532 done
9533 if test "${ac_cv_search_opendir+set}" = set; then
9534   :
9535 else
9536   ac_cv_search_opendir=no
9537 fi
9538 rm conftest.$ac_ext
9539 LIBS=$ac_func_search_save_LIBS
9540 fi
9541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9543 ac_res=$ac_cv_search_opendir
9544 if test "$ac_res" != no; then
9545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9546
9547 fi
9548
9549 else
9550   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9552 if test "${ac_cv_search_opendir+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555   ac_func_search_save_LIBS=$LIBS
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562
9563 /* Override any GCC internal prototype to avoid an error.
9564    Use char because int might match the return type of a GCC
9565    builtin and then its argument prototype would still apply.  */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char opendir ();
9570 int
9571 main ()
9572 {
9573 return opendir ();
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 for ac_lib in '' x; do
9579   if test -z "$ac_lib"; then
9580     ac_res="none required"
9581   else
9582     ac_res=-l$ac_lib
9583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9584   fi
9585   rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (ac_try="$ac_link"
9587 case "(($ac_try" in
9588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589   *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592   (eval "$ac_link") 2>conftest.er1
9593   ac_status=$?
9594   grep -v '^ *+' conftest.er1 >conftest.err
9595   rm -f conftest.er1
9596   cat conftest.err >&5
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); } &&
9599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9600   { (case "(($ac_try" in
9601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602   *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605   (eval "$ac_try") 2>&5
9606   ac_status=$?
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); }; } &&
9609          { ac_try='test -s conftest$ac_exeext'
9610   { (case "(($ac_try" in
9611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612   *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615   (eval "$ac_try") 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); }; }; then
9619   ac_cv_search_opendir=$ac_res
9620 else
9621   echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9623
9624
9625 fi
9626
9627 rm -f core conftest.err conftest.$ac_objext \
9628       conftest$ac_exeext
9629   if test "${ac_cv_search_opendir+set}" = set; then
9630   break
9631 fi
9632 done
9633 if test "${ac_cv_search_opendir+set}" = set; then
9634   :
9635 else
9636   ac_cv_search_opendir=no
9637 fi
9638 rm conftest.$ac_ext
9639 LIBS=$ac_func_search_save_LIBS
9640 fi
9641 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9642 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9643 ac_res=$ac_cv_search_opendir
9644 if test "$ac_res" != no; then
9645   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9646
9647 fi
9648
9649 fi
9650
9651
9652 for ac_header in dlfcn.h
9653 do
9654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9656   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9659   echo $ECHO_N "(cached) $ECHO_C" >&6
9660 fi
9661 ac_res=`eval echo '${'$as_ac_Header'}'`
9662                { echo "$as_me:$LINENO: result: $ac_res" >&5
9663 echo "${ECHO_T}$ac_res" >&6; }
9664 else
9665   # Is the header compilable?
9666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h.  */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h.  */
9674 $ac_includes_default
9675 #include <$ac_header>
9676 _ACEOF
9677 rm -f conftest.$ac_objext
9678 if { (ac_try="$ac_compile"
9679 case "(($ac_try" in
9680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681   *) ac_try_echo=$ac_try;;
9682 esac
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684   (eval "$ac_compile") 2>conftest.er1
9685   ac_status=$?
9686   grep -v '^ *+' conftest.er1 >conftest.err
9687   rm -f conftest.er1
9688   cat conftest.err >&5
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } &&
9691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9692   { (case "(($ac_try" in
9693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694   *) ac_try_echo=$ac_try;;
9695 esac
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697   (eval "$ac_try") 2>&5
9698   ac_status=$?
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); }; } &&
9701          { ac_try='test -s conftest.$ac_objext'
9702   { (case "(($ac_try" in
9703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704   *) ac_try_echo=$ac_try;;
9705 esac
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707   (eval "$ac_try") 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; }; then
9711   ac_header_compiler=yes
9712 else
9713   echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9715
9716         ac_header_compiler=no
9717 fi
9718
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721 echo "${ECHO_T}$ac_header_compiler" >&6; }
9722
9723 # Is the header present?
9724 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9726 cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 #include <$ac_header>
9733 _ACEOF
9734 if { (ac_try="$ac_cpp conftest.$ac_ext"
9735 case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9741   ac_status=$?
9742   grep -v '^ *+' conftest.er1 >conftest.err
9743   rm -f conftest.er1
9744   cat conftest.err >&5
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } >/dev/null; then
9747   if test -s conftest.err; then
9748     ac_cpp_err=$ac_c_preproc_warn_flag
9749     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9750   else
9751     ac_cpp_err=
9752   fi
9753 else
9754   ac_cpp_err=yes
9755 fi
9756 if test -z "$ac_cpp_err"; then
9757   ac_header_preproc=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762   ac_header_preproc=no
9763 fi
9764
9765 rm -f conftest.err conftest.$ac_ext
9766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9767 echo "${ECHO_T}$ac_header_preproc" >&6; }
9768
9769 # So?  What about this header?
9770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9771   yes:no: )
9772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9776     ac_header_preproc=yes
9777     ;;
9778   no:yes:* )
9779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9791     ( cat <<\_ASBOX
9792 ## ----------------------------------- ##
9793 ## Report this to llvmbugs@cs.uiuc.edu ##
9794 ## ----------------------------------- ##
9795 _ASBOX
9796      ) | sed "s/^/$as_me: WARNING:     /" >&2
9797     ;;
9798 esac
9799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9802   echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804   eval "$as_ac_Header=\$ac_header_preproc"
9805 fi
9806 ac_res=`eval echo '${'$as_ac_Header'}'`
9807                { echo "$as_me:$LINENO: result: $ac_res" >&5
9808 echo "${ECHO_T}$ac_res" >&6; }
9809
9810 fi
9811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9812   cat >>confdefs.h <<_ACEOF
9813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9814 _ACEOF
9815
9816 fi
9817
9818 done
9819
9820 # Check whether --enable-ltdl-install was given.
9821 if test "${enable_ltdl_install+set}" = set; then
9822   enableval=$enable_ltdl_install;
9823 fi
9824
9825
9826
9827
9828 if test x"${enable_ltdl_install-no}" != xno; then
9829   INSTALL_LTDL_TRUE=
9830   INSTALL_LTDL_FALSE='#'
9831 else
9832   INSTALL_LTDL_TRUE='#'
9833   INSTALL_LTDL_FALSE=
9834 fi
9835
9836
9837
9838 if test x"${enable_ltdl_convenience-no}" != xno; then
9839   CONVENIENCE_LTDL_TRUE=
9840   CONVENIENCE_LTDL_FALSE='#'
9841 else
9842   CONVENIENCE_LTDL_TRUE='#'
9843   CONVENIENCE_LTDL_FALSE=
9844 fi
9845
9846
9847 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9849 library_names_spec=
9850 libname_spec='lib$name'
9851 soname_spec=
9852 shrext_cmds=".so"
9853 postinstall_cmds=
9854 postuninstall_cmds=
9855 finish_cmds=
9856 finish_eval=
9857 shlibpath_var=
9858 shlibpath_overrides_runpath=unknown
9859 version_type=none
9860 dynamic_linker="$host_os ld.so"
9861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9862 if test "$GCC" = yes; then
9863   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9864   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9865     # if the path contains ";" then we assume it to be the separator
9866     # otherwise default to the standard path separator (i.e. ":") - it is
9867     # assumed that no part of a normal pathname contains ";" but that should
9868     # okay in the real world where ";" in dirpaths is itself problematic.
9869     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9870   else
9871     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9872   fi
9873 else
9874   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9875 fi
9876 need_lib_prefix=unknown
9877 hardcode_into_libs=no
9878
9879 # when you set need_version to no, make sure it does not cause -set_version
9880 # flags to be left without arguments
9881 need_version=unknown
9882
9883 case $host_os in
9884 aix3*)
9885   version_type=linux
9886   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9887   shlibpath_var=LIBPATH
9888
9889   # AIX 3 has no versioning support, so we append a major version to the name.
9890   soname_spec='${libname}${release}${shared_ext}$major'
9891   ;;
9892
9893 aix4* | aix5*)
9894   version_type=linux
9895   need_lib_prefix=no
9896   need_version=no
9897   hardcode_into_libs=yes
9898   if test "$host_cpu" = ia64; then
9899     # AIX 5 supports IA64
9900     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9901     shlibpath_var=LD_LIBRARY_PATH
9902   else
9903     # With GCC up to 2.95.x, collect2 would create an import file
9904     # for dependence libraries.  The import file would start with
9905     # the line `#! .'.  This would cause the generated library to
9906     # depend on `.', always an invalid library.  This was fixed in
9907     # development snapshots of GCC prior to 3.0.
9908     case $host_os in
9909       aix4 | aix4.[01] | aix4.[01].*)
9910       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9911            echo ' yes '
9912            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9913         :
9914       else
9915         can_build_shared=no
9916       fi
9917       ;;
9918     esac
9919     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9920     # soname into executable. Probably we can add versioning support to
9921     # collect2, so additional links can be useful in future.
9922     if test "$aix_use_runtimelinking" = yes; then
9923       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9924       # instead of lib<name>.a to let people know that these are not
9925       # typical AIX shared libraries.
9926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927     else
9928       # We preserve .a as extension for shared libraries through AIX4.2
9929       # and later when we are not doing run time linking.
9930       library_names_spec='${libname}${release}.a $libname.a'
9931       soname_spec='${libname}${release}${shared_ext}$major'
9932     fi
9933     shlibpath_var=LIBPATH
9934   fi
9935   ;;
9936
9937 amigaos*)
9938   library_names_spec='$libname.ixlibrary $libname.a'
9939   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9940   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'
9941   ;;
9942
9943 beos*)
9944   library_names_spec='${libname}${shared_ext}'
9945   dynamic_linker="$host_os ld.so"
9946   shlibpath_var=LIBRARY_PATH
9947   ;;
9948
9949 bsdi[45]*)
9950   version_type=linux
9951   need_version=no
9952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953   soname_spec='${libname}${release}${shared_ext}$major'
9954   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9955   shlibpath_var=LD_LIBRARY_PATH
9956   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9957   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9958   # the default ld.so.conf also contains /usr/contrib/lib and
9959   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9960   # libtool to hard-code these into programs
9961   ;;
9962
9963 cygwin* | mingw* | pw32*)
9964   version_type=windows
9965   shrext_cmds=".dll"
9966   need_version=no
9967   need_lib_prefix=no
9968
9969   case $GCC,$host_os in
9970   yes,cygwin* | yes,mingw* | yes,pw32*)
9971     library_names_spec='$libname.dll.a'
9972     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9973     postinstall_cmds='base_file=`basename \${file}`~
9974       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9975       dldir=$destdir/`dirname \$dlpath`~
9976       test -d \$dldir || mkdir -p \$dldir~
9977       $install_prog $dir/$dlname \$dldir/$dlname~
9978       chmod a+x \$dldir/$dlname'
9979     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9980       dlpath=$dir/\$dldll~
9981        $rm \$dlpath'
9982     shlibpath_overrides_runpath=yes
9983
9984     case $host_os in
9985     cygwin*)
9986       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9987       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9988       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9989       ;;
9990     mingw*)
9991       # MinGW DLLs use traditional 'lib' prefix
9992       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9994       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9995         # It is most probably a Windows format PATH printed by
9996         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9997         # path with ; separators, and with drive letters. We can handle the
9998         # drive letters (cygwin fileutils understands them), so leave them,
9999         # especially as we might pass files found there to a mingw objdump,
10000         # which wouldn't understand a cygwinified path. Ahh.
10001         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10002       else
10003         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10004       fi
10005       ;;
10006     pw32*)
10007       # pw32 DLLs use 'pw' prefix rather than 'lib'
10008       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009       ;;
10010     esac
10011     ;;
10012
10013   *)
10014     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10015     ;;
10016   esac
10017   dynamic_linker='Win32 ld.exe'
10018   # FIXME: first we should search . and the directory the executable is in
10019   shlibpath_var=PATH
10020   ;;
10021
10022 darwin* | rhapsody*)
10023   dynamic_linker="$host_os dyld"
10024   version_type=darwin
10025   need_lib_prefix=no
10026   need_version=no
10027   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10028   soname_spec='${libname}${release}${major}$shared_ext'
10029   shlibpath_overrides_runpath=yes
10030   shlibpath_var=DYLD_LIBRARY_PATH
10031   shrext_cmds='.dylib'
10032   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10033   if test "$GCC" = yes; then
10034     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"`
10035   else
10036     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10037   fi
10038   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10039   ;;
10040
10041 dgux*)
10042   version_type=linux
10043   need_lib_prefix=no
10044   need_version=no
10045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10046   soname_spec='${libname}${release}${shared_ext}$major'
10047   shlibpath_var=LD_LIBRARY_PATH
10048   ;;
10049
10050 freebsd1*)
10051   dynamic_linker=no
10052   ;;
10053
10054 kfreebsd*-gnu)
10055   version_type=linux
10056   need_lib_prefix=no
10057   need_version=no
10058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10059   soname_spec='${libname}${release}${shared_ext}$major'
10060   shlibpath_var=LD_LIBRARY_PATH
10061   shlibpath_overrides_runpath=no
10062   hardcode_into_libs=yes
10063   dynamic_linker='GNU ld.so'
10064   ;;
10065
10066 freebsd* | dragonfly*)
10067   # DragonFly does not have aout.  When/if they implement a new
10068   # versioning mechanism, adjust this.
10069   if test -x /usr/bin/objformat; then
10070     objformat=`/usr/bin/objformat`
10071   else
10072     case $host_os in
10073     freebsd[123]*) objformat=aout ;;
10074     *) objformat=elf ;;
10075     esac
10076   fi
10077   version_type=freebsd-$objformat
10078   case $version_type in
10079     freebsd-elf*)
10080       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10081       need_version=no
10082       need_lib_prefix=no
10083       ;;
10084     freebsd-*)
10085       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10086       need_version=yes
10087       ;;
10088   esac
10089   shlibpath_var=LD_LIBRARY_PATH
10090   case $host_os in
10091   freebsd2*)
10092     shlibpath_overrides_runpath=yes
10093     ;;
10094   freebsd3.[01]* | freebsdelf3.[01]*)
10095     shlibpath_overrides_runpath=yes
10096     hardcode_into_libs=yes
10097     ;;
10098   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10099   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10100     shlibpath_overrides_runpath=no
10101     hardcode_into_libs=yes
10102     ;;
10103   freebsd*) # from 4.6 on
10104     shlibpath_overrides_runpath=yes
10105     hardcode_into_libs=yes
10106     ;;
10107   esac
10108   ;;
10109
10110 gnu*)
10111   version_type=linux
10112   need_lib_prefix=no
10113   need_version=no
10114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10115   soname_spec='${libname}${release}${shared_ext}$major'
10116   shlibpath_var=LD_LIBRARY_PATH
10117   hardcode_into_libs=yes
10118   ;;
10119
10120 hpux9* | hpux10* | hpux11*)
10121   # Give a soname corresponding to the major version so that dld.sl refuses to
10122   # link against other versions.
10123   version_type=sunos
10124   need_lib_prefix=no
10125   need_version=no
10126   case $host_cpu in
10127   ia64*)
10128     shrext_cmds='.so'
10129     hardcode_into_libs=yes
10130     dynamic_linker="$host_os dld.so"
10131     shlibpath_var=LD_LIBRARY_PATH
10132     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134     soname_spec='${libname}${release}${shared_ext}$major'
10135     if test "X$HPUX_IA64_MODE" = X32; then
10136       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10137     else
10138       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10139     fi
10140     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10141     ;;
10142    hppa*64*)
10143      shrext_cmds='.sl'
10144      hardcode_into_libs=yes
10145      dynamic_linker="$host_os dld.sl"
10146      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10147      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10148      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149      soname_spec='${libname}${release}${shared_ext}$major'
10150      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10151      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10152      ;;
10153    *)
10154     shrext_cmds='.sl'
10155     dynamic_linker="$host_os dld.sl"
10156     shlibpath_var=SHLIB_PATH
10157     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159     soname_spec='${libname}${release}${shared_ext}$major'
10160     ;;
10161   esac
10162   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10163   postinstall_cmds='chmod 555 $lib'
10164   ;;
10165
10166 interix3*)
10167   version_type=linux
10168   need_lib_prefix=no
10169   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10173   shlibpath_var=LD_LIBRARY_PATH
10174   shlibpath_overrides_runpath=no
10175   hardcode_into_libs=yes
10176   ;;
10177
10178 irix5* | irix6* | nonstopux*)
10179   case $host_os in
10180     nonstopux*) version_type=nonstopux ;;
10181     *)
10182         if test "$lt_cv_prog_gnu_ld" = yes; then
10183                 version_type=linux
10184         else
10185                 version_type=irix
10186         fi ;;
10187   esac
10188   need_lib_prefix=no
10189   need_version=no
10190   soname_spec='${libname}${release}${shared_ext}$major'
10191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10192   case $host_os in
10193   irix5* | nonstopux*)
10194     libsuff= shlibsuff=
10195     ;;
10196   *)
10197     case $LD in # libtool.m4 will add one of these switches to LD
10198     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10199       libsuff= shlibsuff= libmagic=32-bit;;
10200     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10201       libsuff=32 shlibsuff=N32 libmagic=N32;;
10202     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10203       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10204     *) libsuff= shlibsuff= libmagic=never-match;;
10205     esac
10206     ;;
10207   esac
10208   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10209   shlibpath_overrides_runpath=no
10210   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10211   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10212   hardcode_into_libs=yes
10213   ;;
10214
10215 # No shared lib support for Linux oldld, aout, or coff.
10216 linux*oldld* | linux*aout* | linux*coff*)
10217   dynamic_linker=no
10218   ;;
10219
10220 # This must be Linux ELF.
10221 linux*)
10222   version_type=linux
10223   need_lib_prefix=no
10224   need_version=no
10225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226   soname_spec='${libname}${release}${shared_ext}$major'
10227   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10228   shlibpath_var=LD_LIBRARY_PATH
10229   shlibpath_overrides_runpath=no
10230   # This implies no fast_install, which is unacceptable.
10231   # Some rework will be needed to allow for fast_install
10232   # before this can be enabled.
10233   hardcode_into_libs=yes
10234
10235   # Append ld.so.conf contents to the search path
10236   if test -f /etc/ld.so.conf; then
10237     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' ' '`
10238     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10239   fi
10240
10241   # We used to test for /lib/ld.so.1 and disable shared libraries on
10242   # powerpc, because MkLinux only supported shared libraries with the
10243   # GNU dynamic linker.  Since this was broken with cross compilers,
10244   # most powerpc-linux boxes support dynamic linking these days and
10245   # people can always --disable-shared, the test was removed, and we
10246   # assume the GNU/Linux dynamic linker is in use.
10247   dynamic_linker='GNU/Linux ld.so'
10248   ;;
10249
10250 knetbsd*-gnu)
10251   version_type=linux
10252   need_lib_prefix=no
10253   need_version=no
10254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10255   soname_spec='${libname}${release}${shared_ext}$major'
10256   shlibpath_var=LD_LIBRARY_PATH
10257   shlibpath_overrides_runpath=no
10258   hardcode_into_libs=yes
10259   dynamic_linker='GNU ld.so'
10260   ;;
10261
10262 netbsd*)
10263   version_type=sunos
10264   need_lib_prefix=no
10265   need_version=no
10266   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10268     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10269     dynamic_linker='NetBSD (a.out) ld.so'
10270   else
10271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10272     soname_spec='${libname}${release}${shared_ext}$major'
10273     dynamic_linker='NetBSD ld.elf_so'
10274   fi
10275   shlibpath_var=LD_LIBRARY_PATH
10276   shlibpath_overrides_runpath=yes
10277   hardcode_into_libs=yes
10278   ;;
10279
10280 newsos6)
10281   version_type=linux
10282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283   shlibpath_var=LD_LIBRARY_PATH
10284   shlibpath_overrides_runpath=yes
10285   ;;
10286
10287 nto-qnx*)
10288   version_type=linux
10289   need_lib_prefix=no
10290   need_version=no
10291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292   soname_spec='${libname}${release}${shared_ext}$major'
10293   shlibpath_var=LD_LIBRARY_PATH
10294   shlibpath_overrides_runpath=yes
10295   ;;
10296
10297 openbsd*)
10298   version_type=sunos
10299   sys_lib_dlsearch_path_spec="/usr/lib"
10300   need_lib_prefix=no
10301   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10302   case $host_os in
10303     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10304     *)                         need_version=no  ;;
10305   esac
10306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10308   shlibpath_var=LD_LIBRARY_PATH
10309   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10310     case $host_os in
10311       openbsd2.[89] | openbsd2.[89].*)
10312         shlibpath_overrides_runpath=no
10313         ;;
10314       *)
10315         shlibpath_overrides_runpath=yes
10316         ;;
10317       esac
10318   else
10319     shlibpath_overrides_runpath=yes
10320   fi
10321   ;;
10322
10323 os2*)
10324   libname_spec='$name'
10325   shrext_cmds=".dll"
10326   need_lib_prefix=no
10327   library_names_spec='$libname${shared_ext} $libname.a'
10328   dynamic_linker='OS/2 ld.exe'
10329   shlibpath_var=LIBPATH
10330   ;;
10331
10332 osf3* | osf4* | osf5*)
10333   version_type=osf
10334   need_lib_prefix=no
10335   need_version=no
10336   soname_spec='${libname}${release}${shared_ext}$major'
10337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338   shlibpath_var=LD_LIBRARY_PATH
10339   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10340   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10341   ;;
10342
10343 solaris*)
10344   version_type=linux
10345   need_lib_prefix=no
10346   need_version=no
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348   soname_spec='${libname}${release}${shared_ext}$major'
10349   shlibpath_var=LD_LIBRARY_PATH
10350   shlibpath_overrides_runpath=yes
10351   hardcode_into_libs=yes
10352   # ldd complains unless libraries are executable
10353   postinstall_cmds='chmod +x $lib'
10354   ;;
10355
10356 sunos4*)
10357   version_type=sunos
10358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10359   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10360   shlibpath_var=LD_LIBRARY_PATH
10361   shlibpath_overrides_runpath=yes
10362   if test "$with_gnu_ld" = yes; then
10363     need_lib_prefix=no
10364   fi
10365   need_version=yes
10366   ;;
10367
10368 sysv4 | sysv4.3*)
10369   version_type=linux
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371   soname_spec='${libname}${release}${shared_ext}$major'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   case $host_vendor in
10374     sni)
10375       shlibpath_overrides_runpath=no
10376       need_lib_prefix=no
10377       export_dynamic_flag_spec='${wl}-Blargedynsym'
10378       runpath_var=LD_RUN_PATH
10379       ;;
10380     siemens)
10381       need_lib_prefix=no
10382       ;;
10383     motorola)
10384       need_lib_prefix=no
10385       need_version=no
10386       shlibpath_overrides_runpath=no
10387       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10388       ;;
10389   esac
10390   ;;
10391
10392 sysv4*MP*)
10393   if test -d /usr/nec ;then
10394     version_type=linux
10395     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10396     soname_spec='$libname${shared_ext}.$major'
10397     shlibpath_var=LD_LIBRARY_PATH
10398   fi
10399   ;;
10400
10401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10402   version_type=freebsd-elf
10403   need_lib_prefix=no
10404   need_version=no
10405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10406   soname_spec='${libname}${release}${shared_ext}$major'
10407   shlibpath_var=LD_LIBRARY_PATH
10408   hardcode_into_libs=yes
10409   if test "$with_gnu_ld" = yes; then
10410     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10411     shlibpath_overrides_runpath=no
10412   else
10413     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10414     shlibpath_overrides_runpath=yes
10415     case $host_os in
10416       sco3.2v5*)
10417         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10418         ;;
10419     esac
10420   fi
10421   sys_lib_dlsearch_path_spec='/usr/lib'
10422   ;;
10423
10424 uts4*)
10425   version_type=linux
10426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427   soname_spec='${libname}${release}${shared_ext}$major'
10428   shlibpath_var=LD_LIBRARY_PATH
10429   ;;
10430
10431 *)
10432   dynamic_linker=no
10433   ;;
10434 esac
10435 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10436 echo "${ECHO_T}$dynamic_linker" >&6; }
10437 test "$dynamic_linker" = no && can_build_shared=no
10438
10439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10440 if test "$GCC" = yes; then
10441   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10442 fi
10443
10444
10445 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10446 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10447 if test "${libltdl_cv_shlibext+set}" = set; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450
10451 module=yes
10452 eval libltdl_cv_shlibext=$shrext_cmds
10453
10454 fi
10455 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10456 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10457 if test -n "$libltdl_cv_shlibext"; then
10458
10459 cat >>confdefs.h <<_ACEOF
10460 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10461 _ACEOF
10462
10463 fi
10464
10465
10466 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10467 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10468 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471   libltdl_cv_shlibpath_var="$shlibpath_var"
10472 fi
10473 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10474 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10475 if test -n "$libltdl_cv_shlibpath_var"; then
10476
10477 cat >>confdefs.h <<_ACEOF
10478 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10479 _ACEOF
10480
10481 fi
10482
10483
10484 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10485 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10486 if test "${libltdl_cv_sys_search_path+set}" = set; then
10487   echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10490 fi
10491 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10492 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10493 if test -n "$libltdl_cv_sys_search_path"; then
10494   sys_search_path=
10495   for dir in $libltdl_cv_sys_search_path; do
10496     if test -z "$sys_search_path"; then
10497       sys_search_path="$dir"
10498     else
10499       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10500     fi
10501   done
10502
10503 cat >>confdefs.h <<_ACEOF
10504 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10505 _ACEOF
10506
10507 fi
10508
10509 { echo "$as_me:$LINENO: checking for objdir" >&5
10510 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10511 if test "${libltdl_cv_objdir+set}" = set; then
10512   echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514   libltdl_cv_objdir="$objdir"
10515   if test -n "$objdir"; then
10516     :
10517   else
10518     rm -f .libs 2>/dev/null
10519     mkdir .libs 2>/dev/null
10520     if test -d .libs; then
10521       libltdl_cv_objdir=.libs
10522     else
10523       # MS-DOS does not allow filenames that begin with a dot.
10524       libltdl_cv_objdir=_libs
10525     fi
10526   rmdir .libs 2>/dev/null
10527   fi
10528
10529 fi
10530 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10531 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10532
10533 cat >>confdefs.h <<_ACEOF
10534 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10535 _ACEOF
10536
10537
10538
10539
10540
10541
10542 # Check for command to grab the raw symbol name followed by C symbol from nm.
10543 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10544 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10545 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10546   echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548
10549 # These are sane defaults that work on at least a few old systems.
10550 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10551
10552 # Character class describing NM global symbol codes.
10553 symcode='[BCDEGRST]'
10554
10555 # Regexp to match symbols that can be accessed directly from C.
10556 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10557
10558 # Transform an extracted symbol line into a proper C declaration
10559 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10560
10561 # Transform an extracted symbol line into symbol name and symbol address
10562 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'"
10563
10564 # Define system-specific variables.
10565 case $host_os in
10566 aix*)
10567   symcode='[BCDT]'
10568   ;;
10569 cygwin* | mingw* | pw32*)
10570   symcode='[ABCDGISTW]'
10571   ;;
10572 hpux*) # Its linker distinguishes data from code symbols
10573   if test "$host_cpu" = ia64; then
10574     symcode='[ABCDEGRST]'
10575   fi
10576   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10577   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
10578   ;;
10579 linux*)
10580   if test "$host_cpu" = ia64; then
10581     symcode='[ABCDGIRSTW]'
10582     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10583     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'"
10584   fi
10585   ;;
10586 irix* | nonstopux*)
10587   symcode='[BCDEGRST]'
10588   ;;
10589 osf*)
10590   symcode='[BCDEGQRST]'
10591   ;;
10592 solaris*)
10593   symcode='[BDRT]'
10594   ;;
10595 sco3.2v5*)
10596   symcode='[DT]'
10597   ;;
10598 sysv4.2uw2*)
10599   symcode='[DT]'
10600   ;;
10601 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10602   symcode='[ABDT]'
10603   ;;
10604 sysv4)
10605   symcode='[DFNSTU]'
10606   ;;
10607 esac
10608
10609 # Handle CRLF in mingw tool chain
10610 opt_cr=
10611 case $build_os in
10612 mingw*)
10613   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10614   ;;
10615 esac
10616
10617 # If we're using GNU nm, then use its standard symbol codes.
10618 case `$NM -V 2>&1` in
10619 *GNU* | *'with BFD'*)
10620   symcode='[ABCDGIRSTW]' ;;
10621 esac
10622
10623 # Try without a prefix undercore, then with it.
10624 for ac_symprfx in "" "_"; do
10625
10626   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10627   symxfrm="\\1 $ac_symprfx\\2 \\2"
10628
10629   # Write the raw and C identifiers.
10630   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10631
10632   # Check to see that the pipe works correctly.
10633   pipe_works=no
10634
10635   rm -f conftest*
10636   cat > conftest.$ac_ext <<EOF
10637 #ifdef __cplusplus
10638 extern "C" {
10639 #endif
10640 char nm_test_var;
10641 void nm_test_func(){}
10642 #ifdef __cplusplus
10643 }
10644 #endif
10645 int main(){nm_test_var='a';nm_test_func();return(0);}
10646 EOF
10647
10648   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649   (eval $ac_compile) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; then
10653     # Now try to grab the symbols.
10654     nlist=conftest.nm
10655     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10656   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10657   ac_status=$?
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); } && test -s "$nlist"; then
10660       # Try sorting and uniquifying the output.
10661       if sort "$nlist" | uniq > "$nlist"T; then
10662         mv -f "$nlist"T "$nlist"
10663       else
10664         rm -f "$nlist"T
10665       fi
10666
10667       # Make sure that we snagged all the symbols we need.
10668       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10669         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10670           cat <<EOF > conftest.$ac_ext
10671 #ifdef __cplusplus
10672 extern "C" {
10673 #endif
10674
10675 EOF
10676           # Now generate the symbol file.
10677           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10678
10679           cat <<EOF >> conftest.$ac_ext
10680 #if defined (__STDC__) && __STDC__
10681 # define lt_ptr_t void *
10682 #else
10683 # define lt_ptr_t char *
10684 # define const
10685 #endif
10686
10687 /* The mapping between symbol names and symbols. */
10688 const struct {
10689   const char *name;
10690   lt_ptr_t address;
10691 }
10692 lt_preloaded_symbols[] =
10693 {
10694 EOF
10695           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10696           cat <<\EOF >> conftest.$ac_ext
10697   {0, (lt_ptr_t) 0}
10698 };
10699
10700 #ifdef __cplusplus
10701 }
10702 #endif
10703 EOF
10704           # Now try linking the two files.
10705           mv conftest.$ac_objext conftstm.$ac_objext
10706           lt_save_LIBS="$LIBS"
10707           lt_save_CFLAGS="$CFLAGS"
10708           LIBS="conftstm.$ac_objext"
10709           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10710           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10711   (eval $ac_link) 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10715             pipe_works=yes
10716           fi
10717           LIBS="$lt_save_LIBS"
10718           CFLAGS="$lt_save_CFLAGS"
10719         else
10720           echo "cannot find nm_test_func in $nlist" >&5
10721         fi
10722       else
10723         echo "cannot find nm_test_var in $nlist" >&5
10724       fi
10725     else
10726       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10727     fi
10728   else
10729     echo "$progname: failed program was:" >&5
10730     cat conftest.$ac_ext >&5
10731   fi
10732   rm -f conftest* conftst*
10733
10734   # Do not use the global_symbol_pipe unless it works.
10735   if test "$pipe_works" = yes; then
10736     break
10737   else
10738     lt_cv_sys_global_symbol_pipe=
10739   fi
10740 done
10741
10742 fi
10743
10744 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10745   lt_cv_sys_global_symbol_to_cdecl=
10746 fi
10747 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10748   { echo "$as_me:$LINENO: result: failed" >&5
10749 echo "${ECHO_T}failed" >&6; }
10750 else
10751   { echo "$as_me:$LINENO: result: ok" >&5
10752 echo "${ECHO_T}ok" >&6; }
10753 fi
10754
10755
10756 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10757 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10758 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10762     libltdl_cv_preloaded_symbols=yes
10763   else
10764     libltdl_cv_preloaded_symbols=no
10765   fi
10766
10767 fi
10768 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10769 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10770 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10771
10772 cat >>confdefs.h <<\_ACEOF
10773 #define HAVE_PRELOADED_SYMBOLS 1
10774 _ACEOF
10775
10776 fi
10777
10778 LIBADD_DL=
10779
10780 ac_ext=c
10781 ac_cpp='$CPP $CPPFLAGS'
10782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10785
10786
10787 { echo "$as_me:$LINENO: checking for shl_load" >&5
10788 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10789 if test "${ac_cv_func_shl_load+set}" = set; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10800 #define shl_load innocuous_shl_load
10801
10802 /* System header to define __stub macros and hopefully few prototypes,
10803     which can conflict with char shl_load (); below.
10804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805     <limits.h> exists even on freestanding compilers.  */
10806
10807 #ifdef __STDC__
10808 # include <limits.h>
10809 #else
10810 # include <assert.h>
10811 #endif
10812
10813 #undef shl_load
10814
10815 /* Override any GCC internal prototype to avoid an error.
10816    Use char because int might match the return type of a GCC
10817    builtin and then its argument prototype would still apply.  */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 char shl_load ();
10822 /* The GNU C library defines this for functions which it implements
10823     to always fail with ENOSYS.  Some functions are actually named
10824     something starting with __ and the normal name is an alias.  */
10825 #if defined __stub_shl_load || defined __stub___shl_load
10826 choke me
10827 #endif
10828
10829 int
10830 main ()
10831 {
10832 return shl_load ();
10833   ;
10834   return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (ac_try="$ac_link"
10839 case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_link") 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } &&
10851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852   { (case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_try") 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; } &&
10861          { ac_try='test -s conftest$ac_exeext'
10862   { (case "(($ac_try" in
10863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864   *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867   (eval "$ac_try") 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   ac_cv_func_shl_load=yes
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876         ac_cv_func_shl_load=no
10877 fi
10878
10879 rm -f core conftest.err conftest.$ac_objext \
10880       conftest$ac_exeext conftest.$ac_ext
10881 fi
10882 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10883 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10884 if test $ac_cv_func_shl_load = yes; then
10885
10886 cat >>confdefs.h <<\_ACEOF
10887 #define HAVE_SHL_LOAD 1
10888 _ACEOF
10889
10890 else
10891   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10892 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10893 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10894   echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896   ac_check_lib_save_LIBS=$LIBS
10897 LIBS="-ldld  $LIBS"
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904
10905 /* Override any GCC internal prototype to avoid an error.
10906    Use char because int might match the return type of a GCC
10907    builtin and then its argument prototype would still apply.  */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 char shl_load ();
10912 int
10913 main ()
10914 {
10915 return shl_load ();
10916   ;
10917   return 0;
10918 }
10919 _ACEOF
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924   *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927   (eval "$ac_link") 2>conftest.er1
10928   ac_status=$?
10929   grep -v '^ *+' conftest.er1 >conftest.err
10930   rm -f conftest.er1
10931   cat conftest.err >&5
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); } &&
10934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10935   { (case "(($ac_try" in
10936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937   *) ac_try_echo=$ac_try;;
10938 esac
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940   (eval "$ac_try") 2>&5
10941   ac_status=$?
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); }; } &&
10944          { ac_try='test -s conftest$ac_exeext'
10945   { (case "(($ac_try" in
10946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947   *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950   (eval "$ac_try") 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }; then
10954   ac_cv_lib_dld_shl_load=yes
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959         ac_cv_lib_dld_shl_load=no
10960 fi
10961
10962 rm -f core conftest.err conftest.$ac_objext \
10963       conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_lib_save_LIBS
10965 fi
10966 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10967 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10968 if test $ac_cv_lib_dld_shl_load = yes; then
10969
10970 cat >>confdefs.h <<\_ACEOF
10971 #define HAVE_SHL_LOAD 1
10972 _ACEOF
10973
10974         LIBADD_DL="$LIBADD_DL -ldld"
10975 else
10976   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10977 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981   ac_check_lib_save_LIBS=$LIBS
10982 LIBS="-ldl  $LIBS"
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h.  */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h.  */
10989
10990 /* Override any GCC internal prototype to avoid an error.
10991    Use char because int might match the return type of a GCC
10992    builtin and then its argument prototype would still apply.  */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char dlopen ();
10997 int
10998 main ()
10999 {
11000 return dlopen ();
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009   *) ac_try_echo=$ac_try;;
11010 esac
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012   (eval "$ac_link") 2>conftest.er1
11013   ac_status=$?
11014   grep -v '^ *+' conftest.er1 >conftest.err
11015   rm -f conftest.er1
11016   cat conftest.err >&5
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } &&
11019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020   { (case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_try") 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; } &&
11029          { ac_try='test -s conftest$ac_exeext'
11030   { (case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_try") 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }; }; then
11039   ac_cv_lib_dl_dlopen=yes
11040 else
11041   echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044         ac_cv_lib_dl_dlopen=no
11045 fi
11046
11047 rm -f core conftest.err conftest.$ac_objext \
11048       conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11050 fi
11051 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11052 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11053 if test $ac_cv_lib_dl_dlopen = yes; then
11054
11055 cat >>confdefs.h <<\_ACEOF
11056 #define HAVE_LIBDL 1
11057 _ACEOF
11058
11059                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11060 else
11061   cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067 #if HAVE_DLFCN_H
11068 #  include <dlfcn.h>
11069 #endif
11070
11071 int
11072 main ()
11073 {
11074 dlopen(0, 0);
11075   ;
11076   return 0;
11077 }
11078 _ACEOF
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (ac_try="$ac_link"
11081 case "(($ac_try" in
11082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083   *) ac_try_echo=$ac_try;;
11084 esac
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086   (eval "$ac_link") 2>conftest.er1
11087   ac_status=$?
11088   grep -v '^ *+' conftest.er1 >conftest.err
11089   rm -f conftest.er1
11090   cat conftest.err >&5
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); } &&
11093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11094   { (case "(($ac_try" in
11095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096   *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099   (eval "$ac_try") 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; } &&
11103          { ac_try='test -s conftest$ac_exeext'
11104   { (case "(($ac_try" in
11105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106   *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109   (eval "$ac_try") 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); }; }; then
11113
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_LIBDL 1
11116 _ACEOF
11117  libltdl_cv_func_dlopen="yes"
11118 else
11119   echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11121
11122         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11123 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11124 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   ac_check_lib_save_LIBS=$LIBS
11128 LIBS="-lsvld  $LIBS"
11129 cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135
11136 /* Override any GCC internal prototype to avoid an error.
11137    Use char because int might match the return type of a GCC
11138    builtin and then its argument prototype would still apply.  */
11139 #ifdef __cplusplus
11140 extern "C"
11141 #endif
11142 char dlopen ();
11143 int
11144 main ()
11145 {
11146 return dlopen ();
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (ac_try="$ac_link"
11153 case "(($ac_try" in
11154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155   *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158   (eval "$ac_link") 2>conftest.er1
11159   ac_status=$?
11160   grep -v '^ *+' conftest.er1 >conftest.err
11161   rm -f conftest.er1
11162   cat conftest.err >&5
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } &&
11165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11166   { (case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171   (eval "$ac_try") 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); }; } &&
11175          { ac_try='test -s conftest$ac_exeext'
11176   { (case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_try") 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }; then
11185   ac_cv_lib_svld_dlopen=yes
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190         ac_cv_lib_svld_dlopen=no
11191 fi
11192
11193 rm -f core conftest.err conftest.$ac_objext \
11194       conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11196 fi
11197 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11198 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11199 if test $ac_cv_lib_svld_dlopen = yes; then
11200
11201 cat >>confdefs.h <<\_ACEOF
11202 #define HAVE_LIBDL 1
11203 _ACEOF
11204
11205                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11206 else
11207   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11208 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11209 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11210   echo $ECHO_N "(cached) $ECHO_C" >&6
11211 else
11212   ac_check_lib_save_LIBS=$LIBS
11213 LIBS="-ldld  $LIBS"
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h.  */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h.  */
11220
11221 /* Override any GCC internal prototype to avoid an error.
11222    Use char because int might match the return type of a GCC
11223    builtin and then its argument prototype would still apply.  */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 char dld_link ();
11228 int
11229 main ()
11230 {
11231 return dld_link ();
11232   ;
11233   return 0;
11234 }
11235 _ACEOF
11236 rm -f conftest.$ac_objext conftest$ac_exeext
11237 if { (ac_try="$ac_link"
11238 case "(($ac_try" in
11239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240   *) ac_try_echo=$ac_try;;
11241 esac
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243   (eval "$ac_link") 2>conftest.er1
11244   ac_status=$?
11245   grep -v '^ *+' conftest.er1 >conftest.err
11246   rm -f conftest.er1
11247   cat conftest.err >&5
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); } &&
11250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11251   { (case "(($ac_try" in
11252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253   *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256   (eval "$ac_try") 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; } &&
11260          { ac_try='test -s conftest$ac_exeext'
11261   { (case "(($ac_try" in
11262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263   *) ac_try_echo=$ac_try;;
11264 esac
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266   (eval "$ac_try") 2>&5
11267   ac_status=$?
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); }; }; then
11270   ac_cv_lib_dld_dld_link=yes
11271 else
11272   echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11274
11275         ac_cv_lib_dld_dld_link=no
11276 fi
11277
11278 rm -f core conftest.err conftest.$ac_objext \
11279       conftest$ac_exeext conftest.$ac_ext
11280 LIBS=$ac_check_lib_save_LIBS
11281 fi
11282 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11283 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11284 if test $ac_cv_lib_dld_dld_link = yes; then
11285
11286 cat >>confdefs.h <<\_ACEOF
11287 #define HAVE_DLD 1
11288 _ACEOF
11289
11290                 LIBADD_DL="$LIBADD_DL -ldld"
11291 else
11292   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11293 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11294 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11295   echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297   cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h.  */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h.  */
11303 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11305 #define _dyld_func_lookup innocuous__dyld_func_lookup
11306
11307 /* System header to define __stub macros and hopefully few prototypes,
11308     which can conflict with char _dyld_func_lookup (); below.
11309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310     <limits.h> exists even on freestanding compilers.  */
11311
11312 #ifdef __STDC__
11313 # include <limits.h>
11314 #else
11315 # include <assert.h>
11316 #endif
11317
11318 #undef _dyld_func_lookup
11319
11320 /* Override any GCC internal prototype to avoid an error.
11321    Use char because int might match the return type of a GCC
11322    builtin and then its argument prototype would still apply.  */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 char _dyld_func_lookup ();
11327 /* The GNU C library defines this for functions which it implements
11328     to always fail with ENOSYS.  Some functions are actually named
11329     something starting with __ and the normal name is an alias.  */
11330 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11331 choke me
11332 #endif
11333
11334 int
11335 main ()
11336 {
11337 return _dyld_func_lookup ();
11338   ;
11339   return 0;
11340 }
11341 _ACEOF
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (ac_try="$ac_link"
11344 case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349   (eval "$ac_link") 2>conftest.er1
11350   ac_status=$?
11351   grep -v '^ *+' conftest.er1 >conftest.err
11352   rm -f conftest.er1
11353   cat conftest.err >&5
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } &&
11356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11357   { (case "(($ac_try" in
11358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359   *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362   (eval "$ac_try") 2>&5
11363   ac_status=$?
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); }; } &&
11366          { ac_try='test -s conftest$ac_exeext'
11367   { (case "(($ac_try" in
11368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369   *) ac_try_echo=$ac_try;;
11370 esac
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372   (eval "$ac_try") 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); }; }; then
11376   ac_cv_func__dyld_func_lookup=yes
11377 else
11378   echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11380
11381         ac_cv_func__dyld_func_lookup=no
11382 fi
11383
11384 rm -f core conftest.err conftest.$ac_objext \
11385       conftest$ac_exeext conftest.$ac_ext
11386 fi
11387 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11388 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11389 if test $ac_cv_func__dyld_func_lookup = yes; then
11390
11391 cat >>confdefs.h <<\_ACEOF
11392 #define HAVE_DYLD 1
11393 _ACEOF
11394
11395 fi
11396
11397
11398 fi
11399
11400
11401 fi
11402
11403
11404 fi
11405
11406 rm -f core conftest.err conftest.$ac_objext \
11407       conftest$ac_exeext conftest.$ac_ext
11408
11409 fi
11410
11411
11412 fi
11413
11414
11415 fi
11416
11417
11418 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11419 then
11420   lt_save_LIBS="$LIBS"
11421   LIBS="$LIBS $LIBADD_DL"
11422
11423 for ac_func in dlerror
11424 do
11425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11429   echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431   cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h.  */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h.  */
11437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11439 #define $ac_func innocuous_$ac_func
11440
11441 /* System header to define __stub macros and hopefully few prototypes,
11442     which can conflict with char $ac_func (); below.
11443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444     <limits.h> exists even on freestanding compilers.  */
11445
11446 #ifdef __STDC__
11447 # include <limits.h>
11448 #else
11449 # include <assert.h>
11450 #endif
11451
11452 #undef $ac_func
11453
11454 /* Override any GCC internal prototype to avoid an error.
11455    Use char because int might match the return type of a GCC
11456    builtin and then its argument prototype would still apply.  */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char $ac_func ();
11461 /* The GNU C library defines this for functions which it implements
11462     to always fail with ENOSYS.  Some functions are actually named
11463     something starting with __ and the normal name is an alias.  */
11464 #if defined __stub_$ac_func || defined __stub___$ac_func
11465 choke me
11466 #endif
11467
11468 int
11469 main ()
11470 {
11471 return $ac_func ();
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 rm -f conftest.$ac_objext conftest$ac_exeext
11477 if { (ac_try="$ac_link"
11478 case "(($ac_try" in
11479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480   *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483   (eval "$ac_link") 2>conftest.er1
11484   ac_status=$?
11485   grep -v '^ *+' conftest.er1 >conftest.err
11486   rm -f conftest.er1
11487   cat conftest.err >&5
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); } &&
11490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11491   { (case "(($ac_try" in
11492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493   *) ac_try_echo=$ac_try;;
11494 esac
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496   (eval "$ac_try") 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); }; } &&
11500          { ac_try='test -s conftest$ac_exeext'
11501   { (case "(($ac_try" in
11502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503   *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506   (eval "$ac_try") 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   eval "$as_ac_var=yes"
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515         eval "$as_ac_var=no"
11516 fi
11517
11518 rm -f core conftest.err conftest.$ac_objext \
11519       conftest$ac_exeext conftest.$ac_ext
11520 fi
11521 ac_res=`eval echo '${'$as_ac_var'}'`
11522                { echo "$as_me:$LINENO: result: $ac_res" >&5
11523 echo "${ECHO_T}$ac_res" >&6; }
11524 if test `eval echo '${'$as_ac_var'}'` = yes; then
11525   cat >>confdefs.h <<_ACEOF
11526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11527 _ACEOF
11528
11529 fi
11530 done
11531
11532   LIBS="$lt_save_LIBS"
11533 fi
11534 ac_ext=c
11535 ac_cpp='$CPP $CPPFLAGS'
11536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11539
11540
11541
11542 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11543 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11544 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11545   echo $ECHO_N "(cached) $ECHO_C" >&6
11546 else
11547   ac_cv_sys_symbol_underscore=no
11548   cat > conftest.$ac_ext <<EOF
11549 void nm_test_func(){}
11550 int main(){nm_test_func;return 0;}
11551 EOF
11552   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553   (eval $ac_compile) 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); }; then
11557     # Now try to grab the symbols.
11558     ac_nlist=conftest.nm
11559     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11560   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11561   ac_status=$?
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } && test -s "$ac_nlist"; then
11564       # See whether the symbols have a leading underscore.
11565       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11566         ac_cv_sys_symbol_underscore=yes
11567       else
11568         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11569           :
11570         else
11571           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11572         fi
11573       fi
11574     else
11575       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11576     fi
11577   else
11578     echo "configure: failed program was:" >&5
11579     cat conftest.c >&5
11580   fi
11581   rm -rf conftest*
11582
11583 fi
11584 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11585 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11586
11587
11588 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11589   if test x"$libltdl_cv_func_dlopen" = xyes ||
11590      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11591         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11592 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11593 if test "${libltdl_cv_need_uscore+set}" = set; then
11594   echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596   libltdl_cv_need_uscore=unknown
11597           save_LIBS="$LIBS"
11598           LIBS="$LIBS $LIBADD_DL"
11599           if test "$cross_compiling" = yes; then :
11600   libltdl_cv_need_uscore=cross
11601 else
11602   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11603   lt_status=$lt_dlunknown
11604   cat > conftest.$ac_ext <<EOF
11605 #line 11591 "configure"
11606 #include "confdefs.h"
11607
11608 #if HAVE_DLFCN_H
11609 #include <dlfcn.h>
11610 #endif
11611
11612 #include <stdio.h>
11613
11614 #ifdef RTLD_GLOBAL
11615 #  define LT_DLGLOBAL           RTLD_GLOBAL
11616 #else
11617 #  ifdef DL_GLOBAL
11618 #    define LT_DLGLOBAL         DL_GLOBAL
11619 #  else
11620 #    define LT_DLGLOBAL         0
11621 #  endif
11622 #endif
11623
11624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11625    find out it does not work in some platform. */
11626 #ifndef LT_DLLAZY_OR_NOW
11627 #  ifdef RTLD_LAZY
11628 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11629 #  else
11630 #    ifdef DL_LAZY
11631 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11632 #    else
11633 #      ifdef RTLD_NOW
11634 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11635 #      else
11636 #        ifdef DL_NOW
11637 #          define LT_DLLAZY_OR_NOW      DL_NOW
11638 #        else
11639 #          define LT_DLLAZY_OR_NOW      0
11640 #        endif
11641 #      endif
11642 #    endif
11643 #  endif
11644 #endif
11645
11646 #ifdef __cplusplus
11647 extern "C" void exit (int);
11648 #endif
11649
11650 void fnord() { int i=42;}
11651 int main ()
11652 {
11653   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11654   int status = $lt_dlunknown;
11655
11656   if (self)
11657     {
11658       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11659       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11660       /* dlclose (self); */
11661     }
11662   else
11663     puts (dlerror ());
11664
11665     exit (status);
11666 }
11667 EOF
11668   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669   (eval $ac_link) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11673     (./conftest; exit; ) >&5 2>/dev/null
11674     lt_status=$?
11675     case x$lt_status in
11676       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11677       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11678       x$lt_dlunknown|x*)  ;;
11679     esac
11680   else :
11681     # compilation failed
11682
11683   fi
11684 fi
11685 rm -fr conftest*
11686
11687           LIBS="$save_LIBS"
11688
11689 fi
11690 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11691 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11692   fi
11693 fi
11694
11695 if test x"$libltdl_cv_need_uscore" = xyes; then
11696
11697 cat >>confdefs.h <<\_ACEOF
11698 #define NEED_USCORE 1
11699 _ACEOF
11700
11701 fi
11702
11703
11704 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11705 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11706 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709   # PORTME does your system automatically load deplibs for dlopen?
11710   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11711   # For now, we just catch OSes we know something about -- in the
11712   # future, we'll try test this programmatically.
11713   libltdl_cv_sys_dlopen_deplibs=unknown
11714   case "$host_os" in
11715   aix3*|aix4.1.*|aix4.2.*)
11716     # Unknown whether this is true for these versions of AIX, but
11717     # we want this `case' here to explicitly catch those versions.
11718     libltdl_cv_sys_dlopen_deplibs=unknown
11719     ;;
11720   aix[45]*)
11721     libltdl_cv_sys_dlopen_deplibs=yes
11722     ;;
11723   darwin*)
11724     # Assuming the user has installed a libdl from somewhere, this is true
11725     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11726     libltdl_cv_sys_dlopen_deplibs=yes
11727     ;;
11728   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11729     # GNU and its variants, using gnu ld.so (Glibc)
11730     libltdl_cv_sys_dlopen_deplibs=yes
11731     ;;
11732   hpux10*|hpux11*)
11733     libltdl_cv_sys_dlopen_deplibs=yes
11734     ;;
11735   interix*)
11736     libltdl_cv_sys_dlopen_deplibs=yes
11737     ;;
11738   irix[12345]*|irix6.[01]*)
11739     # Catch all versions of IRIX before 6.2, and indicate that we don't
11740     # know how it worked for any of those versions.
11741     libltdl_cv_sys_dlopen_deplibs=unknown
11742     ;;
11743   irix*)
11744     # The case above catches anything before 6.2, and it's known that
11745     # at 6.2 and later dlopen does load deplibs.
11746     libltdl_cv_sys_dlopen_deplibs=yes
11747     ;;
11748   netbsd*)
11749     libltdl_cv_sys_dlopen_deplibs=yes
11750     ;;
11751   openbsd*)
11752     libltdl_cv_sys_dlopen_deplibs=yes
11753     ;;
11754   osf[1234]*)
11755     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11756     # it did *not* use an RPATH in a shared library to find objects the
11757     # library depends on, so we explicitly say `no'.
11758     libltdl_cv_sys_dlopen_deplibs=no
11759     ;;
11760   osf5.0|osf5.0a|osf5.1)
11761     # dlopen *does* load deplibs and with the right loader patch applied
11762     # it even uses RPATH in a shared library to search for shared objects
11763     # that the library depends on, but there's no easy way to know if that
11764     # patch is installed.  Since this is the case, all we can really
11765     # say is unknown -- it depends on the patch being installed.  If
11766     # it is, this changes to `yes'.  Without it, it would be `no'.
11767     libltdl_cv_sys_dlopen_deplibs=unknown
11768     ;;
11769   osf*)
11770     # the two cases above should catch all versions of osf <= 5.1.  Read
11771     # the comments above for what we know about them.
11772     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11773     # is used to find them so we can finally say `yes'.
11774     libltdl_cv_sys_dlopen_deplibs=yes
11775     ;;
11776   solaris*)
11777     libltdl_cv_sys_dlopen_deplibs=yes
11778     ;;
11779   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11780     libltdl_cv_sys_dlopen_deplibs=yes
11781     ;;
11782   esac
11783
11784 fi
11785 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11786 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11787 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11788
11789 cat >>confdefs.h <<\_ACEOF
11790 #define LTDL_DLOPEN_DEPLIBS 1
11791 _ACEOF
11792
11793 fi
11794
11795
11796 for ac_header in argz.h
11797 do
11798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 fi
11805 ac_res=`eval echo '${'$as_ac_Header'}'`
11806                { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11808 else
11809   # Is the header compilable?
11810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 $ac_includes_default
11819 #include <$ac_header>
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (ac_try="$ac_compile"
11823 case "(($ac_try" in
11824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825   *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828   (eval "$ac_compile") 2>conftest.er1
11829   ac_status=$?
11830   grep -v '^ *+' conftest.er1 >conftest.err
11831   rm -f conftest.er1
11832   cat conftest.err >&5
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } &&
11835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11836   { (case "(($ac_try" in
11837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838   *) ac_try_echo=$ac_try;;
11839 esac
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841   (eval "$ac_try") 2>&5
11842   ac_status=$?
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); }; } &&
11845          { ac_try='test -s conftest.$ac_objext'
11846   { (case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851   (eval "$ac_try") 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   ac_header_compiler=yes
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860         ac_header_compiler=no
11861 fi
11862
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865 echo "${ECHO_T}$ac_header_compiler" >&6; }
11866
11867 # Is the header present?
11868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 #include <$ac_header>
11877 _ACEOF
11878 if { (ac_try="$ac_cpp conftest.$ac_ext"
11879 case "(($ac_try" in
11880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881   *) ac_try_echo=$ac_try;;
11882 esac
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11885   ac_status=$?
11886   grep -v '^ *+' conftest.er1 >conftest.err
11887   rm -f conftest.er1
11888   cat conftest.err >&5
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } >/dev/null; then
11891   if test -s conftest.err; then
11892     ac_cpp_err=$ac_c_preproc_warn_flag
11893     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11894   else
11895     ac_cpp_err=
11896   fi
11897 else
11898   ac_cpp_err=yes
11899 fi
11900 if test -z "$ac_cpp_err"; then
11901   ac_header_preproc=yes
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906   ac_header_preproc=no
11907 fi
11908
11909 rm -f conftest.err conftest.$ac_ext
11910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11911 echo "${ECHO_T}$ac_header_preproc" >&6; }
11912
11913 # So?  What about this header?
11914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11915   yes:no: )
11916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11920     ac_header_preproc=yes
11921     ;;
11922   no:yes:* )
11923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11935     ( cat <<\_ASBOX
11936 ## ----------------------------------- ##
11937 ## Report this to llvmbugs@cs.uiuc.edu ##
11938 ## ----------------------------------- ##
11939 _ASBOX
11940      ) | sed "s/^/$as_me: WARNING:     /" >&2
11941     ;;
11942 esac
11943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948   eval "$as_ac_Header=\$ac_header_preproc"
11949 fi
11950 ac_res=`eval echo '${'$as_ac_Header'}'`
11951                { echo "$as_me:$LINENO: result: $ac_res" >&5
11952 echo "${ECHO_T}$ac_res" >&6; }
11953
11954 fi
11955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11956   cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11958 _ACEOF
11959
11960 fi
11961
11962 done
11963
11964
11965 { echo "$as_me:$LINENO: checking for error_t" >&5
11966 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11967 if test "${ac_cv_type_error_t+set}" = set; then
11968   echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970   cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h.  */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h.  */
11976 #if HAVE_ARGZ_H
11977 #  include <argz.h>
11978 #endif
11979
11980 typedef error_t ac__type_new_;
11981 int
11982 main ()
11983 {
11984 if ((ac__type_new_ *) 0)
11985   return 0;
11986 if (sizeof (ac__type_new_))
11987   return 0;
11988   ;
11989   return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext
11993 if { (ac_try="$ac_compile"
11994 case "(($ac_try" in
11995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996   *) ac_try_echo=$ac_try;;
11997 esac
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999   (eval "$ac_compile") 2>conftest.er1
12000   ac_status=$?
12001   grep -v '^ *+' conftest.er1 >conftest.err
12002   rm -f conftest.er1
12003   cat conftest.err >&5
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } &&
12006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12007   { (case "(($ac_try" in
12008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009   *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012   (eval "$ac_try") 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); }; } &&
12016          { ac_try='test -s conftest.$ac_objext'
12017   { (case "(($ac_try" in
12018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019   *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022   (eval "$ac_try") 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); }; }; then
12026   ac_cv_type_error_t=yes
12027 else
12028   echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12030
12031         ac_cv_type_error_t=no
12032 fi
12033
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035 fi
12036 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12037 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12038 if test $ac_cv_type_error_t = yes; then
12039
12040 cat >>confdefs.h <<_ACEOF
12041 #define HAVE_ERROR_T 1
12042 _ACEOF
12043
12044
12045 else
12046
12047 cat >>confdefs.h <<\_ACEOF
12048 #define error_t int
12049 _ACEOF
12050
12051 fi
12052
12053
12054
12055
12056
12057
12058
12059 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12060 do
12061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12065   echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067   cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h.  */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h.  */
12073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12075 #define $ac_func innocuous_$ac_func
12076
12077 /* System header to define __stub macros and hopefully few prototypes,
12078     which can conflict with char $ac_func (); below.
12079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12080     <limits.h> exists even on freestanding compilers.  */
12081
12082 #ifdef __STDC__
12083 # include <limits.h>
12084 #else
12085 # include <assert.h>
12086 #endif
12087
12088 #undef $ac_func
12089
12090 /* Override any GCC internal prototype to avoid an error.
12091    Use char because int might match the return type of a GCC
12092    builtin and then its argument prototype would still apply.  */
12093 #ifdef __cplusplus
12094 extern "C"
12095 #endif
12096 char $ac_func ();
12097 /* The GNU C library defines this for functions which it implements
12098     to always fail with ENOSYS.  Some functions are actually named
12099     something starting with __ and the normal name is an alias.  */
12100 #if defined __stub_$ac_func || defined __stub___$ac_func
12101 choke me
12102 #endif
12103
12104 int
12105 main ()
12106 {
12107 return $ac_func ();
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (ac_try="$ac_link"
12114 case "(($ac_try" in
12115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116   *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119   (eval "$ac_link") 2>conftest.er1
12120   ac_status=$?
12121   grep -v '^ *+' conftest.er1 >conftest.err
12122   rm -f conftest.er1
12123   cat conftest.err >&5
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); } &&
12126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127   { (case "(($ac_try" in
12128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129   *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132   (eval "$ac_try") 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); }; } &&
12136          { ac_try='test -s conftest$ac_exeext'
12137   { (case "(($ac_try" in
12138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139   *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142   (eval "$ac_try") 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); }; }; then
12146   eval "$as_ac_var=yes"
12147 else
12148   echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12150
12151         eval "$as_ac_var=no"
12152 fi
12153
12154 rm -f core conftest.err conftest.$ac_objext \
12155       conftest$ac_exeext conftest.$ac_ext
12156 fi
12157 ac_res=`eval echo '${'$as_ac_var'}'`
12158                { echo "$as_me:$LINENO: result: $ac_res" >&5
12159 echo "${ECHO_T}$ac_res" >&6; }
12160 if test `eval echo '${'$as_ac_var'}'` = yes; then
12161   cat >>confdefs.h <<_ACEOF
12162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12163 _ACEOF
12164
12165 fi
12166 done
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12196                   stdio.h unistd.h
12197 do
12198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12200   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12203   echo $ECHO_N "(cached) $ECHO_C" >&6
12204 fi
12205 ac_res=`eval echo '${'$as_ac_Header'}'`
12206                { echo "$as_me:$LINENO: result: $ac_res" >&5
12207 echo "${ECHO_T}$ac_res" >&6; }
12208 else
12209   # Is the header compilable?
12210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12212 cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h.  */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h.  */
12218 $ac_includes_default
12219 #include <$ac_header>
12220 _ACEOF
12221 rm -f conftest.$ac_objext
12222 if { (ac_try="$ac_compile"
12223 case "(($ac_try" in
12224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225   *) ac_try_echo=$ac_try;;
12226 esac
12227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228   (eval "$ac_compile") 2>conftest.er1
12229   ac_status=$?
12230   grep -v '^ *+' conftest.er1 >conftest.err
12231   rm -f conftest.er1
12232   cat conftest.err >&5
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); } &&
12235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12236   { (case "(($ac_try" in
12237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238   *) ac_try_echo=$ac_try;;
12239 esac
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241   (eval "$ac_try") 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); }; } &&
12245          { ac_try='test -s conftest.$ac_objext'
12246   { (case "(($ac_try" in
12247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248   *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251   (eval "$ac_try") 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; }; then
12255   ac_header_compiler=yes
12256 else
12257   echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260         ac_header_compiler=no
12261 fi
12262
12263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12265 echo "${ECHO_T}$ac_header_compiler" >&6; }
12266
12267 # Is the header present?
12268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12270 cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276 #include <$ac_header>
12277 _ACEOF
12278 if { (ac_try="$ac_cpp conftest.$ac_ext"
12279 case "(($ac_try" in
12280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281   *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } >/dev/null; then
12291   if test -s conftest.err; then
12292     ac_cpp_err=$ac_c_preproc_warn_flag
12293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12294   else
12295     ac_cpp_err=
12296   fi
12297 else
12298   ac_cpp_err=yes
12299 fi
12300 if test -z "$ac_cpp_err"; then
12301   ac_header_preproc=yes
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12305
12306   ac_header_preproc=no
12307 fi
12308
12309 rm -f conftest.err conftest.$ac_ext
12310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12311 echo "${ECHO_T}$ac_header_preproc" >&6; }
12312
12313 # So?  What about this header?
12314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12315   yes:no: )
12316     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12320     ac_header_preproc=yes
12321     ;;
12322   no:yes:* )
12323     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12325     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12326 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12327     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12329     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12330 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12333     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12335     ( cat <<\_ASBOX
12336 ## ----------------------------------- ##
12337 ## Report this to llvmbugs@cs.uiuc.edu ##
12338 ## ----------------------------------- ##
12339 _ASBOX
12340      ) | sed "s/^/$as_me: WARNING:     /" >&2
12341     ;;
12342 esac
12343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348   eval "$as_ac_Header=\$ac_header_preproc"
12349 fi
12350 ac_res=`eval echo '${'$as_ac_Header'}'`
12351                { echo "$as_me:$LINENO: result: $ac_res" >&5
12352 echo "${ECHO_T}$ac_res" >&6; }
12353
12354 fi
12355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12356   cat >>confdefs.h <<_ACEOF
12357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12358 _ACEOF
12359
12360 fi
12361
12362 done
12363
12364
12365
12366
12367
12368 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12369 do
12370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12372   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 fi
12377 ac_res=`eval echo '${'$as_ac_Header'}'`
12378                { echo "$as_me:$LINENO: result: $ac_res" >&5
12379 echo "${ECHO_T}$ac_res" >&6; }
12380 else
12381   # Is the header compilable?
12382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h.  */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h.  */
12390 $ac_includes_default
12391 #include <$ac_header>
12392 _ACEOF
12393 rm -f conftest.$ac_objext
12394 if { (ac_try="$ac_compile"
12395 case "(($ac_try" in
12396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397   *) ac_try_echo=$ac_try;;
12398 esac
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400   (eval "$ac_compile") 2>conftest.er1
12401   ac_status=$?
12402   grep -v '^ *+' conftest.er1 >conftest.err
12403   rm -f conftest.er1
12404   cat conftest.err >&5
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); } &&
12407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12408   { (case "(($ac_try" in
12409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410   *) ac_try_echo=$ac_try;;
12411 esac
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413   (eval "$ac_try") 2>&5
12414   ac_status=$?
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); }; } &&
12417          { ac_try='test -s conftest.$ac_objext'
12418   { (case "(($ac_try" in
12419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420   *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423   (eval "$ac_try") 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; }; then
12427   ac_header_compiler=yes
12428 else
12429   echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12431
12432         ac_header_compiler=no
12433 fi
12434
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12437 echo "${ECHO_T}$ac_header_compiler" >&6; }
12438
12439 # Is the header present?
12440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12442 cat >conftest.$ac_ext <<_ACEOF
12443 /* confdefs.h.  */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h.  */
12448 #include <$ac_header>
12449 _ACEOF
12450 if { (ac_try="$ac_cpp conftest.$ac_ext"
12451 case "(($ac_try" in
12452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453   *) ac_try_echo=$ac_try;;
12454 esac
12455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } >/dev/null; then
12463   if test -s conftest.err; then
12464     ac_cpp_err=$ac_c_preproc_warn_flag
12465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12466   else
12467     ac_cpp_err=
12468   fi
12469 else
12470   ac_cpp_err=yes
12471 fi
12472 if test -z "$ac_cpp_err"; then
12473   ac_header_preproc=yes
12474 else
12475   echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12477
12478   ac_header_preproc=no
12479 fi
12480
12481 rm -f conftest.err conftest.$ac_ext
12482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12483 echo "${ECHO_T}$ac_header_preproc" >&6; }
12484
12485 # So?  What about this header?
12486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12487   yes:no: )
12488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12492     ac_header_preproc=yes
12493     ;;
12494   no:yes:* )
12495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12507     ( cat <<\_ASBOX
12508 ## ----------------------------------- ##
12509 ## Report this to llvmbugs@cs.uiuc.edu ##
12510 ## ----------------------------------- ##
12511 _ASBOX
12512      ) | sed "s/^/$as_me: WARNING:     /" >&2
12513     ;;
12514 esac
12515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12518   echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520   eval "$as_ac_Header=\$ac_header_preproc"
12521 fi
12522 ac_res=`eval echo '${'$as_ac_Header'}'`
12523                { echo "$as_me:$LINENO: result: $ac_res" >&5
12524 echo "${ECHO_T}$ac_res" >&6; }
12525
12526 fi
12527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12528   cat >>confdefs.h <<_ACEOF
12529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12530 _ACEOF
12531
12532 fi
12533
12534 done
12535
12536
12537
12538 for ac_header in string.h strings.h
12539 do
12540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12542   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12545   echo $ECHO_N "(cached) $ECHO_C" >&6
12546 fi
12547 ac_res=`eval echo '${'$as_ac_Header'}'`
12548                { echo "$as_me:$LINENO: result: $ac_res" >&5
12549 echo "${ECHO_T}$ac_res" >&6; }
12550 else
12551   # Is the header compilable?
12552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12554 cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h.  */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h.  */
12560 $ac_includes_default
12561 #include <$ac_header>
12562 _ACEOF
12563 rm -f conftest.$ac_objext
12564 if { (ac_try="$ac_compile"
12565 case "(($ac_try" in
12566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567   *) ac_try_echo=$ac_try;;
12568 esac
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570   (eval "$ac_compile") 2>conftest.er1
12571   ac_status=$?
12572   grep -v '^ *+' conftest.er1 >conftest.err
12573   rm -f conftest.er1
12574   cat conftest.err >&5
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); } &&
12577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12578   { (case "(($ac_try" in
12579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580   *) ac_try_echo=$ac_try;;
12581 esac
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583   (eval "$ac_try") 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; } &&
12587          { ac_try='test -s conftest.$ac_objext'
12588   { (case "(($ac_try" in
12589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590   *) ac_try_echo=$ac_try;;
12591 esac
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593   (eval "$ac_try") 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); }; }; then
12597   ac_header_compiler=yes
12598 else
12599   echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12601
12602         ac_header_compiler=no
12603 fi
12604
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12607 echo "${ECHO_T}$ac_header_compiler" >&6; }
12608
12609 # Is the header present?
12610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h.  */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h.  */
12618 #include <$ac_header>
12619 _ACEOF
12620 if { (ac_try="$ac_cpp conftest.$ac_ext"
12621 case "(($ac_try" in
12622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623   *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12627   ac_status=$?
12628   grep -v '^ *+' conftest.er1 >conftest.err
12629   rm -f conftest.er1
12630   cat conftest.err >&5
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } >/dev/null; then
12633   if test -s conftest.err; then
12634     ac_cpp_err=$ac_c_preproc_warn_flag
12635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12636   else
12637     ac_cpp_err=
12638   fi
12639 else
12640   ac_cpp_err=yes
12641 fi
12642 if test -z "$ac_cpp_err"; then
12643   ac_header_preproc=yes
12644 else
12645   echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648   ac_header_preproc=no
12649 fi
12650
12651 rm -f conftest.err conftest.$ac_ext
12652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12653 echo "${ECHO_T}$ac_header_preproc" >&6; }
12654
12655 # So?  What about this header?
12656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12657   yes:no: )
12658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12662     ac_header_preproc=yes
12663     ;;
12664   no:yes:* )
12665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12677     ( cat <<\_ASBOX
12678 ## ----------------------------------- ##
12679 ## Report this to llvmbugs@cs.uiuc.edu ##
12680 ## ----------------------------------- ##
12681 _ASBOX
12682      ) | sed "s/^/$as_me: WARNING:     /" >&2
12683     ;;
12684 esac
12685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   eval "$as_ac_Header=\$ac_header_preproc"
12691 fi
12692 ac_res=`eval echo '${'$as_ac_Header'}'`
12693                { echo "$as_me:$LINENO: result: $ac_res" >&5
12694 echo "${ECHO_T}$ac_res" >&6; }
12695
12696 fi
12697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12698   cat >>confdefs.h <<_ACEOF
12699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12700 _ACEOF
12701  break
12702 fi
12703
12704 done
12705
12706
12707
12708
12709 for ac_func in strchr index
12710 do
12711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12715   echo $ECHO_N "(cached) $ECHO_C" >&6
12716 else
12717   cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h.  */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h.  */
12723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12725 #define $ac_func innocuous_$ac_func
12726
12727 /* System header to define __stub macros and hopefully few prototypes,
12728     which can conflict with char $ac_func (); below.
12729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12730     <limits.h> exists even on freestanding compilers.  */
12731
12732 #ifdef __STDC__
12733 # include <limits.h>
12734 #else
12735 # include <assert.h>
12736 #endif
12737
12738 #undef $ac_func
12739
12740 /* Override any GCC internal prototype to avoid an error.
12741    Use char because int might match the return type of a GCC
12742    builtin and then its argument prototype would still apply.  */
12743 #ifdef __cplusplus
12744 extern "C"
12745 #endif
12746 char $ac_func ();
12747 /* The GNU C library defines this for functions which it implements
12748     to always fail with ENOSYS.  Some functions are actually named
12749     something starting with __ and the normal name is an alias.  */
12750 #if defined __stub_$ac_func || defined __stub___$ac_func
12751 choke me
12752 #endif
12753
12754 int
12755 main ()
12756 {
12757 return $ac_func ();
12758   ;
12759   return 0;
12760 }
12761 _ACEOF
12762 rm -f conftest.$ac_objext conftest$ac_exeext
12763 if { (ac_try="$ac_link"
12764 case "(($ac_try" in
12765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766   *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769   (eval "$ac_link") 2>conftest.er1
12770   ac_status=$?
12771   grep -v '^ *+' conftest.er1 >conftest.err
12772   rm -f conftest.er1
12773   cat conftest.err >&5
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); } &&
12776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12777   { (case "(($ac_try" in
12778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779   *) ac_try_echo=$ac_try;;
12780 esac
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782   (eval "$ac_try") 2>&5
12783   ac_status=$?
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); }; } &&
12786          { ac_try='test -s conftest$ac_exeext'
12787   { (case "(($ac_try" in
12788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789   *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792   (eval "$ac_try") 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; }; then
12796   eval "$as_ac_var=yes"
12797 else
12798   echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12800
12801         eval "$as_ac_var=no"
12802 fi
12803
12804 rm -f core conftest.err conftest.$ac_objext \
12805       conftest$ac_exeext conftest.$ac_ext
12806 fi
12807 ac_res=`eval echo '${'$as_ac_var'}'`
12808                { echo "$as_me:$LINENO: result: $ac_res" >&5
12809 echo "${ECHO_T}$ac_res" >&6; }
12810 if test `eval echo '${'$as_ac_var'}'` = yes; then
12811   cat >>confdefs.h <<_ACEOF
12812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12813 _ACEOF
12814  break
12815 fi
12816 done
12817
12818
12819
12820 for ac_func in strrchr rindex
12821 do
12822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12826   echo $ECHO_N "(cached) $ECHO_C" >&6
12827 else
12828   cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h.  */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h.  */
12834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12836 #define $ac_func innocuous_$ac_func
12837
12838 /* System header to define __stub macros and hopefully few prototypes,
12839     which can conflict with char $ac_func (); below.
12840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12841     <limits.h> exists even on freestanding compilers.  */
12842
12843 #ifdef __STDC__
12844 # include <limits.h>
12845 #else
12846 # include <assert.h>
12847 #endif
12848
12849 #undef $ac_func
12850
12851 /* Override any GCC internal prototype to avoid an error.
12852    Use char because int might match the return type of a GCC
12853    builtin and then its argument prototype would still apply.  */
12854 #ifdef __cplusplus
12855 extern "C"
12856 #endif
12857 char $ac_func ();
12858 /* The GNU C library defines this for functions which it implements
12859     to always fail with ENOSYS.  Some functions are actually named
12860     something starting with __ and the normal name is an alias.  */
12861 #if defined __stub_$ac_func || defined __stub___$ac_func
12862 choke me
12863 #endif
12864
12865 int
12866 main ()
12867 {
12868 return $ac_func ();
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (ac_try="$ac_link"
12875 case "(($ac_try" in
12876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877   *) ac_try_echo=$ac_try;;
12878 esac
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880   (eval "$ac_link") 2>conftest.er1
12881   ac_status=$?
12882   grep -v '^ *+' conftest.er1 >conftest.err
12883   rm -f conftest.er1
12884   cat conftest.err >&5
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); } &&
12887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12888   { (case "(($ac_try" in
12889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890   *) ac_try_echo=$ac_try;;
12891 esac
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893   (eval "$ac_try") 2>&5
12894   ac_status=$?
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); }; } &&
12897          { ac_try='test -s conftest$ac_exeext'
12898   { (case "(($ac_try" in
12899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900   *) ac_try_echo=$ac_try;;
12901 esac
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903   (eval "$ac_try") 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); }; }; then
12907   eval "$as_ac_var=yes"
12908 else
12909   echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12911
12912         eval "$as_ac_var=no"
12913 fi
12914
12915 rm -f core conftest.err conftest.$ac_objext \
12916       conftest$ac_exeext conftest.$ac_ext
12917 fi
12918 ac_res=`eval echo '${'$as_ac_var'}'`
12919                { echo "$as_me:$LINENO: result: $ac_res" >&5
12920 echo "${ECHO_T}$ac_res" >&6; }
12921 if test `eval echo '${'$as_ac_var'}'` = yes; then
12922   cat >>confdefs.h <<_ACEOF
12923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12924 _ACEOF
12925  break
12926 fi
12927 done
12928
12929
12930
12931 for ac_func in memcpy bcopy
12932 do
12933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h.  */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h.  */
12945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12947 #define $ac_func innocuous_$ac_func
12948
12949 /* System header to define __stub macros and hopefully few prototypes,
12950     which can conflict with char $ac_func (); below.
12951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12952     <limits.h> exists even on freestanding compilers.  */
12953
12954 #ifdef __STDC__
12955 # include <limits.h>
12956 #else
12957 # include <assert.h>
12958 #endif
12959
12960 #undef $ac_func
12961
12962 /* Override any GCC internal prototype to avoid an error.
12963    Use char because int might match the return type of a GCC
12964    builtin and then its argument prototype would still apply.  */
12965 #ifdef __cplusplus
12966 extern "C"
12967 #endif
12968 char $ac_func ();
12969 /* The GNU C library defines this for functions which it implements
12970     to always fail with ENOSYS.  Some functions are actually named
12971     something starting with __ and the normal name is an alias.  */
12972 #if defined __stub_$ac_func || defined __stub___$ac_func
12973 choke me
12974 #endif
12975
12976 int
12977 main ()
12978 {
12979 return $ac_func ();
12980   ;
12981   return 0;
12982 }
12983 _ACEOF
12984 rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (ac_try="$ac_link"
12986 case "(($ac_try" in
12987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988   *) ac_try_echo=$ac_try;;
12989 esac
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991   (eval "$ac_link") 2>conftest.er1
12992   ac_status=$?
12993   grep -v '^ *+' conftest.er1 >conftest.err
12994   rm -f conftest.er1
12995   cat conftest.err >&5
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } &&
12998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12999   { (case "(($ac_try" in
13000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001   *) ac_try_echo=$ac_try;;
13002 esac
13003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004   (eval "$ac_try") 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; } &&
13008          { ac_try='test -s conftest$ac_exeext'
13009   { (case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014   (eval "$ac_try") 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); }; }; then
13018   eval "$as_ac_var=yes"
13019 else
13020   echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13022
13023         eval "$as_ac_var=no"
13024 fi
13025
13026 rm -f core conftest.err conftest.$ac_objext \
13027       conftest$ac_exeext conftest.$ac_ext
13028 fi
13029 ac_res=`eval echo '${'$as_ac_var'}'`
13030                { echo "$as_me:$LINENO: result: $ac_res" >&5
13031 echo "${ECHO_T}$ac_res" >&6; }
13032 if test `eval echo '${'$as_ac_var'}'` = yes; then
13033   cat >>confdefs.h <<_ACEOF
13034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13035 _ACEOF
13036  break
13037 fi
13038 done
13039
13040
13041
13042 for ac_func in memmove strcmp
13043 do
13044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13048   echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050   cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h.  */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h.  */
13056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13058 #define $ac_func innocuous_$ac_func
13059
13060 /* System header to define __stub macros and hopefully few prototypes,
13061     which can conflict with char $ac_func (); below.
13062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063     <limits.h> exists even on freestanding compilers.  */
13064
13065 #ifdef __STDC__
13066 # include <limits.h>
13067 #else
13068 # include <assert.h>
13069 #endif
13070
13071 #undef $ac_func
13072
13073 /* Override any GCC internal prototype to avoid an error.
13074    Use char because int might match the return type of a GCC
13075    builtin and then its argument prototype would still apply.  */
13076 #ifdef __cplusplus
13077 extern "C"
13078 #endif
13079 char $ac_func ();
13080 /* The GNU C library defines this for functions which it implements
13081     to always fail with ENOSYS.  Some functions are actually named
13082     something starting with __ and the normal name is an alias.  */
13083 #if defined __stub_$ac_func || defined __stub___$ac_func
13084 choke me
13085 #endif
13086
13087 int
13088 main ()
13089 {
13090 return $ac_func ();
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (ac_try="$ac_link"
13097 case "(($ac_try" in
13098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099   *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102   (eval "$ac_link") 2>conftest.er1
13103   ac_status=$?
13104   grep -v '^ *+' conftest.er1 >conftest.err
13105   rm -f conftest.er1
13106   cat conftest.err >&5
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); } &&
13109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13110   { (case "(($ac_try" in
13111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112   *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115   (eval "$ac_try") 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; } &&
13119          { ac_try='test -s conftest$ac_exeext'
13120   { (case "(($ac_try" in
13121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122   *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125   (eval "$ac_try") 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; }; then
13129   eval "$as_ac_var=yes"
13130 else
13131   echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13133
13134         eval "$as_ac_var=no"
13135 fi
13136
13137 rm -f core conftest.err conftest.$ac_objext \
13138       conftest$ac_exeext conftest.$ac_ext
13139 fi
13140 ac_res=`eval echo '${'$as_ac_var'}'`
13141                { echo "$as_me:$LINENO: result: $ac_res" >&5
13142 echo "${ECHO_T}$ac_res" >&6; }
13143 if test `eval echo '${'$as_ac_var'}'` = yes; then
13144   cat >>confdefs.h <<_ACEOF
13145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13146 _ACEOF
13147
13148 fi
13149 done
13150
13151
13152
13153
13154 for ac_func in closedir opendir readdir
13155 do
13156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162   cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13170 #define $ac_func innocuous_$ac_func
13171
13172 /* System header to define __stub macros and hopefully few prototypes,
13173     which can conflict with char $ac_func (); below.
13174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13175     <limits.h> exists even on freestanding compilers.  */
13176
13177 #ifdef __STDC__
13178 # include <limits.h>
13179 #else
13180 # include <assert.h>
13181 #endif
13182
13183 #undef $ac_func
13184
13185 /* Override any GCC internal prototype to avoid an error.
13186    Use char because int might match the return type of a GCC
13187    builtin and then its argument prototype would still apply.  */
13188 #ifdef __cplusplus
13189 extern "C"
13190 #endif
13191 char $ac_func ();
13192 /* The GNU C library defines this for functions which it implements
13193     to always fail with ENOSYS.  Some functions are actually named
13194     something starting with __ and the normal name is an alias.  */
13195 #if defined __stub_$ac_func || defined __stub___$ac_func
13196 choke me
13197 #endif
13198
13199 int
13200 main ()
13201 {
13202 return $ac_func ();
13203   ;
13204   return 0;
13205 }
13206 _ACEOF
13207 rm -f conftest.$ac_objext conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211   *) ac_try_echo=$ac_try;;
13212 esac
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214   (eval "$ac_link") 2>conftest.er1
13215   ac_status=$?
13216   grep -v '^ *+' conftest.er1 >conftest.err
13217   rm -f conftest.er1
13218   cat conftest.err >&5
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); } &&
13221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13222   { (case "(($ac_try" in
13223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224   *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227   (eval "$ac_try") 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; } &&
13231          { ac_try='test -s conftest$ac_exeext'
13232   { (case "(($ac_try" in
13233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234   *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237   (eval "$ac_try") 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; }; then
13241   eval "$as_ac_var=yes"
13242 else
13243   echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246         eval "$as_ac_var=no"
13247 fi
13248
13249 rm -f core conftest.err conftest.$ac_objext \
13250       conftest$ac_exeext conftest.$ac_ext
13251 fi
13252 ac_res=`eval echo '${'$as_ac_var'}'`
13253                { echo "$as_me:$LINENO: result: $ac_res" >&5
13254 echo "${ECHO_T}$ac_res" >&6; }
13255 if test `eval echo '${'$as_ac_var'}'` = yes; then
13256   cat >>confdefs.h <<_ACEOF
13257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13258 _ACEOF
13259
13260 fi
13261 done
13262
13263
13264
13265 if test "$WITH_LLVMGCCDIR" = "default" ; then
13266   LLVMGCC="llvm-gcc${EXEEXT}"
13267   LLVMGXX="llvm-g++${EXEEXT}"
13268   LLVMGCCCOMMAND="$LLVMGCC"
13269   LLVMGXXCOMMAND="$LLVMGXX"
13270   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13271
13272   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13273
13274   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13275 set dummy $LLVMGCC; ac_word=$2
13276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13278 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13279   echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281   case $LLVMGCC in
13282   [\\/]* | ?:[\\/]*)
13283   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13284   ;;
13285   *)
13286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13288 do
13289   IFS=$as_save_IFS
13290   test -z "$as_dir" && as_dir=.
13291   for ac_exec_ext in '' $ac_executable_extensions; do
13292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13293     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13295     break 2
13296   fi
13297 done
13298 done
13299 IFS=$as_save_IFS
13300
13301   ;;
13302 esac
13303 fi
13304 LLVMGCC=$ac_cv_path_LLVMGCC
13305 if test -n "$LLVMGCC"; then
13306   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13307 echo "${ECHO_T}$LLVMGCC" >&6; }
13308 else
13309   { echo "$as_me:$LINENO: result: no" >&5
13310 echo "${ECHO_T}no" >&6; }
13311 fi
13312
13313
13314   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13315 set dummy $LLVMGXX; ac_word=$2
13316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13318 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13319   echo $ECHO_N "(cached) $ECHO_C" >&6
13320 else
13321   case $LLVMGXX in
13322   [\\/]* | ?:[\\/]*)
13323   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13324   ;;
13325   *)
13326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13328 do
13329   IFS=$as_save_IFS
13330   test -z "$as_dir" && as_dir=.
13331   for ac_exec_ext in '' $ac_executable_extensions; do
13332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13333     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13335     break 2
13336   fi
13337 done
13338 done
13339 IFS=$as_save_IFS
13340
13341   ;;
13342 esac
13343 fi
13344 LLVMGXX=$ac_cv_path_LLVMGXX
13345 if test -n "$LLVMGXX"; then
13346   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13347 echo "${ECHO_T}$LLVMGXX" >&6; }
13348 else
13349   { echo "$as_me:$LINENO: result: no" >&5
13350 echo "${ECHO_T}no" >&6; }
13351 fi
13352
13353
13354 else
13355   if test -z "$LLVMGCC"; then
13356     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13357     LLVMGCCCOMMAND="$LLVMGCC"
13358   fi
13359   if test -z "$LLVMGXX"; then
13360     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13361     LLVMGXXCOMMAND="$LLVMGXX"
13362   fi
13363
13364   LLVMGCC=$LLVMGCC
13365
13366   LLVMGXX=$LLVMGXX
13367
13368   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13369
13370   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13371
13372 fi
13373
13374
13375 # Check whether --with-llvmcc was given.
13376 if test "${with_llvmcc+set}" = set; then
13377   withval=$with_llvmcc;
13378 else
13379   with_llvmcc=check
13380 fi
13381
13382 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13383 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13384 if test "$with_llvmcc" != "check"; then
13385    if (test "$with_llvmcc" != "llvm-gcc" &&
13386        test "$with_llvmcc" != "clang" &&
13387        test "$with_llvmcc" != "none"); then
13388       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13389 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13390    { (exit 1); exit 1; }; }
13391    fi
13392    WITH_LLVMCC="$with_llvmcc"
13393 elif test -n "$LLVMGCC"; then
13394    WITH_LLVMCC=llvm-gcc
13395 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13396    WITH_LLVMCC=clang
13397 else
13398    WITH_LLVMCC=none
13399 fi
13400 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13401 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13402 LLVMCC_OPTION=$WITH_LLVMCC
13403
13404
13405 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13406 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13407
13408 ICC=no
13409 IXX=no
13410 case $CC in
13411   icc*|icpc*)
13412     ICC=yes
13413     IXX=yes
13414     ;;
13415    *)
13416     ;;
13417 esac
13418
13419 if test "$GCC" != "yes" && test "$ICC" != "yes"
13420 then
13421   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13422 echo "$as_me: error: gcc|icc required but not found" >&2;}
13423    { (exit 1); exit 1; }; }
13424 fi
13425
13426 if test "$GXX" != "yes" && test "$IXX" != "yes"
13427 then
13428   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13429 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13430    { (exit 1); exit 1; }; }
13431 fi
13432
13433 if test "$GCC" = "yes"
13434 then
13435   cat >conftest.$ac_ext <<_ACEOF
13436 #if !defined(__GNUC__) || __GNUC__ < 3
13437 #error Unsupported GCC version
13438 #endif
13439
13440 _ACEOF
13441 rm -f conftest.$ac_objext
13442 if { (ac_try="$ac_compile"
13443 case "(($ac_try" in
13444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445   *) ac_try_echo=$ac_try;;
13446 esac
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448   (eval "$ac_compile") 2>conftest.er1
13449   ac_status=$?
13450   grep -v '^ *+' conftest.er1 >conftest.err
13451   rm -f conftest.er1
13452   cat conftest.err >&5
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13456   { (case "(($ac_try" in
13457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458   *) ac_try_echo=$ac_try;;
13459 esac
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461   (eval "$ac_try") 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); }; } &&
13465          { ac_try='test -s conftest.$ac_objext'
13466   { (case "(($ac_try" in
13467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468   *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471   (eval "$ac_try") 2>&5
13472   ac_status=$?
13473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); }; }; then
13475   :
13476 else
13477   echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13479
13480         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13481 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13482    { (exit 1); exit 1; }; }
13483 fi
13484
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 fi
13487
13488 if test -z "$llvm_cv_gnu_make_command"
13489 then
13490   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13491 echo "$as_me: error: GNU Make required but not found" >&2;}
13492    { (exit 1); exit 1; }; }
13493 fi
13494
13495 { echo "$as_me:$LINENO: result: ok" >&5
13496 echo "${ECHO_T}ok" >&6; }
13497
13498 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13499 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13500 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13501
13502 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13503
13504 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13505 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13506
13507
13508
13509 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13510 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13511 if test "${ac_cv_lib_m_sin+set}" = set; then
13512   echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514   ac_check_lib_save_LIBS=$LIBS
13515 LIBS="-lm  $LIBS"
13516 cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h.  */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h.  */
13522
13523 /* Override any GCC internal prototype to avoid an error.
13524    Use char because int might match the return type of a GCC
13525    builtin and then its argument prototype would still apply.  */
13526 #ifdef __cplusplus
13527 extern "C"
13528 #endif
13529 char sin ();
13530 int
13531 main ()
13532 {
13533 return sin ();
13534   ;
13535   return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (ac_try="$ac_link"
13540 case "(($ac_try" in
13541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542   *) ac_try_echo=$ac_try;;
13543 esac
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545   (eval "$ac_link") 2>conftest.er1
13546   ac_status=$?
13547   grep -v '^ *+' conftest.er1 >conftest.err
13548   rm -f conftest.er1
13549   cat conftest.err >&5
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); } &&
13552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13553   { (case "(($ac_try" in
13554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555   *) ac_try_echo=$ac_try;;
13556 esac
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558   (eval "$ac_try") 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; } &&
13562          { ac_try='test -s conftest$ac_exeext'
13563   { (case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568   (eval "$ac_try") 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); }; }; then
13572   ac_cv_lib_m_sin=yes
13573 else
13574   echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13576
13577         ac_cv_lib_m_sin=no
13578 fi
13579
13580 rm -f core conftest.err conftest.$ac_objext \
13581       conftest$ac_exeext conftest.$ac_ext
13582 LIBS=$ac_check_lib_save_LIBS
13583 fi
13584 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13585 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13586 if test $ac_cv_lib_m_sin = yes; then
13587   cat >>confdefs.h <<_ACEOF
13588 #define HAVE_LIBM 1
13589 _ACEOF
13590
13591   LIBS="-lm $LIBS"
13592
13593 fi
13594
13595 if test "$llvm_cv_os_type" = "MingW" ; then
13596
13597 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13598 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13599 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13600   echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602   ac_check_lib_save_LIBS=$LIBS
13603 LIBS="-limagehlp  $LIBS"
13604 cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h.  */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h.  */
13610
13611
13612 int
13613 main ()
13614 {
13615 return main ();
13616   ;
13617   return 0;
13618 }
13619 _ACEOF
13620 rm -f conftest.$ac_objext conftest$ac_exeext
13621 if { (ac_try="$ac_link"
13622 case "(($ac_try" in
13623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624   *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627   (eval "$ac_link") 2>conftest.er1
13628   ac_status=$?
13629   grep -v '^ *+' conftest.er1 >conftest.err
13630   rm -f conftest.er1
13631   cat conftest.err >&5
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); } &&
13634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635   { (case "(($ac_try" in
13636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637   *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640   (eval "$ac_try") 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); }; } &&
13644          { ac_try='test -s conftest$ac_exeext'
13645   { (case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_try") 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; }; then
13654   ac_cv_lib_imagehlp_main=yes
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659         ac_cv_lib_imagehlp_main=no
13660 fi
13661
13662 rm -f core conftest.err conftest.$ac_objext \
13663       conftest$ac_exeext conftest.$ac_ext
13664 LIBS=$ac_check_lib_save_LIBS
13665 fi
13666 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13667 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13668 if test $ac_cv_lib_imagehlp_main = yes; then
13669   cat >>confdefs.h <<_ACEOF
13670 #define HAVE_LIBIMAGEHLP 1
13671 _ACEOF
13672
13673   LIBS="-limagehlp $LIBS"
13674
13675 fi
13676
13677
13678 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13679 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13680 if test "${ac_cv_lib_psapi_main+set}" = set; then
13681   echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683   ac_check_lib_save_LIBS=$LIBS
13684 LIBS="-lpsapi  $LIBS"
13685 cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691
13692
13693 int
13694 main ()
13695 {
13696 return main ();
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 rm -f conftest.$ac_objext conftest$ac_exeext
13702 if { (ac_try="$ac_link"
13703 case "(($ac_try" in
13704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705   *) ac_try_echo=$ac_try;;
13706 esac
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708   (eval "$ac_link") 2>conftest.er1
13709   ac_status=$?
13710   grep -v '^ *+' conftest.er1 >conftest.err
13711   rm -f conftest.er1
13712   cat conftest.err >&5
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); } &&
13715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13716   { (case "(($ac_try" in
13717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718   *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721   (eval "$ac_try") 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; } &&
13725          { ac_try='test -s conftest$ac_exeext'
13726   { (case "(($ac_try" in
13727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728   *) ac_try_echo=$ac_try;;
13729 esac
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731   (eval "$ac_try") 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; }; then
13735   ac_cv_lib_psapi_main=yes
13736 else
13737   echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13739
13740         ac_cv_lib_psapi_main=no
13741 fi
13742
13743 rm -f core conftest.err conftest.$ac_objext \
13744       conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13746 fi
13747 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13748 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13749 if test $ac_cv_lib_psapi_main = yes; then
13750   cat >>confdefs.h <<_ACEOF
13751 #define HAVE_LIBPSAPI 1
13752 _ACEOF
13753
13754   LIBS="-lpsapi $LIBS"
13755
13756 fi
13757
13758 fi
13759
13760 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13761 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13762 if test "${ac_cv_search_dlopen+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   ac_func_search_save_LIBS=$LIBS
13766 cat >conftest.$ac_ext <<_ACEOF
13767 /* confdefs.h.  */
13768 _ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h.  */
13772
13773 /* Override any GCC internal prototype to avoid an error.
13774    Use char because int might match the return type of a GCC
13775    builtin and then its argument prototype would still apply.  */
13776 #ifdef __cplusplus
13777 extern "C"
13778 #endif
13779 char dlopen ();
13780 int
13781 main ()
13782 {
13783 return dlopen ();
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 for ac_lib in '' dl; do
13789   if test -z "$ac_lib"; then
13790     ac_res="none required"
13791   else
13792     ac_res=-l$ac_lib
13793     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13794   fi
13795   rm -f conftest.$ac_objext conftest$ac_exeext
13796 if { (ac_try="$ac_link"
13797 case "(($ac_try" in
13798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799   *) ac_try_echo=$ac_try;;
13800 esac
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802   (eval "$ac_link") 2>conftest.er1
13803   ac_status=$?
13804   grep -v '^ *+' conftest.er1 >conftest.err
13805   rm -f conftest.er1
13806   cat conftest.err >&5
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); } &&
13809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13810   { (case "(($ac_try" in
13811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812   *) ac_try_echo=$ac_try;;
13813 esac
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815   (eval "$ac_try") 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); }; } &&
13819          { ac_try='test -s conftest$ac_exeext'
13820   { (case "(($ac_try" in
13821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822   *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825   (eval "$ac_try") 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); }; }; then
13829   ac_cv_search_dlopen=$ac_res
13830 else
13831   echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13833
13834
13835 fi
13836
13837 rm -f core conftest.err conftest.$ac_objext \
13838       conftest$ac_exeext
13839   if test "${ac_cv_search_dlopen+set}" = set; then
13840   break
13841 fi
13842 done
13843 if test "${ac_cv_search_dlopen+set}" = set; then
13844   :
13845 else
13846   ac_cv_search_dlopen=no
13847 fi
13848 rm conftest.$ac_ext
13849 LIBS=$ac_func_search_save_LIBS
13850 fi
13851 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13852 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13853 ac_res=$ac_cv_search_dlopen
13854 if test "$ac_res" != no; then
13855   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13856
13857 cat >>confdefs.h <<\_ACEOF
13858 #define HAVE_DLOPEN 1
13859 _ACEOF
13860
13861 else
13862   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13863 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13864 fi
13865
13866
13867 if test "$llvm_cv_enable_libffi" = "yes" ; then
13868   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13869 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13870 if test "${ac_cv_search_ffi_call+set}" = set; then
13871   echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873   ac_func_search_save_LIBS=$LIBS
13874 cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h.  */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h.  */
13880
13881 /* Override any GCC internal prototype to avoid an error.
13882    Use char because int might match the return type of a GCC
13883    builtin and then its argument prototype would still apply.  */
13884 #ifdef __cplusplus
13885 extern "C"
13886 #endif
13887 char ffi_call ();
13888 int
13889 main ()
13890 {
13891 return ffi_call ();
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 for ac_lib in '' ffi; do
13897   if test -z "$ac_lib"; then
13898     ac_res="none required"
13899   else
13900     ac_res=-l$ac_lib
13901     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13902   fi
13903   rm -f conftest.$ac_objext conftest$ac_exeext
13904 if { (ac_try="$ac_link"
13905 case "(($ac_try" in
13906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907   *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910   (eval "$ac_link") 2>conftest.er1
13911   ac_status=$?
13912   grep -v '^ *+' conftest.er1 >conftest.err
13913   rm -f conftest.er1
13914   cat conftest.err >&5
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); } &&
13917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13918   { (case "(($ac_try" in
13919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920   *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923   (eval "$ac_try") 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); }; } &&
13927          { ac_try='test -s conftest$ac_exeext'
13928   { (case "(($ac_try" in
13929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930   *) ac_try_echo=$ac_try;;
13931 esac
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933   (eval "$ac_try") 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); }; }; then
13937   ac_cv_search_ffi_call=$ac_res
13938 else
13939   echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13941
13942
13943 fi
13944
13945 rm -f core conftest.err conftest.$ac_objext \
13946       conftest$ac_exeext
13947   if test "${ac_cv_search_ffi_call+set}" = set; then
13948   break
13949 fi
13950 done
13951 if test "${ac_cv_search_ffi_call+set}" = set; then
13952   :
13953 else
13954   ac_cv_search_ffi_call=no
13955 fi
13956 rm conftest.$ac_ext
13957 LIBS=$ac_func_search_save_LIBS
13958 fi
13959 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13960 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13961 ac_res=$ac_cv_search_ffi_call
13962 if test "$ac_res" != no; then
13963   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13964
13965 cat >>confdefs.h <<\_ACEOF
13966 #define HAVE_FFI_CALL 1
13967 _ACEOF
13968
13969 else
13970   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13971 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13972    { (exit 1); exit 1; }; }
13973 fi
13974
13975 fi
13976
13977 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13978 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13979 if test "${ac_cv_search_mallinfo+set}" = set; then
13980   echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982   ac_func_search_save_LIBS=$LIBS
13983 cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989
13990 /* Override any GCC internal prototype to avoid an error.
13991    Use char because int might match the return type of a GCC
13992    builtin and then its argument prototype would still apply.  */
13993 #ifdef __cplusplus
13994 extern "C"
13995 #endif
13996 char mallinfo ();
13997 int
13998 main ()
13999 {
14000 return mallinfo ();
14001   ;
14002   return 0;
14003 }
14004 _ACEOF
14005 for ac_lib in '' malloc; do
14006   if test -z "$ac_lib"; then
14007     ac_res="none required"
14008   else
14009     ac_res=-l$ac_lib
14010     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14011   fi
14012   rm -f conftest.$ac_objext conftest$ac_exeext
14013 if { (ac_try="$ac_link"
14014 case "(($ac_try" in
14015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016   *) ac_try_echo=$ac_try;;
14017 esac
14018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019   (eval "$ac_link") 2>conftest.er1
14020   ac_status=$?
14021   grep -v '^ *+' conftest.er1 >conftest.err
14022   rm -f conftest.er1
14023   cat conftest.err >&5
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); } &&
14026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14027   { (case "(($ac_try" in
14028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029   *) ac_try_echo=$ac_try;;
14030 esac
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032   (eval "$ac_try") 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); }; } &&
14036          { ac_try='test -s conftest$ac_exeext'
14037   { (case "(($ac_try" in
14038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039   *) ac_try_echo=$ac_try;;
14040 esac
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042   (eval "$ac_try") 2>&5
14043   ac_status=$?
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); }; }; then
14046   ac_cv_search_mallinfo=$ac_res
14047 else
14048   echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14050
14051
14052 fi
14053
14054 rm -f core conftest.err conftest.$ac_objext \
14055       conftest$ac_exeext
14056   if test "${ac_cv_search_mallinfo+set}" = set; then
14057   break
14058 fi
14059 done
14060 if test "${ac_cv_search_mallinfo+set}" = set; then
14061   :
14062 else
14063   ac_cv_search_mallinfo=no
14064 fi
14065 rm conftest.$ac_ext
14066 LIBS=$ac_func_search_save_LIBS
14067 fi
14068 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14069 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14070 ac_res=$ac_cv_search_mallinfo
14071 if test "$ac_res" != no; then
14072   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14073
14074 cat >>confdefs.h <<\_ACEOF
14075 #define HAVE_MALLINFO 1
14076 _ACEOF
14077
14078 fi
14079
14080
14081 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14082
14083 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14084 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14085 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14086   echo $ECHO_N "(cached) $ECHO_C" >&6
14087 else
14088   ac_check_lib_save_LIBS=$LIBS
14089 LIBS="-lpthread  $LIBS"
14090 cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096
14097 /* Override any GCC internal prototype to avoid an error.
14098    Use char because int might match the return type of a GCC
14099    builtin and then its argument prototype would still apply.  */
14100 #ifdef __cplusplus
14101 extern "C"
14102 #endif
14103 char pthread_mutex_init ();
14104 int
14105 main ()
14106 {
14107 return pthread_mutex_init ();
14108   ;
14109   return 0;
14110 }
14111 _ACEOF
14112 rm -f conftest.$ac_objext conftest$ac_exeext
14113 if { (ac_try="$ac_link"
14114 case "(($ac_try" in
14115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116   *) ac_try_echo=$ac_try;;
14117 esac
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119   (eval "$ac_link") 2>conftest.er1
14120   ac_status=$?
14121   grep -v '^ *+' conftest.er1 >conftest.err
14122   rm -f conftest.er1
14123   cat conftest.err >&5
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); } &&
14126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14127   { (case "(($ac_try" in
14128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129   *) ac_try_echo=$ac_try;;
14130 esac
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132   (eval "$ac_try") 2>&5
14133   ac_status=$?
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); }; } &&
14136          { ac_try='test -s conftest$ac_exeext'
14137   { (case "(($ac_try" in
14138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139   *) ac_try_echo=$ac_try;;
14140 esac
14141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142   (eval "$ac_try") 2>&5
14143   ac_status=$?
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); }; }; then
14146   ac_cv_lib_pthread_pthread_mutex_init=yes
14147 else
14148   echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14150
14151         ac_cv_lib_pthread_pthread_mutex_init=no
14152 fi
14153
14154 rm -f core conftest.err conftest.$ac_objext \
14155       conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14157 fi
14158 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14159 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14160 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14161   cat >>confdefs.h <<_ACEOF
14162 #define HAVE_LIBPTHREAD 1
14163 _ACEOF
14164
14165   LIBS="-lpthread $LIBS"
14166
14167 fi
14168
14169   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14170 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14171 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   ac_func_search_save_LIBS=$LIBS
14175 cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h.  */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h.  */
14181
14182 /* Override any GCC internal prototype to avoid an error.
14183    Use char because int might match the return type of a GCC
14184    builtin and then its argument prototype would still apply.  */
14185 #ifdef __cplusplus
14186 extern "C"
14187 #endif
14188 char pthread_mutex_lock ();
14189 int
14190 main ()
14191 {
14192 return pthread_mutex_lock ();
14193   ;
14194   return 0;
14195 }
14196 _ACEOF
14197 for ac_lib in '' pthread; do
14198   if test -z "$ac_lib"; then
14199     ac_res="none required"
14200   else
14201     ac_res=-l$ac_lib
14202     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14203   fi
14204   rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (ac_try="$ac_link"
14206 case "(($ac_try" in
14207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208   *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211   (eval "$ac_link") 2>conftest.er1
14212   ac_status=$?
14213   grep -v '^ *+' conftest.er1 >conftest.err
14214   rm -f conftest.er1
14215   cat conftest.err >&5
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); } &&
14218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14219   { (case "(($ac_try" in
14220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221   *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224   (eval "$ac_try") 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; } &&
14228          { ac_try='test -s conftest$ac_exeext'
14229   { (case "(($ac_try" in
14230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231   *) ac_try_echo=$ac_try;;
14232 esac
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234   (eval "$ac_try") 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; }; then
14238   ac_cv_search_pthread_mutex_lock=$ac_res
14239 else
14240   echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243
14244 fi
14245
14246 rm -f core conftest.err conftest.$ac_objext \
14247       conftest$ac_exeext
14248   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14249   break
14250 fi
14251 done
14252 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14253   :
14254 else
14255   ac_cv_search_pthread_mutex_lock=no
14256 fi
14257 rm conftest.$ac_ext
14258 LIBS=$ac_func_search_save_LIBS
14259 fi
14260 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14261 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14262 ac_res=$ac_cv_search_pthread_mutex_lock
14263 if test "$ac_res" != no; then
14264   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14265
14266 cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_PTHREAD_MUTEX_LOCK 1
14268 _ACEOF
14269
14270 fi
14271
14272   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14273 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14274 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   ac_func_search_save_LIBS=$LIBS
14278 cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284
14285 /* Override any GCC internal prototype to avoid an error.
14286    Use char because int might match the return type of a GCC
14287    builtin and then its argument prototype would still apply.  */
14288 #ifdef __cplusplus
14289 extern "C"
14290 #endif
14291 char pthread_rwlock_init ();
14292 int
14293 main ()
14294 {
14295 return pthread_rwlock_init ();
14296   ;
14297   return 0;
14298 }
14299 _ACEOF
14300 for ac_lib in '' pthread; do
14301   if test -z "$ac_lib"; then
14302     ac_res="none required"
14303   else
14304     ac_res=-l$ac_lib
14305     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14306   fi
14307   rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (ac_try="$ac_link"
14309 case "(($ac_try" in
14310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311   *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314   (eval "$ac_link") 2>conftest.er1
14315   ac_status=$?
14316   grep -v '^ *+' conftest.er1 >conftest.err
14317   rm -f conftest.er1
14318   cat conftest.err >&5
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } &&
14321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322   { (case "(($ac_try" in
14323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324   *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327   (eval "$ac_try") 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; } &&
14331          { ac_try='test -s conftest$ac_exeext'
14332   { (case "(($ac_try" in
14333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334   *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337   (eval "$ac_try") 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; }; then
14341   ac_cv_search_pthread_rwlock_init=$ac_res
14342 else
14343   echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346
14347 fi
14348
14349 rm -f core conftest.err conftest.$ac_objext \
14350       conftest$ac_exeext
14351   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14352   break
14353 fi
14354 done
14355 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14356   :
14357 else
14358   ac_cv_search_pthread_rwlock_init=no
14359 fi
14360 rm conftest.$ac_ext
14361 LIBS=$ac_func_search_save_LIBS
14362 fi
14363 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14364 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14365 ac_res=$ac_cv_search_pthread_rwlock_init
14366 if test "$ac_res" != no; then
14367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14368
14369 cat >>confdefs.h <<\_ACEOF
14370 #define HAVE_PTHREAD_RWLOCK_INIT 1
14371 _ACEOF
14372
14373 fi
14374
14375   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14376 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14377 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380   ac_func_search_save_LIBS=$LIBS
14381 cat >conftest.$ac_ext <<_ACEOF
14382 /* confdefs.h.  */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h.  */
14387
14388 /* Override any GCC internal prototype to avoid an error.
14389    Use char because int might match the return type of a GCC
14390    builtin and then its argument prototype would still apply.  */
14391 #ifdef __cplusplus
14392 extern "C"
14393 #endif
14394 char pthread_getspecific ();
14395 int
14396 main ()
14397 {
14398 return pthread_getspecific ();
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 for ac_lib in '' pthread; do
14404   if test -z "$ac_lib"; then
14405     ac_res="none required"
14406   else
14407     ac_res=-l$ac_lib
14408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14409   fi
14410   rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (ac_try="$ac_link"
14412 case "(($ac_try" in
14413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414   *) ac_try_echo=$ac_try;;
14415 esac
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417   (eval "$ac_link") 2>conftest.er1
14418   ac_status=$?
14419   grep -v '^ *+' conftest.er1 >conftest.err
14420   rm -f conftest.er1
14421   cat conftest.err >&5
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); } &&
14424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14425   { (case "(($ac_try" in
14426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427   *) ac_try_echo=$ac_try;;
14428 esac
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430   (eval "$ac_try") 2>&5
14431   ac_status=$?
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); }; } &&
14434          { ac_try='test -s conftest$ac_exeext'
14435   { (case "(($ac_try" in
14436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437   *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440   (eval "$ac_try") 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); }; }; then
14444   ac_cv_search_pthread_getspecific=$ac_res
14445 else
14446   echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449
14450 fi
14451
14452 rm -f core conftest.err conftest.$ac_objext \
14453       conftest$ac_exeext
14454   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14455   break
14456 fi
14457 done
14458 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14459   :
14460 else
14461   ac_cv_search_pthread_getspecific=no
14462 fi
14463 rm conftest.$ac_ext
14464 LIBS=$ac_func_search_save_LIBS
14465 fi
14466 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14467 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14468 ac_res=$ac_cv_search_pthread_getspecific
14469 if test "$ac_res" != no; then
14470   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14471
14472 cat >>confdefs.h <<\_ACEOF
14473 #define HAVE_PTHREAD_GETSPECIFIC 1
14474 _ACEOF
14475
14476 fi
14477
14478 fi
14479
14480
14481 # Check whether --with-udis86 was given.
14482 if test "${with_udis86+set}" = set; then
14483   withval=$with_udis86;
14484       USE_UDIS86=1
14485
14486       case "$withval" in
14487         /usr/lib|yes) ;;
14488         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14489       esac
14490
14491 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14492 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14493 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14494   echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496   ac_check_lib_save_LIBS=$LIBS
14497 LIBS="-ludis86  $LIBS"
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504
14505 /* Override any GCC internal prototype to avoid an error.
14506    Use char because int might match the return type of a GCC
14507    builtin and then its argument prototype would still apply.  */
14508 #ifdef __cplusplus
14509 extern "C"
14510 #endif
14511 char ud_init ();
14512 int
14513 main ()
14514 {
14515 return ud_init ();
14516   ;
14517   return 0;
14518 }
14519 _ACEOF
14520 rm -f conftest.$ac_objext conftest$ac_exeext
14521 if { (ac_try="$ac_link"
14522 case "(($ac_try" in
14523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524   *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527   (eval "$ac_link") 2>conftest.er1
14528   ac_status=$?
14529   grep -v '^ *+' conftest.er1 >conftest.err
14530   rm -f conftest.er1
14531   cat conftest.err >&5
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); } &&
14534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535   { (case "(($ac_try" in
14536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537   *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540   (eval "$ac_try") 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; } &&
14544          { ac_try='test -s conftest$ac_exeext'
14545   { (case "(($ac_try" in
14546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547   *) ac_try_echo=$ac_try;;
14548 esac
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550   (eval "$ac_try") 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; }; then
14554   ac_cv_lib_udis86_ud_init=yes
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559         ac_cv_lib_udis86_ud_init=no
14560 fi
14561
14562 rm -f core conftest.err conftest.$ac_objext \
14563       conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_check_lib_save_LIBS
14565 fi
14566 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14567 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14568 if test $ac_cv_lib_udis86_ud_init = yes; then
14569   cat >>confdefs.h <<_ACEOF
14570 #define HAVE_LIBUDIS86 1
14571 _ACEOF
14572
14573   LIBS="-ludis86 $LIBS"
14574
14575 else
14576
14577         echo "Error! You need to have libudis86 around."
14578         exit -1
14579
14580 fi
14581
14582
14583 else
14584   USE_UDIS86=0
14585
14586 fi
14587
14588
14589 cat >>confdefs.h <<_ACEOF
14590 #define USE_UDIS86 $USE_UDIS86
14591 _ACEOF
14592
14593
14594
14595 # Check whether --with-oprofile was given.
14596 if test "${with_oprofile+set}" = set; then
14597   withval=$with_oprofile;
14598       USE_OPROFILE=1
14599
14600       case "$withval" in
14601         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14602         no) llvm_cv_oppath=
14603             USE_OPROFILE=0
14604  ;;
14605         *) llvm_cv_oppath="${withval}/lib/oprofile"
14606            CPPFLAGS="-I${withval}/include";;
14607       esac
14608       if test -n "$llvm_cv_oppath" ; then
14609         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14610                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14611 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14612 if test "${ac_cv_search_bfd_init+set}" = set; then
14613   echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615   ac_func_search_save_LIBS=$LIBS
14616 cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622
14623 /* Override any GCC internal prototype to avoid an error.
14624    Use char because int might match the return type of a GCC
14625    builtin and then its argument prototype would still apply.  */
14626 #ifdef __cplusplus
14627 extern "C"
14628 #endif
14629 char bfd_init ();
14630 int
14631 main ()
14632 {
14633 return bfd_init ();
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 for ac_lib in '' bfd; do
14639   if test -z "$ac_lib"; then
14640     ac_res="none required"
14641   else
14642     ac_res=-l$ac_lib
14643     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14644   fi
14645   rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649   *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652   (eval "$ac_link") 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } &&
14659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14660   { (case "(($ac_try" in
14661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662   *) ac_try_echo=$ac_try;;
14663 esac
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665   (eval "$ac_try") 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); }; } &&
14669          { ac_try='test -s conftest$ac_exeext'
14670   { (case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_try") 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; }; then
14679   ac_cv_search_bfd_init=$ac_res
14680 else
14681   echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684
14685 fi
14686
14687 rm -f core conftest.err conftest.$ac_objext \
14688       conftest$ac_exeext
14689   if test "${ac_cv_search_bfd_init+set}" = set; then
14690   break
14691 fi
14692 done
14693 if test "${ac_cv_search_bfd_init+set}" = set; then
14694   :
14695 else
14696   ac_cv_search_bfd_init=no
14697 fi
14698 rm conftest.$ac_ext
14699 LIBS=$ac_func_search_save_LIBS
14700 fi
14701 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14702 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14703 ac_res=$ac_cv_search_bfd_init
14704 if test "$ac_res" != no; then
14705   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14706
14707 fi
14708
14709         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14710 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14711 if test "${ac_cv_search_op_open_agent+set}" = set; then
14712   echo $ECHO_N "(cached) $ECHO_C" >&6
14713 else
14714   ac_func_search_save_LIBS=$LIBS
14715 cat >conftest.$ac_ext <<_ACEOF
14716 /* confdefs.h.  */
14717 _ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h.  */
14721
14722 /* Override any GCC internal prototype to avoid an error.
14723    Use char because int might match the return type of a GCC
14724    builtin and then its argument prototype would still apply.  */
14725 #ifdef __cplusplus
14726 extern "C"
14727 #endif
14728 char op_open_agent ();
14729 int
14730 main ()
14731 {
14732 return op_open_agent ();
14733   ;
14734   return 0;
14735 }
14736 _ACEOF
14737 for ac_lib in '' opagent; do
14738   if test -z "$ac_lib"; then
14739     ac_res="none required"
14740   else
14741     ac_res=-l$ac_lib
14742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14743   fi
14744   rm -f conftest.$ac_objext conftest$ac_exeext
14745 if { (ac_try="$ac_link"
14746 case "(($ac_try" in
14747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748   *) ac_try_echo=$ac_try;;
14749 esac
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751   (eval "$ac_link") 2>conftest.er1
14752   ac_status=$?
14753   grep -v '^ *+' conftest.er1 >conftest.err
14754   rm -f conftest.er1
14755   cat conftest.err >&5
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } &&
14758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14759   { (case "(($ac_try" in
14760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761   *) ac_try_echo=$ac_try;;
14762 esac
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764   (eval "$ac_try") 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; } &&
14768          { ac_try='test -s conftest$ac_exeext'
14769   { (case "(($ac_try" in
14770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771   *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774   (eval "$ac_try") 2>&5
14775   ac_status=$?
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); }; }; then
14778   ac_cv_search_op_open_agent=$ac_res
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783
14784 fi
14785
14786 rm -f core conftest.err conftest.$ac_objext \
14787       conftest$ac_exeext
14788   if test "${ac_cv_search_op_open_agent+set}" = set; then
14789   break
14790 fi
14791 done
14792 if test "${ac_cv_search_op_open_agent+set}" = set; then
14793   :
14794 else
14795   ac_cv_search_op_open_agent=no
14796 fi
14797 rm conftest.$ac_ext
14798 LIBS=$ac_func_search_save_LIBS
14799 fi
14800 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14801 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14802 ac_res=$ac_cv_search_op_open_agent
14803 if test "$ac_res" != no; then
14804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14805
14806 else
14807
14808           echo "Error! You need to have libopagent around."
14809           exit -1
14810
14811 fi
14812
14813         if test "${ac_cv_header_opagent_h+set}" = set; then
14814   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14815 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14816 if test "${ac_cv_header_opagent_h+set}" = set; then
14817   echo $ECHO_N "(cached) $ECHO_C" >&6
14818 fi
14819 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14820 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14821 else
14822   # Is the header compilable?
14823 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14824 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14825 cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h.  */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h.  */
14831 $ac_includes_default
14832 #include <opagent.h>
14833 _ACEOF
14834 rm -f conftest.$ac_objext
14835 if { (ac_try="$ac_compile"
14836 case "(($ac_try" in
14837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838   *) ac_try_echo=$ac_try;;
14839 esac
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841   (eval "$ac_compile") 2>conftest.er1
14842   ac_status=$?
14843   grep -v '^ *+' conftest.er1 >conftest.err
14844   rm -f conftest.er1
14845   cat conftest.err >&5
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); } &&
14848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14849   { (case "(($ac_try" in
14850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851   *) ac_try_echo=$ac_try;;
14852 esac
14853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14854   (eval "$ac_try") 2>&5
14855   ac_status=$?
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); }; } &&
14858          { ac_try='test -s conftest.$ac_objext'
14859   { (case "(($ac_try" in
14860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861   *) ac_try_echo=$ac_try;;
14862 esac
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864   (eval "$ac_try") 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); }; }; then
14868   ac_header_compiler=yes
14869 else
14870   echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14872
14873         ac_header_compiler=no
14874 fi
14875
14876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14878 echo "${ECHO_T}$ac_header_compiler" >&6; }
14879
14880 # Is the header present?
14881 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14882 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14883 cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h.  */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h.  */
14889 #include <opagent.h>
14890 _ACEOF
14891 if { (ac_try="$ac_cpp conftest.$ac_ext"
14892 case "(($ac_try" in
14893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894   *) ac_try_echo=$ac_try;;
14895 esac
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14898   ac_status=$?
14899   grep -v '^ *+' conftest.er1 >conftest.err
14900   rm -f conftest.er1
14901   cat conftest.err >&5
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } >/dev/null; then
14904   if test -s conftest.err; then
14905     ac_cpp_err=$ac_c_preproc_warn_flag
14906     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14907   else
14908     ac_cpp_err=
14909   fi
14910 else
14911   ac_cpp_err=yes
14912 fi
14913 if test -z "$ac_cpp_err"; then
14914   ac_header_preproc=yes
14915 else
14916   echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14918
14919   ac_header_preproc=no
14920 fi
14921
14922 rm -f conftest.err conftest.$ac_ext
14923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14924 echo "${ECHO_T}$ac_header_preproc" >&6; }
14925
14926 # So?  What about this header?
14927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14928   yes:no: )
14929     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14930 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14931     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14932 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14933     ac_header_preproc=yes
14934     ;;
14935   no:yes:* )
14936     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14937 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14938     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14939 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14940     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14941 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14942     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14943 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14944     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14945 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14946     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14947 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14948     ( cat <<\_ASBOX
14949 ## ----------------------------------- ##
14950 ## Report this to llvmbugs@cs.uiuc.edu ##
14951 ## ----------------------------------- ##
14952 _ASBOX
14953      ) | sed "s/^/$as_me: WARNING:     /" >&2
14954     ;;
14955 esac
14956 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14957 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14958 if test "${ac_cv_header_opagent_h+set}" = set; then
14959   echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961   ac_cv_header_opagent_h=$ac_header_preproc
14962 fi
14963 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14964 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14965
14966 fi
14967 if test $ac_cv_header_opagent_h = yes; then
14968   :
14969 else
14970
14971           echo "Error! You need to have opagent.h around."
14972           exit -1
14973
14974 fi
14975
14976
14977       fi
14978
14979 else
14980
14981       USE_OPROFILE=0
14982
14983
14984 fi
14985
14986
14987 cat >>confdefs.h <<_ACEOF
14988 #define USE_OPROFILE $USE_OPROFILE
14989 _ACEOF
14990
14991
14992
14993
14994
14995
14996
14997
14998 ac_header_dirent=no
14999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15000   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15001 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15002 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15004   echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006   cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012 #include <sys/types.h>
15013 #include <$ac_hdr>
15014
15015 int
15016 main ()
15017 {
15018 if ((DIR *) 0)
15019 return 0;
15020   ;
15021   return 0;
15022 }
15023 _ACEOF
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028   *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031   (eval "$ac_compile") 2>conftest.er1
15032   ac_status=$?
15033   grep -v '^ *+' conftest.er1 >conftest.err
15034   rm -f conftest.er1
15035   cat conftest.err >&5
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } &&
15038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15039   { (case "(($ac_try" in
15040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041   *) ac_try_echo=$ac_try;;
15042 esac
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044   (eval "$ac_try") 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); }; } &&
15048          { ac_try='test -s conftest.$ac_objext'
15049   { (case "(($ac_try" in
15050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051   *) ac_try_echo=$ac_try;;
15052 esac
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054   (eval "$ac_try") 2>&5
15055   ac_status=$?
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); }; }; then
15058   eval "$as_ac_Header=yes"
15059 else
15060   echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15062
15063         eval "$as_ac_Header=no"
15064 fi
15065
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 fi
15068 ac_res=`eval echo '${'$as_ac_Header'}'`
15069                { echo "$as_me:$LINENO: result: $ac_res" >&5
15070 echo "${ECHO_T}$ac_res" >&6; }
15071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072   cat >>confdefs.h <<_ACEOF
15073 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15074 _ACEOF
15075
15076 ac_header_dirent=$ac_hdr; break
15077 fi
15078
15079 done
15080 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15081 if test $ac_header_dirent = dirent.h; then
15082   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15083 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15084 if test "${ac_cv_search_opendir+set}" = set; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087   ac_func_search_save_LIBS=$LIBS
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h.  */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h.  */
15094
15095 /* Override any GCC internal prototype to avoid an error.
15096    Use char because int might match the return type of a GCC
15097    builtin and then its argument prototype would still apply.  */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char opendir ();
15102 int
15103 main ()
15104 {
15105 return opendir ();
15106   ;
15107   return 0;
15108 }
15109 _ACEOF
15110 for ac_lib in '' dir; do
15111   if test -z "$ac_lib"; then
15112     ac_res="none required"
15113   else
15114     ac_res=-l$ac_lib
15115     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15116   fi
15117   rm -f conftest.$ac_objext conftest$ac_exeext
15118 if { (ac_try="$ac_link"
15119 case "(($ac_try" in
15120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121   *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124   (eval "$ac_link") 2>conftest.er1
15125   ac_status=$?
15126   grep -v '^ *+' conftest.er1 >conftest.err
15127   rm -f conftest.er1
15128   cat conftest.err >&5
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); } &&
15131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15132   { (case "(($ac_try" in
15133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134   *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137   (eval "$ac_try") 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); }; } &&
15141          { ac_try='test -s conftest$ac_exeext'
15142   { (case "(($ac_try" in
15143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144   *) ac_try_echo=$ac_try;;
15145 esac
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147   (eval "$ac_try") 2>&5
15148   ac_status=$?
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); }; }; then
15151   ac_cv_search_opendir=$ac_res
15152 else
15153   echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156
15157 fi
15158
15159 rm -f core conftest.err conftest.$ac_objext \
15160       conftest$ac_exeext
15161   if test "${ac_cv_search_opendir+set}" = set; then
15162   break
15163 fi
15164 done
15165 if test "${ac_cv_search_opendir+set}" = set; then
15166   :
15167 else
15168   ac_cv_search_opendir=no
15169 fi
15170 rm conftest.$ac_ext
15171 LIBS=$ac_func_search_save_LIBS
15172 fi
15173 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15174 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15175 ac_res=$ac_cv_search_opendir
15176 if test "$ac_res" != no; then
15177   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15178
15179 fi
15180
15181 else
15182   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15183 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15184 if test "${ac_cv_search_opendir+set}" = set; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187   ac_func_search_save_LIBS=$LIBS
15188 cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h.  */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h.  */
15194
15195 /* Override any GCC internal prototype to avoid an error.
15196    Use char because int might match the return type of a GCC
15197    builtin and then its argument prototype would still apply.  */
15198 #ifdef __cplusplus
15199 extern "C"
15200 #endif
15201 char opendir ();
15202 int
15203 main ()
15204 {
15205 return opendir ();
15206   ;
15207   return 0;
15208 }
15209 _ACEOF
15210 for ac_lib in '' x; do
15211   if test -z "$ac_lib"; then
15212     ac_res="none required"
15213   else
15214     ac_res=-l$ac_lib
15215     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15216   fi
15217   rm -f conftest.$ac_objext conftest$ac_exeext
15218 if { (ac_try="$ac_link"
15219 case "(($ac_try" in
15220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221   *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224   (eval "$ac_link") 2>conftest.er1
15225   ac_status=$?
15226   grep -v '^ *+' conftest.er1 >conftest.err
15227   rm -f conftest.er1
15228   cat conftest.err >&5
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); } &&
15231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15232   { (case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_try") 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; } &&
15241          { ac_try='test -s conftest$ac_exeext'
15242   { (case "(($ac_try" in
15243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244   *) ac_try_echo=$ac_try;;
15245 esac
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247   (eval "$ac_try") 2>&5
15248   ac_status=$?
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); }; }; then
15251   ac_cv_search_opendir=$ac_res
15252 else
15253   echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256
15257 fi
15258
15259 rm -f core conftest.err conftest.$ac_objext \
15260       conftest$ac_exeext
15261   if test "${ac_cv_search_opendir+set}" = set; then
15262   break
15263 fi
15264 done
15265 if test "${ac_cv_search_opendir+set}" = set; then
15266   :
15267 else
15268   ac_cv_search_opendir=no
15269 fi
15270 rm conftest.$ac_ext
15271 LIBS=$ac_func_search_save_LIBS
15272 fi
15273 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15274 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15275 ac_res=$ac_cv_search_opendir
15276 if test "$ac_res" != no; then
15277   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15278
15279 fi
15280
15281 fi
15282
15283 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15284 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15285 if test "${ac_cv_header_mmap_anon+set}" = set; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288    ac_ext=c
15289 ac_cpp='$CPP $CPPFLAGS'
15290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15293
15294   cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300 #include <sys/mman.h>
15301 #include <unistd.h>
15302 #include <fcntl.h>
15303 int
15304 main ()
15305 {
15306 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15307   ;
15308   return 0;
15309 }
15310 _ACEOF
15311 rm -f conftest.$ac_objext
15312 if { (ac_try="$ac_compile"
15313 case "(($ac_try" in
15314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315   *) ac_try_echo=$ac_try;;
15316 esac
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318   (eval "$ac_compile") 2>conftest.er1
15319   ac_status=$?
15320   grep -v '^ *+' conftest.er1 >conftest.err
15321   rm -f conftest.er1
15322   cat conftest.err >&5
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); } &&
15325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15326   { (case "(($ac_try" in
15327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328   *) ac_try_echo=$ac_try;;
15329 esac
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331   (eval "$ac_try") 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); }; } &&
15335          { ac_try='test -s conftest.$ac_objext'
15336   { (case "(($ac_try" in
15337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338   *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341   (eval "$ac_try") 2>&5
15342   ac_status=$?
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); }; }; then
15345   ac_cv_header_mmap_anon=yes
15346 else
15347   echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15349
15350         ac_cv_header_mmap_anon=no
15351 fi
15352
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354   ac_ext=c
15355 ac_cpp='$CPP $CPPFLAGS'
15356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15359
15360
15361 fi
15362 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15363 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15364 if test "$ac_cv_header_mmap_anon" = yes; then
15365
15366 cat >>confdefs.h <<\_ACEOF
15367 #define HAVE_MMAP_ANONYMOUS 1
15368 _ACEOF
15369
15370 fi
15371
15372 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15373 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15374 if test "${ac_cv_header_stat_broken+set}" = set; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377   cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h.  */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h.  */
15383 #include <sys/types.h>
15384 #include <sys/stat.h>
15385
15386 #if defined S_ISBLK && defined S_IFDIR
15387 # if S_ISBLK (S_IFDIR)
15388 You lose.
15389 # endif
15390 #endif
15391
15392 #if defined S_ISBLK && defined S_IFCHR
15393 # if S_ISBLK (S_IFCHR)
15394 You lose.
15395 # endif
15396 #endif
15397
15398 #if defined S_ISLNK && defined S_IFREG
15399 # if S_ISLNK (S_IFREG)
15400 You lose.
15401 # endif
15402 #endif
15403
15404 #if defined S_ISSOCK && defined S_IFREG
15405 # if S_ISSOCK (S_IFREG)
15406 You lose.
15407 # endif
15408 #endif
15409
15410 _ACEOF
15411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15412   $EGREP "You lose" >/dev/null 2>&1; then
15413   ac_cv_header_stat_broken=yes
15414 else
15415   ac_cv_header_stat_broken=no
15416 fi
15417 rm -f conftest*
15418
15419 fi
15420 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15421 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15422 if test $ac_cv_header_stat_broken = yes; then
15423
15424 cat >>confdefs.h <<\_ACEOF
15425 #define STAT_MACROS_BROKEN 1
15426 _ACEOF
15427
15428 fi
15429
15430 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15432 if test "${ac_cv_header_stdc+set}" = set; then
15433   echo $ECHO_N "(cached) $ECHO_C" >&6
15434 else
15435   cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h.  */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h.  */
15441 #include <stdlib.h>
15442 #include <stdarg.h>
15443 #include <string.h>
15444 #include <float.h>
15445
15446 int
15447 main ()
15448 {
15449
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 rm -f conftest.$ac_objext
15455 if { (ac_try="$ac_compile"
15456 case "(($ac_try" in
15457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458   *) ac_try_echo=$ac_try;;
15459 esac
15460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461   (eval "$ac_compile") 2>conftest.er1
15462   ac_status=$?
15463   grep -v '^ *+' conftest.er1 >conftest.err
15464   rm -f conftest.er1
15465   cat conftest.err >&5
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); } &&
15468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15469   { (case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_try") 2>&5
15475   ac_status=$?
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); }; } &&
15478          { ac_try='test -s conftest.$ac_objext'
15479   { (case "(($ac_try" in
15480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481   *) ac_try_echo=$ac_try;;
15482 esac
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484   (eval "$ac_try") 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; }; then
15488   ac_cv_header_stdc=yes
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493         ac_cv_header_stdc=no
15494 fi
15495
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497
15498 if test $ac_cv_header_stdc = yes; then
15499   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15500   cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h.  */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h.  */
15506 #include <string.h>
15507
15508 _ACEOF
15509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15510   $EGREP "memchr" >/dev/null 2>&1; then
15511   :
15512 else
15513   ac_cv_header_stdc=no
15514 fi
15515 rm -f conftest*
15516
15517 fi
15518
15519 if test $ac_cv_header_stdc = yes; then
15520   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15521   cat >conftest.$ac_ext <<_ACEOF
15522 /* confdefs.h.  */
15523 _ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h.  */
15527 #include <stdlib.h>
15528
15529 _ACEOF
15530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15531   $EGREP "free" >/dev/null 2>&1; then
15532   :
15533 else
15534   ac_cv_header_stdc=no
15535 fi
15536 rm -f conftest*
15537
15538 fi
15539
15540 if test $ac_cv_header_stdc = yes; then
15541   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15542   if test "$cross_compiling" = yes; then
15543   :
15544 else
15545   cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h.  */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h.  */
15551 #include <ctype.h>
15552 #include <stdlib.h>
15553 #if ((' ' & 0x0FF) == 0x020)
15554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15556 #else
15557 # define ISLOWER(c) \
15558                    (('a' <= (c) && (c) <= 'i') \
15559                      || ('j' <= (c) && (c) <= 'r') \
15560                      || ('s' <= (c) && (c) <= 'z'))
15561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15562 #endif
15563
15564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15565 int
15566 main ()
15567 {
15568   int i;
15569   for (i = 0; i < 256; i++)
15570     if (XOR (islower (i), ISLOWER (i))
15571         || toupper (i) != TOUPPER (i))
15572       return 2;
15573   return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest$ac_exeext
15577 if { (ac_try="$ac_link"
15578 case "(($ac_try" in
15579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580   *) ac_try_echo=$ac_try;;
15581 esac
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583   (eval "$ac_link") 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15587   { (case "(($ac_try" in
15588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589   *) ac_try_echo=$ac_try;;
15590 esac
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592   (eval "$ac_try") 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); }; }; then
15596   :
15597 else
15598   echo "$as_me: program exited with status $ac_status" >&5
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 ( exit $ac_status )
15603 ac_cv_header_stdc=no
15604 fi
15605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15606 fi
15607
15608
15609 fi
15610 fi
15611 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15612 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15613 if test $ac_cv_header_stdc = yes; then
15614
15615 cat >>confdefs.h <<\_ACEOF
15616 #define STDC_HEADERS 1
15617 _ACEOF
15618
15619 fi
15620
15621 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15622 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15623 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15624   echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626   cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632 #include <sys/types.h>
15633 #include <sys/wait.h>
15634 #ifndef WEXITSTATUS
15635 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15636 #endif
15637 #ifndef WIFEXITED
15638 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15639 #endif
15640
15641 int
15642 main ()
15643 {
15644   int s;
15645   wait (&s);
15646   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15647   ;
15648   return 0;
15649 }
15650 _ACEOF
15651 rm -f conftest.$ac_objext
15652 if { (ac_try="$ac_compile"
15653 case "(($ac_try" in
15654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655   *) ac_try_echo=$ac_try;;
15656 esac
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658   (eval "$ac_compile") 2>conftest.er1
15659   ac_status=$?
15660   grep -v '^ *+' conftest.er1 >conftest.err
15661   rm -f conftest.er1
15662   cat conftest.err >&5
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15666   { (case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671   (eval "$ac_try") 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; } &&
15675          { ac_try='test -s conftest.$ac_objext'
15676   { (case "(($ac_try" in
15677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678   *) ac_try_echo=$ac_try;;
15679 esac
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681   (eval "$ac_try") 2>&5
15682   ac_status=$?
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); }; }; then
15685   ac_cv_header_sys_wait_h=yes
15686 else
15687   echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15689
15690         ac_cv_header_sys_wait_h=no
15691 fi
15692
15693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694 fi
15695 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15696 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15697 if test $ac_cv_header_sys_wait_h = yes; then
15698
15699 cat >>confdefs.h <<\_ACEOF
15700 #define HAVE_SYS_WAIT_H 1
15701 _ACEOF
15702
15703 fi
15704
15705 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15706 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15707 if test "${ac_cv_header_time+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   cat >conftest.$ac_ext <<_ACEOF
15711 /* confdefs.h.  */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h.  */
15716 #include <sys/types.h>
15717 #include <sys/time.h>
15718 #include <time.h>
15719
15720 int
15721 main ()
15722 {
15723 if ((struct tm *) 0)
15724 return 0;
15725   ;
15726   return 0;
15727 }
15728 _ACEOF
15729 rm -f conftest.$ac_objext
15730 if { (ac_try="$ac_compile"
15731 case "(($ac_try" in
15732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733   *) ac_try_echo=$ac_try;;
15734 esac
15735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736   (eval "$ac_compile") 2>conftest.er1
15737   ac_status=$?
15738   grep -v '^ *+' conftest.er1 >conftest.err
15739   rm -f conftest.er1
15740   cat conftest.err >&5
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); } &&
15743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15744   { (case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_try") 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); }; } &&
15753          { ac_try='test -s conftest.$ac_objext'
15754   { (case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759   (eval "$ac_try") 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763   ac_cv_header_time=yes
15764 else
15765   echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15767
15768         ac_cv_header_time=no
15769 fi
15770
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 fi
15773 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15774 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15775 if test $ac_cv_header_time = yes; then
15776
15777 cat >>confdefs.h <<\_ACEOF
15778 #define TIME_WITH_SYS_TIME 1
15779 _ACEOF
15780
15781 fi
15782
15783
15784
15785
15786
15787
15788
15789
15790 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15791 do
15792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15797   echo $ECHO_N "(cached) $ECHO_C" >&6
15798 fi
15799 ac_res=`eval echo '${'$as_ac_Header'}'`
15800                { echo "$as_me:$LINENO: result: $ac_res" >&5
15801 echo "${ECHO_T}$ac_res" >&6; }
15802 else
15803   # Is the header compilable?
15804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15806 cat >conftest.$ac_ext <<_ACEOF
15807 /* confdefs.h.  */
15808 _ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h.  */
15812 $ac_includes_default
15813 #include <$ac_header>
15814 _ACEOF
15815 rm -f conftest.$ac_objext
15816 if { (ac_try="$ac_compile"
15817 case "(($ac_try" in
15818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819   *) ac_try_echo=$ac_try;;
15820 esac
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822   (eval "$ac_compile") 2>conftest.er1
15823   ac_status=$?
15824   grep -v '^ *+' conftest.er1 >conftest.err
15825   rm -f conftest.er1
15826   cat conftest.err >&5
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); } &&
15829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15830   { (case "(($ac_try" in
15831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832   *) ac_try_echo=$ac_try;;
15833 esac
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835   (eval "$ac_try") 2>&5
15836   ac_status=$?
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); }; } &&
15839          { ac_try='test -s conftest.$ac_objext'
15840   { (case "(($ac_try" in
15841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842   *) ac_try_echo=$ac_try;;
15843 esac
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845   (eval "$ac_try") 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; }; then
15849   ac_header_compiler=yes
15850 else
15851   echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854         ac_header_compiler=no
15855 fi
15856
15857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15859 echo "${ECHO_T}$ac_header_compiler" >&6; }
15860
15861 # Is the header present?
15862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15864 cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870 #include <$ac_header>
15871 _ACEOF
15872 if { (ac_try="$ac_cpp conftest.$ac_ext"
15873 case "(($ac_try" in
15874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875   *) ac_try_echo=$ac_try;;
15876 esac
15877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15879   ac_status=$?
15880   grep -v '^ *+' conftest.er1 >conftest.err
15881   rm -f conftest.er1
15882   cat conftest.err >&5
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); } >/dev/null; then
15885   if test -s conftest.err; then
15886     ac_cpp_err=$ac_c_preproc_warn_flag
15887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15888   else
15889     ac_cpp_err=
15890   fi
15891 else
15892   ac_cpp_err=yes
15893 fi
15894 if test -z "$ac_cpp_err"; then
15895   ac_header_preproc=yes
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900   ac_header_preproc=no
15901 fi
15902
15903 rm -f conftest.err conftest.$ac_ext
15904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15905 echo "${ECHO_T}$ac_header_preproc" >&6; }
15906
15907 # So?  What about this header?
15908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15909   yes:no: )
15910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15914     ac_header_preproc=yes
15915     ;;
15916   no:yes:* )
15917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15929     ( cat <<\_ASBOX
15930 ## ----------------------------------- ##
15931 ## Report this to llvmbugs@cs.uiuc.edu ##
15932 ## ----------------------------------- ##
15933 _ASBOX
15934      ) | sed "s/^/$as_me: WARNING:     /" >&2
15935     ;;
15936 esac
15937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15940   echo $ECHO_N "(cached) $ECHO_C" >&6
15941 else
15942   eval "$as_ac_Header=\$ac_header_preproc"
15943 fi
15944 ac_res=`eval echo '${'$as_ac_Header'}'`
15945                { echo "$as_me:$LINENO: result: $ac_res" >&5
15946 echo "${ECHO_T}$ac_res" >&6; }
15947
15948 fi
15949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15950   cat >>confdefs.h <<_ACEOF
15951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15952 _ACEOF
15953
15954 fi
15955
15956 done
15957
15958
15959
15960
15961
15962
15963
15964 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15965 do
15966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15968   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15971   echo $ECHO_N "(cached) $ECHO_C" >&6
15972 fi
15973 ac_res=`eval echo '${'$as_ac_Header'}'`
15974                { echo "$as_me:$LINENO: result: $ac_res" >&5
15975 echo "${ECHO_T}$ac_res" >&6; }
15976 else
15977   # Is the header compilable?
15978 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15980 cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986 $ac_includes_default
15987 #include <$ac_header>
15988 _ACEOF
15989 rm -f conftest.$ac_objext
15990 if { (ac_try="$ac_compile"
15991 case "(($ac_try" in
15992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993   *) ac_try_echo=$ac_try;;
15994 esac
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996   (eval "$ac_compile") 2>conftest.er1
15997   ac_status=$?
15998   grep -v '^ *+' conftest.er1 >conftest.err
15999   rm -f conftest.er1
16000   cat conftest.err >&5
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); } &&
16003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16004   { (case "(($ac_try" in
16005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006   *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009   (eval "$ac_try") 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; } &&
16013          { ac_try='test -s conftest.$ac_objext'
16014   { (case "(($ac_try" in
16015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016   *) ac_try_echo=$ac_try;;
16017 esac
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019   (eval "$ac_try") 2>&5
16020   ac_status=$?
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); }; }; then
16023   ac_header_compiler=yes
16024 else
16025   echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16027
16028         ac_header_compiler=no
16029 fi
16030
16031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16033 echo "${ECHO_T}$ac_header_compiler" >&6; }
16034
16035 # Is the header present?
16036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16038 cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h.  */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h.  */
16044 #include <$ac_header>
16045 _ACEOF
16046 if { (ac_try="$ac_cpp conftest.$ac_ext"
16047 case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16053   ac_status=$?
16054   grep -v '^ *+' conftest.er1 >conftest.err
16055   rm -f conftest.er1
16056   cat conftest.err >&5
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } >/dev/null; then
16059   if test -s conftest.err; then
16060     ac_cpp_err=$ac_c_preproc_warn_flag
16061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16062   else
16063     ac_cpp_err=
16064   fi
16065 else
16066   ac_cpp_err=yes
16067 fi
16068 if test -z "$ac_cpp_err"; then
16069   ac_header_preproc=yes
16070 else
16071   echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074   ac_header_preproc=no
16075 fi
16076
16077 rm -f conftest.err conftest.$ac_ext
16078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079 echo "${ECHO_T}$ac_header_preproc" >&6; }
16080
16081 # So?  What about this header?
16082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16083   yes:no: )
16084     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16088     ac_header_preproc=yes
16089     ;;
16090   no:yes:* )
16091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16093     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16094 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16095     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16097     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16098 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16101     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16103     ( cat <<\_ASBOX
16104 ## ----------------------------------- ##
16105 ## Report this to llvmbugs@cs.uiuc.edu ##
16106 ## ----------------------------------- ##
16107 _ASBOX
16108      ) | sed "s/^/$as_me: WARNING:     /" >&2
16109     ;;
16110 esac
16111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16114   echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116   eval "$as_ac_Header=\$ac_header_preproc"
16117 fi
16118 ac_res=`eval echo '${'$as_ac_Header'}'`
16119                { echo "$as_me:$LINENO: result: $ac_res" >&5
16120 echo "${ECHO_T}$ac_res" >&6; }
16121
16122 fi
16123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16124   cat >>confdefs.h <<_ACEOF
16125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16126 _ACEOF
16127
16128 fi
16129
16130 done
16131
16132
16133
16134 for ac_header in utime.h windows.h
16135 do
16136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16138   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16141   echo $ECHO_N "(cached) $ECHO_C" >&6
16142 fi
16143 ac_res=`eval echo '${'$as_ac_Header'}'`
16144                { echo "$as_me:$LINENO: result: $ac_res" >&5
16145 echo "${ECHO_T}$ac_res" >&6; }
16146 else
16147   # Is the header compilable?
16148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h.  */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h.  */
16156 $ac_includes_default
16157 #include <$ac_header>
16158 _ACEOF
16159 rm -f conftest.$ac_objext
16160 if { (ac_try="$ac_compile"
16161 case "(($ac_try" in
16162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163   *) ac_try_echo=$ac_try;;
16164 esac
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166   (eval "$ac_compile") 2>conftest.er1
16167   ac_status=$?
16168   grep -v '^ *+' conftest.er1 >conftest.err
16169   rm -f conftest.er1
16170   cat conftest.err >&5
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); } &&
16173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16174   { (case "(($ac_try" in
16175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176   *) ac_try_echo=$ac_try;;
16177 esac
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179   (eval "$ac_try") 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); }; } &&
16183          { ac_try='test -s conftest.$ac_objext'
16184   { (case "(($ac_try" in
16185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186   *) ac_try_echo=$ac_try;;
16187 esac
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189   (eval "$ac_try") 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; }; then
16193   ac_header_compiler=yes
16194 else
16195   echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198         ac_header_compiler=no
16199 fi
16200
16201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16203 echo "${ECHO_T}$ac_header_compiler" >&6; }
16204
16205 # Is the header present?
16206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16208 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h.  */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h.  */
16214 #include <$ac_header>
16215 _ACEOF
16216 if { (ac_try="$ac_cpp conftest.$ac_ext"
16217 case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16223   ac_status=$?
16224   grep -v '^ *+' conftest.er1 >conftest.err
16225   rm -f conftest.er1
16226   cat conftest.err >&5
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); } >/dev/null; then
16229   if test -s conftest.err; then
16230     ac_cpp_err=$ac_c_preproc_warn_flag
16231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16232   else
16233     ac_cpp_err=
16234   fi
16235 else
16236   ac_cpp_err=yes
16237 fi
16238 if test -z "$ac_cpp_err"; then
16239   ac_header_preproc=yes
16240 else
16241   echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16243
16244   ac_header_preproc=no
16245 fi
16246
16247 rm -f conftest.err conftest.$ac_ext
16248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16249 echo "${ECHO_T}$ac_header_preproc" >&6; }
16250
16251 # So?  What about this header?
16252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16253   yes:no: )
16254     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16258     ac_header_preproc=yes
16259     ;;
16260   no:yes:* )
16261     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16263     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16264 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16265     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16267     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16268 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16271     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16273     ( cat <<\_ASBOX
16274 ## ----------------------------------- ##
16275 ## Report this to llvmbugs@cs.uiuc.edu ##
16276 ## ----------------------------------- ##
16277 _ASBOX
16278      ) | sed "s/^/$as_me: WARNING:     /" >&2
16279     ;;
16280 esac
16281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16284   echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286   eval "$as_ac_Header=\$ac_header_preproc"
16287 fi
16288 ac_res=`eval echo '${'$as_ac_Header'}'`
16289                { echo "$as_me:$LINENO: result: $ac_res" >&5
16290 echo "${ECHO_T}$ac_res" >&6; }
16291
16292 fi
16293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16294   cat >>confdefs.h <<_ACEOF
16295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16296 _ACEOF
16297
16298 fi
16299
16300 done
16301
16302
16303
16304
16305
16306
16307 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16308 do
16309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16311   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314   echo $ECHO_N "(cached) $ECHO_C" >&6
16315 fi
16316 ac_res=`eval echo '${'$as_ac_Header'}'`
16317                { echo "$as_me:$LINENO: result: $ac_res" >&5
16318 echo "${ECHO_T}$ac_res" >&6; }
16319 else
16320   # Is the header compilable?
16321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16323 cat >conftest.$ac_ext <<_ACEOF
16324 /* confdefs.h.  */
16325 _ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h.  */
16329 $ac_includes_default
16330 #include <$ac_header>
16331 _ACEOF
16332 rm -f conftest.$ac_objext
16333 if { (ac_try="$ac_compile"
16334 case "(($ac_try" in
16335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336   *) ac_try_echo=$ac_try;;
16337 esac
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339   (eval "$ac_compile") 2>conftest.er1
16340   ac_status=$?
16341   grep -v '^ *+' conftest.er1 >conftest.err
16342   rm -f conftest.er1
16343   cat conftest.err >&5
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); } &&
16346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16347   { (case "(($ac_try" in
16348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349   *) ac_try_echo=$ac_try;;
16350 esac
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352   (eval "$ac_try") 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); }; } &&
16356          { ac_try='test -s conftest.$ac_objext'
16357   { (case "(($ac_try" in
16358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359   *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362   (eval "$ac_try") 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; }; then
16366   ac_header_compiler=yes
16367 else
16368   echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16370
16371         ac_header_compiler=no
16372 fi
16373
16374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16376 echo "${ECHO_T}$ac_header_compiler" >&6; }
16377
16378 # Is the header present?
16379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16381 cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h.  */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h.  */
16387 #include <$ac_header>
16388 _ACEOF
16389 if { (ac_try="$ac_cpp conftest.$ac_ext"
16390 case "(($ac_try" in
16391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392   *) ac_try_echo=$ac_try;;
16393 esac
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16396   ac_status=$?
16397   grep -v '^ *+' conftest.er1 >conftest.err
16398   rm -f conftest.er1
16399   cat conftest.err >&5
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); } >/dev/null; then
16402   if test -s conftest.err; then
16403     ac_cpp_err=$ac_c_preproc_warn_flag
16404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16405   else
16406     ac_cpp_err=
16407   fi
16408 else
16409   ac_cpp_err=yes
16410 fi
16411 if test -z "$ac_cpp_err"; then
16412   ac_header_preproc=yes
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417   ac_header_preproc=no
16418 fi
16419
16420 rm -f conftest.err conftest.$ac_ext
16421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16422 echo "${ECHO_T}$ac_header_preproc" >&6; }
16423
16424 # So?  What about this header?
16425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16426   yes:no: )
16427     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16431     ac_header_preproc=yes
16432     ;;
16433   no:yes:* )
16434     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16436     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16437 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16438     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16440     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16441 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16444     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16446     ( cat <<\_ASBOX
16447 ## ----------------------------------- ##
16448 ## Report this to llvmbugs@cs.uiuc.edu ##
16449 ## ----------------------------------- ##
16450 _ASBOX
16451      ) | sed "s/^/$as_me: WARNING:     /" >&2
16452     ;;
16453 esac
16454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16457   echo $ECHO_N "(cached) $ECHO_C" >&6
16458 else
16459   eval "$as_ac_Header=\$ac_header_preproc"
16460 fi
16461 ac_res=`eval echo '${'$as_ac_Header'}'`
16462                { echo "$as_me:$LINENO: result: $ac_res" >&5
16463 echo "${ECHO_T}$ac_res" >&6; }
16464
16465 fi
16466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16467   cat >>confdefs.h <<_ACEOF
16468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16469 _ACEOF
16470
16471 fi
16472
16473 done
16474
16475
16476
16477
16478
16479 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16480 do
16481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16486   echo $ECHO_N "(cached) $ECHO_C" >&6
16487 fi
16488 ac_res=`eval echo '${'$as_ac_Header'}'`
16489                { echo "$as_me:$LINENO: result: $ac_res" >&5
16490 echo "${ECHO_T}$ac_res" >&6; }
16491 else
16492   # Is the header compilable?
16493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16495 cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h.  */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h.  */
16501 $ac_includes_default
16502 #include <$ac_header>
16503 _ACEOF
16504 rm -f conftest.$ac_objext
16505 if { (ac_try="$ac_compile"
16506 case "(($ac_try" in
16507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508   *) ac_try_echo=$ac_try;;
16509 esac
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511   (eval "$ac_compile") 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } &&
16518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16519   { (case "(($ac_try" in
16520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521   *) ac_try_echo=$ac_try;;
16522 esac
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524   (eval "$ac_try") 2>&5
16525   ac_status=$?
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); }; } &&
16528          { ac_try='test -s conftest.$ac_objext'
16529   { (case "(($ac_try" in
16530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531   *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534   (eval "$ac_try") 2>&5
16535   ac_status=$?
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); }; }; then
16538   ac_header_compiler=yes
16539 else
16540   echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16542
16543         ac_header_compiler=no
16544 fi
16545
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16548 echo "${ECHO_T}$ac_header_compiler" >&6; }
16549
16550 # Is the header present?
16551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16553 cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h.  */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h.  */
16559 #include <$ac_header>
16560 _ACEOF
16561 if { (ac_try="$ac_cpp conftest.$ac_ext"
16562 case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16568   ac_status=$?
16569   grep -v '^ *+' conftest.er1 >conftest.err
16570   rm -f conftest.er1
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } >/dev/null; then
16574   if test -s conftest.err; then
16575     ac_cpp_err=$ac_c_preproc_warn_flag
16576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16577   else
16578     ac_cpp_err=
16579   fi
16580 else
16581   ac_cpp_err=yes
16582 fi
16583 if test -z "$ac_cpp_err"; then
16584   ac_header_preproc=yes
16585 else
16586   echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16588
16589   ac_header_preproc=no
16590 fi
16591
16592 rm -f conftest.err conftest.$ac_ext
16593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16594 echo "${ECHO_T}$ac_header_preproc" >&6; }
16595
16596 # So?  What about this header?
16597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16598   yes:no: )
16599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16603     ac_header_preproc=yes
16604     ;;
16605   no:yes:* )
16606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16618     ( cat <<\_ASBOX
16619 ## ----------------------------------- ##
16620 ## Report this to llvmbugs@cs.uiuc.edu ##
16621 ## ----------------------------------- ##
16622 _ASBOX
16623      ) | sed "s/^/$as_me: WARNING:     /" >&2
16624     ;;
16625 esac
16626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16629   echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631   eval "$as_ac_Header=\$ac_header_preproc"
16632 fi
16633 ac_res=`eval echo '${'$as_ac_Header'}'`
16634                { echo "$as_me:$LINENO: result: $ac_res" >&5
16635 echo "${ECHO_T}$ac_res" >&6; }
16636
16637 fi
16638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16639   cat >>confdefs.h <<_ACEOF
16640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16641 _ACEOF
16642
16643 fi
16644
16645 done
16646
16647
16648 for ac_header in valgrind/valgrind.h
16649 do
16650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16652   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16655   echo $ECHO_N "(cached) $ECHO_C" >&6
16656 fi
16657 ac_res=`eval echo '${'$as_ac_Header'}'`
16658                { echo "$as_me:$LINENO: result: $ac_res" >&5
16659 echo "${ECHO_T}$ac_res" >&6; }
16660 else
16661   # Is the header compilable?
16662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16664 cat >conftest.$ac_ext <<_ACEOF
16665 /* confdefs.h.  */
16666 _ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h.  */
16670 $ac_includes_default
16671 #include <$ac_header>
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680   (eval "$ac_compile") 2>conftest.er1
16681   ac_status=$?
16682   grep -v '^ *+' conftest.er1 >conftest.err
16683   rm -f conftest.er1
16684   cat conftest.err >&5
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); } &&
16687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16688   { (case "(($ac_try" in
16689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690   *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693   (eval "$ac_try") 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; } &&
16697          { ac_try='test -s conftest.$ac_objext'
16698   { (case "(($ac_try" in
16699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700   *) ac_try_echo=$ac_try;;
16701 esac
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703   (eval "$ac_try") 2>&5
16704   ac_status=$?
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); }; }; then
16707   ac_header_compiler=yes
16708 else
16709   echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712         ac_header_compiler=no
16713 fi
16714
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16717 echo "${ECHO_T}$ac_header_compiler" >&6; }
16718
16719 # Is the header present?
16720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h.  */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h.  */
16728 #include <$ac_header>
16729 _ACEOF
16730 if { (ac_try="$ac_cpp conftest.$ac_ext"
16731 case "(($ac_try" in
16732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733   *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16737   ac_status=$?
16738   grep -v '^ *+' conftest.er1 >conftest.err
16739   rm -f conftest.er1
16740   cat conftest.err >&5
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); } >/dev/null; then
16743   if test -s conftest.err; then
16744     ac_cpp_err=$ac_c_preproc_warn_flag
16745     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16746   else
16747     ac_cpp_err=
16748   fi
16749 else
16750   ac_cpp_err=yes
16751 fi
16752 if test -z "$ac_cpp_err"; then
16753   ac_header_preproc=yes
16754 else
16755   echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16757
16758   ac_header_preproc=no
16759 fi
16760
16761 rm -f conftest.err conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16763 echo "${ECHO_T}$ac_header_preproc" >&6; }
16764
16765 # So?  What about this header?
16766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16767   yes:no: )
16768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16772     ac_header_preproc=yes
16773     ;;
16774   no:yes:* )
16775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16777     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16778 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16779     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16781     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16782 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16785     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16787     ( cat <<\_ASBOX
16788 ## ----------------------------------- ##
16789 ## Report this to llvmbugs@cs.uiuc.edu ##
16790 ## ----------------------------------- ##
16791 _ASBOX
16792      ) | sed "s/^/$as_me: WARNING:     /" >&2
16793     ;;
16794 esac
16795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16798   echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800   eval "$as_ac_Header=\$ac_header_preproc"
16801 fi
16802 ac_res=`eval echo '${'$as_ac_Header'}'`
16803                { echo "$as_me:$LINENO: result: $ac_res" >&5
16804 echo "${ECHO_T}$ac_res" >&6; }
16805
16806 fi
16807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16808   cat >>confdefs.h <<_ACEOF
16809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16810 _ACEOF
16811
16812 fi
16813
16814 done
16815
16816
16817 for ac_header in fenv.h
16818 do
16819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16821   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16824   echo $ECHO_N "(cached) $ECHO_C" >&6
16825 fi
16826 ac_res=`eval echo '${'$as_ac_Header'}'`
16827                { echo "$as_me:$LINENO: result: $ac_res" >&5
16828 echo "${ECHO_T}$ac_res" >&6; }
16829 else
16830   # Is the header compilable?
16831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16833 cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h.  */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h.  */
16839 $ac_includes_default
16840 #include <$ac_header>
16841 _ACEOF
16842 rm -f conftest.$ac_objext
16843 if { (ac_try="$ac_compile"
16844 case "(($ac_try" in
16845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846   *) ac_try_echo=$ac_try;;
16847 esac
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849   (eval "$ac_compile") 2>conftest.er1
16850   ac_status=$?
16851   grep -v '^ *+' conftest.er1 >conftest.err
16852   rm -f conftest.er1
16853   cat conftest.err >&5
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } &&
16856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857   { (case "(($ac_try" in
16858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859   *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862   (eval "$ac_try") 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); }; } &&
16866          { ac_try='test -s conftest.$ac_objext'
16867   { (case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_try") 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; }; then
16876   ac_header_compiler=yes
16877 else
16878   echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881         ac_header_compiler=no
16882 fi
16883
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16886 echo "${ECHO_T}$ac_header_compiler" >&6; }
16887
16888 # Is the header present?
16889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16891 cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h.  */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h.  */
16897 #include <$ac_header>
16898 _ACEOF
16899 if { (ac_try="$ac_cpp conftest.$ac_ext"
16900 case "(($ac_try" in
16901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902   *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16906   ac_status=$?
16907   grep -v '^ *+' conftest.er1 >conftest.err
16908   rm -f conftest.er1
16909   cat conftest.err >&5
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); } >/dev/null; then
16912   if test -s conftest.err; then
16913     ac_cpp_err=$ac_c_preproc_warn_flag
16914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16915   else
16916     ac_cpp_err=
16917   fi
16918 else
16919   ac_cpp_err=yes
16920 fi
16921 if test -z "$ac_cpp_err"; then
16922   ac_header_preproc=yes
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927   ac_header_preproc=no
16928 fi
16929
16930 rm -f conftest.err conftest.$ac_ext
16931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16932 echo "${ECHO_T}$ac_header_preproc" >&6; }
16933
16934 # So?  What about this header?
16935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16936   yes:no: )
16937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16941     ac_header_preproc=yes
16942     ;;
16943   no:yes:* )
16944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16956     ( cat <<\_ASBOX
16957 ## ----------------------------------- ##
16958 ## Report this to llvmbugs@cs.uiuc.edu ##
16959 ## ----------------------------------- ##
16960 _ASBOX
16961      ) | sed "s/^/$as_me: WARNING:     /" >&2
16962     ;;
16963 esac
16964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16967   echo $ECHO_N "(cached) $ECHO_C" >&6
16968 else
16969   eval "$as_ac_Header=\$ac_header_preproc"
16970 fi
16971 ac_res=`eval echo '${'$as_ac_Header'}'`
16972                { echo "$as_me:$LINENO: result: $ac_res" >&5
16973 echo "${ECHO_T}$ac_res" >&6; }
16974
16975 fi
16976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16977   cat >>confdefs.h <<_ACEOF
16978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16979 _ACEOF
16980
16981 fi
16982
16983 done
16984
16985 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16986
16987 for ac_header in pthread.h
16988 do
16989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16991   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16994   echo $ECHO_N "(cached) $ECHO_C" >&6
16995 fi
16996 ac_res=`eval echo '${'$as_ac_Header'}'`
16997                { echo "$as_me:$LINENO: result: $ac_res" >&5
16998 echo "${ECHO_T}$ac_res" >&6; }
16999 else
17000   # Is the header compilable?
17001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17003 cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h.  */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h.  */
17009 $ac_includes_default
17010 #include <$ac_header>
17011 _ACEOF
17012 rm -f conftest.$ac_objext
17013 if { (ac_try="$ac_compile"
17014 case "(($ac_try" in
17015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016   *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019   (eval "$ac_compile") 2>conftest.er1
17020   ac_status=$?
17021   grep -v '^ *+' conftest.er1 >conftest.err
17022   rm -f conftest.er1
17023   cat conftest.err >&5
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); } &&
17026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17027   { (case "(($ac_try" in
17028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029   *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032   (eval "$ac_try") 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); }; } &&
17036          { ac_try='test -s conftest.$ac_objext'
17037   { (case "(($ac_try" in
17038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039   *) ac_try_echo=$ac_try;;
17040 esac
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042   (eval "$ac_try") 2>&5
17043   ac_status=$?
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); }; }; then
17046   ac_header_compiler=yes
17047 else
17048   echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17050
17051         ac_header_compiler=no
17052 fi
17053
17054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17056 echo "${ECHO_T}$ac_header_compiler" >&6; }
17057
17058 # Is the header present?
17059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17061 cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 #include <$ac_header>
17068 _ACEOF
17069 if { (ac_try="$ac_cpp conftest.$ac_ext"
17070 case "(($ac_try" in
17071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072   *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17076   ac_status=$?
17077   grep -v '^ *+' conftest.er1 >conftest.err
17078   rm -f conftest.er1
17079   cat conftest.err >&5
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); } >/dev/null; then
17082   if test -s conftest.err; then
17083     ac_cpp_err=$ac_c_preproc_warn_flag
17084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17085   else
17086     ac_cpp_err=
17087   fi
17088 else
17089   ac_cpp_err=yes
17090 fi
17091 if test -z "$ac_cpp_err"; then
17092   ac_header_preproc=yes
17093 else
17094   echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17096
17097   ac_header_preproc=no
17098 fi
17099
17100 rm -f conftest.err conftest.$ac_ext
17101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17102 echo "${ECHO_T}$ac_header_preproc" >&6; }
17103
17104 # So?  What about this header?
17105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17106   yes:no: )
17107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17111     ac_header_preproc=yes
17112     ;;
17113   no:yes:* )
17114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17116     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17117 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17118     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17120     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17121 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17124     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17126     ( cat <<\_ASBOX
17127 ## ----------------------------------- ##
17128 ## Report this to llvmbugs@cs.uiuc.edu ##
17129 ## ----------------------------------- ##
17130 _ASBOX
17131      ) | sed "s/^/$as_me: WARNING:     /" >&2
17132     ;;
17133 esac
17134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17137   echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139   eval "$as_ac_Header=\$ac_header_preproc"
17140 fi
17141 ac_res=`eval echo '${'$as_ac_Header'}'`
17142                { echo "$as_me:$LINENO: result: $ac_res" >&5
17143 echo "${ECHO_T}$ac_res" >&6; }
17144
17145 fi
17146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17147   cat >>confdefs.h <<_ACEOF
17148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17149 _ACEOF
17150  HAVE_PTHREAD=1
17151
17152 else
17153   HAVE_PTHREAD=0
17154
17155 fi
17156
17157 done
17158
17159 else
17160   HAVE_PTHREAD=0
17161
17162 fi
17163
17164 if test "$llvm_cv_enable_libffi" = "yes" ; then
17165
17166
17167 for ac_header in ffi.h ffi/ffi.h
17168 do
17169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17171   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17174   echo $ECHO_N "(cached) $ECHO_C" >&6
17175 fi
17176 ac_res=`eval echo '${'$as_ac_Header'}'`
17177                { echo "$as_me:$LINENO: result: $ac_res" >&5
17178 echo "${ECHO_T}$ac_res" >&6; }
17179 else
17180   # Is the header compilable?
17181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17183 cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h.  */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h.  */
17189 $ac_includes_default
17190 #include <$ac_header>
17191 _ACEOF
17192 rm -f conftest.$ac_objext
17193 if { (ac_try="$ac_compile"
17194 case "(($ac_try" in
17195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196   *) ac_try_echo=$ac_try;;
17197 esac
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199   (eval "$ac_compile") 2>conftest.er1
17200   ac_status=$?
17201   grep -v '^ *+' conftest.er1 >conftest.err
17202   rm -f conftest.er1
17203   cat conftest.err >&5
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } &&
17206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207   { (case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212   (eval "$ac_try") 2>&5
17213   ac_status=$?
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); }; } &&
17216          { ac_try='test -s conftest.$ac_objext'
17217   { (case "(($ac_try" in
17218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219   *) ac_try_echo=$ac_try;;
17220 esac
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222   (eval "$ac_try") 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); }; }; then
17226   ac_header_compiler=yes
17227 else
17228   echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231         ac_header_compiler=no
17232 fi
17233
17234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17236 echo "${ECHO_T}$ac_header_compiler" >&6; }
17237
17238 # Is the header present?
17239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h.  */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h.  */
17247 #include <$ac_header>
17248 _ACEOF
17249 if { (ac_try="$ac_cpp conftest.$ac_ext"
17250 case "(($ac_try" in
17251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252   *) ac_try_echo=$ac_try;;
17253 esac
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17256   ac_status=$?
17257   grep -v '^ *+' conftest.er1 >conftest.err
17258   rm -f conftest.er1
17259   cat conftest.err >&5
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); } >/dev/null; then
17262   if test -s conftest.err; then
17263     ac_cpp_err=$ac_c_preproc_warn_flag
17264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17265   else
17266     ac_cpp_err=
17267   fi
17268 else
17269   ac_cpp_err=yes
17270 fi
17271 if test -z "$ac_cpp_err"; then
17272   ac_header_preproc=yes
17273 else
17274   echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277   ac_header_preproc=no
17278 fi
17279
17280 rm -f conftest.err conftest.$ac_ext
17281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17282 echo "${ECHO_T}$ac_header_preproc" >&6; }
17283
17284 # So?  What about this header?
17285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17286   yes:no: )
17287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17291     ac_header_preproc=yes
17292     ;;
17293   no:yes:* )
17294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17306     ( cat <<\_ASBOX
17307 ## ----------------------------------- ##
17308 ## Report this to llvmbugs@cs.uiuc.edu ##
17309 ## ----------------------------------- ##
17310 _ASBOX
17311      ) | sed "s/^/$as_me: WARNING:     /" >&2
17312     ;;
17313 esac
17314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319   eval "$as_ac_Header=\$ac_header_preproc"
17320 fi
17321 ac_res=`eval echo '${'$as_ac_Header'}'`
17322                { echo "$as_me:$LINENO: result: $ac_res" >&5
17323 echo "${ECHO_T}$ac_res" >&6; }
17324
17325 fi
17326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17327   cat >>confdefs.h <<_ACEOF
17328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17329 _ACEOF
17330
17331 fi
17332
17333 done
17334
17335 fi
17336
17337
17338 for ac_header in CrashReporterClient.h
17339 do
17340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17342   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17345   echo $ECHO_N "(cached) $ECHO_C" >&6
17346 fi
17347 ac_res=`eval echo '${'$as_ac_Header'}'`
17348                { echo "$as_me:$LINENO: result: $ac_res" >&5
17349 echo "${ECHO_T}$ac_res" >&6; }
17350 else
17351   # Is the header compilable?
17352 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17354 cat >conftest.$ac_ext <<_ACEOF
17355 /* confdefs.h.  */
17356 _ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h.  */
17360 $ac_includes_default
17361 #include <$ac_header>
17362 _ACEOF
17363 rm -f conftest.$ac_objext
17364 if { (ac_try="$ac_compile"
17365 case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_compile") 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } &&
17377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17378   { (case "(($ac_try" in
17379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380   *) ac_try_echo=$ac_try;;
17381 esac
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383   (eval "$ac_try") 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; } &&
17387          { ac_try='test -s conftest.$ac_objext'
17388   { (case "(($ac_try" in
17389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390   *) ac_try_echo=$ac_try;;
17391 esac
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393   (eval "$ac_try") 2>&5
17394   ac_status=$?
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; }; then
17397   ac_header_compiler=yes
17398 else
17399   echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17401
17402         ac_header_compiler=no
17403 fi
17404
17405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17407 echo "${ECHO_T}$ac_header_compiler" >&6; }
17408
17409 # Is the header present?
17410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h.  */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h.  */
17418 #include <$ac_header>
17419 _ACEOF
17420 if { (ac_try="$ac_cpp conftest.$ac_ext"
17421 case "(($ac_try" in
17422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423   *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17427   ac_status=$?
17428   grep -v '^ *+' conftest.er1 >conftest.err
17429   rm -f conftest.er1
17430   cat conftest.err >&5
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); } >/dev/null; then
17433   if test -s conftest.err; then
17434     ac_cpp_err=$ac_c_preproc_warn_flag
17435     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17436   else
17437     ac_cpp_err=
17438   fi
17439 else
17440   ac_cpp_err=yes
17441 fi
17442 if test -z "$ac_cpp_err"; then
17443   ac_header_preproc=yes
17444 else
17445   echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448   ac_header_preproc=no
17449 fi
17450
17451 rm -f conftest.err conftest.$ac_ext
17452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17453 echo "${ECHO_T}$ac_header_preproc" >&6; }
17454
17455 # So?  What about this header?
17456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17457   yes:no: )
17458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17462     ac_header_preproc=yes
17463     ;;
17464   no:yes:* )
17465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17477     ( cat <<\_ASBOX
17478 ## ----------------------------------- ##
17479 ## Report this to llvmbugs@cs.uiuc.edu ##
17480 ## ----------------------------------- ##
17481 _ASBOX
17482      ) | sed "s/^/$as_me: WARNING:     /" >&2
17483     ;;
17484 esac
17485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17488   echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490   eval "$as_ac_Header=\$ac_header_preproc"
17491 fi
17492 ac_res=`eval echo '${'$as_ac_Header'}'`
17493                { echo "$as_me:$LINENO: result: $ac_res" >&5
17494 echo "${ECHO_T}$ac_res" >&6; }
17495
17496 fi
17497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17498   cat >>confdefs.h <<_ACEOF
17499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17500 _ACEOF
17501
17502 fi
17503
17504 done
17505
17506
17507 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17508 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17509 cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515 extern const char *__crashreporter_info__;
17516       int main() {
17517         __crashreporter_info__ = "test";
17518         return 0;
17519       }
17520
17521 _ACEOF
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526   *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529   (eval "$ac_link") 2>conftest.er1
17530   ac_status=$?
17531   grep -v '^ *+' conftest.er1 >conftest.err
17532   rm -f conftest.er1
17533   cat conftest.err >&5
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } &&
17536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537   { (case "(($ac_try" in
17538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539   *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542   (eval "$ac_try") 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); }; } &&
17546          { ac_try='test -s conftest$ac_exeext'
17547   { (case "(($ac_try" in
17548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549   *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552   (eval "$ac_try") 2>&5
17553   ac_status=$?
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); }; }; then
17556   { echo "$as_me:$LINENO: result: yes" >&5
17557 echo "${ECHO_T}yes" >&6; }
17558
17559 cat >>confdefs.h <<\_ACEOF
17560 #define HAVE_CRASHREPORTER_INFO 1
17561 _ACEOF
17562
17563 else
17564   echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17566
17567         { echo "$as_me:$LINENO: result: no" >&5
17568 echo "${ECHO_T}no" >&6; }
17569
17570 cat >>confdefs.h <<\_ACEOF
17571 #define HAVE_CRASHREPORTER_INFO 0
17572 _ACEOF
17573
17574 fi
17575
17576 rm -f core conftest.err conftest.$ac_objext \
17577       conftest$ac_exeext conftest.$ac_ext
17578
17579
17580
17581
17582   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17583 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17584 if test "${ac_cv_huge_val_sanity+set}" = set; then
17585   echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587
17588     ac_ext=cpp
17589 ac_cpp='$CXXCPP $CPPFLAGS'
17590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17593
17594     ac_save_CXXFLAGS=$CXXFLAGS
17595     CXXFLAGS=-pedantic
17596     if test "$cross_compiling" = yes; then
17597   ac_cv_huge_val_sanity=yes
17598 else
17599   cat >conftest.$ac_ext <<_ACEOF
17600 /* confdefs.h.  */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h.  */
17605 #include <math.h>
17606 int
17607 main ()
17608 {
17609 double x = HUGE_VAL; return x != x;
17610   ;
17611   return 0;
17612 }
17613 _ACEOF
17614 rm -f conftest$ac_exeext
17615 if { (ac_try="$ac_link"
17616 case "(($ac_try" in
17617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618   *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621   (eval "$ac_link") 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17625   { (case "(($ac_try" in
17626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627   *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630   (eval "$ac_try") 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; }; then
17634   ac_cv_huge_val_sanity=yes
17635 else
17636   echo "$as_me: program exited with status $ac_status" >&5
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17639
17640 ( exit $ac_status )
17641 ac_cv_huge_val_sanity=no
17642 fi
17643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17644 fi
17645
17646
17647     CXXFLAGS=$ac_save_CXXFLAGS
17648     ac_ext=c
17649 ac_cpp='$CPP $CPPFLAGS'
17650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17653
17654
17655 fi
17656 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17657 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17658   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17659
17660
17661 { echo "$as_me:$LINENO: checking for pid_t" >&5
17662 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17663 if test "${ac_cv_type_pid_t+set}" = set; then
17664   echo $ECHO_N "(cached) $ECHO_C" >&6
17665 else
17666   cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h.  */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h.  */
17672 $ac_includes_default
17673 typedef pid_t ac__type_new_;
17674 int
17675 main ()
17676 {
17677 if ((ac__type_new_ *) 0)
17678   return 0;
17679 if (sizeof (ac__type_new_))
17680   return 0;
17681   ;
17682   return 0;
17683 }
17684 _ACEOF
17685 rm -f conftest.$ac_objext
17686 if { (ac_try="$ac_compile"
17687 case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_compile") 2>conftest.er1
17693   ac_status=$?
17694   grep -v '^ *+' conftest.er1 >conftest.err
17695   rm -f conftest.er1
17696   cat conftest.err >&5
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } &&
17699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17700   { (case "(($ac_try" in
17701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702   *) ac_try_echo=$ac_try;;
17703 esac
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705   (eval "$ac_try") 2>&5
17706   ac_status=$?
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); }; } &&
17709          { ac_try='test -s conftest.$ac_objext'
17710   { (case "(($ac_try" in
17711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712   *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715   (eval "$ac_try") 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; }; then
17719   ac_cv_type_pid_t=yes
17720 else
17721   echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17723
17724         ac_cv_type_pid_t=no
17725 fi
17726
17727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728 fi
17729 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17730 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17731 if test $ac_cv_type_pid_t = yes; then
17732   :
17733 else
17734
17735 cat >>confdefs.h <<_ACEOF
17736 #define pid_t int
17737 _ACEOF
17738
17739 fi
17740
17741 { echo "$as_me:$LINENO: checking for size_t" >&5
17742 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17743 if test "${ac_cv_type_size_t+set}" = set; then
17744   echo $ECHO_N "(cached) $ECHO_C" >&6
17745 else
17746   cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h.  */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h.  */
17752 $ac_includes_default
17753 typedef size_t ac__type_new_;
17754 int
17755 main ()
17756 {
17757 if ((ac__type_new_ *) 0)
17758   return 0;
17759 if (sizeof (ac__type_new_))
17760   return 0;
17761   ;
17762   return 0;
17763 }
17764 _ACEOF
17765 rm -f conftest.$ac_objext
17766 if { (ac_try="$ac_compile"
17767 case "(($ac_try" in
17768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769   *) ac_try_echo=$ac_try;;
17770 esac
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772   (eval "$ac_compile") 2>conftest.er1
17773   ac_status=$?
17774   grep -v '^ *+' conftest.er1 >conftest.err
17775   rm -f conftest.er1
17776   cat conftest.err >&5
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); } &&
17779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17780   { (case "(($ac_try" in
17781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782   *) ac_try_echo=$ac_try;;
17783 esac
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785   (eval "$ac_try") 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; } &&
17789          { ac_try='test -s conftest.$ac_objext'
17790   { (case "(($ac_try" in
17791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792   *) ac_try_echo=$ac_try;;
17793 esac
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795   (eval "$ac_try") 2>&5
17796   ac_status=$?
17797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798   (exit $ac_status); }; }; then
17799   ac_cv_type_size_t=yes
17800 else
17801   echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804         ac_cv_type_size_t=no
17805 fi
17806
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808 fi
17809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17811 if test $ac_cv_type_size_t = yes; then
17812   :
17813 else
17814
17815 cat >>confdefs.h <<_ACEOF
17816 #define size_t unsigned int
17817 _ACEOF
17818
17819 fi
17820
17821
17822 cat >>confdefs.h <<_ACEOF
17823 #define RETSIGTYPE void
17824 _ACEOF
17825
17826 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17827 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17828 if test "${ac_cv_struct_tm+set}" = set; then
17829   echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831   cat >conftest.$ac_ext <<_ACEOF
17832 /* confdefs.h.  */
17833 _ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h.  */
17837 #include <sys/types.h>
17838 #include <time.h>
17839
17840 int
17841 main ()
17842 {
17843 struct tm *tp; tp->tm_sec;
17844   ;
17845   return 0;
17846 }
17847 _ACEOF
17848 rm -f conftest.$ac_objext
17849 if { (ac_try="$ac_compile"
17850 case "(($ac_try" in
17851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852   *) ac_try_echo=$ac_try;;
17853 esac
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855   (eval "$ac_compile") 2>conftest.er1
17856   ac_status=$?
17857   grep -v '^ *+' conftest.er1 >conftest.err
17858   rm -f conftest.er1
17859   cat conftest.err >&5
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); } &&
17862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17863   { (case "(($ac_try" in
17864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865   *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868   (eval "$ac_try") 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; } &&
17872          { ac_try='test -s conftest.$ac_objext'
17873   { (case "(($ac_try" in
17874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875   *) ac_try_echo=$ac_try;;
17876 esac
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878   (eval "$ac_try") 2>&5
17879   ac_status=$?
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); }; }; then
17882   ac_cv_struct_tm=time.h
17883 else
17884   echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17886
17887         ac_cv_struct_tm=sys/time.h
17888 fi
17889
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17891 fi
17892 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17893 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17894 if test $ac_cv_struct_tm = sys/time.h; then
17895
17896 cat >>confdefs.h <<\_ACEOF
17897 #define TM_IN_SYS_TIME 1
17898 _ACEOF
17899
17900 fi
17901
17902 { echo "$as_me:$LINENO: checking for int64_t" >&5
17903 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17904 if test "${ac_cv_type_int64_t+set}" = set; then
17905   echo $ECHO_N "(cached) $ECHO_C" >&6
17906 else
17907   cat >conftest.$ac_ext <<_ACEOF
17908 /* confdefs.h.  */
17909 _ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h.  */
17913 $ac_includes_default
17914 typedef int64_t ac__type_new_;
17915 int
17916 main ()
17917 {
17918 if ((ac__type_new_ *) 0)
17919   return 0;
17920 if (sizeof (ac__type_new_))
17921   return 0;
17922   ;
17923   return 0;
17924 }
17925 _ACEOF
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930   *) ac_try_echo=$ac_try;;
17931 esac
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933   (eval "$ac_compile") 2>conftest.er1
17934   ac_status=$?
17935   grep -v '^ *+' conftest.er1 >conftest.err
17936   rm -f conftest.er1
17937   cat conftest.err >&5
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); } &&
17940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17941   { (case "(($ac_try" in
17942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943   *) ac_try_echo=$ac_try;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946   (eval "$ac_try") 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; } &&
17950          { ac_try='test -s conftest.$ac_objext'
17951   { (case "(($ac_try" in
17952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953   *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956   (eval "$ac_try") 2>&5
17957   ac_status=$?
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); }; }; then
17960   ac_cv_type_int64_t=yes
17961 else
17962   echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965         ac_cv_type_int64_t=no
17966 fi
17967
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969 fi
17970 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17971 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17972 if test $ac_cv_type_int64_t = yes; then
17973
17974 cat >>confdefs.h <<_ACEOF
17975 #define HAVE_INT64_T 1
17976 _ACEOF
17977
17978
17979 else
17980   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17981 echo "$as_me: error: Type int64_t required but not found" >&2;}
17982    { (exit 1); exit 1; }; }
17983 fi
17984
17985 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17986 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17987 if test "${ac_cv_type_uint64_t+set}" = set; then
17988   echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990   cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h.  */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h.  */
17996 $ac_includes_default
17997 typedef uint64_t ac__type_new_;
17998 int
17999 main ()
18000 {
18001 if ((ac__type_new_ *) 0)
18002   return 0;
18003 if (sizeof (ac__type_new_))
18004   return 0;
18005   ;
18006   return 0;
18007 }
18008 _ACEOF
18009 rm -f conftest.$ac_objext
18010 if { (ac_try="$ac_compile"
18011 case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_compile") 2>conftest.er1
18017   ac_status=$?
18018   grep -v '^ *+' conftest.er1 >conftest.err
18019   rm -f conftest.er1
18020   cat conftest.err >&5
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); } &&
18023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024   { (case "(($ac_try" in
18025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026   *) ac_try_echo=$ac_try;;
18027 esac
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029   (eval "$ac_try") 2>&5
18030   ac_status=$?
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); }; } &&
18033          { ac_try='test -s conftest.$ac_objext'
18034   { (case "(($ac_try" in
18035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036   *) ac_try_echo=$ac_try;;
18037 esac
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039   (eval "$ac_try") 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); }; }; then
18043   ac_cv_type_uint64_t=yes
18044 else
18045   echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18047
18048         ac_cv_type_uint64_t=no
18049 fi
18050
18051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18052 fi
18053 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18054 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18055 if test $ac_cv_type_uint64_t = yes; then
18056
18057 cat >>confdefs.h <<_ACEOF
18058 #define HAVE_UINT64_T 1
18059 _ACEOF
18060
18061
18062 else
18063   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18064 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18065 if test "${ac_cv_type_u_int64_t+set}" = set; then
18066   echo $ECHO_N "(cached) $ECHO_C" >&6
18067 else
18068   cat >conftest.$ac_ext <<_ACEOF
18069 /* confdefs.h.  */
18070 _ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h.  */
18074 $ac_includes_default
18075 typedef u_int64_t ac__type_new_;
18076 int
18077 main ()
18078 {
18079 if ((ac__type_new_ *) 0)
18080   return 0;
18081 if (sizeof (ac__type_new_))
18082   return 0;
18083   ;
18084   return 0;
18085 }
18086 _ACEOF
18087 rm -f conftest.$ac_objext
18088 if { (ac_try="$ac_compile"
18089 case "(($ac_try" in
18090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091   *) ac_try_echo=$ac_try;;
18092 esac
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094   (eval "$ac_compile") 2>conftest.er1
18095   ac_status=$?
18096   grep -v '^ *+' conftest.er1 >conftest.err
18097   rm -f conftest.er1
18098   cat conftest.err >&5
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); } &&
18101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18102   { (case "(($ac_try" in
18103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104   *) ac_try_echo=$ac_try;;
18105 esac
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107   (eval "$ac_try") 2>&5
18108   ac_status=$?
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); }; } &&
18111          { ac_try='test -s conftest.$ac_objext'
18112   { (case "(($ac_try" in
18113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114   *) ac_try_echo=$ac_try;;
18115 esac
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117   (eval "$ac_try") 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; }; then
18121   ac_cv_type_u_int64_t=yes
18122 else
18123   echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18125
18126         ac_cv_type_u_int64_t=no
18127 fi
18128
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 fi
18131 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18132 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18133 if test $ac_cv_type_u_int64_t = yes; then
18134
18135 cat >>confdefs.h <<_ACEOF
18136 #define HAVE_U_INT64_T 1
18137 _ACEOF
18138
18139
18140 else
18141   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18142 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18143    { (exit 1); exit 1; }; }
18144 fi
18145
18146 fi
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18158 do
18159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18163   echo $ECHO_N "(cached) $ECHO_C" >&6
18164 else
18165   cat >conftest.$ac_ext <<_ACEOF
18166 /* confdefs.h.  */
18167 _ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h.  */
18171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18173 #define $ac_func innocuous_$ac_func
18174
18175 /* System header to define __stub macros and hopefully few prototypes,
18176     which can conflict with char $ac_func (); below.
18177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18178     <limits.h> exists even on freestanding compilers.  */
18179
18180 #ifdef __STDC__
18181 # include <limits.h>
18182 #else
18183 # include <assert.h>
18184 #endif
18185
18186 #undef $ac_func
18187
18188 /* Override any GCC internal prototype to avoid an error.
18189    Use char because int might match the return type of a GCC
18190    builtin and then its argument prototype would still apply.  */
18191 #ifdef __cplusplus
18192 extern "C"
18193 #endif
18194 char $ac_func ();
18195 /* The GNU C library defines this for functions which it implements
18196     to always fail with ENOSYS.  Some functions are actually named
18197     something starting with __ and the normal name is an alias.  */
18198 #if defined __stub_$ac_func || defined __stub___$ac_func
18199 choke me
18200 #endif
18201
18202 int
18203 main ()
18204 {
18205 return $ac_func ();
18206   ;
18207   return 0;
18208 }
18209 _ACEOF
18210 rm -f conftest.$ac_objext conftest$ac_exeext
18211 if { (ac_try="$ac_link"
18212 case "(($ac_try" in
18213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214   *) ac_try_echo=$ac_try;;
18215 esac
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217   (eval "$ac_link") 2>conftest.er1
18218   ac_status=$?
18219   grep -v '^ *+' conftest.er1 >conftest.err
18220   rm -f conftest.er1
18221   cat conftest.err >&5
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); } &&
18224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18225   { (case "(($ac_try" in
18226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227   *) ac_try_echo=$ac_try;;
18228 esac
18229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230   (eval "$ac_try") 2>&5
18231   ac_status=$?
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); }; } &&
18234          { ac_try='test -s conftest$ac_exeext'
18235   { (case "(($ac_try" in
18236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237   *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240   (eval "$ac_try") 2>&5
18241   ac_status=$?
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); }; }; then
18244   eval "$as_ac_var=yes"
18245 else
18246   echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18248
18249         eval "$as_ac_var=no"
18250 fi
18251
18252 rm -f core conftest.err conftest.$ac_objext \
18253       conftest$ac_exeext conftest.$ac_ext
18254 fi
18255 ac_res=`eval echo '${'$as_ac_var'}'`
18256                { echo "$as_me:$LINENO: result: $ac_res" >&5
18257 echo "${ECHO_T}$ac_res" >&6; }
18258 if test `eval echo '${'$as_ac_var'}'` = yes; then
18259   cat >>confdefs.h <<_ACEOF
18260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18261 _ACEOF
18262
18263 fi
18264 done
18265
18266
18267
18268
18269
18270 for ac_func in powf fmodf strtof round
18271 do
18272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18276   echo $ECHO_N "(cached) $ECHO_C" >&6
18277 else
18278   cat >conftest.$ac_ext <<_ACEOF
18279 /* confdefs.h.  */
18280 _ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h.  */
18284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18286 #define $ac_func innocuous_$ac_func
18287
18288 /* System header to define __stub macros and hopefully few prototypes,
18289     which can conflict with char $ac_func (); below.
18290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18291     <limits.h> exists even on freestanding compilers.  */
18292
18293 #ifdef __STDC__
18294 # include <limits.h>
18295 #else
18296 # include <assert.h>
18297 #endif
18298
18299 #undef $ac_func
18300
18301 /* Override any GCC internal prototype to avoid an error.
18302    Use char because int might match the return type of a GCC
18303    builtin and then its argument prototype would still apply.  */
18304 #ifdef __cplusplus
18305 extern "C"
18306 #endif
18307 char $ac_func ();
18308 /* The GNU C library defines this for functions which it implements
18309     to always fail with ENOSYS.  Some functions are actually named
18310     something starting with __ and the normal name is an alias.  */
18311 #if defined __stub_$ac_func || defined __stub___$ac_func
18312 choke me
18313 #endif
18314
18315 int
18316 main ()
18317 {
18318 return $ac_func ();
18319   ;
18320   return 0;
18321 }
18322 _ACEOF
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (ac_try="$ac_link"
18325 case "(($ac_try" in
18326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327   *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330   (eval "$ac_link") 2>conftest.er1
18331   ac_status=$?
18332   grep -v '^ *+' conftest.er1 >conftest.err
18333   rm -f conftest.er1
18334   cat conftest.err >&5
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); } &&
18337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18338   { (case "(($ac_try" in
18339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340   *) ac_try_echo=$ac_try;;
18341 esac
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343   (eval "$ac_try") 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; } &&
18347          { ac_try='test -s conftest$ac_exeext'
18348   { (case "(($ac_try" in
18349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350   *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353   (eval "$ac_try") 2>&5
18354   ac_status=$?
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); }; }; then
18357   eval "$as_ac_var=yes"
18358 else
18359   echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18361
18362         eval "$as_ac_var=no"
18363 fi
18364
18365 rm -f core conftest.err conftest.$ac_objext \
18366       conftest$ac_exeext conftest.$ac_ext
18367 fi
18368 ac_res=`eval echo '${'$as_ac_var'}'`
18369                { echo "$as_me:$LINENO: result: $ac_res" >&5
18370 echo "${ECHO_T}$ac_res" >&6; }
18371 if test `eval echo '${'$as_ac_var'}'` = yes; then
18372   cat >>confdefs.h <<_ACEOF
18373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18374 _ACEOF
18375
18376 fi
18377 done
18378
18379
18380
18381
18382
18383
18384 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18385 do
18386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18390   echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392   cat >conftest.$ac_ext <<_ACEOF
18393 /* confdefs.h.  */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h.  */
18398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18400 #define $ac_func innocuous_$ac_func
18401
18402 /* System header to define __stub macros and hopefully few prototypes,
18403     which can conflict with char $ac_func (); below.
18404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18405     <limits.h> exists even on freestanding compilers.  */
18406
18407 #ifdef __STDC__
18408 # include <limits.h>
18409 #else
18410 # include <assert.h>
18411 #endif
18412
18413 #undef $ac_func
18414
18415 /* Override any GCC internal prototype to avoid an error.
18416    Use char because int might match the return type of a GCC
18417    builtin and then its argument prototype would still apply.  */
18418 #ifdef __cplusplus
18419 extern "C"
18420 #endif
18421 char $ac_func ();
18422 /* The GNU C library defines this for functions which it implements
18423     to always fail with ENOSYS.  Some functions are actually named
18424     something starting with __ and the normal name is an alias.  */
18425 #if defined __stub_$ac_func || defined __stub___$ac_func
18426 choke me
18427 #endif
18428
18429 int
18430 main ()
18431 {
18432 return $ac_func ();
18433   ;
18434   return 0;
18435 }
18436 _ACEOF
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441   *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444   (eval "$ac_link") 2>conftest.er1
18445   ac_status=$?
18446   grep -v '^ *+' conftest.er1 >conftest.err
18447   rm -f conftest.er1
18448   cat conftest.err >&5
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); } &&
18451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18452   { (case "(($ac_try" in
18453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454   *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457   (eval "$ac_try") 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; } &&
18461          { ac_try='test -s conftest$ac_exeext'
18462   { (case "(($ac_try" in
18463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464   *) ac_try_echo=$ac_try;;
18465 esac
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467   (eval "$ac_try") 2>&5
18468   ac_status=$?
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); }; }; then
18471   eval "$as_ac_var=yes"
18472 else
18473   echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18475
18476         eval "$as_ac_var=no"
18477 fi
18478
18479 rm -f core conftest.err conftest.$ac_objext \
18480       conftest$ac_exeext conftest.$ac_ext
18481 fi
18482 ac_res=`eval echo '${'$as_ac_var'}'`
18483                { echo "$as_me:$LINENO: result: $ac_res" >&5
18484 echo "${ECHO_T}$ac_res" >&6; }
18485 if test `eval echo '${'$as_ac_var'}'` = yes; then
18486   cat >>confdefs.h <<_ACEOF
18487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18488 _ACEOF
18489
18490 fi
18491 done
18492
18493
18494
18495
18496 for ac_func in isatty mkdtemp mkstemp
18497 do
18498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18502   echo $ECHO_N "(cached) $ECHO_C" >&6
18503 else
18504   cat >conftest.$ac_ext <<_ACEOF
18505 /* confdefs.h.  */
18506 _ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h.  */
18510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18512 #define $ac_func innocuous_$ac_func
18513
18514 /* System header to define __stub macros and hopefully few prototypes,
18515     which can conflict with char $ac_func (); below.
18516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18517     <limits.h> exists even on freestanding compilers.  */
18518
18519 #ifdef __STDC__
18520 # include <limits.h>
18521 #else
18522 # include <assert.h>
18523 #endif
18524
18525 #undef $ac_func
18526
18527 /* Override any GCC internal prototype to avoid an error.
18528    Use char because int might match the return type of a GCC
18529    builtin and then its argument prototype would still apply.  */
18530 #ifdef __cplusplus
18531 extern "C"
18532 #endif
18533 char $ac_func ();
18534 /* The GNU C library defines this for functions which it implements
18535     to always fail with ENOSYS.  Some functions are actually named
18536     something starting with __ and the normal name is an alias.  */
18537 #if defined __stub_$ac_func || defined __stub___$ac_func
18538 choke me
18539 #endif
18540
18541 int
18542 main ()
18543 {
18544 return $ac_func ();
18545   ;
18546   return 0;
18547 }
18548 _ACEOF
18549 rm -f conftest.$ac_objext conftest$ac_exeext
18550 if { (ac_try="$ac_link"
18551 case "(($ac_try" in
18552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18553   *) ac_try_echo=$ac_try;;
18554 esac
18555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556   (eval "$ac_link") 2>conftest.er1
18557   ac_status=$?
18558   grep -v '^ *+' conftest.er1 >conftest.err
18559   rm -f conftest.er1
18560   cat conftest.err >&5
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); } &&
18563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18564   { (case "(($ac_try" in
18565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566   *) ac_try_echo=$ac_try;;
18567 esac
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569   (eval "$ac_try") 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); }; } &&
18573          { ac_try='test -s conftest$ac_exeext'
18574   { (case "(($ac_try" in
18575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576   *) ac_try_echo=$ac_try;;
18577 esac
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579   (eval "$ac_try") 2>&5
18580   ac_status=$?
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); }; }; then
18583   eval "$as_ac_var=yes"
18584 else
18585   echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18587
18588         eval "$as_ac_var=no"
18589 fi
18590
18591 rm -f core conftest.err conftest.$ac_objext \
18592       conftest$ac_exeext conftest.$ac_ext
18593 fi
18594 ac_res=`eval echo '${'$as_ac_var'}'`
18595                { echo "$as_me:$LINENO: result: $ac_res" >&5
18596 echo "${ECHO_T}$ac_res" >&6; }
18597 if test `eval echo '${'$as_ac_var'}'` = yes; then
18598   cat >>confdefs.h <<_ACEOF
18599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18600 _ACEOF
18601
18602 fi
18603 done
18604
18605
18606
18607
18608
18609
18610
18611 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18612 do
18613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18617   echo $ECHO_N "(cached) $ECHO_C" >&6
18618 else
18619   cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h.  */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h.  */
18625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18627 #define $ac_func innocuous_$ac_func
18628
18629 /* System header to define __stub macros and hopefully few prototypes,
18630     which can conflict with char $ac_func (); below.
18631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18632     <limits.h> exists even on freestanding compilers.  */
18633
18634 #ifdef __STDC__
18635 # include <limits.h>
18636 #else
18637 # include <assert.h>
18638 #endif
18639
18640 #undef $ac_func
18641
18642 /* Override any GCC internal prototype to avoid an error.
18643    Use char because int might match the return type of a GCC
18644    builtin and then its argument prototype would still apply.  */
18645 #ifdef __cplusplus
18646 extern "C"
18647 #endif
18648 char $ac_func ();
18649 /* The GNU C library defines this for functions which it implements
18650     to always fail with ENOSYS.  Some functions are actually named
18651     something starting with __ and the normal name is an alias.  */
18652 #if defined __stub_$ac_func || defined __stub___$ac_func
18653 choke me
18654 #endif
18655
18656 int
18657 main ()
18658 {
18659 return $ac_func ();
18660   ;
18661   return 0;
18662 }
18663 _ACEOF
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668   *) ac_try_echo=$ac_try;;
18669 esac
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671   (eval "$ac_link") 2>conftest.er1
18672   ac_status=$?
18673   grep -v '^ *+' conftest.er1 >conftest.err
18674   rm -f conftest.er1
18675   cat conftest.err >&5
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } &&
18678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679   { (case "(($ac_try" in
18680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681   *) ac_try_echo=$ac_try;;
18682 esac
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684   (eval "$ac_try") 2>&5
18685   ac_status=$?
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); }; } &&
18688          { ac_try='test -s conftest$ac_exeext'
18689   { (case "(($ac_try" in
18690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691   *) ac_try_echo=$ac_try;;
18692 esac
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694   (eval "$ac_try") 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; }; then
18698   eval "$as_ac_var=yes"
18699 else
18700   echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18702
18703         eval "$as_ac_var=no"
18704 fi
18705
18706 rm -f core conftest.err conftest.$ac_objext \
18707       conftest$ac_exeext conftest.$ac_ext
18708 fi
18709 ac_res=`eval echo '${'$as_ac_var'}'`
18710                { echo "$as_me:$LINENO: result: $ac_res" >&5
18711 echo "${ECHO_T}$ac_res" >&6; }
18712 if test `eval echo '${'$as_ac_var'}'` = yes; then
18713   cat >>confdefs.h <<_ACEOF
18714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18715 _ACEOF
18716
18717 fi
18718 done
18719
18720
18721
18722
18723 for ac_func in strerror strerror_r setenv
18724 do
18725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18729   echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731   cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h.  */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h.  */
18737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18739 #define $ac_func innocuous_$ac_func
18740
18741 /* System header to define __stub macros and hopefully few prototypes,
18742     which can conflict with char $ac_func (); below.
18743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18744     <limits.h> exists even on freestanding compilers.  */
18745
18746 #ifdef __STDC__
18747 # include <limits.h>
18748 #else
18749 # include <assert.h>
18750 #endif
18751
18752 #undef $ac_func
18753
18754 /* Override any GCC internal prototype to avoid an error.
18755    Use char because int might match the return type of a GCC
18756    builtin and then its argument prototype would still apply.  */
18757 #ifdef __cplusplus
18758 extern "C"
18759 #endif
18760 char $ac_func ();
18761 /* The GNU C library defines this for functions which it implements
18762     to always fail with ENOSYS.  Some functions are actually named
18763     something starting with __ and the normal name is an alias.  */
18764 #if defined __stub_$ac_func || defined __stub___$ac_func
18765 choke me
18766 #endif
18767
18768 int
18769 main ()
18770 {
18771 return $ac_func ();
18772   ;
18773   return 0;
18774 }
18775 _ACEOF
18776 rm -f conftest.$ac_objext conftest$ac_exeext
18777 if { (ac_try="$ac_link"
18778 case "(($ac_try" in
18779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780   *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783   (eval "$ac_link") 2>conftest.er1
18784   ac_status=$?
18785   grep -v '^ *+' conftest.er1 >conftest.err
18786   rm -f conftest.er1
18787   cat conftest.err >&5
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); } &&
18790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18791   { (case "(($ac_try" in
18792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793   *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796   (eval "$ac_try") 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; } &&
18800          { ac_try='test -s conftest$ac_exeext'
18801   { (case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_try") 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); }; }; then
18810   eval "$as_ac_var=yes"
18811 else
18812   echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815         eval "$as_ac_var=no"
18816 fi
18817
18818 rm -f core conftest.err conftest.$ac_objext \
18819       conftest$ac_exeext conftest.$ac_ext
18820 fi
18821 ac_res=`eval echo '${'$as_ac_var'}'`
18822                { echo "$as_me:$LINENO: result: $ac_res" >&5
18823 echo "${ECHO_T}$ac_res" >&6; }
18824 if test `eval echo '${'$as_ac_var'}'` = yes; then
18825   cat >>confdefs.h <<_ACEOF
18826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18827 _ACEOF
18828
18829 fi
18830 done
18831
18832
18833
18834
18835
18836 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18837 do
18838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18842   echo $ECHO_N "(cached) $ECHO_C" >&6
18843 else
18844   cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h.  */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h.  */
18850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18852 #define $ac_func innocuous_$ac_func
18853
18854 /* System header to define __stub macros and hopefully few prototypes,
18855     which can conflict with char $ac_func (); below.
18856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18857     <limits.h> exists even on freestanding compilers.  */
18858
18859 #ifdef __STDC__
18860 # include <limits.h>
18861 #else
18862 # include <assert.h>
18863 #endif
18864
18865 #undef $ac_func
18866
18867 /* Override any GCC internal prototype to avoid an error.
18868    Use char because int might match the return type of a GCC
18869    builtin and then its argument prototype would still apply.  */
18870 #ifdef __cplusplus
18871 extern "C"
18872 #endif
18873 char $ac_func ();
18874 /* The GNU C library defines this for functions which it implements
18875     to always fail with ENOSYS.  Some functions are actually named
18876     something starting with __ and the normal name is an alias.  */
18877 #if defined __stub_$ac_func || defined __stub___$ac_func
18878 choke me
18879 #endif
18880
18881 int
18882 main ()
18883 {
18884 return $ac_func ();
18885   ;
18886   return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893   *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896   (eval "$ac_link") 2>conftest.er1
18897   ac_status=$?
18898   grep -v '^ *+' conftest.er1 >conftest.err
18899   rm -f conftest.er1
18900   cat conftest.err >&5
18901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); } &&
18903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904   { (case "(($ac_try" in
18905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906   *) ac_try_echo=$ac_try;;
18907 esac
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909   (eval "$ac_try") 2>&5
18910   ac_status=$?
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); }; } &&
18913          { ac_try='test -s conftest$ac_exeext'
18914   { (case "(($ac_try" in
18915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916   *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919   (eval "$ac_try") 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; }; then
18923   eval "$as_ac_var=yes"
18924 else
18925   echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18927
18928         eval "$as_ac_var=no"
18929 fi
18930
18931 rm -f core conftest.err conftest.$ac_objext \
18932       conftest$ac_exeext conftest.$ac_ext
18933 fi
18934 ac_res=`eval echo '${'$as_ac_var'}'`
18935                { echo "$as_me:$LINENO: result: $ac_res" >&5
18936 echo "${ECHO_T}$ac_res" >&6; }
18937 if test `eval echo '${'$as_ac_var'}'` = yes; then
18938   cat >>confdefs.h <<_ACEOF
18939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18940 _ACEOF
18941
18942 fi
18943 done
18944
18945
18946
18947
18948
18949
18950 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18951 do
18952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18956   echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18958   cat >conftest.$ac_ext <<_ACEOF
18959 /* confdefs.h.  */
18960 _ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h.  */
18964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18966 #define $ac_func innocuous_$ac_func
18967
18968 /* System header to define __stub macros and hopefully few prototypes,
18969     which can conflict with char $ac_func (); below.
18970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18971     <limits.h> exists even on freestanding compilers.  */
18972
18973 #ifdef __STDC__
18974 # include <limits.h>
18975 #else
18976 # include <assert.h>
18977 #endif
18978
18979 #undef $ac_func
18980
18981 /* Override any GCC internal prototype to avoid an error.
18982    Use char because int might match the return type of a GCC
18983    builtin and then its argument prototype would still apply.  */
18984 #ifdef __cplusplus
18985 extern "C"
18986 #endif
18987 char $ac_func ();
18988 /* The GNU C library defines this for functions which it implements
18989     to always fail with ENOSYS.  Some functions are actually named
18990     something starting with __ and the normal name is an alias.  */
18991 #if defined __stub_$ac_func || defined __stub___$ac_func
18992 choke me
18993 #endif
18994
18995 int
18996 main ()
18997 {
18998 return $ac_func ();
18999   ;
19000   return 0;
19001 }
19002 _ACEOF
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (ac_try="$ac_link"
19005 case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010   (eval "$ac_link") 2>conftest.er1
19011   ac_status=$?
19012   grep -v '^ *+' conftest.er1 >conftest.err
19013   rm -f conftest.er1
19014   cat conftest.err >&5
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); } &&
19017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19018   { (case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023   (eval "$ac_try") 2>&5
19024   ac_status=$?
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); }; } &&
19027          { ac_try='test -s conftest$ac_exeext'
19028   { (case "(($ac_try" in
19029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030   *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033   (eval "$ac_try") 2>&5
19034   ac_status=$?
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); }; }; then
19037   eval "$as_ac_var=yes"
19038 else
19039   echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19041
19042         eval "$as_ac_var=no"
19043 fi
19044
19045 rm -f core conftest.err conftest.$ac_objext \
19046       conftest$ac_exeext conftest.$ac_ext
19047 fi
19048 ac_res=`eval echo '${'$as_ac_var'}'`
19049                { echo "$as_me:$LINENO: result: $ac_res" >&5
19050 echo "${ECHO_T}$ac_res" >&6; }
19051 if test `eval echo '${'$as_ac_var'}'` = yes; then
19052   cat >>confdefs.h <<_ACEOF
19053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19054 _ACEOF
19055
19056 fi
19057 done
19058
19059 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19060 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19061 if test "${llvm_cv_c_printf_a+set}" = set; then
19062   echo $ECHO_N "(cached) $ECHO_C" >&6
19063 else
19064   ac_ext=c
19065 ac_cpp='$CPP $CPPFLAGS'
19066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19069
19070  if test "$cross_compiling" = yes; then
19071   llvmac_cv_c_printf_a=no
19072 else
19073   cat >conftest.$ac_ext <<_ACEOF
19074
19075   /* confdefs.h.  */
19076 _ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h.  */
19080
19081 #include <stdio.h>
19082 #include <stdlib.h>
19083
19084 int
19085 main ()
19086 {
19087
19088 volatile double A, B;
19089 char Buffer[100];
19090 A = 1;
19091 A /= 10.0;
19092 sprintf(Buffer, "%a", A);
19093 B = atof(Buffer);
19094 if (A != B)
19095   return (1);
19096 if (A != 0x1.999999999999ap-4)
19097   return (1);
19098 return (0);
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_link") 2>&5
19111   ac_status=$?
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19114   { (case "(($ac_try" in
19115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116   *) ac_try_echo=$ac_try;;
19117 esac
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119   (eval "$ac_try") 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; }; then
19123   llvm_cv_c_printf_a=yes
19124 else
19125   echo "$as_me: program exited with status $ac_status" >&5
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129 ( exit $ac_status )
19130 llvmac_cv_c_printf_a=no
19131 fi
19132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19133 fi
19134
19135
19136  ac_ext=c
19137 ac_cpp='$CPP $CPPFLAGS'
19138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19141
19142 fi
19143 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19144 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19145  if test "$llvm_cv_c_printf_a" = "yes"; then
19146
19147 cat >>confdefs.h <<\_ACEOF
19148 #define HAVE_PRINTF_A 1
19149 _ACEOF
19150
19151  fi
19152
19153
19154 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19155 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19156 if test "${ac_cv_func_rand48+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   ac_ext=cpp
19160 ac_cpp='$CXXCPP $CPPFLAGS'
19161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19164
19165    cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h.  */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h.  */
19171 #include <stdlib.h>
19172 int
19173 main ()
19174 {
19175 srand48(0);lrand48();drand48();
19176   ;
19177   return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184   *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187   (eval "$ac_compile") 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } &&
19194          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19195   { (case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_try") 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); }; } &&
19204          { ac_try='test -s conftest.$ac_objext'
19205   { (case "(($ac_try" in
19206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207   *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210   (eval "$ac_try") 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; }; then
19214   ac_cv_func_rand48=yes
19215 else
19216   echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219         ac_cv_func_rand48=no
19220 fi
19221
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223   ac_ext=c
19224 ac_cpp='$CPP $CPPFLAGS'
19225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19228
19229 fi
19230 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19231 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19232
19233 if test "$ac_cv_func_rand48" = "yes" ; then
19234
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_RAND48 1
19237 _ACEOF
19238
19239 fi
19240
19241
19242 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19243 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19244 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19245   echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247   cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h.  */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h.  */
19253 $ac_includes_default
19254 int
19255 main ()
19256 {
19257 #ifndef strerror_s
19258   char *p = (char *) strerror_s;
19259   return !p;
19260 #endif
19261
19262   ;
19263   return 0;
19264 }
19265 _ACEOF
19266 rm -f conftest.$ac_objext
19267 if { (ac_try="$ac_compile"
19268 case "(($ac_try" in
19269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270   *) ac_try_echo=$ac_try;;
19271 esac
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273   (eval "$ac_compile") 2>conftest.er1
19274   ac_status=$?
19275   grep -v '^ *+' conftest.er1 >conftest.err
19276   rm -f conftest.er1
19277   cat conftest.err >&5
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); } &&
19280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19281   { (case "(($ac_try" in
19282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283   *) ac_try_echo=$ac_try;;
19284 esac
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286   (eval "$ac_try") 2>&5
19287   ac_status=$?
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); }; } &&
19290          { ac_try='test -s conftest.$ac_objext'
19291   { (case "(($ac_try" in
19292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293   *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296   (eval "$ac_try") 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; }; then
19300   ac_cv_have_decl_strerror_s=yes
19301 else
19302   echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19304
19305         ac_cv_have_decl_strerror_s=no
19306 fi
19307
19308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19309 fi
19310 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19311 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19312 if test $ac_cv_have_decl_strerror_s = yes; then
19313
19314 cat >>confdefs.h <<_ACEOF
19315 #define HAVE_DECL_STRERROR_S 1
19316 _ACEOF
19317
19318
19319 else
19320   cat >>confdefs.h <<_ACEOF
19321 #define HAVE_DECL_STRERROR_S 0
19322 _ACEOF
19323
19324
19325 fi
19326
19327
19328
19329 if test "$llvm_cv_os_type" = "MingW" ; then
19330   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19331 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19332 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lgcc  $LIBS"
19337 cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h.  */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h.  */
19343
19344 /* Override any GCC internal prototype to avoid an error.
19345    Use char because int might match the return type of a GCC
19346    builtin and then its argument prototype would still apply.  */
19347 #ifdef __cplusplus
19348 extern "C"
19349 #endif
19350 char _alloca ();
19351 int
19352 main ()
19353 {
19354 return _alloca ();
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363   *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366   (eval "$ac_link") 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } &&
19373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19374   { (case "(($ac_try" in
19375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376   *) ac_try_echo=$ac_try;;
19377 esac
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379   (eval "$ac_try") 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; } &&
19383          { ac_try='test -s conftest$ac_exeext'
19384   { (case "(($ac_try" in
19385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386   *) ac_try_echo=$ac_try;;
19387 esac
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389   (eval "$ac_try") 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); }; }; then
19393   ac_cv_lib_gcc__alloca=yes
19394 else
19395   echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398         ac_cv_lib_gcc__alloca=no
19399 fi
19400
19401 rm -f core conftest.err conftest.$ac_objext \
19402       conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS
19404 fi
19405 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19406 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19407 if test $ac_cv_lib_gcc__alloca = yes; then
19408
19409 cat >>confdefs.h <<\_ACEOF
19410 #define HAVE__ALLOCA 1
19411 _ACEOF
19412
19413 fi
19414
19415   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19416 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19417 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420   ac_check_lib_save_LIBS=$LIBS
19421 LIBS="-lgcc  $LIBS"
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h.  */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h.  */
19428
19429 /* Override any GCC internal prototype to avoid an error.
19430    Use char because int might match the return type of a GCC
19431    builtin and then its argument prototype would still apply.  */
19432 #ifdef __cplusplus
19433 extern "C"
19434 #endif
19435 char __alloca ();
19436 int
19437 main ()
19438 {
19439 return __alloca ();
19440   ;
19441   return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (ac_try="$ac_link"
19446 case "(($ac_try" in
19447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448   *) ac_try_echo=$ac_try;;
19449 esac
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451   (eval "$ac_link") 2>conftest.er1
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
19455   cat conftest.err >&5
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } &&
19458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19459   { (case "(($ac_try" in
19460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461   *) ac_try_echo=$ac_try;;
19462 esac
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464   (eval "$ac_try") 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }; } &&
19468          { ac_try='test -s conftest$ac_exeext'
19469   { (case "(($ac_try" in
19470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471   *) ac_try_echo=$ac_try;;
19472 esac
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474   (eval "$ac_try") 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   ac_cv_lib_gcc___alloca=yes
19479 else
19480   echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483         ac_cv_lib_gcc___alloca=no
19484 fi
19485
19486 rm -f core conftest.err conftest.$ac_objext \
19487       conftest$ac_exeext conftest.$ac_ext
19488 LIBS=$ac_check_lib_save_LIBS
19489 fi
19490 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19491 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19492 if test $ac_cv_lib_gcc___alloca = yes; then
19493
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE___ALLOCA 1
19496 _ACEOF
19497
19498 fi
19499
19500   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19501 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19502 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19503   echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505   ac_check_lib_save_LIBS=$LIBS
19506 LIBS="-lgcc  $LIBS"
19507 cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513
19514 /* Override any GCC internal prototype to avoid an error.
19515    Use char because int might match the return type of a GCC
19516    builtin and then its argument prototype would still apply.  */
19517 #ifdef __cplusplus
19518 extern "C"
19519 #endif
19520 char __chkstk ();
19521 int
19522 main ()
19523 {
19524 return __chkstk ();
19525   ;
19526   return 0;
19527 }
19528 _ACEOF
19529 rm -f conftest.$ac_objext conftest$ac_exeext
19530 if { (ac_try="$ac_link"
19531 case "(($ac_try" in
19532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533   *) ac_try_echo=$ac_try;;
19534 esac
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536   (eval "$ac_link") 2>conftest.er1
19537   ac_status=$?
19538   grep -v '^ *+' conftest.er1 >conftest.err
19539   rm -f conftest.er1
19540   cat conftest.err >&5
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); } &&
19543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19544   { (case "(($ac_try" in
19545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546   *) ac_try_echo=$ac_try;;
19547 esac
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549   (eval "$ac_try") 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; } &&
19553          { ac_try='test -s conftest$ac_exeext'
19554   { (case "(($ac_try" in
19555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556   *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559   (eval "$ac_try") 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); }; }; then
19563   ac_cv_lib_gcc___chkstk=yes
19564 else
19565   echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19567
19568         ac_cv_lib_gcc___chkstk=no
19569 fi
19570
19571 rm -f core conftest.err conftest.$ac_objext \
19572       conftest$ac_exeext conftest.$ac_ext
19573 LIBS=$ac_check_lib_save_LIBS
19574 fi
19575 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19576 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19577 if test $ac_cv_lib_gcc___chkstk = yes; then
19578
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE___CHKSTK 1
19581 _ACEOF
19582
19583 fi
19584
19585   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19586 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19587 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19588   echo $ECHO_N "(cached) $ECHO_C" >&6
19589 else
19590   ac_check_lib_save_LIBS=$LIBS
19591 LIBS="-lgcc  $LIBS"
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h.  */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h.  */
19598
19599 /* Override any GCC internal prototype to avoid an error.
19600    Use char because int might match the return type of a GCC
19601    builtin and then its argument prototype would still apply.  */
19602 #ifdef __cplusplus
19603 extern "C"
19604 #endif
19605 char ___chkstk ();
19606 int
19607 main ()
19608 {
19609 return ___chkstk ();
19610   ;
19611   return 0;
19612 }
19613 _ACEOF
19614 rm -f conftest.$ac_objext conftest$ac_exeext
19615 if { (ac_try="$ac_link"
19616 case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_link") 2>conftest.er1
19622   ac_status=$?
19623   grep -v '^ *+' conftest.er1 >conftest.err
19624   rm -f conftest.er1
19625   cat conftest.err >&5
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } &&
19628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629   { (case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634   (eval "$ac_try") 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); }; } &&
19638          { ac_try='test -s conftest$ac_exeext'
19639   { (case "(($ac_try" in
19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641   *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644   (eval "$ac_try") 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; }; then
19648   ac_cv_lib_gcc____chkstk=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653         ac_cv_lib_gcc____chkstk=no
19654 fi
19655
19656 rm -f core conftest.err conftest.$ac_objext \
19657       conftest$ac_exeext conftest.$ac_ext
19658 LIBS=$ac_check_lib_save_LIBS
19659 fi
19660 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19661 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19662 if test $ac_cv_lib_gcc____chkstk = yes; then
19663
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE____CHKSTK 1
19666 _ACEOF
19667
19668 fi
19669
19670
19671   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19672 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19673 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19674   echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676   ac_check_lib_save_LIBS=$LIBS
19677 LIBS="-lgcc  $LIBS"
19678 cat >conftest.$ac_ext <<_ACEOF
19679 /* confdefs.h.  */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h.  */
19684
19685 /* Override any GCC internal prototype to avoid an error.
19686    Use char because int might match the return type of a GCC
19687    builtin and then its argument prototype would still apply.  */
19688 #ifdef __cplusplus
19689 extern "C"
19690 #endif
19691 char __ashldi3 ();
19692 int
19693 main ()
19694 {
19695 return __ashldi3 ();
19696   ;
19697   return 0;
19698 }
19699 _ACEOF
19700 rm -f conftest.$ac_objext conftest$ac_exeext
19701 if { (ac_try="$ac_link"
19702 case "(($ac_try" in
19703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704   *) ac_try_echo=$ac_try;;
19705 esac
19706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19707   (eval "$ac_link") 2>conftest.er1
19708   ac_status=$?
19709   grep -v '^ *+' conftest.er1 >conftest.err
19710   rm -f conftest.er1
19711   cat conftest.err >&5
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); } &&
19714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19715   { (case "(($ac_try" in
19716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717   *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720   (eval "$ac_try") 2>&5
19721   ac_status=$?
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); }; } &&
19724          { ac_try='test -s conftest$ac_exeext'
19725   { (case "(($ac_try" in
19726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727   *) ac_try_echo=$ac_try;;
19728 esac
19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730   (eval "$ac_try") 2>&5
19731   ac_status=$?
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); }; }; then
19734   ac_cv_lib_gcc___ashldi3=yes
19735 else
19736   echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19738
19739         ac_cv_lib_gcc___ashldi3=no
19740 fi
19741
19742 rm -f core conftest.err conftest.$ac_objext \
19743       conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19745 fi
19746 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19747 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19748 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19749
19750 cat >>confdefs.h <<\_ACEOF
19751 #define HAVE___ASHLDI3 1
19752 _ACEOF
19753
19754 fi
19755
19756   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19757 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19758 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761   ac_check_lib_save_LIBS=$LIBS
19762 LIBS="-lgcc  $LIBS"
19763 cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769
19770 /* Override any GCC internal prototype to avoid an error.
19771    Use char because int might match the return type of a GCC
19772    builtin and then its argument prototype would still apply.  */
19773 #ifdef __cplusplus
19774 extern "C"
19775 #endif
19776 char __ashrdi3 ();
19777 int
19778 main ()
19779 {
19780 return __ashrdi3 ();
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext conftest$ac_exeext
19786 if { (ac_try="$ac_link"
19787 case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_link") 2>conftest.er1
19793   ac_status=$?
19794   grep -v '^ *+' conftest.er1 >conftest.err
19795   rm -f conftest.er1
19796   cat conftest.err >&5
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); } &&
19799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19800   { (case "(($ac_try" in
19801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802   *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805   (eval "$ac_try") 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; } &&
19809          { ac_try='test -s conftest$ac_exeext'
19810   { (case "(($ac_try" in
19811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812   *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815   (eval "$ac_try") 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; }; then
19819   ac_cv_lib_gcc___ashrdi3=yes
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824         ac_cv_lib_gcc___ashrdi3=no
19825 fi
19826
19827 rm -f core conftest.err conftest.$ac_objext \
19828       conftest$ac_exeext conftest.$ac_ext
19829 LIBS=$ac_check_lib_save_LIBS
19830 fi
19831 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19832 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19833 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19834
19835 cat >>confdefs.h <<\_ACEOF
19836 #define HAVE___ASHRDI3 1
19837 _ACEOF
19838
19839 fi
19840
19841   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19842 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19843 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19844   echo $ECHO_N "(cached) $ECHO_C" >&6
19845 else
19846   ac_check_lib_save_LIBS=$LIBS
19847 LIBS="-lgcc  $LIBS"
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h.  */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h.  */
19854
19855 /* Override any GCC internal prototype to avoid an error.
19856    Use char because int might match the return type of a GCC
19857    builtin and then its argument prototype would still apply.  */
19858 #ifdef __cplusplus
19859 extern "C"
19860 #endif
19861 char __divdi3 ();
19862 int
19863 main ()
19864 {
19865 return __divdi3 ();
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext conftest$ac_exeext
19871 if { (ac_try="$ac_link"
19872 case "(($ac_try" in
19873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874   *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877   (eval "$ac_link") 2>conftest.er1
19878   ac_status=$?
19879   grep -v '^ *+' conftest.er1 >conftest.err
19880   rm -f conftest.er1
19881   cat conftest.err >&5
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); } &&
19884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19885   { (case "(($ac_try" in
19886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887   *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890   (eval "$ac_try") 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); }; } &&
19894          { ac_try='test -s conftest$ac_exeext'
19895   { (case "(($ac_try" in
19896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897   *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900   (eval "$ac_try") 2>&5
19901   ac_status=$?
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); }; }; then
19904   ac_cv_lib_gcc___divdi3=yes
19905 else
19906   echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19908
19909         ac_cv_lib_gcc___divdi3=no
19910 fi
19911
19912 rm -f core conftest.err conftest.$ac_objext \
19913       conftest$ac_exeext conftest.$ac_ext
19914 LIBS=$ac_check_lib_save_LIBS
19915 fi
19916 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19917 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19918 if test $ac_cv_lib_gcc___divdi3 = yes; then
19919
19920 cat >>confdefs.h <<\_ACEOF
19921 #define HAVE___DIVDI3 1
19922 _ACEOF
19923
19924 fi
19925
19926   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19927 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19928 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19929   echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931   ac_check_lib_save_LIBS=$LIBS
19932 LIBS="-lgcc  $LIBS"
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h.  */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h.  */
19939
19940 /* Override any GCC internal prototype to avoid an error.
19941    Use char because int might match the return type of a GCC
19942    builtin and then its argument prototype would still apply.  */
19943 #ifdef __cplusplus
19944 extern "C"
19945 #endif
19946 char __fixdfdi ();
19947 int
19948 main ()
19949 {
19950 return __fixdfdi ();
19951   ;
19952   return 0;
19953 }
19954 _ACEOF
19955 rm -f conftest.$ac_objext conftest$ac_exeext
19956 if { (ac_try="$ac_link"
19957 case "(($ac_try" in
19958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959   *) ac_try_echo=$ac_try;;
19960 esac
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962   (eval "$ac_link") 2>conftest.er1
19963   ac_status=$?
19964   grep -v '^ *+' conftest.er1 >conftest.err
19965   rm -f conftest.er1
19966   cat conftest.err >&5
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); } &&
19969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19970   { (case "(($ac_try" in
19971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972   *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975   (eval "$ac_try") 2>&5
19976   ac_status=$?
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); }; } &&
19979          { ac_try='test -s conftest$ac_exeext'
19980   { (case "(($ac_try" in
19981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982   *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985   (eval "$ac_try") 2>&5
19986   ac_status=$?
19987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988   (exit $ac_status); }; }; then
19989   ac_cv_lib_gcc___fixdfdi=yes
19990 else
19991   echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19993
19994         ac_cv_lib_gcc___fixdfdi=no
19995 fi
19996
19997 rm -f core conftest.err conftest.$ac_objext \
19998       conftest$ac_exeext conftest.$ac_ext
19999 LIBS=$ac_check_lib_save_LIBS
20000 fi
20001 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20002 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20003 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20004
20005 cat >>confdefs.h <<\_ACEOF
20006 #define HAVE___FIXDFDI 1
20007 _ACEOF
20008
20009 fi
20010
20011   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20012 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20013 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20014   echo $ECHO_N "(cached) $ECHO_C" >&6
20015 else
20016   ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lgcc  $LIBS"
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h.  */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h.  */
20024
20025 /* Override any GCC internal prototype to avoid an error.
20026    Use char because int might match the return type of a GCC
20027    builtin and then its argument prototype would still apply.  */
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 char __fixsfdi ();
20032 int
20033 main ()
20034 {
20035 return __fixsfdi ();
20036   ;
20037   return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044   *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047   (eval "$ac_link") 2>conftest.er1
20048   ac_status=$?
20049   grep -v '^ *+' conftest.er1 >conftest.err
20050   rm -f conftest.er1
20051   cat conftest.err >&5
20052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053   (exit $ac_status); } &&
20054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20055   { (case "(($ac_try" in
20056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057   *) ac_try_echo=$ac_try;;
20058 esac
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060   (eval "$ac_try") 2>&5
20061   ac_status=$?
20062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063   (exit $ac_status); }; } &&
20064          { ac_try='test -s conftest$ac_exeext'
20065   { (case "(($ac_try" in
20066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067   *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070   (eval "$ac_try") 2>&5
20071   ac_status=$?
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); }; }; then
20074   ac_cv_lib_gcc___fixsfdi=yes
20075 else
20076   echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20078
20079         ac_cv_lib_gcc___fixsfdi=no
20080 fi
20081
20082 rm -f core conftest.err conftest.$ac_objext \
20083       conftest$ac_exeext conftest.$ac_ext
20084 LIBS=$ac_check_lib_save_LIBS
20085 fi
20086 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20087 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20088 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20089
20090 cat >>confdefs.h <<\_ACEOF
20091 #define HAVE___FIXSFDI 1
20092 _ACEOF
20093
20094 fi
20095
20096   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20097 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20098 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20099   echo $ECHO_N "(cached) $ECHO_C" >&6
20100 else
20101   ac_check_lib_save_LIBS=$LIBS
20102 LIBS="-lgcc  $LIBS"
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109
20110 /* Override any GCC internal prototype to avoid an error.
20111    Use char because int might match the return type of a GCC
20112    builtin and then its argument prototype would still apply.  */
20113 #ifdef __cplusplus
20114 extern "C"
20115 #endif
20116 char __floatdidf ();
20117 int
20118 main ()
20119 {
20120 return __floatdidf ();
20121   ;
20122   return 0;
20123 }
20124 _ACEOF
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129   *) ac_try_echo=$ac_try;;
20130 esac
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132   (eval "$ac_link") 2>conftest.er1
20133   ac_status=$?
20134   grep -v '^ *+' conftest.er1 >conftest.err
20135   rm -f conftest.er1
20136   cat conftest.err >&5
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } &&
20139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20140   { (case "(($ac_try" in
20141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142   *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145   (eval "$ac_try") 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); }; } &&
20149          { ac_try='test -s conftest$ac_exeext'
20150   { (case "(($ac_try" in
20151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152   *) ac_try_echo=$ac_try;;
20153 esac
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155   (eval "$ac_try") 2>&5
20156   ac_status=$?
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); }; }; then
20159   ac_cv_lib_gcc___floatdidf=yes
20160 else
20161   echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164         ac_cv_lib_gcc___floatdidf=no
20165 fi
20166
20167 rm -f core conftest.err conftest.$ac_objext \
20168       conftest$ac_exeext conftest.$ac_ext
20169 LIBS=$ac_check_lib_save_LIBS
20170 fi
20171 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20172 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20173 if test $ac_cv_lib_gcc___floatdidf = yes; then
20174
20175 cat >>confdefs.h <<\_ACEOF
20176 #define HAVE___FLOATDIDF 1
20177 _ACEOF
20178
20179 fi
20180
20181   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20182 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20183 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20184   echo $ECHO_N "(cached) $ECHO_C" >&6
20185 else
20186   ac_check_lib_save_LIBS=$LIBS
20187 LIBS="-lgcc  $LIBS"
20188 cat >conftest.$ac_ext <<_ACEOF
20189 /* confdefs.h.  */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h.  */
20194
20195 /* Override any GCC internal prototype to avoid an error.
20196    Use char because int might match the return type of a GCC
20197    builtin and then its argument prototype would still apply.  */
20198 #ifdef __cplusplus
20199 extern "C"
20200 #endif
20201 char __lshrdi3 ();
20202 int
20203 main ()
20204 {
20205 return __lshrdi3 ();
20206   ;
20207   return 0;
20208 }
20209 _ACEOF
20210 rm -f conftest.$ac_objext conftest$ac_exeext
20211 if { (ac_try="$ac_link"
20212 case "(($ac_try" in
20213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214   *) ac_try_echo=$ac_try;;
20215 esac
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217   (eval "$ac_link") 2>conftest.er1
20218   ac_status=$?
20219   grep -v '^ *+' conftest.er1 >conftest.err
20220   rm -f conftest.er1
20221   cat conftest.err >&5
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); } &&
20224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20225   { (case "(($ac_try" in
20226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227   *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230   (eval "$ac_try") 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }; } &&
20234          { ac_try='test -s conftest$ac_exeext'
20235   { (case "(($ac_try" in
20236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237   *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240   (eval "$ac_try") 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); }; }; then
20244   ac_cv_lib_gcc___lshrdi3=yes
20245 else
20246   echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249         ac_cv_lib_gcc___lshrdi3=no
20250 fi
20251
20252 rm -f core conftest.err conftest.$ac_objext \
20253       conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_check_lib_save_LIBS
20255 fi
20256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20257 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20258 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20259
20260 cat >>confdefs.h <<\_ACEOF
20261 #define HAVE___LSHRDI3 1
20262 _ACEOF
20263
20264 fi
20265
20266   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20267 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20268 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20269   echo $ECHO_N "(cached) $ECHO_C" >&6
20270 else
20271   ac_check_lib_save_LIBS=$LIBS
20272 LIBS="-lgcc  $LIBS"
20273 cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h.  */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h.  */
20279
20280 /* Override any GCC internal prototype to avoid an error.
20281    Use char because int might match the return type of a GCC
20282    builtin and then its argument prototype would still apply.  */
20283 #ifdef __cplusplus
20284 extern "C"
20285 #endif
20286 char __moddi3 ();
20287 int
20288 main ()
20289 {
20290 return __moddi3 ();
20291   ;
20292   return 0;
20293 }
20294 _ACEOF
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (ac_try="$ac_link"
20297 case "(($ac_try" in
20298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299   *) ac_try_echo=$ac_try;;
20300 esac
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302   (eval "$ac_link") 2>conftest.er1
20303   ac_status=$?
20304   grep -v '^ *+' conftest.er1 >conftest.err
20305   rm -f conftest.er1
20306   cat conftest.err >&5
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } &&
20309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20310   { (case "(($ac_try" in
20311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312   *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315   (eval "$ac_try") 2>&5
20316   ac_status=$?
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); }; } &&
20319          { ac_try='test -s conftest$ac_exeext'
20320   { (case "(($ac_try" in
20321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322   *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325   (eval "$ac_try") 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); }; }; then
20329   ac_cv_lib_gcc___moddi3=yes
20330 else
20331   echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20333
20334         ac_cv_lib_gcc___moddi3=no
20335 fi
20336
20337 rm -f core conftest.err conftest.$ac_objext \
20338       conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20340 fi
20341 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20342 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20343 if test $ac_cv_lib_gcc___moddi3 = yes; then
20344
20345 cat >>confdefs.h <<\_ACEOF
20346 #define HAVE___MODDI3 1
20347 _ACEOF
20348
20349 fi
20350
20351   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20352 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20353 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20354   echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356   ac_check_lib_save_LIBS=$LIBS
20357 LIBS="-lgcc  $LIBS"
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364
20365 /* Override any GCC internal prototype to avoid an error.
20366    Use char because int might match the return type of a GCC
20367    builtin and then its argument prototype would still apply.  */
20368 #ifdef __cplusplus
20369 extern "C"
20370 #endif
20371 char __udivdi3 ();
20372 int
20373 main ()
20374 {
20375 return __udivdi3 ();
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384   *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387   (eval "$ac_link") 2>conftest.er1
20388   ac_status=$?
20389   grep -v '^ *+' conftest.er1 >conftest.err
20390   rm -f conftest.er1
20391   cat conftest.err >&5
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); } &&
20394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20395   { (case "(($ac_try" in
20396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397   *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400   (eval "$ac_try") 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; } &&
20404          { ac_try='test -s conftest$ac_exeext'
20405   { (case "(($ac_try" in
20406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407   *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410   (eval "$ac_try") 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; }; then
20414   ac_cv_lib_gcc___udivdi3=yes
20415 else
20416   echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419         ac_cv_lib_gcc___udivdi3=no
20420 fi
20421
20422 rm -f core conftest.err conftest.$ac_objext \
20423       conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20425 fi
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20427 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20428 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20429
20430 cat >>confdefs.h <<\_ACEOF
20431 #define HAVE___UDIVDI3 1
20432 _ACEOF
20433
20434 fi
20435
20436   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20437 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20438 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20439   echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441   ac_check_lib_save_LIBS=$LIBS
20442 LIBS="-lgcc  $LIBS"
20443 cat >conftest.$ac_ext <<_ACEOF
20444 /* confdefs.h.  */
20445 _ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h.  */
20449
20450 /* Override any GCC internal prototype to avoid an error.
20451    Use char because int might match the return type of a GCC
20452    builtin and then its argument prototype would still apply.  */
20453 #ifdef __cplusplus
20454 extern "C"
20455 #endif
20456 char __umoddi3 ();
20457 int
20458 main ()
20459 {
20460 return __umoddi3 ();
20461   ;
20462   return 0;
20463 }
20464 _ACEOF
20465 rm -f conftest.$ac_objext conftest$ac_exeext
20466 if { (ac_try="$ac_link"
20467 case "(($ac_try" in
20468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469   *) ac_try_echo=$ac_try;;
20470 esac
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472   (eval "$ac_link") 2>conftest.er1
20473   ac_status=$?
20474   grep -v '^ *+' conftest.er1 >conftest.err
20475   rm -f conftest.er1
20476   cat conftest.err >&5
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); } &&
20479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20480   { (case "(($ac_try" in
20481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482   *) ac_try_echo=$ac_try;;
20483 esac
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485   (eval "$ac_try") 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; } &&
20489          { ac_try='test -s conftest$ac_exeext'
20490   { (case "(($ac_try" in
20491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492   *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495   (eval "$ac_try") 2>&5
20496   ac_status=$?
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); }; }; then
20499   ac_cv_lib_gcc___umoddi3=yes
20500 else
20501   echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20503
20504         ac_cv_lib_gcc___umoddi3=no
20505 fi
20506
20507 rm -f core conftest.err conftest.$ac_objext \
20508       conftest$ac_exeext conftest.$ac_ext
20509 LIBS=$ac_check_lib_save_LIBS
20510 fi
20511 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20512 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20513 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20514
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE___UMODDI3 1
20517 _ACEOF
20518
20519 fi
20520
20521
20522   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20523 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20524 if test "${ac_cv_lib_gcc___main+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527   ac_check_lib_save_LIBS=$LIBS
20528 LIBS="-lgcc  $LIBS"
20529 cat >conftest.$ac_ext <<_ACEOF
20530 /* confdefs.h.  */
20531 _ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h.  */
20535
20536 /* Override any GCC internal prototype to avoid an error.
20537    Use char because int might match the return type of a GCC
20538    builtin and then its argument prototype would still apply.  */
20539 #ifdef __cplusplus
20540 extern "C"
20541 #endif
20542 char __main ();
20543 int
20544 main ()
20545 {
20546 return __main ();
20547   ;
20548   return 0;
20549 }
20550 _ACEOF
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555   *) ac_try_echo=$ac_try;;
20556 esac
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558   (eval "$ac_link") 2>conftest.er1
20559   ac_status=$?
20560   grep -v '^ *+' conftest.er1 >conftest.err
20561   rm -f conftest.er1
20562   cat conftest.err >&5
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); } &&
20565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20566   { (case "(($ac_try" in
20567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568   *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571   (eval "$ac_try") 2>&5
20572   ac_status=$?
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); }; } &&
20575          { ac_try='test -s conftest$ac_exeext'
20576   { (case "(($ac_try" in
20577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578   *) ac_try_echo=$ac_try;;
20579 esac
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581   (eval "$ac_try") 2>&5
20582   ac_status=$?
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); }; }; then
20585   ac_cv_lib_gcc___main=yes
20586 else
20587   echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590         ac_cv_lib_gcc___main=no
20591 fi
20592
20593 rm -f core conftest.err conftest.$ac_objext \
20594       conftest$ac_exeext conftest.$ac_ext
20595 LIBS=$ac_check_lib_save_LIBS
20596 fi
20597 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20598 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20599 if test $ac_cv_lib_gcc___main = yes; then
20600
20601 cat >>confdefs.h <<\_ACEOF
20602 #define HAVE___MAIN 1
20603 _ACEOF
20604
20605 fi
20606
20607   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20608 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20609 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20610   echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612   ac_check_lib_save_LIBS=$LIBS
20613 LIBS="-lgcc  $LIBS"
20614 cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620
20621 /* Override any GCC internal prototype to avoid an error.
20622    Use char because int might match the return type of a GCC
20623    builtin and then its argument prototype would still apply.  */
20624 #ifdef __cplusplus
20625 extern "C"
20626 #endif
20627 char __cmpdi2 ();
20628 int
20629 main ()
20630 {
20631 return __cmpdi2 ();
20632   ;
20633   return 0;
20634 }
20635 _ACEOF
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (ac_try="$ac_link"
20638 case "(($ac_try" in
20639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640   *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643   (eval "$ac_link") 2>conftest.er1
20644   ac_status=$?
20645   grep -v '^ *+' conftest.er1 >conftest.err
20646   rm -f conftest.er1
20647   cat conftest.err >&5
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); } &&
20650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20651   { (case "(($ac_try" in
20652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653   *) ac_try_echo=$ac_try;;
20654 esac
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656   (eval "$ac_try") 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; } &&
20660          { ac_try='test -s conftest$ac_exeext'
20661   { (case "(($ac_try" in
20662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663   *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666   (eval "$ac_try") 2>&5
20667   ac_status=$?
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); }; }; then
20670   ac_cv_lib_gcc___cmpdi2=yes
20671 else
20672   echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20674
20675         ac_cv_lib_gcc___cmpdi2=no
20676 fi
20677
20678 rm -f core conftest.err conftest.$ac_objext \
20679       conftest$ac_exeext conftest.$ac_ext
20680 LIBS=$ac_check_lib_save_LIBS
20681 fi
20682 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20683 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20684 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20685
20686 cat >>confdefs.h <<\_ACEOF
20687 #define HAVE___CMPDI2 1
20688 _ACEOF
20689
20690 fi
20691
20692 fi
20693
20694 if test "$llvm_cv_os_type" = "MingW" ; then
20695   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20696 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20697   cat >conftest.$ac_ext <<_ACEOF
20698 #include <windows.h>
20699 #include <imagehlp.h>
20700 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20701 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707   *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710   (eval "$ac_compile") 2>conftest.er1
20711   ac_status=$?
20712   grep -v '^ *+' conftest.er1 >conftest.err
20713   rm -f conftest.er1
20714   cat conftest.err >&5
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } &&
20717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20718   { (case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_try") 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; } &&
20727          { ac_try='test -s conftest.$ac_objext'
20728   { (case "(($ac_try" in
20729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730   *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733   (eval "$ac_try") 2>&5
20734   ac_status=$?
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); }; }; then
20737
20738   { echo "$as_me:$LINENO: result: yes" >&5
20739 echo "${ECHO_T}yes" >&6; }
20740   llvm_cv_win32_elmcb_pcstr="PCSTR"
20741
20742 else
20743   echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20745
20746
20747   { echo "$as_me:$LINENO: result: no" >&5
20748 echo "${ECHO_T}no" >&6; }
20749   llvm_cv_win32_elmcb_pcstr="PSTR"
20750
20751 fi
20752
20753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20754
20755 cat >>confdefs.h <<_ACEOF
20756 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20757 _ACEOF
20758
20759 fi
20760
20761
20762 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20763 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20764 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20765   echo $ECHO_N "(cached) $ECHO_C" >&6
20766 else
20767   ac_ext=cpp
20768 ac_cpp='$CXXCPP $CPPFLAGS'
20769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20772
20773    cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h.  */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h.  */
20779 #include <math.h>
20780 int
20781 main ()
20782 {
20783 float f; isnan(f);
20784   ;
20785   return 0;
20786 }
20787 _ACEOF
20788 rm -f conftest.$ac_objext
20789 if { (ac_try="$ac_compile"
20790 case "(($ac_try" in
20791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792   *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795   (eval "$ac_compile") 2>conftest.er1
20796   ac_status=$?
20797   grep -v '^ *+' conftest.er1 >conftest.err
20798   rm -f conftest.er1
20799   cat conftest.err >&5
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); } &&
20802          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20803   { (case "(($ac_try" in
20804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805   *) ac_try_echo=$ac_try;;
20806 esac
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808   (eval "$ac_try") 2>&5
20809   ac_status=$?
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); }; } &&
20812          { ac_try='test -s conftest.$ac_objext'
20813   { (case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818   (eval "$ac_try") 2>&5
20819   ac_status=$?
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); }; }; then
20822   ac_cv_func_isnan_in_math_h=yes
20823 else
20824   echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827         ac_cv_func_isnan_in_math_h=no
20828 fi
20829
20830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20831   ac_ext=c
20832 ac_cpp='$CPP $CPPFLAGS'
20833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20836
20837 fi
20838 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20839 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20840
20841
20842 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20843
20844 cat >>confdefs.h <<\_ACEOF
20845 #define HAVE_ISNAN_IN_MATH_H 1
20846 _ACEOF
20847
20848 fi
20849
20850 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20851 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20852 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20853   echo $ECHO_N "(cached) $ECHO_C" >&6
20854 else
20855   ac_ext=cpp
20856 ac_cpp='$CXXCPP $CPPFLAGS'
20857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20860
20861    cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h.  */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h.  */
20867 #include <cmath>
20868 int
20869 main ()
20870 {
20871 float f; isnan(f);
20872   ;
20873   return 0;
20874 }
20875 _ACEOF
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880   *) ac_try_echo=$ac_try;;
20881 esac
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883   (eval "$ac_compile") 2>conftest.er1
20884   ac_status=$?
20885   grep -v '^ *+' conftest.er1 >conftest.err
20886   rm -f conftest.er1
20887   cat conftest.err >&5
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); } &&
20890          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20891   { (case "(($ac_try" in
20892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893   *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896   (eval "$ac_try") 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; } &&
20900          { ac_try='test -s conftest.$ac_objext'
20901   { (case "(($ac_try" in
20902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903   *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906   (eval "$ac_try") 2>&5
20907   ac_status=$?
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); }; }; then
20910   ac_cv_func_isnan_in_cmath=yes
20911 else
20912   echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915         ac_cv_func_isnan_in_cmath=no
20916 fi
20917
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919   ac_ext=c
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924
20925 fi
20926 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20927 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20928
20929 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20930
20931 cat >>confdefs.h <<\_ACEOF
20932 #define HAVE_ISNAN_IN_CMATH 1
20933 _ACEOF
20934
20935 fi
20936
20937 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20938 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20939 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20940   echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942   ac_ext=cpp
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20947
20948    cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954 #include <cmath>
20955 int
20956 main ()
20957 {
20958 float f; std::isnan(f);
20959   ;
20960   return 0;
20961 }
20962 _ACEOF
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967   *) ac_try_echo=$ac_try;;
20968 esac
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970   (eval "$ac_compile") 2>conftest.er1
20971   ac_status=$?
20972   grep -v '^ *+' conftest.er1 >conftest.err
20973   rm -f conftest.er1
20974   cat conftest.err >&5
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20978   { (case "(($ac_try" in
20979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980   *) ac_try_echo=$ac_try;;
20981 esac
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983   (eval "$ac_try") 2>&5
20984   ac_status=$?
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); }; } &&
20987          { ac_try='test -s conftest.$ac_objext'
20988   { (case "(($ac_try" in
20989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990   *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993   (eval "$ac_try") 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; }; then
20997   ac_cv_func_std_isnan_in_cmath=yes
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002         ac_cv_func_std_isnan_in_cmath=no
21003 fi
21004
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006   ac_ext=c
21007 ac_cpp='$CPP $CPPFLAGS'
21008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21011
21012 fi
21013 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21014 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21015
21016 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21017
21018 cat >>confdefs.h <<\_ACEOF
21019 #define HAVE_STD_ISNAN_IN_CMATH 1
21020 _ACEOF
21021
21022 fi
21023
21024
21025 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21026 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21027 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21028   echo $ECHO_N "(cached) $ECHO_C" >&6
21029 else
21030   ac_ext=cpp
21031 ac_cpp='$CXXCPP $CPPFLAGS'
21032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21035
21036    cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042 #include <math.h>
21043 int
21044 main ()
21045 {
21046 float f; isinf(f);
21047   ;
21048   return 0;
21049 }
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_compile") 2>conftest.er1
21059   ac_status=$?
21060   grep -v '^ *+' conftest.er1 >conftest.err
21061   rm -f conftest.er1
21062   cat conftest.err >&5
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); } &&
21065          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21066   { (case "(($ac_try" in
21067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068   *) ac_try_echo=$ac_try;;
21069 esac
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071   (eval "$ac_try") 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; } &&
21075          { ac_try='test -s conftest.$ac_objext'
21076   { (case "(($ac_try" in
21077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078   *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081   (eval "$ac_try") 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; }; then
21085   ac_cv_func_isinf_in_math_h=yes
21086 else
21087   echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090         ac_cv_func_isinf_in_math_h=no
21091 fi
21092
21093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21094   ac_ext=c
21095 ac_cpp='$CPP $CPPFLAGS'
21096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21099
21100 fi
21101 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21102 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21103
21104 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21105
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_ISINF_IN_MATH_H 1
21108 _ACEOF
21109
21110 fi
21111
21112 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21113 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21114 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21115   echo $ECHO_N "(cached) $ECHO_C" >&6
21116 else
21117   ac_ext=cpp
21118 ac_cpp='$CXXCPP $CPPFLAGS'
21119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21122
21123    cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129 #include <cmath>
21130 int
21131 main ()
21132 {
21133 float f; isinf(f);
21134   ;
21135   return 0;
21136 }
21137 _ACEOF
21138 rm -f conftest.$ac_objext
21139 if { (ac_try="$ac_compile"
21140 case "(($ac_try" in
21141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142   *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145   (eval "$ac_compile") 2>conftest.er1
21146   ac_status=$?
21147   grep -v '^ *+' conftest.er1 >conftest.err
21148   rm -f conftest.er1
21149   cat conftest.err >&5
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); } &&
21152          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21153   { (case "(($ac_try" in
21154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155   *) ac_try_echo=$ac_try;;
21156 esac
21157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21158   (eval "$ac_try") 2>&5
21159   ac_status=$?
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); }; } &&
21162          { ac_try='test -s conftest.$ac_objext'
21163   { (case "(($ac_try" in
21164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165   *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168   (eval "$ac_try") 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); }; }; then
21172   ac_cv_func_isinf_in_cmath=yes
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177         ac_cv_func_isinf_in_cmath=no
21178 fi
21179
21180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21181   ac_ext=c
21182 ac_cpp='$CPP $CPPFLAGS'
21183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186
21187 fi
21188 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21189 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21190
21191 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21192
21193 cat >>confdefs.h <<\_ACEOF
21194 #define HAVE_ISINF_IN_CMATH 1
21195 _ACEOF
21196
21197 fi
21198
21199 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21200 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21201 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21202   echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204   ac_ext=cpp
21205 ac_cpp='$CXXCPP $CPPFLAGS'
21206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21209
21210    cat >conftest.$ac_ext <<_ACEOF
21211 /* confdefs.h.  */
21212 _ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h.  */
21216 #include <cmath>
21217 int
21218 main ()
21219 {
21220 float f; std::isinf(f)}
21221   ;
21222   return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229   *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232   (eval "$ac_compile") 2>conftest.er1
21233   ac_status=$?
21234   grep -v '^ *+' conftest.er1 >conftest.err
21235   rm -f conftest.er1
21236   cat conftest.err >&5
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); } &&
21239          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21240   { (case "(($ac_try" in
21241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242   *) ac_try_echo=$ac_try;;
21243 esac
21244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245   (eval "$ac_try") 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); }; } &&
21249          { ac_try='test -s conftest.$ac_objext'
21250   { (case "(($ac_try" in
21251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252   *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255   (eval "$ac_try") 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; }; then
21259   ac_cv_func_std_isinf_in_cmath=yes
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264         ac_cv_func_std_isinf_in_cmath=no
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268   ac_ext=c
21269 ac_cpp='$CPP $CPPFLAGS'
21270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21273
21274 fi
21275 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21276 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21277
21278 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21279
21280 cat >>confdefs.h <<\_ACEOF
21281 #define HAVE_STD_ISINF_IN_CMATH 1
21282 _ACEOF
21283
21284 fi
21285
21286 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21287 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21288 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21289   echo $ECHO_N "(cached) $ECHO_C" >&6
21290 else
21291   ac_ext=cpp
21292 ac_cpp='$CXXCPP $CPPFLAGS'
21293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21296
21297    cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h.  */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h.  */
21303 #include <ieeefp.h>
21304 int
21305 main ()
21306 {
21307 float f; finite(f);
21308   ;
21309   return 0;
21310 }
21311 _ACEOF
21312 rm -f conftest.$ac_objext
21313 if { (ac_try="$ac_compile"
21314 case "(($ac_try" in
21315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316   *) ac_try_echo=$ac_try;;
21317 esac
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319   (eval "$ac_compile") 2>conftest.er1
21320   ac_status=$?
21321   grep -v '^ *+' conftest.er1 >conftest.err
21322   rm -f conftest.er1
21323   cat conftest.err >&5
21324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325   (exit $ac_status); } &&
21326          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21327   { (case "(($ac_try" in
21328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329   *) ac_try_echo=$ac_try;;
21330 esac
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332   (eval "$ac_try") 2>&5
21333   ac_status=$?
21334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335   (exit $ac_status); }; } &&
21336          { ac_try='test -s conftest.$ac_objext'
21337   { (case "(($ac_try" in
21338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339   *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342   (eval "$ac_try") 2>&5
21343   ac_status=$?
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); }; }; then
21346   ac_cv_func_finite_in_ieeefp_h=yes
21347 else
21348   echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21350
21351         ac_cv_func_finite_in_ieeefp_h=no
21352 fi
21353
21354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21355   ac_ext=c
21356 ac_cpp='$CPP $CPPFLAGS'
21357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21360
21361 fi
21362 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21363 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21364
21365 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21366
21367 cat >>confdefs.h <<\_ACEOF
21368 #define HAVE_FINITE_IN_IEEEFP_H 1
21369 _ACEOF
21370
21371 fi
21372
21373
21374
21375 if test "$llvm_cv_platform_type" = "Unix" ; then
21376
21377
21378 for ac_header in stdlib.h unistd.h
21379 do
21380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21382   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21385   echo $ECHO_N "(cached) $ECHO_C" >&6
21386 fi
21387 ac_res=`eval echo '${'$as_ac_Header'}'`
21388                { echo "$as_me:$LINENO: result: $ac_res" >&5
21389 echo "${ECHO_T}$ac_res" >&6; }
21390 else
21391   # Is the header compilable?
21392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21394 cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h.  */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h.  */
21400 $ac_includes_default
21401 #include <$ac_header>
21402 _ACEOF
21403 rm -f conftest.$ac_objext
21404 if { (ac_try="$ac_compile"
21405 case "(($ac_try" in
21406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407   *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410   (eval "$ac_compile") 2>conftest.er1
21411   ac_status=$?
21412   grep -v '^ *+' conftest.er1 >conftest.err
21413   rm -f conftest.er1
21414   cat conftest.err >&5
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } &&
21417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21418   { (case "(($ac_try" in
21419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420   *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423   (eval "$ac_try") 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); }; } &&
21427          { ac_try='test -s conftest.$ac_objext'
21428   { (case "(($ac_try" in
21429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430   *) ac_try_echo=$ac_try;;
21431 esac
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433   (eval "$ac_try") 2>&5
21434   ac_status=$?
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); }; }; then
21437   ac_header_compiler=yes
21438 else
21439   echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442         ac_header_compiler=no
21443 fi
21444
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21447 echo "${ECHO_T}$ac_header_compiler" >&6; }
21448
21449 # Is the header present?
21450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21452 cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h.  */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h.  */
21458 #include <$ac_header>
21459 _ACEOF
21460 if { (ac_try="$ac_cpp conftest.$ac_ext"
21461 case "(($ac_try" in
21462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463   *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21467   ac_status=$?
21468   grep -v '^ *+' conftest.er1 >conftest.err
21469   rm -f conftest.er1
21470   cat conftest.err >&5
21471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); } >/dev/null; then
21473   if test -s conftest.err; then
21474     ac_cpp_err=$ac_c_preproc_warn_flag
21475     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21476   else
21477     ac_cpp_err=
21478   fi
21479 else
21480   ac_cpp_err=yes
21481 fi
21482 if test -z "$ac_cpp_err"; then
21483   ac_header_preproc=yes
21484 else
21485   echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21487
21488   ac_header_preproc=no
21489 fi
21490
21491 rm -f conftest.err conftest.$ac_ext
21492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21493 echo "${ECHO_T}$ac_header_preproc" >&6; }
21494
21495 # So?  What about this header?
21496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21497   yes:no: )
21498     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21502     ac_header_preproc=yes
21503     ;;
21504   no:yes:* )
21505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21507     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21508 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21509     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21511     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21512 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21515     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21517     ( cat <<\_ASBOX
21518 ## ----------------------------------- ##
21519 ## Report this to llvmbugs@cs.uiuc.edu ##
21520 ## ----------------------------------- ##
21521 _ASBOX
21522      ) | sed "s/^/$as_me: WARNING:     /" >&2
21523     ;;
21524 esac
21525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21528   echo $ECHO_N "(cached) $ECHO_C" >&6
21529 else
21530   eval "$as_ac_Header=\$ac_header_preproc"
21531 fi
21532 ac_res=`eval echo '${'$as_ac_Header'}'`
21533                { echo "$as_me:$LINENO: result: $ac_res" >&5
21534 echo "${ECHO_T}$ac_res" >&6; }
21535
21536 fi
21537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21538   cat >>confdefs.h <<_ACEOF
21539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21540 _ACEOF
21541
21542 fi
21543
21544 done
21545
21546
21547 for ac_func in getpagesize
21548 do
21549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21553   echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555   cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h.  */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h.  */
21561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21563 #define $ac_func innocuous_$ac_func
21564
21565 /* System header to define __stub macros and hopefully few prototypes,
21566     which can conflict with char $ac_func (); below.
21567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21568     <limits.h> exists even on freestanding compilers.  */
21569
21570 #ifdef __STDC__
21571 # include <limits.h>
21572 #else
21573 # include <assert.h>
21574 #endif
21575
21576 #undef $ac_func
21577
21578 /* Override any GCC internal prototype to avoid an error.
21579    Use char because int might match the return type of a GCC
21580    builtin and then its argument prototype would still apply.  */
21581 #ifdef __cplusplus
21582 extern "C"
21583 #endif
21584 char $ac_func ();
21585 /* The GNU C library defines this for functions which it implements
21586     to always fail with ENOSYS.  Some functions are actually named
21587     something starting with __ and the normal name is an alias.  */
21588 #if defined __stub_$ac_func || defined __stub___$ac_func
21589 choke me
21590 #endif
21591
21592 int
21593 main ()
21594 {
21595 return $ac_func ();
21596   ;
21597   return 0;
21598 }
21599 _ACEOF
21600 rm -f conftest.$ac_objext conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604   *) ac_try_echo=$ac_try;;
21605 esac
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607   (eval "$ac_link") 2>conftest.er1
21608   ac_status=$?
21609   grep -v '^ *+' conftest.er1 >conftest.err
21610   rm -f conftest.er1
21611   cat conftest.err >&5
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } &&
21614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21615   { (case "(($ac_try" in
21616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617   *) ac_try_echo=$ac_try;;
21618 esac
21619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620   (eval "$ac_try") 2>&5
21621   ac_status=$?
21622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); }; } &&
21624          { ac_try='test -s conftest$ac_exeext'
21625   { (case "(($ac_try" in
21626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627   *) ac_try_echo=$ac_try;;
21628 esac
21629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630   (eval "$ac_try") 2>&5
21631   ac_status=$?
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); }; }; then
21634   eval "$as_ac_var=yes"
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639         eval "$as_ac_var=no"
21640 fi
21641
21642 rm -f core conftest.err conftest.$ac_objext \
21643       conftest$ac_exeext conftest.$ac_ext
21644 fi
21645 ac_res=`eval echo '${'$as_ac_var'}'`
21646                { echo "$as_me:$LINENO: result: $ac_res" >&5
21647 echo "${ECHO_T}$ac_res" >&6; }
21648 if test `eval echo '${'$as_ac_var'}'` = yes; then
21649   cat >>confdefs.h <<_ACEOF
21650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21651 _ACEOF
21652
21653 fi
21654 done
21655
21656 { echo "$as_me:$LINENO: checking for working mmap" >&5
21657 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21658 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21659   echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661   if test "$cross_compiling" = yes; then
21662   ac_cv_func_mmap_fixed_mapped=no
21663 else
21664   cat >conftest.$ac_ext <<_ACEOF
21665 /* confdefs.h.  */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h.  */
21670 $ac_includes_default
21671 /* malloc might have been renamed as rpl_malloc. */
21672 #undef malloc
21673
21674 /* Thanks to Mike Haertel and Jim Avera for this test.
21675    Here is a matrix of mmap possibilities:
21676         mmap private not fixed
21677         mmap private fixed at somewhere currently unmapped
21678         mmap private fixed at somewhere already mapped
21679         mmap shared not fixed
21680         mmap shared fixed at somewhere currently unmapped
21681         mmap shared fixed at somewhere already mapped
21682    For private mappings, we should verify that changes cannot be read()
21683    back from the file, nor mmap's back from the file at a different
21684    address.  (There have been systems where private was not correctly
21685    implemented like the infamous i386 svr4.0, and systems where the
21686    VM page cache was not coherent with the file system buffer cache
21687    like early versions of FreeBSD and possibly contemporary NetBSD.)
21688    For shared mappings, we should conversely verify that changes get
21689    propagated back to all the places they're supposed to be.
21690
21691    Grep wants private fixed already mapped.
21692    The main things grep needs to know about mmap are:
21693    * does it exist and is it safe to write into the mmap'd area
21694    * how to use it (BSD variants)  */
21695
21696 #include <fcntl.h>
21697 #include <sys/mman.h>
21698
21699 #if !STDC_HEADERS && !HAVE_STDLIB_H
21700 char *malloc ();
21701 #endif
21702
21703 /* This mess was copied from the GNU getpagesize.h.  */
21704 #if !HAVE_GETPAGESIZE
21705 /* Assume that all systems that can run configure have sys/param.h.  */
21706 # if !HAVE_SYS_PARAM_H
21707 #  define HAVE_SYS_PARAM_H 1
21708 # endif
21709
21710 # ifdef _SC_PAGESIZE
21711 #  define getpagesize() sysconf(_SC_PAGESIZE)
21712 # else /* no _SC_PAGESIZE */
21713 #  if HAVE_SYS_PARAM_H
21714 #   include <sys/param.h>
21715 #   ifdef EXEC_PAGESIZE
21716 #    define getpagesize() EXEC_PAGESIZE
21717 #   else /* no EXEC_PAGESIZE */
21718 #    ifdef NBPG
21719 #     define getpagesize() NBPG * CLSIZE
21720 #     ifndef CLSIZE
21721 #      define CLSIZE 1
21722 #     endif /* no CLSIZE */
21723 #    else /* no NBPG */
21724 #     ifdef NBPC
21725 #      define getpagesize() NBPC
21726 #     else /* no NBPC */
21727 #      ifdef PAGESIZE
21728 #       define getpagesize() PAGESIZE
21729 #      endif /* PAGESIZE */
21730 #     endif /* no NBPC */
21731 #    endif /* no NBPG */
21732 #   endif /* no EXEC_PAGESIZE */
21733 #  else /* no HAVE_SYS_PARAM_H */
21734 #   define getpagesize() 8192   /* punt totally */
21735 #  endif /* no HAVE_SYS_PARAM_H */
21736 # endif /* no _SC_PAGESIZE */
21737
21738 #endif /* no HAVE_GETPAGESIZE */
21739
21740 int
21741 main ()
21742 {
21743   char *data, *data2, *data3;
21744   int i, pagesize;
21745   int fd;
21746
21747   pagesize = getpagesize ();
21748
21749   /* First, make a file with some known garbage in it. */
21750   data = (char *) malloc (pagesize);
21751   if (!data)
21752     return 1;
21753   for (i = 0; i < pagesize; ++i)
21754     *(data + i) = rand ();
21755   umask (0);
21756   fd = creat ("conftest.mmap", 0600);
21757   if (fd < 0)
21758     return 1;
21759   if (write (fd, data, pagesize) != pagesize)
21760     return 1;
21761   close (fd);
21762
21763   /* Next, try to mmap the file at a fixed address which already has
21764      something else allocated at it.  If we can, also make sure that
21765      we see the same garbage.  */
21766   fd = open ("conftest.mmap", O_RDWR);
21767   if (fd < 0)
21768     return 1;
21769   data2 = (char *) malloc (2 * pagesize);
21770   if (!data2)
21771     return 1;
21772   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21773   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21774                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21775     return 1;
21776   for (i = 0; i < pagesize; ++i)
21777     if (*(data + i) != *(data2 + i))
21778       return 1;
21779
21780   /* Finally, make sure that changes to the mapped area do not
21781      percolate back to the file as seen by read().  (This is a bug on
21782      some variants of i386 svr4.0.)  */
21783   for (i = 0; i < pagesize; ++i)
21784     *(data2 + i) = *(data2 + i) + 1;
21785   data3 = (char *) malloc (pagesize);
21786   if (!data3)
21787     return 1;
21788   if (read (fd, data3, pagesize) != pagesize)
21789     return 1;
21790   for (i = 0; i < pagesize; ++i)
21791     if (*(data + i) != *(data3 + i))
21792       return 1;
21793   close (fd);
21794   return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801   *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804   (eval "$ac_link") 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21808   { (case "(($ac_try" in
21809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810   *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813   (eval "$ac_try") 2>&5
21814   ac_status=$?
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); }; }; then
21817   ac_cv_func_mmap_fixed_mapped=yes
21818 else
21819   echo "$as_me: program exited with status $ac_status" >&5
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21822
21823 ( exit $ac_status )
21824 ac_cv_func_mmap_fixed_mapped=no
21825 fi
21826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21827 fi
21828
21829
21830 fi
21831 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21832 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21833 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21834
21835 cat >>confdefs.h <<\_ACEOF
21836 #define HAVE_MMAP 1
21837 _ACEOF
21838
21839 fi
21840 rm -f conftest.mmap
21841
21842   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21843 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21844 if test "${ac_cv_func_mmap_file+set}" = set; then
21845   echo $ECHO_N "(cached) $ECHO_C" >&6
21846 else
21847    ac_ext=c
21848 ac_cpp='$CPP $CPPFLAGS'
21849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21852
21853   if test "$cross_compiling" = yes; then
21854   ac_cv_func_mmap_file=no
21855 else
21856   cat >conftest.$ac_ext <<_ACEOF
21857
21858     /* confdefs.h.  */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h.  */
21863
21864 #include <sys/types.h>
21865 #include <sys/mman.h>
21866 #include <fcntl.h>
21867
21868 int
21869 main ()
21870 {
21871
21872   int fd;
21873   fd = creat ("foo",0777);
21874   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21875   unlink ("foo");
21876   return (fd != (int) MAP_FAILED);
21877   ;
21878   return 0;
21879 }
21880 _ACEOF
21881 rm -f conftest$ac_exeext
21882 if { (ac_try="$ac_link"
21883 case "(($ac_try" in
21884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885   *) ac_try_echo=$ac_try;;
21886 esac
21887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888   (eval "$ac_link") 2>&5
21889   ac_status=$?
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21892   { (case "(($ac_try" in
21893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894   *) ac_try_echo=$ac_try;;
21895 esac
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897   (eval "$ac_try") 2>&5
21898   ac_status=$?
21899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); }; }; then
21901   ac_cv_func_mmap_file=yes
21902 else
21903   echo "$as_me: program exited with status $ac_status" >&5
21904 echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21906
21907 ( exit $ac_status )
21908 ac_cv_func_mmap_file=no
21909 fi
21910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21911 fi
21912
21913
21914   ac_ext=c
21915 ac_cpp='$CPP $CPPFLAGS'
21916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21919
21920
21921 fi
21922 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21923 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21924 if test "$ac_cv_func_mmap_file" = yes; then
21925
21926 cat >>confdefs.h <<\_ACEOF
21927 #define HAVE_MMAP_FILE
21928 _ACEOF
21929
21930    MMAP_FILE=yes
21931
21932 fi
21933
21934   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21935 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21936 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21937   echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939   if test "$llvm_cv_os_type" = "Interix" ; then
21940    ac_cv_need_dev_zero_for_mmap=yes
21941  else
21942    ac_cv_need_dev_zero_for_mmap=no
21943  fi
21944
21945 fi
21946 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21947 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21948 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21949
21950 cat >>confdefs.h <<\_ACEOF
21951 #define NEED_DEV_ZERO_FOR_MMAP 1
21952 _ACEOF
21953
21954 fi
21955
21956   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21957   then
21958     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21959 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21960   fi
21961   if test "$ac_cv_func_mmap_file" = "no"
21962   then
21963     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21964 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21965   fi
21966 fi
21967
21968 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21969 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21970 ac_ext=cpp
21971 ac_cpp='$CXXCPP $CPPFLAGS'
21972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21975
21976 cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h.  */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h.  */
21982 int main() {
21983         volatile unsigned long val = 1;
21984         __sync_synchronize();
21985         __sync_val_compare_and_swap(&val, 1, 0);
21986         __sync_add_and_fetch(&val, 1);
21987         __sync_sub_and_fetch(&val, 1);
21988         return 0;
21989       }
21990
21991 _ACEOF
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996   *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999   (eval "$ac_link") 2>conftest.er1
22000   ac_status=$?
22001   grep -v '^ *+' conftest.er1 >conftest.err
22002   rm -f conftest.er1
22003   cat conftest.err >&5
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); } &&
22006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22007   { (case "(($ac_try" in
22008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009   *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012   (eval "$ac_try") 2>&5
22013   ac_status=$?
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); }; } &&
22016          { ac_try='test -s conftest$ac_exeext'
22017   { (case "(($ac_try" in
22018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019   *) ac_try_echo=$ac_try;;
22020 esac
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022   (eval "$ac_try") 2>&5
22023   ac_status=$?
22024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025   (exit $ac_status); }; }; then
22026   ac_ext=c
22027 ac_cpp='$CPP $CPPFLAGS'
22028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22031
22032   { echo "$as_me:$LINENO: result: yes" >&5
22033 echo "${ECHO_T}yes" >&6; }
22034
22035 cat >>confdefs.h <<\_ACEOF
22036 #define LLVM_MULTITHREADED 1
22037 _ACEOF
22038
22039 else
22040   echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22042
22043         { echo "$as_me:$LINENO: result: no" >&5
22044 echo "${ECHO_T}no" >&6; }
22045
22046 cat >>confdefs.h <<\_ACEOF
22047 #define LLVM_MULTITHREADED 0
22048 _ACEOF
22049
22050   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22051 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22052 fi
22053
22054 rm -f core conftest.err conftest.$ac_objext \
22055       conftest$ac_exeext conftest.$ac_ext
22056
22057
22058 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22059   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22060 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22061 if test "${llvm_cv_linux_mixed+set}" = set; then
22062   echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064    ac_ext=c
22065 ac_cpp='$CPP $CPPFLAGS'
22066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22069
22070   cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h.  */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h.  */
22076 #ifndef __x86_64__
22077        error: Not x86-64 even if uname says so!
22078       #endif
22079
22080 int
22081 main ()
22082 {
22083
22084   ;
22085   return 0;
22086 }
22087 _ACEOF
22088 rm -f conftest.$ac_objext
22089 if { (ac_try="$ac_compile"
22090 case "(($ac_try" in
22091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092   *) ac_try_echo=$ac_try;;
22093 esac
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095   (eval "$ac_compile") 2>conftest.er1
22096   ac_status=$?
22097   grep -v '^ *+' conftest.er1 >conftest.err
22098   rm -f conftest.er1
22099   cat conftest.err >&5
22100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101   (exit $ac_status); } &&
22102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22103   { (case "(($ac_try" in
22104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105   *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108   (eval "$ac_try") 2>&5
22109   ac_status=$?
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); }; } &&
22112          { ac_try='test -s conftest.$ac_objext'
22113   { (case "(($ac_try" in
22114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115   *) ac_try_echo=$ac_try;;
22116 esac
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118   (eval "$ac_try") 2>&5
22119   ac_status=$?
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); }; }; then
22122   llvm_cv_linux_mixed=no
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127         llvm_cv_linux_mixed=yes
22128 fi
22129
22130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131   ac_ext=c
22132 ac_cpp='$CPP $CPPFLAGS'
22133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22136
22137
22138 fi
22139 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22140 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22141
22142   if test "$llvm_cv_linux_mixed" = "yes"; then
22143     llvm_cv_target_arch="x86"
22144     ARCH="x86"
22145   fi
22146 fi
22147
22148
22149 for ac_func in __dso_handle
22150 do
22151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22155   echo $ECHO_N "(cached) $ECHO_C" >&6
22156 else
22157   cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h.  */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h.  */
22163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22165 #define $ac_func innocuous_$ac_func
22166
22167 /* System header to define __stub macros and hopefully few prototypes,
22168     which can conflict with char $ac_func (); below.
22169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22170     <limits.h> exists even on freestanding compilers.  */
22171
22172 #ifdef __STDC__
22173 # include <limits.h>
22174 #else
22175 # include <assert.h>
22176 #endif
22177
22178 #undef $ac_func
22179
22180 /* Override any GCC internal prototype to avoid an error.
22181    Use char because int might match the return type of a GCC
22182    builtin and then its argument prototype would still apply.  */
22183 #ifdef __cplusplus
22184 extern "C"
22185 #endif
22186 char $ac_func ();
22187 /* The GNU C library defines this for functions which it implements
22188     to always fail with ENOSYS.  Some functions are actually named
22189     something starting with __ and the normal name is an alias.  */
22190 #if defined __stub_$ac_func || defined __stub___$ac_func
22191 choke me
22192 #endif
22193
22194 int
22195 main ()
22196 {
22197 return $ac_func ();
22198   ;
22199   return 0;
22200 }
22201 _ACEOF
22202 rm -f conftest.$ac_objext conftest$ac_exeext
22203 if { (ac_try="$ac_link"
22204 case "(($ac_try" in
22205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22206   *) ac_try_echo=$ac_try;;
22207 esac
22208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22209   (eval "$ac_link") 2>conftest.er1
22210   ac_status=$?
22211   grep -v '^ *+' conftest.er1 >conftest.err
22212   rm -f conftest.er1
22213   cat conftest.err >&5
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); } &&
22216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22217   { (case "(($ac_try" in
22218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219   *) ac_try_echo=$ac_try;;
22220 esac
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222   (eval "$ac_try") 2>&5
22223   ac_status=$?
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); }; } &&
22226          { ac_try='test -s conftest$ac_exeext'
22227   { (case "(($ac_try" in
22228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229   *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232   (eval "$ac_try") 2>&5
22233   ac_status=$?
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); }; }; then
22236   eval "$as_ac_var=yes"
22237 else
22238   echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22240
22241         eval "$as_ac_var=no"
22242 fi
22243
22244 rm -f core conftest.err conftest.$ac_objext \
22245       conftest$ac_exeext conftest.$ac_ext
22246 fi
22247 ac_res=`eval echo '${'$as_ac_var'}'`
22248                { echo "$as_me:$LINENO: result: $ac_res" >&5
22249 echo "${ECHO_T}$ac_res" >&6; }
22250 if test `eval echo '${'$as_ac_var'}'` = yes; then
22251   cat >>confdefs.h <<_ACEOF
22252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22253 _ACEOF
22254
22255 fi
22256 done
22257
22258
22259 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22260 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22261 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22262   echo $ECHO_N "(cached) $ECHO_C" >&6
22263 else
22264   llvm_cv_llvmgcc_dragonegg="no"
22265 if test -n "$LLVMGCC" ; then
22266   cp /dev/null conftest.c
22267   $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22268   if test $? -eq 0 ; then
22269     llvm_cv_llvmgcc_dragonegg="yes"
22270   fi
22271   rm conftest.c
22272 fi
22273 fi
22274 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22275 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22276
22277 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22278   LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22279   LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22280 else
22281   LLVMCC_EMITIR_FLAG="-emit-llvm"
22282   LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22283 fi
22284
22285
22286
22287 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22288 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22289 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22290   echo $ECHO_N "(cached) $ECHO_C" >&6
22291 else
22292   llvm_cv_llvmgcc_sanity="no"
22293 if test -n "$LLVMGCC" ; then
22294   cp /dev/null conftest.c
22295   $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22296       grep 'target datalayout =' > /dev/null 2>&1
22297   if test $? -eq 0 ; then
22298     llvm_cv_llvmgcc_sanity="yes"
22299   fi
22300   rm conftest.c
22301 fi
22302 fi
22303 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22304 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22305
22306 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22307   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22308 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22309   llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22310   LLVMCC1=$llvmcc1path
22311
22312   llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22313   LLVMCC1PLUS=$llvmcc1pluspath
22314
22315   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22316   LLVMGCCDIR=$llvmgccdir
22317
22318   llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22319   LLVMGCC_LANGS=$llvmgcclangs
22320
22321   LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22322
22323
22324   { echo "$as_me:$LINENO: result: ok" >&5
22325 echo "${ECHO_T}ok" >&6; }
22326 fi
22327
22328 SHLIBEXT=$libltdl_cv_shlibext
22329
22330
22331 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22332
22333
22334 # Translate the various configuration directories and other basic
22335 # information into substitutions that will end up in Makefile.config.in
22336 # that these configured values can be used by the makefiles
22337 if test "${prefix}" = "NONE" ; then
22338   prefix="/usr/local"
22339 fi
22340 eval LLVM_PREFIX="${prefix}";
22341 eval LLVM_BINDIR="${prefix}/bin";
22342 eval LLVM_LIBDIR="${prefix}/lib";
22343 eval LLVM_DATADIR="${prefix}/share/llvm";
22344 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22345 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22346 eval LLVM_INCLUDEDIR="${prefix}/include";
22347 eval LLVM_INFODIR="${prefix}/info";
22348 eval LLVM_MANDIR="${prefix}/man";
22349 LLVM_CONFIGTIME=`date`
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361 # Place the various directores into the config.h file as #defines so that we
22362 # can know about the installation paths within LLVM.
22363
22364 cat >>confdefs.h <<_ACEOF
22365 #define LLVM_PREFIX "$LLVM_PREFIX"
22366 _ACEOF
22367
22368
22369 cat >>confdefs.h <<_ACEOF
22370 #define LLVM_BINDIR "$LLVM_BINDIR"
22371 _ACEOF
22372
22373
22374 cat >>confdefs.h <<_ACEOF
22375 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22376 _ACEOF
22377
22378
22379 cat >>confdefs.h <<_ACEOF
22380 #define LLVM_DATADIR "$LLVM_DATADIR"
22381 _ACEOF
22382
22383
22384 cat >>confdefs.h <<_ACEOF
22385 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22386 _ACEOF
22387
22388
22389 cat >>confdefs.h <<_ACEOF
22390 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22391 _ACEOF
22392
22393
22394 cat >>confdefs.h <<_ACEOF
22395 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22396 _ACEOF
22397
22398
22399 cat >>confdefs.h <<_ACEOF
22400 #define LLVM_INFODIR "$LLVM_INFODIR"
22401 _ACEOF
22402
22403
22404 cat >>confdefs.h <<_ACEOF
22405 #define LLVM_MANDIR "$LLVM_MANDIR"
22406 _ACEOF
22407
22408
22409 cat >>confdefs.h <<_ACEOF
22410 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22411 _ACEOF
22412
22413
22414 cat >>confdefs.h <<_ACEOF
22415 #define LLVM_HOSTTRIPLE "$host"
22416 _ACEOF
22417
22418
22419 # Determine which bindings to build.
22420 if test "$BINDINGS_TO_BUILD" = auto ; then
22421   BINDINGS_TO_BUILD=""
22422   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22423     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22424   fi
22425 fi
22426 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22427
22428
22429 # This isn't really configurey, but it avoids having to repeat the list in
22430 # other files.
22431 ALL_BINDINGS=ocaml
22432
22433
22434 # Do any work necessary to ensure that bindings have what they need.
22435 binding_prereqs_failed=0
22436 for a_binding in $BINDINGS_TO_BUILD ; do
22437   case "$a_binding" in
22438   ocaml)
22439     if test "x$OCAMLC" = x ; then
22440       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22441 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22442       binding_prereqs_failed=1
22443     fi
22444     if test "x$OCAMLDEP" = x ; then
22445       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22446 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22447       binding_prereqs_failed=1
22448     fi
22449     if test "x$OCAMLOPT" = x ; then
22450       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22451 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22452           fi
22453     if test "x$with_ocaml_libdir" != xauto ; then
22454       OCAML_LIBDIR=$with_ocaml_libdir
22455
22456     else
22457       ocaml_stdlib="`"$OCAMLC" -where`"
22458       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22459       then
22460         # ocaml stdlib is beneath our prefix; use stdlib
22461         OCAML_LIBDIR=$ocaml_stdlib
22462
22463       else
22464         # ocaml stdlib is outside our prefix; use libdir/ocaml
22465         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22466
22467       fi
22468     fi
22469     ;;
22470   esac
22471 done
22472 if test "$binding_prereqs_failed" = 1 ; then
22473   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22474 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22475    { (exit 1); exit 1; }; }
22476 fi
22477
22478 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22479 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22480 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22481   echo $ECHO_N "(cached) $ECHO_C" >&6
22482 else
22483    ac_ext=cpp
22484 ac_cpp='$CXXCPP $CPPFLAGS'
22485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22488
22489   oldcxxflags="$CXXFLAGS"
22490   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22491   cat >conftest.$ac_ext <<_ACEOF
22492 /* confdefs.h.  */
22493 _ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h.  */
22497
22498 int
22499 main ()
22500 {
22501
22502   ;
22503   return 0;
22504 }
22505 _ACEOF
22506 rm -f conftest.$ac_objext
22507 if { (ac_try="$ac_compile"
22508 case "(($ac_try" in
22509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510   *) ac_try_echo=$ac_try;;
22511 esac
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513   (eval "$ac_compile") 2>conftest.er1
22514   ac_status=$?
22515   grep -v '^ *+' conftest.er1 >conftest.err
22516   rm -f conftest.er1
22517   cat conftest.err >&5
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); } &&
22520          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22521   { (case "(($ac_try" in
22522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523   *) ac_try_echo=$ac_try;;
22524 esac
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526   (eval "$ac_try") 2>&5
22527   ac_status=$?
22528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529   (exit $ac_status); }; } &&
22530          { ac_try='test -s conftest.$ac_objext'
22531   { (case "(($ac_try" in
22532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533   *) ac_try_echo=$ac_try;;
22534 esac
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536   (eval "$ac_try") 2>&5
22537   ac_status=$?
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); }; }; then
22540   llvm_cv_cxx_visibility_inlines_hidden=yes
22541 else
22542   echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22544
22545         llvm_cv_cxx_visibility_inlines_hidden=no
22546 fi
22547
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549   CXXFLAGS="$oldcxxflags"
22550   ac_ext=c
22551 ac_cpp='$CPP $CPPFLAGS'
22552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22555
22556
22557 fi
22558 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22559 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22560 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22561   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22562
22563 else
22564   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22565
22566 fi
22567
22568
22569 if test "$llvm_cv_link_use_r" = "yes" ; then
22570   RPATH="-Wl,-R"
22571 else
22572   RPATH="-Wl,-rpath"
22573 fi
22574
22575
22576 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22577   RDYNAMIC="-Wl,-export-dynamic"
22578 else
22579   RDYNAMIC=""
22580 fi
22581
22582
22583
22584 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22585
22586
22587
22588
22589
22590
22591 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22592
22593 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22594
22595 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22596
22597 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22598
22599 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22600
22601
22602 ac_config_files="$ac_config_files Makefile.config"
22603
22604
22605 ac_config_files="$ac_config_files llvm.spec"
22606
22607
22608 ac_config_files="$ac_config_files docs/doxygen.cfg"
22609
22610 if test -f ${srcdir}/tools/clang/README.txt; then
22611   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22612
22613 fi
22614
22615 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22616
22617
22618 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22619
22620
22621 ac_config_commands="$ac_config_commands setup"
22622
22623 ac_config_commands="$ac_config_commands Makefile"
22624
22625
22626 ac_config_commands="$ac_config_commands Makefile.common"
22627
22628
22629 ac_config_commands="$ac_config_commands examples/Makefile"
22630
22631
22632 ac_config_commands="$ac_config_commands lib/Makefile"
22633
22634
22635 ac_config_commands="$ac_config_commands runtime/Makefile"
22636
22637
22638 ac_config_commands="$ac_config_commands test/Makefile"
22639
22640
22641 ac_config_commands="$ac_config_commands test/Makefile.tests"
22642
22643
22644 ac_config_commands="$ac_config_commands unittests/Makefile"
22645
22646
22647 ac_config_commands="$ac_config_commands tools/Makefile"
22648
22649
22650 ac_config_commands="$ac_config_commands utils/Makefile"
22651
22652
22653 ac_config_commands="$ac_config_commands projects/Makefile"
22654
22655
22656 ac_config_commands="$ac_config_commands bindings/Makefile"
22657
22658
22659 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22660
22661
22662
22663 cat >confcache <<\_ACEOF
22664 # This file is a shell script that caches the results of configure
22665 # tests run on this system so they can be shared between configure
22666 # scripts and configure runs, see configure's option --config-cache.
22667 # It is not useful on other systems.  If it contains results you don't
22668 # want to keep, you may remove or edit it.
22669 #
22670 # config.status only pays attention to the cache file if you give it
22671 # the --recheck option to rerun configure.
22672 #
22673 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22674 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22675 # following values.
22676
22677 _ACEOF
22678
22679 # The following way of writing the cache mishandles newlines in values,
22680 # but we know of no workaround that is simple, portable, and efficient.
22681 # So, we kill variables containing newlines.
22682 # Ultrix sh set writes to stderr and can't be redirected directly,
22683 # and sets the high bit in the cache file unless we assign to the vars.
22684 (
22685   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22686     eval ac_val=\$$ac_var
22687     case $ac_val in #(
22688     *${as_nl}*)
22689       case $ac_var in #(
22690       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22691 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22692       esac
22693       case $ac_var in #(
22694       _ | IFS | as_nl) ;; #(
22695       *) $as_unset $ac_var ;;
22696       esac ;;
22697     esac
22698   done
22699
22700   (set) 2>&1 |
22701     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22702     *${as_nl}ac_space=\ *)
22703       # `set' does not quote correctly, so add quotes (double-quote
22704       # substitution turns \\\\ into \\, and sed turns \\ into \).
22705       sed -n \
22706         "s/'/'\\\\''/g;
22707           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22708       ;; #(
22709     *)
22710       # `set' quotes correctly as required by POSIX, so do not add quotes.
22711       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22712       ;;
22713     esac |
22714     sort
22715 ) |
22716   sed '
22717      /^ac_cv_env_/b end
22718      t clear
22719      :clear
22720      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22721      t end
22722      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22723      :end' >>confcache
22724 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22725   if test -w "$cache_file"; then
22726     test "x$cache_file" != "x/dev/null" &&
22727       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22728 echo "$as_me: updating cache $cache_file" >&6;}
22729     cat confcache >$cache_file
22730   else
22731     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22732 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22733   fi
22734 fi
22735 rm -f confcache
22736
22737 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22738 # Let make expand exec_prefix.
22739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22740
22741 DEFS=-DHAVE_CONFIG_H
22742
22743 ac_libobjs=
22744 ac_ltlibobjs=
22745 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22746   # 1. Remove the extension, and $U if already installed.
22747   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22748   ac_i=`echo "$ac_i" | sed "$ac_script"`
22749   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22750   #    will be set to the directory where LIBOBJS objects are built.
22751   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22752   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22753 done
22754 LIBOBJS=$ac_libobjs
22755
22756 LTLIBOBJS=$ac_ltlibobjs
22757
22758
22759 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22760   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22761 Usually this means the macro was only invoked conditionally." >&5
22762 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22763 Usually this means the macro was only invoked conditionally." >&2;}
22764    { (exit 1); exit 1; }; }
22765 fi
22766 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22767   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22768 Usually this means the macro was only invoked conditionally." >&5
22769 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22770 Usually this means the macro was only invoked conditionally." >&2;}
22771    { (exit 1); exit 1; }; }
22772 fi
22773
22774 : ${CONFIG_STATUS=./config.status}
22775 ac_clean_files_save=$ac_clean_files
22776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22777 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22778 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22779 cat >$CONFIG_STATUS <<_ACEOF
22780 #! $SHELL
22781 # Generated by $as_me.
22782 # Run this file to recreate the current configuration.
22783 # Compiler output produced by configure, useful for debugging
22784 # configure, is in config.log if it exists.
22785
22786 debug=false
22787 ac_cs_recheck=false
22788 ac_cs_silent=false
22789 SHELL=\${CONFIG_SHELL-$SHELL}
22790 _ACEOF
22791
22792 cat >>$CONFIG_STATUS <<\_ACEOF
22793 ## --------------------- ##
22794 ## M4sh Initialization.  ##
22795 ## --------------------- ##
22796
22797 # Be Bourne compatible
22798 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22799   emulate sh
22800   NULLCMD=:
22801   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22802   # is contrary to our usage.  Disable this feature.
22803   alias -g '${1+"$@"}'='"$@"'
22804   setopt NO_GLOB_SUBST
22805 else
22806   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22807 fi
22808 BIN_SH=xpg4; export BIN_SH # for Tru64
22809 DUALCASE=1; export DUALCASE # for MKS sh
22810
22811
22812 # PATH needs CR
22813 # Avoid depending upon Character Ranges.
22814 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22815 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22816 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22817 as_cr_digits='0123456789'
22818 as_cr_alnum=$as_cr_Letters$as_cr_digits
22819
22820 # The user is always right.
22821 if test "${PATH_SEPARATOR+set}" != set; then
22822   echo "#! /bin/sh" >conf$$.sh
22823   echo  "exit 0"   >>conf$$.sh
22824   chmod +x conf$$.sh
22825   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22826     PATH_SEPARATOR=';'
22827   else
22828     PATH_SEPARATOR=:
22829   fi
22830   rm -f conf$$.sh
22831 fi
22832
22833 # Support unset when possible.
22834 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22835   as_unset=unset
22836 else
22837   as_unset=false
22838 fi
22839
22840
22841 # IFS
22842 # We need space, tab and new line, in precisely that order.  Quoting is
22843 # there to prevent editors from complaining about space-tab.
22844 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22845 # splitting by setting IFS to empty value.)
22846 as_nl='
22847 '
22848 IFS=" ""        $as_nl"
22849
22850 # Find who we are.  Look in the path if we contain no directory separator.
22851 case $0 in
22852   *[\\/]* ) as_myself=$0 ;;
22853   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22854 for as_dir in $PATH
22855 do
22856   IFS=$as_save_IFS
22857   test -z "$as_dir" && as_dir=.
22858   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22859 done
22860 IFS=$as_save_IFS
22861
22862      ;;
22863 esac
22864 # We did not find ourselves, most probably we were run as `sh COMMAND'
22865 # in which case we are not to be found in the path.
22866 if test "x$as_myself" = x; then
22867   as_myself=$0
22868 fi
22869 if test ! -f "$as_myself"; then
22870   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22871   { (exit 1); exit 1; }
22872 fi
22873
22874 # Work around bugs in pre-3.0 UWIN ksh.
22875 for as_var in ENV MAIL MAILPATH
22876 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22877 done
22878 PS1='$ '
22879 PS2='> '
22880 PS4='+ '
22881
22882 # NLS nuisances.
22883 for as_var in \
22884   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22885   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22886   LC_TELEPHONE LC_TIME
22887 do
22888   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22889     eval $as_var=C; export $as_var
22890   else
22891     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22892   fi
22893 done
22894
22895 # Required to use basename.
22896 if expr a : '\(a\)' >/dev/null 2>&1 &&
22897    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22898   as_expr=expr
22899 else
22900   as_expr=false
22901 fi
22902
22903 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22904   as_basename=basename
22905 else
22906   as_basename=false
22907 fi
22908
22909
22910 # Name of the executable.
22911 as_me=`$as_basename -- "$0" ||
22912 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22913          X"$0" : 'X\(//\)$' \| \
22914          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22915 echo X/"$0" |
22916     sed '/^.*\/\([^/][^/]*\)\/*$/{
22917             s//\1/
22918             q
22919           }
22920           /^X\/\(\/\/\)$/{
22921             s//\1/
22922             q
22923           }
22924           /^X\/\(\/\).*/{
22925             s//\1/
22926             q
22927           }
22928           s/.*/./; q'`
22929
22930 # CDPATH.
22931 $as_unset CDPATH
22932
22933
22934
22935   as_lineno_1=$LINENO
22936   as_lineno_2=$LINENO
22937   test "x$as_lineno_1" != "x$as_lineno_2" &&
22938   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22939
22940   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22941   # uniformly replaced by the line number.  The first 'sed' inserts a
22942   # line-number line after each line using $LINENO; the second 'sed'
22943   # does the real work.  The second script uses 'N' to pair each
22944   # line-number line with the line containing $LINENO, and appends
22945   # trailing '-' during substitution so that $LINENO is not a special
22946   # case at line end.
22947   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22948   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22949   # E. McMahon (1931-1989) for sed's syntax.  :-)
22950   sed -n '
22951     p
22952     /[$]LINENO/=
22953   ' <$as_myself |
22954     sed '
22955       s/[$]LINENO.*/&-/
22956       t lineno
22957       b
22958       :lineno
22959       N
22960       :loop
22961       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22962       t loop
22963       s/-\n.*//
22964     ' >$as_me.lineno &&
22965   chmod +x "$as_me.lineno" ||
22966     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22967    { (exit 1); exit 1; }; }
22968
22969   # Don't try to exec as it changes $[0], causing all sort of problems
22970   # (the dirname of $[0] is not the place where we might find the
22971   # original and so on.  Autoconf is especially sensitive to this).
22972   . "./$as_me.lineno"
22973   # Exit status is that of the last command.
22974   exit
22975 }
22976
22977
22978 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22979   as_dirname=dirname
22980 else
22981   as_dirname=false
22982 fi
22983
22984 ECHO_C= ECHO_N= ECHO_T=
22985 case `echo -n x` in
22986 -n*)
22987   case `echo 'x\c'` in
22988   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22989   *)   ECHO_C='\c';;
22990   esac;;
22991 *)
22992   ECHO_N='-n';;
22993 esac
22994
22995 if expr a : '\(a\)' >/dev/null 2>&1 &&
22996    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22997   as_expr=expr
22998 else
22999   as_expr=false
23000 fi
23001
23002 rm -f conf$$ conf$$.exe conf$$.file
23003 if test -d conf$$.dir; then
23004   rm -f conf$$.dir/conf$$.file
23005 else
23006   rm -f conf$$.dir
23007   mkdir conf$$.dir
23008 fi
23009 echo >conf$$.file
23010 if ln -s conf$$.file conf$$ 2>/dev/null; then
23011   as_ln_s='ln -s'
23012   # ... but there are two gotchas:
23013   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23014   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23015   # In both cases, we have to default to `cp -p'.
23016   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23017     as_ln_s='cp -p'
23018 elif ln conf$$.file conf$$ 2>/dev/null; then
23019   as_ln_s=ln
23020 else
23021   as_ln_s='cp -p'
23022 fi
23023 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23024 rmdir conf$$.dir 2>/dev/null
23025
23026 if mkdir -p . 2>/dev/null; then
23027   as_mkdir_p=:
23028 else
23029   test -d ./-p && rmdir ./-p
23030   as_mkdir_p=false
23031 fi
23032
23033 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23034 # systems may use methods other than mode bits to determine executability.
23035 cat >conf$$.file <<_ASEOF
23036 #! /bin/sh
23037 exit 0
23038 _ASEOF
23039 chmod +x conf$$.file
23040 if test -x conf$$.file >/dev/null 2>&1; then
23041   as_executable_p="test -x"
23042 else
23043   as_executable_p=:
23044 fi
23045 rm -f conf$$.file
23046
23047 # Sed expression to map a string onto a valid CPP name.
23048 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23049
23050 # Sed expression to map a string onto a valid variable name.
23051 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23052
23053
23054 exec 6>&1
23055
23056 # Save the log message, to keep $[0] and so on meaningful, and to
23057 # report actual input values of CONFIG_FILES etc. instead of their
23058 # values after options handling.
23059 ac_log="
23060 This file was extended by llvm $as_me 3.0svn, which was
23061 generated by GNU Autoconf 2.60.  Invocation command line was
23062
23063   CONFIG_FILES    = $CONFIG_FILES
23064   CONFIG_HEADERS  = $CONFIG_HEADERS
23065   CONFIG_LINKS    = $CONFIG_LINKS
23066   CONFIG_COMMANDS = $CONFIG_COMMANDS
23067   $ $0 $@
23068
23069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23070 "
23071
23072 _ACEOF
23073
23074 cat >>$CONFIG_STATUS <<_ACEOF
23075 # Files that config.status was made for.
23076 config_files="$ac_config_files"
23077 config_headers="$ac_config_headers"
23078 config_commands="$ac_config_commands"
23079
23080 _ACEOF
23081
23082 cat >>$CONFIG_STATUS <<\_ACEOF
23083 ac_cs_usage="\
23084 \`$as_me' instantiates files from templates according to the
23085 current configuration.
23086
23087 Usage: $0 [OPTIONS] [FILE]...
23088
23089   -h, --help       print this help, then exit
23090   -V, --version    print version number, then exit
23091   -q, --quiet      do not print progress messages
23092   -d, --debug      don't remove temporary files
23093       --recheck    update $as_me by reconfiguring in the same conditions
23094   --file=FILE[:TEMPLATE]
23095                    instantiate the configuration file FILE
23096   --header=FILE[:TEMPLATE]
23097                    instantiate the configuration header FILE
23098
23099 Configuration files:
23100 $config_files
23101
23102 Configuration headers:
23103 $config_headers
23104
23105 Configuration commands:
23106 $config_commands
23107
23108 Report bugs to <bug-autoconf@gnu.org>."
23109
23110 _ACEOF
23111 cat >>$CONFIG_STATUS <<_ACEOF
23112 ac_cs_version="\\
23113 llvm config.status 3.0svn
23114 configured by $0, generated by GNU Autoconf 2.60,
23115   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23116
23117 Copyright (C) 2006 Free Software Foundation, Inc.
23118 This config.status script is free software; the Free Software Foundation
23119 gives unlimited permission to copy, distribute and modify it."
23120
23121 ac_pwd='$ac_pwd'
23122 srcdir='$srcdir'
23123 INSTALL='$INSTALL'
23124 _ACEOF
23125
23126 cat >>$CONFIG_STATUS <<\_ACEOF
23127 # If no file are specified by the user, then we need to provide default
23128 # value.  By we need to know if files were specified by the user.
23129 ac_need_defaults=:
23130 while test $# != 0
23131 do
23132   case $1 in
23133   --*=*)
23134     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23135     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23136     ac_shift=:
23137     ;;
23138   *)
23139     ac_option=$1
23140     ac_optarg=$2
23141     ac_shift=shift
23142     ;;
23143   esac
23144
23145   case $ac_option in
23146   # Handling of the options.
23147   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23148     ac_cs_recheck=: ;;
23149   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23150     echo "$ac_cs_version"; exit ;;
23151   --debug | --debu | --deb | --de | --d | -d )
23152     debug=: ;;
23153   --file | --fil | --fi | --f )
23154     $ac_shift
23155     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23156     ac_need_defaults=false;;
23157   --header | --heade | --head | --hea )
23158     $ac_shift
23159     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23160     ac_need_defaults=false;;
23161   --he | --h)
23162     # Conflict between --help and --header
23163     { echo "$as_me: error: ambiguous option: $1
23164 Try \`$0 --help' for more information." >&2
23165    { (exit 1); exit 1; }; };;
23166   --help | --hel | -h )
23167     echo "$ac_cs_usage"; exit ;;
23168   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23169   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23170     ac_cs_silent=: ;;
23171
23172   # This is an error.
23173   -*) { echo "$as_me: error: unrecognized option: $1
23174 Try \`$0 --help' for more information." >&2
23175    { (exit 1); exit 1; }; } ;;
23176
23177   *) ac_config_targets="$ac_config_targets $1"
23178      ac_need_defaults=false ;;
23179
23180   esac
23181   shift
23182 done
23183
23184 ac_configure_extra_args=
23185
23186 if $ac_cs_silent; then
23187   exec 6>/dev/null
23188   ac_configure_extra_args="$ac_configure_extra_args --silent"
23189 fi
23190
23191 _ACEOF
23192 cat >>$CONFIG_STATUS <<_ACEOF
23193 if \$ac_cs_recheck; then
23194   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23195   CONFIG_SHELL=$SHELL
23196   export CONFIG_SHELL
23197   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23198 fi
23199
23200 _ACEOF
23201 cat >>$CONFIG_STATUS <<\_ACEOF
23202 exec 5>>config.log
23203 {
23204   echo
23205   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23206 ## Running $as_me. ##
23207 _ASBOX
23208   echo "$ac_log"
23209 } >&5
23210
23211 _ACEOF
23212 cat >>$CONFIG_STATUS <<_ACEOF
23213 #
23214 # INIT-COMMANDS
23215 #
23216 llvm_src="${srcdir}"
23217
23218 _ACEOF
23219
23220 cat >>$CONFIG_STATUS <<\_ACEOF
23221
23222 # Handling of arguments.
23223 for ac_config_target in $ac_config_targets
23224 do
23225   case $ac_config_target in
23226     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23227     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23228     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23229     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23230     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23231     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23232     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23233     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23234     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23235     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23236     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23237     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23238     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23239     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23240     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23241     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23242     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23243     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23244     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23245     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23246     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23247     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23248     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23249     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23250     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23251     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23252     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23253
23254   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23255 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23256    { (exit 1); exit 1; }; };;
23257   esac
23258 done
23259
23260
23261 # If the user did not use the arguments to specify the items to instantiate,
23262 # then the envvar interface is used.  Set only those that are not.
23263 # We use the long form for the default assignment because of an extremely
23264 # bizarre bug on SunOS 4.1.3.
23265 if $ac_need_defaults; then
23266   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23267   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23268   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23269 fi
23270
23271 # Have a temporary directory for convenience.  Make it in the build tree
23272 # simply because there is no reason against having it here, and in addition,
23273 # creating and moving files from /tmp can sometimes cause problems.
23274 # Hook for its removal unless debugging.
23275 # Note that there is a small window in which the directory will not be cleaned:
23276 # after its creation but before its name has been assigned to `$tmp'.
23277 $debug ||
23278 {
23279   tmp=
23280   trap 'exit_status=$?
23281   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23282 ' 0
23283   trap '{ (exit 1); exit 1; }' 1 2 13 15
23284 }
23285 # Create a (secure) tmp directory for tmp files.
23286
23287 {
23288   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23289   test -n "$tmp" && test -d "$tmp"
23290 }  ||
23291 {
23292   tmp=./conf$$-$RANDOM
23293   (umask 077 && mkdir "$tmp")
23294 } ||
23295 {
23296    echo "$me: cannot create a temporary directory in ." >&2
23297    { (exit 1); exit 1; }
23298 }
23299
23300 #
23301 # Set up the sed scripts for CONFIG_FILES section.
23302 #
23303
23304 # No need to generate the scripts if there are no CONFIG_FILES.
23305 # This happens for instance when ./config.status config.h
23306 if test -n "$CONFIG_FILES"; then
23307
23308 _ACEOF
23309
23310
23311
23312 ac_delim='%!_!# '
23313 for ac_last_try in false false false false false :; do
23314   cat >conf$$subs.sed <<_ACEOF
23315 SHELL!$SHELL$ac_delim
23316 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23317 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23318 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23319 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23320 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23321 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23322 exec_prefix!$exec_prefix$ac_delim
23323 prefix!$prefix$ac_delim
23324 program_transform_name!$program_transform_name$ac_delim
23325 bindir!$bindir$ac_delim
23326 sbindir!$sbindir$ac_delim
23327 libexecdir!$libexecdir$ac_delim
23328 datarootdir!$datarootdir$ac_delim
23329 datadir!$datadir$ac_delim
23330 sysconfdir!$sysconfdir$ac_delim
23331 sharedstatedir!$sharedstatedir$ac_delim
23332 localstatedir!$localstatedir$ac_delim
23333 includedir!$includedir$ac_delim
23334 oldincludedir!$oldincludedir$ac_delim
23335 docdir!$docdir$ac_delim
23336 infodir!$infodir$ac_delim
23337 htmldir!$htmldir$ac_delim
23338 dvidir!$dvidir$ac_delim
23339 pdfdir!$pdfdir$ac_delim
23340 psdir!$psdir$ac_delim
23341 libdir!$libdir$ac_delim
23342 localedir!$localedir$ac_delim
23343 mandir!$mandir$ac_delim
23344 DEFS!$DEFS$ac_delim
23345 ECHO_C!$ECHO_C$ac_delim
23346 ECHO_N!$ECHO_N$ac_delim
23347 ECHO_T!$ECHO_T$ac_delim
23348 LIBS!$LIBS$ac_delim
23349 build_alias!$build_alias$ac_delim
23350 host_alias!$host_alias$ac_delim
23351 target_alias!$target_alias$ac_delim
23352 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23353 subdirs!$subdirs$ac_delim
23354 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23355 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23356 build!$build$ac_delim
23357 build_cpu!$build_cpu$ac_delim
23358 build_vendor!$build_vendor$ac_delim
23359 build_os!$build_os$ac_delim
23360 host!$host$ac_delim
23361 host_cpu!$host_cpu$ac_delim
23362 host_vendor!$host_vendor$ac_delim
23363 host_os!$host_os$ac_delim
23364 target!$target$ac_delim
23365 target_cpu!$target_cpu$ac_delim
23366 target_vendor!$target_vendor$ac_delim
23367 target_os!$target_os$ac_delim
23368 OS!$OS$ac_delim
23369 HOST_OS!$HOST_OS$ac_delim
23370 TARGET_OS!$TARGET_OS$ac_delim
23371 LINKALL!$LINKALL$ac_delim
23372 NOLINKALL!$NOLINKALL$ac_delim
23373 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23374 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23375 ARCH!$ARCH$ac_delim
23376 ENDIAN!$ENDIAN$ac_delim
23377 CC!$CC$ac_delim
23378 CFLAGS!$CFLAGS$ac_delim
23379 LDFLAGS!$LDFLAGS$ac_delim
23380 CPPFLAGS!$CPPFLAGS$ac_delim
23381 ac_ct_CC!$ac_ct_CC$ac_delim
23382 EXEEXT!$EXEEXT$ac_delim
23383 OBJEXT!$OBJEXT$ac_delim
23384 CPP!$CPP$ac_delim
23385 GREP!$GREP$ac_delim
23386 EGREP!$EGREP$ac_delim
23387 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23388 BUILD_CC!$BUILD_CC$ac_delim
23389 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23390 BUILD_CXX!$BUILD_CXX$ac_delim
23391 CVSBUILD!$CVSBUILD$ac_delim
23392 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23393 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23394 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23395 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23396 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23397 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23398 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23399 JIT!$JIT$ac_delim
23400 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23401 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23402 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23403 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23404 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23405 ENABLE_PIC!$ENABLE_PIC$ac_delim
23406 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23407 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23408 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23409 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23410 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23411 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23412 _ACEOF
23413
23414   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23415     break
23416   elif $ac_last_try; then
23417     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23418 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23419    { (exit 1); exit 1; }; }
23420   else
23421     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23422   fi
23423 done
23424
23425 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23426 if test -n "$ac_eof"; then
23427   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23428   ac_eof=`expr $ac_eof + 1`
23429 fi
23430
23431 cat >>$CONFIG_STATUS <<_ACEOF
23432 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23434 _ACEOF
23435 sed '
23436 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23437 s/^/s,@/; s/!/@,|#_!!_#|/
23438 :n
23439 t n
23440 s/'"$ac_delim"'$/,g/; t
23441 s/$/\\/; p
23442 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23443 ' >>$CONFIG_STATUS <conf$$subs.sed
23444 rm -f conf$$subs.sed
23445 cat >>$CONFIG_STATUS <<_ACEOF
23446 CEOF$ac_eof
23447 _ACEOF
23448
23449
23450 ac_delim='%!_!# '
23451 for ac_last_try in false false false false false :; do
23452   cat >conf$$subs.sed <<_ACEOF
23453 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23454 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23455 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23456 CLANGPATH!$CLANGPATH$ac_delim
23457 CLANGXXPATH!$CLANGXXPATH$ac_delim
23458 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23459 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23460 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23461 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23462 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23463 CXX!$CXX$ac_delim
23464 CXXFLAGS!$CXXFLAGS$ac_delim
23465 ac_ct_CXX!$ac_ct_CXX$ac_delim
23466 NM!$NM$ac_delim
23467 ifGNUmake!$ifGNUmake$ac_delim
23468 LN_S!$LN_S$ac_delim
23469 CMP!$CMP$ac_delim
23470 CP!$CP$ac_delim
23471 DATE!$DATE$ac_delim
23472 FIND!$FIND$ac_delim
23473 MKDIR!$MKDIR$ac_delim
23474 MV!$MV$ac_delim
23475 RANLIB!$RANLIB$ac_delim
23476 AR!$AR$ac_delim
23477 RM!$RM$ac_delim
23478 SED!$SED$ac_delim
23479 TAR!$TAR$ac_delim
23480 BINPWD!$BINPWD$ac_delim
23481 GRAPHVIZ!$GRAPHVIZ$ac_delim
23482 DOT!$DOT$ac_delim
23483 FDP!$FDP$ac_delim
23484 NEATO!$NEATO$ac_delim
23485 TWOPI!$TWOPI$ac_delim
23486 CIRCO!$CIRCO$ac_delim
23487 GV!$GV$ac_delim
23488 DOTTY!$DOTTY$ac_delim
23489 XDOT_PY!$XDOT_PY$ac_delim
23490 PERL!$PERL$ac_delim
23491 HAVE_PERL!$HAVE_PERL$ac_delim
23492 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23493 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23494 INSTALL_DATA!$INSTALL_DATA$ac_delim
23495 BZIP2!$BZIP2$ac_delim
23496 CAT!$CAT$ac_delim
23497 DOXYGEN!$DOXYGEN$ac_delim
23498 GROFF!$GROFF$ac_delim
23499 GZIPBIN!$GZIPBIN$ac_delim
23500 POD2HTML!$POD2HTML$ac_delim
23501 POD2MAN!$POD2MAN$ac_delim
23502 PDFROFF!$PDFROFF$ac_delim
23503 RUNTEST!$RUNTEST$ac_delim
23504 TCLSH!$TCLSH$ac_delim
23505 ZIP!$ZIP$ac_delim
23506 OCAMLC!$OCAMLC$ac_delim
23507 OCAMLOPT!$OCAMLOPT$ac_delim
23508 OCAMLDEP!$OCAMLDEP$ac_delim
23509 OCAMLDOC!$OCAMLDOC$ac_delim
23510 GAS!$GAS$ac_delim
23511 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23512 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23513 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23514 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23515 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23516 LIBADD_DL!$LIBADD_DL$ac_delim
23517 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23518 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23519 LLVMGCC!$LLVMGCC$ac_delim
23520 LLVMGXX!$LLVMGXX$ac_delim
23521 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23522 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23523 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23524 USE_UDIS86!$USE_UDIS86$ac_delim
23525 USE_OPROFILE!$USE_OPROFILE$ac_delim
23526 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23527 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23528 MMAP_FILE!$MMAP_FILE$ac_delim
23529 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23530 LLVMCC1!$LLVMCC1$ac_delim
23531 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23532 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23533 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23534 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23535 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23536 SHLIBEXT!$SHLIBEXT$ac_delim
23537 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23538 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23539 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23540 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23541 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23542 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23543 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23544 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23545 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23546 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23547 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23548 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23549 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23550 _ACEOF
23551
23552   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23553     break
23554   elif $ac_last_try; then
23555     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23556 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23557    { (exit 1); exit 1; }; }
23558   else
23559     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23560   fi
23561 done
23562
23563 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23564 if test -n "$ac_eof"; then
23565   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23566   ac_eof=`expr $ac_eof + 1`
23567 fi
23568
23569 cat >>$CONFIG_STATUS <<_ACEOF
23570 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23572 _ACEOF
23573 sed '
23574 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23575 s/^/s,@/; s/!/@,|#_!!_#|/
23576 :n
23577 t n
23578 s/'"$ac_delim"'$/,g/; t
23579 s/$/\\/; p
23580 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23581 ' >>$CONFIG_STATUS <conf$$subs.sed
23582 rm -f conf$$subs.sed
23583 cat >>$CONFIG_STATUS <<_ACEOF
23584 CEOF$ac_eof
23585 _ACEOF
23586
23587
23588 ac_delim='%!_!# '
23589 for ac_last_try in false false false false false :; do
23590   cat >conf$$subs.sed <<_ACEOF
23591 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23592 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23593 RPATH!$RPATH$ac_delim
23594 RDYNAMIC!$RDYNAMIC$ac_delim
23595 LIBOBJS!$LIBOBJS$ac_delim
23596 LTLIBOBJS!$LTLIBOBJS$ac_delim
23597 _ACEOF
23598
23599   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23600     break
23601   elif $ac_last_try; then
23602     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23603 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23604    { (exit 1); exit 1; }; }
23605   else
23606     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23607   fi
23608 done
23609
23610 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23611 if test -n "$ac_eof"; then
23612   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23613   ac_eof=`expr $ac_eof + 1`
23614 fi
23615
23616 cat >>$CONFIG_STATUS <<_ACEOF
23617 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23619 _ACEOF
23620 sed '
23621 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23622 s/^/s,@/; s/!/@,|#_!!_#|/
23623 :n
23624 t n
23625 s/'"$ac_delim"'$/,g/; t
23626 s/$/\\/; p
23627 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23628 ' >>$CONFIG_STATUS <conf$$subs.sed
23629 rm -f conf$$subs.sed
23630 cat >>$CONFIG_STATUS <<_ACEOF
23631 :end
23632 s/|#_!!_#|//g
23633 CEOF$ac_eof
23634 _ACEOF
23635
23636
23637 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23638 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23639 # trailing colons and then remove the whole line if VPATH becomes empty
23640 # (actually we leave an empty line to preserve line numbers).
23641 if test "x$srcdir" = x.; then
23642   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23643 s/:*\$(srcdir):*/:/
23644 s/:*\${srcdir}:*/:/
23645 s/:*@srcdir@:*/:/
23646 s/^\([^=]*=[     ]*\):*/\1/
23647 s/:*$//
23648 s/^[^=]*=[       ]*$//
23649 }'
23650 fi
23651
23652 cat >>$CONFIG_STATUS <<\_ACEOF
23653 fi # test -n "$CONFIG_FILES"
23654
23655
23656 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23657 do
23658   case $ac_tag in
23659   :[FHLC]) ac_mode=$ac_tag; continue;;
23660   esac
23661   case $ac_mode$ac_tag in
23662   :[FHL]*:*);;
23663   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23664 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23665    { (exit 1); exit 1; }; };;
23666   :[FH]-) ac_tag=-:-;;
23667   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23668   esac
23669   ac_save_IFS=$IFS
23670   IFS=:
23671   set x $ac_tag
23672   IFS=$ac_save_IFS
23673   shift
23674   ac_file=$1
23675   shift
23676
23677   case $ac_mode in
23678   :L) ac_source=$1;;
23679   :[FH])
23680     ac_file_inputs=
23681     for ac_f
23682     do
23683       case $ac_f in
23684       -) ac_f="$tmp/stdin";;
23685       *) # Look for the file first in the build tree, then in the source tree
23686          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23687          # because $ac_f cannot contain `:'.
23688          test -f "$ac_f" ||
23689            case $ac_f in
23690            [\\/$]*) false;;
23691            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23692            esac ||
23693            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23694 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23695    { (exit 1); exit 1; }; };;
23696       esac
23697       ac_file_inputs="$ac_file_inputs $ac_f"
23698     done
23699
23700     # Let's still pretend it is `configure' which instantiates (i.e., don't
23701     # use $as_me), people would be surprised to read:
23702     #    /* config.h.  Generated by config.status.  */
23703     configure_input="Generated from "`IFS=:
23704           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23705     if test x"$ac_file" != x-; then
23706       configure_input="$ac_file.  $configure_input"
23707       { echo "$as_me:$LINENO: creating $ac_file" >&5
23708 echo "$as_me: creating $ac_file" >&6;}
23709     fi
23710
23711     case $ac_tag in
23712     *:-:* | *:-) cat >"$tmp/stdin";;
23713     esac
23714     ;;
23715   esac
23716
23717   ac_dir=`$as_dirname -- "$ac_file" ||
23718 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23719          X"$ac_file" : 'X\(//\)[^/]' \| \
23720          X"$ac_file" : 'X\(//\)$' \| \
23721          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23722 echo X"$ac_file" |
23723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23724             s//\1/
23725             q
23726           }
23727           /^X\(\/\/\)[^/].*/{
23728             s//\1/
23729             q
23730           }
23731           /^X\(\/\/\)$/{
23732             s//\1/
23733             q
23734           }
23735           /^X\(\/\).*/{
23736             s//\1/
23737             q
23738           }
23739           s/.*/./; q'`
23740   { as_dir="$ac_dir"
23741   case $as_dir in #(
23742   -*) as_dir=./$as_dir;;
23743   esac
23744   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23745     as_dirs=
23746     while :; do
23747       case $as_dir in #(
23748       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23749       *) as_qdir=$as_dir;;
23750       esac
23751       as_dirs="'$as_qdir' $as_dirs"
23752       as_dir=`$as_dirname -- "$as_dir" ||
23753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23754          X"$as_dir" : 'X\(//\)[^/]' \| \
23755          X"$as_dir" : 'X\(//\)$' \| \
23756          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23757 echo X"$as_dir" |
23758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23759             s//\1/
23760             q
23761           }
23762           /^X\(\/\/\)[^/].*/{
23763             s//\1/
23764             q
23765           }
23766           /^X\(\/\/\)$/{
23767             s//\1/
23768             q
23769           }
23770           /^X\(\/\).*/{
23771             s//\1/
23772             q
23773           }
23774           s/.*/./; q'`
23775       test -d "$as_dir" && break
23776     done
23777     test -z "$as_dirs" || eval "mkdir $as_dirs"
23778   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23779 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23780    { (exit 1); exit 1; }; }; }
23781   ac_builddir=.
23782
23783 case "$ac_dir" in
23784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23785 *)
23786   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23787   # A ".." for each directory in $ac_dir_suffix.
23788   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23789   case $ac_top_builddir_sub in
23790   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23791   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23792   esac ;;
23793 esac
23794 ac_abs_top_builddir=$ac_pwd
23795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23796 # for backward compatibility:
23797 ac_top_builddir=$ac_top_build_prefix
23798
23799 case $srcdir in
23800   .)  # We are building in place.
23801     ac_srcdir=.
23802     ac_top_srcdir=$ac_top_builddir_sub
23803     ac_abs_top_srcdir=$ac_pwd ;;
23804   [\\/]* | ?:[\\/]* )  # Absolute name.
23805     ac_srcdir=$srcdir$ac_dir_suffix;
23806     ac_top_srcdir=$srcdir
23807     ac_abs_top_srcdir=$srcdir ;;
23808   *) # Relative name.
23809     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23810     ac_top_srcdir=$ac_top_build_prefix$srcdir
23811     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23812 esac
23813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23814
23815
23816   case $ac_mode in
23817   :F)
23818   #
23819   # CONFIG_FILE
23820   #
23821
23822   case $INSTALL in
23823   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23824   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23825   esac
23826 _ACEOF
23827
23828 cat >>$CONFIG_STATUS <<\_ACEOF
23829 # If the template does not know about datarootdir, expand it.
23830 # FIXME: This hack should be removed a few years after 2.60.
23831 ac_datarootdir_hack=; ac_datarootdir_seen=
23832
23833 case `sed -n '/datarootdir/ {
23834   p
23835   q
23836 }
23837 /@datadir@/p
23838 /@docdir@/p
23839 /@infodir@/p
23840 /@localedir@/p
23841 /@mandir@/p
23842 ' $ac_file_inputs` in
23843 *datarootdir*) ac_datarootdir_seen=yes;;
23844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23845   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23846 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23847 _ACEOF
23848 cat >>$CONFIG_STATUS <<_ACEOF
23849   ac_datarootdir_hack='
23850   s&@datadir@&$datadir&g
23851   s&@docdir@&$docdir&g
23852   s&@infodir@&$infodir&g
23853   s&@localedir@&$localedir&g
23854   s&@mandir@&$mandir&g
23855     s&\\\${datarootdir}&$datarootdir&g' ;;
23856 esac
23857 _ACEOF
23858
23859 # Neutralize VPATH when `$srcdir' = `.'.
23860 # Shell code in configure.ac might set extrasub.
23861 # FIXME: do we really want to maintain this feature?
23862 cat >>$CONFIG_STATUS <<_ACEOF
23863   sed "$ac_vpsub
23864 $extrasub
23865 _ACEOF
23866 cat >>$CONFIG_STATUS <<\_ACEOF
23867 :t
23868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23869 s&@configure_input@&$configure_input&;t t
23870 s&@top_builddir@&$ac_top_builddir_sub&;t t
23871 s&@srcdir@&$ac_srcdir&;t t
23872 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23873 s&@top_srcdir@&$ac_top_srcdir&;t t
23874 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23875 s&@builddir@&$ac_builddir&;t t
23876 s&@abs_builddir@&$ac_abs_builddir&;t t
23877 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23878 s&@INSTALL@&$ac_INSTALL&;t t
23879 $ac_datarootdir_hack
23880 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23881
23882 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23883   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23884   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23885   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23886 which seems to be undefined.  Please make sure it is defined." >&5
23887 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23888 which seems to be undefined.  Please make sure it is defined." >&2;}
23889
23890   rm -f "$tmp/stdin"
23891   case $ac_file in
23892   -) cat "$tmp/out"; rm -f "$tmp/out";;
23893   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23894   esac
23895  ;;
23896   :H)
23897   #
23898   # CONFIG_HEADER
23899   #
23900 _ACEOF
23901
23902 # Transform confdefs.h into a sed script `conftest.defines', that
23903 # substitutes the proper values into config.h.in to produce config.h.
23904 rm -f conftest.defines conftest.tail
23905 # First, append a space to every undef/define line, to ease matching.
23906 echo 's/$/ /' >conftest.defines
23907 # Then, protect against being on the right side of a sed subst, or in
23908 # an unquoted here document, in config.status.  If some macros were
23909 # called several times there might be several #defines for the same
23910 # symbol, which is useless.  But do not sort them, since the last
23911 # AC_DEFINE must be honored.
23912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23913 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23914 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23915 # PARAMS is the parameter list in the macro definition--in most cases, it's
23916 # just an empty string.
23917 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23918 ac_dB='\\)[      (].*,\\1define\\2'
23919 ac_dC=' '
23920 ac_dD=' ,'
23921
23922 uniq confdefs.h |
23923   sed -n '
23924         t rset
23925         :rset
23926         s/^[     ]*#[    ]*define[       ][      ]*//
23927         t ok
23928         d
23929         :ok
23930         s/[\\&,]/\\&/g
23931         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23932         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23933   ' >>conftest.defines
23934
23935 # Remove the space that was appended to ease matching.
23936 # Then replace #undef with comments.  This is necessary, for
23937 # example, in the case of _POSIX_SOURCE, which is predefined and required
23938 # on some systems where configure will not decide to define it.
23939 # (The regexp can be short, since the line contains either #define or #undef.)
23940 echo 's/ $//
23941 s,^[     #]*u.*,/* & */,' >>conftest.defines
23942
23943 # Break up conftest.defines:
23944 ac_max_sed_lines=50
23945
23946 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23947 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23948 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23949 # et cetera.
23950 ac_in='$ac_file_inputs'
23951 ac_out='"$tmp/out1"'
23952 ac_nxt='"$tmp/out2"'
23953
23954 while :
23955 do
23956   # Write a here document:
23957     cat >>$CONFIG_STATUS <<_ACEOF
23958     # First, check the format of the line:
23959     cat >"\$tmp/defines.sed" <<\\CEOF
23960 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23961 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23962 b
23963 :def
23964 _ACEOF
23965   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23966   echo 'CEOF
23967     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23968   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23969   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23970   grep . conftest.tail >/dev/null || break
23971   rm -f conftest.defines
23972   mv conftest.tail conftest.defines
23973 done
23974 rm -f conftest.defines conftest.tail
23975
23976 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23977 cat >>$CONFIG_STATUS <<\_ACEOF
23978   if test x"$ac_file" != x-; then
23979     echo "/* $configure_input  */" >"$tmp/config.h"
23980     cat "$ac_result" >>"$tmp/config.h"
23981     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23982       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23983 echo "$as_me: $ac_file is unchanged" >&6;}
23984     else
23985       rm -f $ac_file
23986       mv "$tmp/config.h" $ac_file
23987     fi
23988   else
23989     echo "/* $configure_input  */"
23990     cat "$ac_result"
23991   fi
23992   rm -f "$tmp/out12"
23993  ;;
23994
23995   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23996 echo "$as_me: executing $ac_file commands" >&6;}
23997  ;;
23998   esac
23999
24000
24001   case $ac_file$ac_mode in
24002     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24003    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24004     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24005    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24006     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24007    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24008     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24009    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24010     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24011    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24012     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24013    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24014     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24015    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24016     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24017    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24018     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24019    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24020     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24021    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24022     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24023    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24024     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24025    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24026     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24027    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24028
24029   esac
24030 done # for ac_tag
24031
24032
24033 { (exit 0); exit 0; }
24034 _ACEOF
24035 chmod +x $CONFIG_STATUS
24036 ac_clean_files=$ac_clean_files_save
24037
24038
24039 # configure is writing to config.log, and then calls config.status.
24040 # config.status does its own redirection, appending to config.log.
24041 # Unfortunately, on DOS this fails, as config.log is still kept open
24042 # by configure, so config.status won't be able to write to it; its
24043 # output is simply discarded.  So we exec the FD to /dev/null,
24044 # effectively closing config.log, so it can be properly (re)opened and
24045 # appended to by config.status.  When coming back to configure, we
24046 # need to make the FD available again.
24047 if test "$no_create" != yes; then
24048   ac_cs_success=:
24049   ac_config_status_args=
24050   test "$silent" = yes &&
24051     ac_config_status_args="$ac_config_status_args --quiet"
24052   exec 5>/dev/null
24053   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24054   exec 5>>config.log
24055   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24056   # would make configure fail if this is the last instruction.
24057   $ac_cs_success || { (exit 1); exit 1; }
24058 fi
24059
24060 #
24061 # CONFIG_SUBDIRS section.
24062 #
24063 if test "$no_recursion" != yes; then
24064
24065   # Remove --cache-file and --srcdir arguments so they do not pile up.
24066   ac_sub_configure_args=
24067   ac_prev=
24068   eval "set x $ac_configure_args"
24069   shift
24070   for ac_arg
24071   do
24072     if test -n "$ac_prev"; then
24073       ac_prev=
24074       continue
24075     fi
24076     case $ac_arg in
24077     -cache-file | --cache-file | --cache-fil | --cache-fi \
24078     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24079       ac_prev=cache_file ;;
24080     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24081     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24082     | --c=*)
24083       ;;
24084     --config-cache | -C)
24085       ;;
24086     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24087       ac_prev=srcdir ;;
24088     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24089       ;;
24090     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24091       ac_prev=prefix ;;
24092     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24093       ;;
24094     *)
24095       case $ac_arg in
24096       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24097       esac
24098       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24099     esac
24100   done
24101
24102   # Always prepend --prefix to ensure using the same prefix
24103   # in subdir configurations.
24104   ac_arg="--prefix=$prefix"
24105   case $ac_arg in
24106   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24107   esac
24108   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24109
24110   ac_popdir=`pwd`
24111   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24112
24113     # Do not complain, so a configure script can configure whichever
24114     # parts of a large source tree are present.
24115     test -d "$srcdir/$ac_dir" || continue
24116
24117     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24118     echo "$as_me:$LINENO: $ac_msg" >&5
24119     echo "$ac_msg" >&6
24120     { as_dir="$ac_dir"
24121   case $as_dir in #(
24122   -*) as_dir=./$as_dir;;
24123   esac
24124   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24125     as_dirs=
24126     while :; do
24127       case $as_dir in #(
24128       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24129       *) as_qdir=$as_dir;;
24130       esac
24131       as_dirs="'$as_qdir' $as_dirs"
24132       as_dir=`$as_dirname -- "$as_dir" ||
24133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24134          X"$as_dir" : 'X\(//\)[^/]' \| \
24135          X"$as_dir" : 'X\(//\)$' \| \
24136          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24137 echo X"$as_dir" |
24138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24139             s//\1/
24140             q
24141           }
24142           /^X\(\/\/\)[^/].*/{
24143             s//\1/
24144             q
24145           }
24146           /^X\(\/\/\)$/{
24147             s//\1/
24148             q
24149           }
24150           /^X\(\/\).*/{
24151             s//\1/
24152             q
24153           }
24154           s/.*/./; q'`
24155       test -d "$as_dir" && break
24156     done
24157     test -z "$as_dirs" || eval "mkdir $as_dirs"
24158   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24159 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24160    { (exit 1); exit 1; }; }; }
24161     ac_builddir=.
24162
24163 case "$ac_dir" in
24164 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24165 *)
24166   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24167   # A ".." for each directory in $ac_dir_suffix.
24168   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24169   case $ac_top_builddir_sub in
24170   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24171   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24172   esac ;;
24173 esac
24174 ac_abs_top_builddir=$ac_pwd
24175 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24176 # for backward compatibility:
24177 ac_top_builddir=$ac_top_build_prefix
24178
24179 case $srcdir in
24180   .)  # We are building in place.
24181     ac_srcdir=.
24182     ac_top_srcdir=$ac_top_builddir_sub
24183     ac_abs_top_srcdir=$ac_pwd ;;
24184   [\\/]* | ?:[\\/]* )  # Absolute name.
24185     ac_srcdir=$srcdir$ac_dir_suffix;
24186     ac_top_srcdir=$srcdir
24187     ac_abs_top_srcdir=$srcdir ;;
24188   *) # Relative name.
24189     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24190     ac_top_srcdir=$ac_top_build_prefix$srcdir
24191     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24192 esac
24193 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24194
24195
24196     cd "$ac_dir"
24197
24198     # Check for guested configure; otherwise get Cygnus style configure.
24199     if test -f "$ac_srcdir/configure.gnu"; then
24200       ac_sub_configure=$ac_srcdir/configure.gnu
24201     elif test -f "$ac_srcdir/configure"; then
24202       ac_sub_configure=$ac_srcdir/configure
24203     elif test -f "$ac_srcdir/configure.in"; then
24204       # This should be Cygnus configure.
24205       ac_sub_configure=$ac_aux_dir/configure
24206     else
24207       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24208 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24209       ac_sub_configure=
24210     fi
24211
24212     # The recursion is here.
24213     if test -n "$ac_sub_configure"; then
24214       # Make the cache file name correct relative to the subdirectory.
24215       case $cache_file in
24216       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24217       *) # Relative name.
24218         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24219       esac
24220
24221       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24222 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24223       # The eval makes quoting arguments work.
24224       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24225            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24226         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24227 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24228    { (exit 1); exit 1; }; }
24229     fi
24230
24231     cd "$ac_popdir"
24232   done
24233 fi
24234