Add an optional separate install prefix for internal components. rdar://10217046
[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.1svn.
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.1svn'
565 PACKAGE_STRING='llvm 3.1svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 ENABLE_CBE_PRINTF_A
709 OPTIMIZE_OPTION
710 EXTRA_OPTIONS
711 EXTRA_LD_OPTIONS
712 CLANG_SRC_ROOT
713 BINUTILS_INCDIR
714 INTERNAL_PREFIX
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 NO_VARIADIC_MACROS
767 NO_MISSING_FIELD_INITIALIZERS
768 USE_UDIS86
769 USE_OPROFILE
770 HAVE_PTHREAD
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 SHLIBEXT
774 SHLIBPATH_VAR
775 LLVM_PREFIX
776 LLVM_BINDIR
777 LLVM_LIBDIR
778 LLVM_DATADIR
779 LLVM_DOCSDIR
780 LLVM_ETCDIR
781 LLVM_INCLUDEDIR
782 LLVM_INFODIR
783 LLVM_MANDIR
784 LLVM_CONFIGTIME
785 BINDINGS_TO_BUILD
786 ALL_BINDINGS
787 OCAML_LIBDIR
788 ENABLE_VISIBILITY_INLINES_HIDDEN
789 RPATH
790 RDYNAMIC
791 LIBOBJS
792 LTLIBOBJS'
793 ac_subst_files=''
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 CPPFLAGS
801 CXX
802 CXXFLAGS
803 CCC
804 CPP'
805 ac_subdirs_all='projects/llvm-gcc
806 projects/test-suite
807 projects/llvm-test
808 projects/poolalloc
809 projects/llvm-poolalloc
810 projects/sample
811 projects/privbracket
812 projects/llvm-stacker
813 projects/llvm-reopt
814 projects/llvm-java
815 projects/llvm-tv
816 projects/safecode
817 projects/llvm-kernel
818 tools/polly'
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870   # If the previous option needs an argument, assign it.
871   if test -n "$ac_prev"; then
872     eval $ac_prev=\$ac_option
873     ac_prev=
874     continue
875   fi
876
877   case $ac_option in
878   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925    { (exit 1); exit 1; }; }
926     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927     eval enable_$ac_feature=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944    { (exit 1); exit 1; }; }
945     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946     eval enable_$ac_feature=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092     ac_prev=sbindir ;;
1093   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094   | --sbi=* | --sb=*)
1095     sbindir=$ac_optarg ;;
1096
1097   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099   | --sharedst | --shareds | --shared | --share | --shar \
1100   | --sha | --sh)
1101     ac_prev=sharedstatedir ;;
1102   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105   | --sha=* | --sh=*)
1106     sharedstatedir=$ac_optarg ;;
1107
1108   -site | --site | --sit)
1109     ac_prev=site ;;
1110   -site=* | --site=* | --sit=*)
1111     site=$ac_optarg ;;
1112
1113   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114     ac_prev=srcdir ;;
1115   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116     srcdir=$ac_optarg ;;
1117
1118   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119   | --syscon | --sysco | --sysc | --sys | --sy)
1120     ac_prev=sysconfdir ;;
1121   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123     sysconfdir=$ac_optarg ;;
1124
1125   -target | --target | --targe | --targ | --tar | --ta | --t)
1126     ac_prev=target_alias ;;
1127   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128     target_alias=$ac_optarg ;;
1129
1130   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131     verbose=yes ;;
1132
1133   -version | --version | --versio | --versi | --vers | -V)
1134     ac_init_version=: ;;
1135
1136   -with-* | --with-*)
1137     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140       { echo "$as_me: error: invalid package name: $ac_package" >&2
1141    { (exit 1); exit 1; }; }
1142     ac_package=`echo $ac_package| sed 's/-/_/g'`
1143     eval with_$ac_package=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package | sed 's/-/_/g'`
1152     eval with_$ac_package=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174    { (exit 1); exit 1; }; }
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182    { (exit 1); exit 1; }; }
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   { echo "$as_me: error: missing argument to $ac_option" >&2
1200    { (exit 1); exit 1; }; }
1201 fi
1202
1203 # Be sure to have absolute directory names.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   case $ac_val in
1211     [\\/$]* | ?:[\\/]* )  continue;;
1212     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213   esac
1214   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215    { (exit 1); exit 1; }; }
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227   if test "x$build_alias" = x; then
1228     cross_compiling=maybe
1229     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230     If a cross compiler is detected then cross compile mode will be used." >&2
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   { echo "$as_me: error: Working directory cannot be determined" >&2
1246    { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   { echo "$as_me: error: pwd does not report name of working directory" >&2
1249    { (exit 1); exit 1; }; }
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254   ac_srcdir_defaulted=yes
1255   # Try the directory containing this script, then the parent directory.
1256   ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258          X"$0" : 'X\(//\)[^/]' \| \
1259          X"$0" : 'X\(//\)$' \| \
1260          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 echo X"$0" |
1262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)[^/].*/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\).*/{
1275             s//\1/
1276             q
1277           }
1278           s/.*/./; q'`
1279   srcdir=$ac_confdir
1280   if test ! -r "$srcdir/$ac_unique_file"; then
1281     srcdir=..
1282   fi
1283 else
1284   ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289    { (exit 1); exit 1; }; }
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294    { (exit 1); exit 1; }; }
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR           user executables [EPREFIX/bin]
1355   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR       program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR           object code libraries [EPREFIX/lib]
1361   --includedir=DIR       C header files [PREFIX/include]
1362   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR          info documentation [DATAROOTDIR/info]
1366   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR           man documentation [DATAROOTDIR/man]
1368   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1369   --htmldir=DIR          html documentation [DOCDIR]
1370   --dvidir=DIR           dvi documentation [DOCDIR]
1371   --pdfdir=DIR           pdf documentation [DOCDIR]
1372   --psdir=DIR            ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380   --target=TARGET   configure for building compilers for TARGET [HOST]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385   case $ac_init_help in
1386      short | recursive ) echo "Configuration of llvm 3.1svn:";;
1387    esac
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-polly          Use polly if available (default is YES)
1394   --enable-libcpp         Use libc++ if available (default is NO)
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-docs           Build documents (default is YES)
1408   --enable-doxygen        Build doxygen documentation (default is NO)
1409   --enable-threads        Use threads if available (default is YES)
1410   --enable-pthreads       Use pthreads if available (default is YES)
1411   --enable-pic            Build LLVM with Position Independent Code (default
1412                           is YES)
1413   --enable-shared         Build a shared library and link tools against it
1414                           (default is NO)
1415   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1416                           Win32 DLL (default is NO)
1417   --enable-timestamps     Enable embedding timestamp information in build
1418                           (default is YES)
1419   --enable-targets        Build specific host targets: all or
1420                           target1,target2,... Valid targets are: host, x86,
1421                           x86_64, sparc, powerpc, arm, mips, spu, xcore,
1422                           msp430, ptx, cbe, and cpp (default=all)
1423   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1424                           %a (default is YES)
1425   --enable-bindings       Build specific language bindings:
1426                           all,auto,none,{binding-name} (default=auto)
1427   --enable-libffi         Check for the presence of libffi (default is NO)
1428   --enable-ltdl-install   install libltdl
1429
1430 Optional Packages:
1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433   --with-optimize-option  Select the compiler options to use for optimized
1434                           builds
1435   --with-extra-options    Specify additional options to compile LLVM with
1436   --with-extra-ld-options Specify additional options to link LLVM with
1437   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1438                           is stdlib)
1439   --with-clang-srcdir     Directory to the out-of-tree Clang source
1440   --with-clang-resource-dir
1441                           Relative directory from the Clang binary for
1442                           resource files
1443   --with-c-include-dirs   Colon separated list of directories clang will
1444                           search for headers
1445   --with-cxx-include-root Directory with the libstdc++ headers.
1446   --with-cxx-include-arch Architecture of the libstdc++ headers.
1447   --with-cxx-include-32bit-dir
1448                           32 bit multilib dir.
1449   --with-cxx-include-64bit-dir
1450                           64 bit multilib directory.
1451   --with-binutils-include Specify path to binutils/include/ containing
1452                           plugin-api.h file for gold plugin.
1453   --with-bug-report-url   Specify the URL where bug reports should be
1454                           submitted (default=http://llvm.org/bugs/)
1455   --with-internal-prefix  Installation directory for internal files
1456   --with-tclinclude       directory where tcl headers are
1457   --with-udis86=<path>    Use udis86 external x86 disassembler library
1458   --with-oprofile=<prefix>
1459                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1460
1461 Some influential environment variables:
1462   CC          C compiler command
1463   CFLAGS      C compiler flags
1464   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465               nonstandard directory <lib dir>
1466   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CXX         C++ compiler command
1469   CXXFLAGS    C++ compiler flags
1470   CPP         C preprocessor
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" || continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 llvm configure 3.1svn
1537 generated by GNU Autoconf 2.60
1538
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543
1544 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1545 _ACEOF
1546   exit
1547 fi
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1551
1552 It was created by llvm $as_me 3.1svn, which was
1553 generated by GNU Autoconf 2.60.  Invocation command line was
1554
1555   $ $0 $@
1556
1557 _ACEOF
1558 exec 5>>config.log
1559 {
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1564
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582 _ASUNAME
1583
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1592
1593 } >&5
1594
1595 cat >&5 <<_ACEOF
1596
1597
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1601
1602 _ACEOF
1603
1604
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1615 do
1616   for ac_arg
1617   do
1618     case $ac_arg in
1619     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621     | -silent | --silent | --silen | --sile | --sil)
1622       continue ;;
1623     *\'*)
1624       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625     esac
1626     case $ac_pass in
1627     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628     2)
1629       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630       if test $ac_must_keep_next = true; then
1631         ac_must_keep_next=false # Got value, back to normal.
1632       else
1633         case $ac_arg in
1634           *=* | --config-cache | -C | -disable-* | --disable-* \
1635           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637           | -with-* | --with-* | -without-* | --without-* | --x)
1638             case "$ac_configure_args0 " in
1639               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640             esac
1641             ;;
1642           -* ) ac_must_keep_next=true ;;
1643         esac
1644       fi
1645       ac_configure_args="$ac_configure_args '$ac_arg'"
1646       ;;
1647     esac
1648   done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log.  We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659   # Save into config.log some information that might help in debugging.
1660   {
1661     echo
1662
1663     cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668     echo
1669     # The following way of writing the cache mishandles newlines in values,
1670 (
1671   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672     eval ac_val=\$$ac_var
1673     case $ac_val in #(
1674     *${as_nl}*)
1675       case $ac_var in #(
1676       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678       esac
1679       case $ac_var in #(
1680       _ | IFS | as_nl) ;; #(
1681       *) $as_unset $ac_var ;;
1682       esac ;;
1683     esac
1684   done
1685   (set) 2>&1 |
1686     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687     *${as_nl}ac_space=\ *)
1688       sed -n \
1689         "s/'\''/'\''\\\\'\'''\''/g;
1690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691       ;; #(
1692     *)
1693       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694       ;;
1695     esac |
1696     sort
1697 )
1698     echo
1699
1700     cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705     echo
1706     for ac_var in $ac_subst_vars
1707     do
1708       eval ac_val=\$$ac_var
1709       case $ac_val in
1710       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711       esac
1712       echo "$ac_var='\''$ac_val'\''"
1713     done | sort
1714     echo
1715
1716     if test -n "$ac_subst_files"; then
1717       cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722       echo
1723       for ac_var in $ac_subst_files
1724       do
1725         eval ac_val=\$$ac_var
1726         case $ac_val in
1727         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728         esac
1729         echo "$ac_var='\''$ac_val'\''"
1730       done | sort
1731       echo
1732     fi
1733
1734     if test -s confdefs.h; then
1735       cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740       echo
1741       cat confdefs.h
1742       echo
1743     fi
1744     test "$ac_signal" != 0 &&
1745       echo "$as_me: caught signal $ac_signal"
1746     echo "$as_me: exit $exit_status"
1747   } >&5
1748   rm -f core *.core core.conftest.* &&
1749     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750     exit $exit_status
1751 ' 0
1752 for ac_signal in 1 2 13 15; do
1753   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1756
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1759
1760 # Predefined preprocessor variables.
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1785
1786
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790   set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 else
1794   set x "$ac_default_prefix/share/config.site" \
1795         "$ac_default_prefix/etc/config.site"
1796 fi
1797 shift
1798 for ac_site_file
1799 do
1800   if test -r "$ac_site_file"; then
1801     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803     sed 's/^/| /' "$ac_site_file" >&5
1804     . "$ac_site_file"
1805   fi
1806 done
1807
1808 if test -r "$cache_file"; then
1809   # Some versions of bash will fail to source /dev/null (special
1810   # files actually), so we avoid doing that.
1811   if test -f "$cache_file"; then
1812     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1814     case $cache_file in
1815       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816       *)                      . "./$cache_file";;
1817     esac
1818   fi
1819 else
1820   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1822   >$cache_file
1823 fi
1824
1825 # Check that the precious variables saved in the cache have kept the same
1826 # value.
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830   eval ac_new_set=\$ac_env_${ac_var}_set
1831   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832   eval ac_new_val=\$ac_env_${ac_var}_value
1833   case $ac_old_set,$ac_new_set in
1834     set,)
1835       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837       ac_cache_corrupted=: ;;
1838     ,set)
1839       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841       ac_cache_corrupted=: ;;
1842     ,);;
1843     *)
1844       if test "x$ac_old_val" != "x$ac_new_val"; then
1845         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1848 echo "$as_me:   former value:  $ac_old_val" >&2;}
1849         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1850 echo "$as_me:   current value: $ac_new_val" >&2;}
1851         ac_cache_corrupted=:
1852       fi;;
1853   esac
1854   # Pass precious variables to config.status.
1855   if test "$ac_new_set" = set; then
1856     case $ac_new_val in
1857     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858     *) ac_arg=$ac_var=$ac_new_val ;;
1859     esac
1860     case " $ac_configure_args " in
1861       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1862       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863     esac
1864   fi
1865 done
1866 if $ac_cache_corrupted; then
1867   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1907
1908
1909
1910
1911
1912
1913
1914 ac_aux_dir=
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916   if test -f "$ac_dir/install-sh"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/install-sh -c"
1919     break
1920   elif test -f "$ac_dir/install.sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install.sh -c"
1923     break
1924   elif test -f "$ac_dir/shtool"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/shtool install -c"
1927     break
1928   fi
1929 done
1930 if test -z "$ac_aux_dir"; then
1931   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1943
1944
1945
1946 if test ${srcdir} != "." ; then
1947   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950    { (exit 1); exit 1; }; }
1951   fi
1952 fi
1953
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960   for ac_prog in clang llvm-gcc gcc
1961   do
1962     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test -n "$CC"; then
1970   ac_cv_prog_CC="$CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981     break 2
1982   fi
1983 done
1984 done
1985 IFS=$as_save_IFS
1986
1987 fi
1988 fi
1989 CC=$ac_cv_prog_CC
1990 if test -n "$CC"; then
1991   { echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6; }
1993 else
1994   { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1996 fi
1997
1998
1999     test -n "$CC" && break
2000   done
2001 fi
2002 if test -z "$CC"; then
2003   ac_ct_CC=$CC
2004   for ac_prog in clang llvm-gcc gcc
2005 do
2006   # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$ac_ct_CC"; then
2014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023     ac_cv_prog_ac_ct_CC="$ac_prog"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029 IFS=$as_save_IFS
2030
2031 fi
2032 fi
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2037 else
2038   { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2040 fi
2041
2042
2043   test -n "$ac_ct_CC" && break
2044 done
2045
2046   if test "x$ac_ct_CC" = x; then
2047     CC=""
2048   else
2049     case $cross_compiling:$ac_tool_warned in
2050 yes:)
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet.  If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet.  If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2058 esac
2059     CC=$ac_ct_CC
2060   fi
2061 fi
2062
2063
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068    { (exit 1); exit 1; }; }
2069
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO: checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (ac_try="$ac_compiler --version >&5"
2074 case "(($ac_try" in
2075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076   *) ac_try_echo=$ac_try;;
2077 esac
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079   (eval "$ac_compiler --version >&5") 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); }
2083 { (ac_try="$ac_compiler -v >&5"
2084 case "(($ac_try" in
2085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086   *) ac_try_echo=$ac_try;;
2087 esac
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089   (eval "$ac_compiler -v >&5") 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }
2093 { (ac_try="$ac_compiler -V >&5"
2094 case "(($ac_try" in
2095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096   *) ac_try_echo=$ac_try;;
2097 esac
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099   (eval "$ac_compiler -V >&5") 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }
2103
2104 cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h.  */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h.  */
2110
2111 int
2112 main ()
2113 {
2114
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 ac_clean_files_save=$ac_clean_files
2120 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121 # Try to create an executable without -o first, disregard a.out.
2122 # It will help us diagnose broken compilers, and finding out an intuition
2123 # of exeext.
2124 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2127 #
2128 # List of possible output files, starting from the most likely.
2129 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130 # only as a last resort.  b.out is created by i960 compilers.
2131 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2132 #
2133 # The IRIX 6 linker writes into existing files which may not be
2134 # executable, retaining their permissions.  Remove them first so a
2135 # subsequent execution test works.
2136 ac_rmfiles=
2137 for ac_file in $ac_files
2138 do
2139   case $ac_file in
2140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2141     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142   esac
2143 done
2144 rm -f $ac_rmfiles
2145
2146 if { (ac_try="$ac_link_default"
2147 case "(($ac_try" in
2148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149   *) ac_try_echo=$ac_try;;
2150 esac
2151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152   (eval "$ac_link_default") 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; then
2156   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2159 # so that the user can short-circuit this test for compilers unknown to
2160 # Autoconf.
2161 for ac_file in $ac_files
2162 do
2163   test -f "$ac_file" || continue
2164   case $ac_file in
2165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2166         ;;
2167     [ab].out )
2168         # We found the default executable, but exeext='' is most
2169         # certainly right.
2170         break;;
2171     *.* )
2172         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2173         then :; else
2174            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2175         fi
2176         # We set ac_cv_exeext here because the later test for it is not
2177         # safe: cross compilers may not add the suffix if given an `-o'
2178         # argument, so we may need to know it at that point already.
2179         # Even if this section looks crufty: it has the advantage of
2180         # actually working.
2181         break;;
2182     * )
2183         break;;
2184   esac
2185 done
2186 test "$ac_cv_exeext" = no && ac_cv_exeext=
2187
2188 else
2189   echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196    { (exit 77); exit 77; }; }
2197 fi
2198
2199 ac_exeext=$ac_cv_exeext
2200 { echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6; }
2202
2203 # Check that the compiler produces executables we can run.  If not, either
2204 # the compiler is broken, or we cross compile.
2205 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210   if { ac_try='./$ac_file'
2211   { (case "(($ac_try" in
2212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213   *) ac_try_echo=$ac_try;;
2214 esac
2215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216   (eval "$ac_try") 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; }; then
2220     cross_compiling=no
2221   else
2222     if test "$cross_compiling" = maybe; then
2223         cross_compiling=yes
2224     else
2225         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231    { (exit 1); exit 1; }; }
2232     fi
2233   fi
2234 fi
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2237
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check that the compiler produces executables we can run.  If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6; }
2246
2247 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249 if { (ac_try="$ac_link"
2250 case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_link") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; then
2259   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2262 # `rm'.
2263 for ac_file in conftest.exe conftest conftest.*; do
2264   test -f "$ac_file" || continue
2265   case $ac_file in
2266     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2267     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268           break;;
2269     * ) break;;
2270   esac
2271 done
2272 else
2273   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277    { (exit 1); exit 1; }; }
2278 fi
2279
2280 rm -f conftest$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2283
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2286 ac_exeext=$EXEEXT
2287 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289 if test "${ac_cv_objext+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298
2299 int
2300 main ()
2301 {
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.o conftest.obj
2308 if { (ac_try="$ac_compile"
2309 case "(($ac_try" in
2310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311   *) ac_try_echo=$ac_try;;
2312 esac
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314   (eval "$ac_compile") 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }; then
2318   for ac_file in conftest.o conftest.obj conftest.*; do
2319   test -f "$ac_file" || continue;
2320   case $ac_file in
2321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2322     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323        break;;
2324   esac
2325 done
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334    { (exit 1); exit 1; }; }
2335 fi
2336
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338 fi
2339 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6; }
2341 OBJEXT=$ac_cv_objext
2342 ac_objext=$OBJEXT
2343 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   cat >conftest.$ac_ext <<_ACEOF
2349 /* confdefs.h.  */
2350 _ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h.  */
2354
2355 int
2356 main ()
2357 {
2358 #ifndef __GNUC__
2359        choke me
2360 #endif
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2368 case "(($ac_try" in
2369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370   *) ac_try_echo=$ac_try;;
2371 esac
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373   (eval "$ac_compile") 2>conftest.er1
2374   ac_status=$?
2375   grep -v '^ *+' conftest.er1 >conftest.err
2376   rm -f conftest.er1
2377   cat conftest.err >&5
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); } &&
2380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381   { (case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386   (eval "$ac_try") 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; } &&
2390          { ac_try='test -s conftest.$ac_objext'
2391   { (case "(($ac_try" in
2392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393   *) ac_try_echo=$ac_try;;
2394 esac
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396   (eval "$ac_try") 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; }; then
2400   ac_compiler_gnu=yes
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405         ac_compiler_gnu=no
2406 fi
2407
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410
2411 fi
2412 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   ac_save_c_werror_flag=$ac_c_werror_flag
2423    ac_c_werror_flag=yes
2424    ac_cv_prog_cc_g=no
2425    CFLAGS="-g"
2426    cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h.  */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h.  */
2432
2433 int
2434 main ()
2435 {
2436
2437   ;
2438   return 0;
2439 }
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2443 case "(($ac_try" in
2444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445   *) ac_try_echo=$ac_try;;
2446 esac
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448   (eval "$ac_compile") 2>conftest.er1
2449   ac_status=$?
2450   grep -v '^ *+' conftest.er1 >conftest.err
2451   rm -f conftest.er1
2452   cat conftest.err >&5
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); } &&
2455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456   { (case "(($ac_try" in
2457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458   *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461   (eval "$ac_try") 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; } &&
2465          { ac_try='test -s conftest.$ac_objext'
2466   { (case "(($ac_try" in
2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468   *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471   (eval "$ac_try") 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; }; then
2475   ac_cv_prog_cc_g=yes
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480         CFLAGS=""
2481       cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487
2488 int
2489 main ()
2490 {
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2498 case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503   (eval "$ac_compile") 2>conftest.er1
2504   ac_status=$?
2505   grep -v '^ *+' conftest.er1 >conftest.err
2506   rm -f conftest.er1
2507   cat conftest.err >&5
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); } &&
2510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511   { (case "(($ac_try" in
2512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513   *) ac_try_echo=$ac_try;;
2514 esac
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516   (eval "$ac_try") 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }; } &&
2520          { ac_try='test -s conftest.$ac_objext'
2521   { (case "(($ac_try" in
2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523   *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526   (eval "$ac_try") 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; }; then
2530   :
2531 else
2532   echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2534
2535         ac_c_werror_flag=$ac_save_c_werror_flag
2536          CFLAGS="-g"
2537          cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h.  */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h.  */
2543
2544 int
2545 main ()
2546 {
2547
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2554 case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559   (eval "$ac_compile") 2>conftest.er1
2560   ac_status=$?
2561   grep -v '^ *+' conftest.er1 >conftest.err
2562   rm -f conftest.er1
2563   cat conftest.err >&5
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); } &&
2566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567   { (case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572   (eval "$ac_try") 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; } &&
2576          { ac_try='test -s conftest.$ac_objext'
2577   { (case "(($ac_try" in
2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579   *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582   (eval "$ac_try") 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; }; then
2586   ac_cv_prog_cc_g=yes
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591
2592 fi
2593
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 fi
2596
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
2599
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601    ac_c_werror_flag=$ac_save_c_werror_flag
2602 fi
2603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2605 if test "$ac_test_CFLAGS" = set; then
2606   CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608   if test "$GCC" = yes; then
2609     CFLAGS="-g -O2"
2610   else
2611     CFLAGS="-g"
2612   fi
2613 else
2614   if test "$GCC" = yes; then
2615     CFLAGS="-O2"
2616   else
2617     CFLAGS=
2618   fi
2619 fi
2620 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_cc_c89+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   ac_cv_prog_cc_c89=no
2626 ac_save_CC=$CC
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633 #include <stdarg.h>
2634 #include <stdio.h>
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2641      char **p;
2642      int i;
2643 {
2644   return p[i];
2645 }
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2647 {
2648   char *s;
2649   va_list v;
2650   va_start (v,p);
2651   s = g (p, va_arg (v,int));
2652   va_end (v);
2653   return s;
2654 }
2655
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2657    function prototypes and stuff, but not '\xHH' hex character constants.
2658    These don't provoke an error unfortunately, instead are silently treated
2659    as 'x'.  The following induces an error, until -std is added to get
2660    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2661    array size at least.  It's necessary to write '\x00'==0 to get something
2662    that's true only with -std.  */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
2665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666    inside strings and character constants.  */
2667 #define FOO(x) 'x'
2668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2669
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674 int argc;
2675 char **argv;
2676 int
2677 main ()
2678 {
2679 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2686 do
2687   CC="$ac_save_CC $ac_arg"
2688   rm -f conftest.$ac_objext
2689 if { (ac_try="$ac_compile"
2690 case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_compile") 2>conftest.er1
2696   ac_status=$?
2697   grep -v '^ *+' conftest.er1 >conftest.err
2698   rm -f conftest.er1
2699   cat conftest.err >&5
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } &&
2702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703   { (case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708   (eval "$ac_try") 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_try") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   ac_cv_prog_cc_c89=$ac_arg
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727
2728 fi
2729
2730 rm -f core conftest.err conftest.$ac_objext
2731   test "x$ac_cv_prog_cc_c89" != "xno" && break
2732 done
2733 rm -f conftest.$ac_ext
2734 CC=$ac_save_CC
2735
2736 fi
2737 # AC_CACHE_VAL
2738 case "x$ac_cv_prog_cc_c89" in
2739   x)
2740     { echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6; } ;;
2742   xno)
2743     { echo "$as_me:$LINENO: result: unsupported" >&5
2744 echo "${ECHO_T}unsupported" >&6; } ;;
2745   *)
2746     CC="$CC $ac_cv_prog_cc_c89"
2747     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2749 esac
2750
2751
2752 ac_ext=c
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757
2758 ac_ext=cpp
2759 ac_cpp='$CXXCPP $CPPFLAGS'
2760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763 if test -z "$CXX"; then
2764   if test -n "$CCC"; then
2765     CXX=$CCC
2766   else
2767     if test -n "$ac_tool_prefix"; then
2768   for ac_prog in clang++ llvm-g++ g++
2769   do
2770     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -n "$CXX"; then
2778   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785   for ac_exec_ext in '' $ac_executable_extensions; do
2786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 CXX=$ac_cv_prog_CXX
2798 if test -n "$CXX"; then
2799   { echo "$as_me:$LINENO: result: $CXX" >&5
2800 echo "${ECHO_T}$CXX" >&6; }
2801 else
2802   { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2804 fi
2805
2806
2807     test -n "$CXX" && break
2808   done
2809 fi
2810 if test -z "$CXX"; then
2811   ac_ct_CXX=$CXX
2812   for ac_prog in clang++ llvm-g++ g++
2813 do
2814   # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   if test -n "$ac_ct_CXX"; then
2822   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829   for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     ac_cv_prog_ac_ct_CXX="$ac_prog"
2832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842 if test -n "$ac_ct_CXX"; then
2843   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2845 else
2846   { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2848 fi
2849
2850
2851   test -n "$ac_ct_CXX" && break
2852 done
2853
2854   if test "x$ac_ct_CXX" = x; then
2855     CXX="g++"
2856   else
2857     case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet.  If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet.  If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867     CXX=$ac_ct_CXX
2868   fi
2869 fi
2870
2871   fi
2872 fi
2873 # Provide some information about the compiler.
2874 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875 ac_compiler=`set X $ac_compile; echo $2`
2876 { (ac_try="$ac_compiler --version >&5"
2877 case "(($ac_try" in
2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879   *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882   (eval "$ac_compiler --version >&5") 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }
2886 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }
2896 { (ac_try="$ac_compiler -V >&5"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compiler -V >&5") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918
2919 int
2920 main ()
2921 {
2922 #ifndef __GNUC__
2923        choke me
2924 #endif
2925
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934   *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937   (eval "$ac_compile") 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } &&
2944          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945   { (case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_try") 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; } &&
2954          { ac_try='test -s conftest.$ac_objext'
2955   { (case "(($ac_try" in
2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957   *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960   (eval "$ac_try") 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; }; then
2964   ac_compiler_gnu=yes
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969         ac_compiler_gnu=no
2970 fi
2971
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974
2975 fi
2976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978 GXX=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CXXFLAGS=${CXXFLAGS+set}
2980 ac_save_CXXFLAGS=$CXXFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cxx_g+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987    ac_cxx_werror_flag=yes
2988    ac_cv_prog_cxx_g=no
2989    CXXFLAGS="-g"
2990    cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020   { (case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_try") 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; } &&
3029          { ac_try='test -s conftest.$ac_objext'
3030   { (case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_try") 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   ac_cv_prog_cxx_g=yes
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044         CXXFLAGS=""
3045       cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051
3052 int
3053 main ()
3054 {
3055
3056   ;
3057   return 0;
3058 }
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_compile") 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } &&
3074          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075   { (case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080   (eval "$ac_try") 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; } &&
3084          { ac_try='test -s conftest.$ac_objext'
3085   { (case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_try") 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; }; then
3094   :
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3100          CXXFLAGS="-g"
3101          cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_compile") 2>conftest.er1
3124   ac_status=$?
3125   grep -v '^ *+' conftest.er1 >conftest.err
3126   rm -f conftest.er1
3127   cat conftest.err >&5
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } &&
3130          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131   { (case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_try") 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; } &&
3140          { ac_try='test -s conftest.$ac_objext'
3141   { (case "(($ac_try" in
3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143   *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146   (eval "$ac_try") 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; }; then
3150   ac_cv_prog_cxx_g=yes
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155
3156 fi
3157
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 fi
3160
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 fi
3163
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166 fi
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169 if test "$ac_test_CXXFLAGS" = set; then
3170   CXXFLAGS=$ac_save_CXXFLAGS
3171 elif test $ac_cv_prog_cxx_g = yes; then
3172   if test "$GXX" = yes; then
3173     CXXFLAGS="-g -O2"
3174   else
3175     CXXFLAGS="-g"
3176   fi
3177 else
3178   if test "$GXX" = yes; then
3179     CXXFLAGS="-O2"
3180   else
3181     CXXFLAGS=
3182   fi
3183 fi
3184 ac_ext=c
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3199   CPP=
3200 fi
3201 if test -z "$CPP"; then
3202   if test "${ac_cv_prog_CPP+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205       # Double quotes because CPP needs to be expanded
3206     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207     do
3208       ac_preproc_ok=false
3209 for ac_c_preproc_warn_flag in '' yes
3210 do
3211   # Use a header file that comes with gcc, so configuring glibc
3212   # with a fresh cross-compiler works.
3213   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214   # <limits.h> exists even on freestanding compilers.
3215   # On the NeXT, cc -E runs the code through the compiler's parser,
3216   # not just through cpp. "Syntax error" is here to catch this case.
3217   cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223 #ifdef __STDC__
3224 # include <limits.h>
3225 #else
3226 # include <assert.h>
3227 #endif
3228                      Syntax error
3229 _ACEOF
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } >/dev/null; then
3243   if test -s conftest.err; then
3244     ac_cpp_err=$ac_c_preproc_warn_flag
3245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246   else
3247     ac_cpp_err=
3248   fi
3249 else
3250   ac_cpp_err=yes
3251 fi
3252 if test -z "$ac_cpp_err"; then
3253   :
3254 else
3255   echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258   # Broken: fails on valid input.
3259 continue
3260 fi
3261
3262 rm -f conftest.err conftest.$ac_ext
3263
3264   # OK, works on sane cases.  Now check whether nonexistent headers
3265   # can be detected and how.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <ac_nonexistent.h>
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null; then
3287   if test -s conftest.err; then
3288     ac_cpp_err=$ac_c_preproc_warn_flag
3289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290   else
3291     ac_cpp_err=
3292   fi
3293 else
3294   ac_cpp_err=yes
3295 fi
3296 if test -z "$ac_cpp_err"; then
3297   # Broken: success on invalid input.
3298 continue
3299 else
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303   # Passes both tests.
3304 ac_preproc_ok=:
3305 break
3306 fi
3307
3308 rm -f conftest.err conftest.$ac_ext
3309
3310 done
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3314   break
3315 fi
3316
3317     done
3318     ac_cv_prog_CPP=$CPP
3319
3320 fi
3321   CPP=$ac_cv_prog_CPP
3322 else
3323   ac_cv_prog_CPP=$CPP
3324 fi
3325 { echo "$as_me:$LINENO: result: $CPP" >&5
3326 echo "${ECHO_T}$CPP" >&6; }
3327 ac_preproc_ok=false
3328 for ac_c_preproc_warn_flag in '' yes
3329 do
3330   # Use a header file that comes with gcc, so configuring glibc
3331   # with a fresh cross-compiler works.
3332   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333   # <limits.h> exists even on freestanding compilers.
3334   # On the NeXT, cc -E runs the code through the compiler's parser,
3335   # not just through cpp. "Syntax error" is here to catch this case.
3336   cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342 #ifdef __STDC__
3343 # include <limits.h>
3344 #else
3345 # include <assert.h>
3346 #endif
3347                      Syntax error
3348 _ACEOF
3349 if { (ac_try="$ac_cpp conftest.$ac_ext"
3350 case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3356   ac_status=$?
3357   grep -v '^ *+' conftest.er1 >conftest.err
3358   rm -f conftest.er1
3359   cat conftest.err >&5
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } >/dev/null; then
3362   if test -s conftest.err; then
3363     ac_cpp_err=$ac_c_preproc_warn_flag
3364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365   else
3366     ac_cpp_err=
3367   fi
3368 else
3369   ac_cpp_err=yes
3370 fi
3371 if test -z "$ac_cpp_err"; then
3372   :
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377   # Broken: fails on valid input.
3378 continue
3379 fi
3380
3381 rm -f conftest.err conftest.$ac_ext
3382
3383   # OK, works on sane cases.  Now check whether nonexistent headers
3384   # can be detected and how.
3385   cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 #include <ac_nonexistent.h>
3392 _ACEOF
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } >/dev/null; then
3406   if test -s conftest.err; then
3407     ac_cpp_err=$ac_c_preproc_warn_flag
3408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409   else
3410     ac_cpp_err=
3411   fi
3412 else
3413   ac_cpp_err=yes
3414 fi
3415 if test -z "$ac_cpp_err"; then
3416   # Broken: success on invalid input.
3417 continue
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422   # Passes both tests.
3423 ac_preproc_ok=:
3424 break
3425 fi
3426
3427 rm -f conftest.err conftest.$ac_ext
3428
3429 done
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3433   :
3434 else
3435   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439    { (exit 1); exit 1; }; }
3440 fi
3441
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448
3449
3450
3451 if test -d ${srcdir}/projects/llvm-gcc ; then
3452   subdirs="$subdirs projects/llvm-gcc"
3453
3454 fi
3455
3456 if test -d ${srcdir}/projects/test-suite ; then
3457   subdirs="$subdirs projects/test-suite"
3458
3459 fi
3460
3461 if test -d ${srcdir}/projects/llvm-test ; then
3462   subdirs="$subdirs projects/llvm-test"
3463
3464 fi
3465
3466 if test -d ${srcdir}/projects/poolalloc ; then
3467   subdirs="$subdirs projects/poolalloc"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472   subdirs="$subdirs projects/llvm-poolalloc"
3473
3474 fi
3475
3476 for i in `ls ${srcdir}/projects`
3477 do
3478   if test -d ${srcdir}/projects/${i} ; then
3479     case ${i} in
3480       sample)       subdirs="$subdirs projects/sample"
3481     ;;
3482       privbracket)  subdirs="$subdirs projects/privbracket"
3483  ;;
3484       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3485  ;;
3486       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3487 ;;
3488       llvm-java)    subdirs="$subdirs projects/llvm-java"
3489  ;;
3490       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3491    ;;
3492       safecode)     subdirs="$subdirs projects/safecode"
3493  ;;
3494       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3495  ;;
3496       llvm-gcc)       ;;
3497       test-suite)     ;;
3498       llvm-test)      ;;
3499       poolalloc)      ;;
3500       llvm-poolalloc) ;;
3501       *)
3502         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3503 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3504         ;;
3505     esac
3506   fi
3507 done
3508
3509 # Check whether --enable-polly was given.
3510 if test "${enable_polly+set}" = set; then
3511   enableval=$enable_polly;
3512 else
3513   enableval=default
3514 fi
3515
3516 case "$enableval" in
3517   yes) ENABLE_POLLY=1
3518  ;;
3519   no)  ENABLE_POLLY=0
3520  ;;
3521   default) ENABLE_POLLY=1
3522  ;;
3523   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3524 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3525    { (exit 1); exit 1; }; } ;;
3526 esac
3527
3528
3529 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3530   LLVM_HAS_POLLY=1
3531
3532   subdirs="$subdirs tools/polly"
3533
3534 fi
3535
3536
3537 # Make sure we can run config.sub.
3538 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3539   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3540 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3541    { (exit 1); exit 1; }; }
3542
3543 { echo "$as_me:$LINENO: checking build system type" >&5
3544 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3545 if test "${ac_cv_build+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   ac_build_alias=$build_alias
3549 test "x$ac_build_alias" = x &&
3550   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3551 test "x$ac_build_alias" = x &&
3552   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3553 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3554    { (exit 1); exit 1; }; }
3555 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3556   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3557 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3558    { (exit 1); exit 1; }; }
3559
3560 fi
3561 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3562 echo "${ECHO_T}$ac_cv_build" >&6; }
3563 case $ac_cv_build in
3564 *-*-*) ;;
3565 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3566 echo "$as_me: error: invalid value of canonical build" >&2;}
3567    { (exit 1); exit 1; }; };;
3568 esac
3569 build=$ac_cv_build
3570 ac_save_IFS=$IFS; IFS='-'
3571 set x $ac_cv_build
3572 shift
3573 build_cpu=$1
3574 build_vendor=$2
3575 shift; shift
3576 # Remember, the first character of IFS is used to create $*,
3577 # except with old shells:
3578 build_os=$*
3579 IFS=$ac_save_IFS
3580 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3581
3582
3583 { echo "$as_me:$LINENO: checking host system type" >&5
3584 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3585 if test "${ac_cv_host+set}" = set; then
3586   echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588   if test "x$host_alias" = x; then
3589   ac_cv_host=$ac_cv_build
3590 else
3591   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3592     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3593 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3594    { (exit 1); exit 1; }; }
3595 fi
3596
3597 fi
3598 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3599 echo "${ECHO_T}$ac_cv_host" >&6; }
3600 case $ac_cv_host in
3601 *-*-*) ;;
3602 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3603 echo "$as_me: error: invalid value of canonical host" >&2;}
3604    { (exit 1); exit 1; }; };;
3605 esac
3606 host=$ac_cv_host
3607 ac_save_IFS=$IFS; IFS='-'
3608 set x $ac_cv_host
3609 shift
3610 host_cpu=$1
3611 host_vendor=$2
3612 shift; shift
3613 # Remember, the first character of IFS is used to create $*,
3614 # except with old shells:
3615 host_os=$*
3616 IFS=$ac_save_IFS
3617 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3618
3619
3620 { echo "$as_me:$LINENO: checking target system type" >&5
3621 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3622 if test "${ac_cv_target+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   if test "x$target_alias" = x; then
3626   ac_cv_target=$ac_cv_host
3627 else
3628   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3629     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3630 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3631    { (exit 1); exit 1; }; }
3632 fi
3633
3634 fi
3635 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3636 echo "${ECHO_T}$ac_cv_target" >&6; }
3637 case $ac_cv_target in
3638 *-*-*) ;;
3639 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3640 echo "$as_me: error: invalid value of canonical target" >&2;}
3641    { (exit 1); exit 1; }; };;
3642 esac
3643 target=$ac_cv_target
3644 ac_save_IFS=$IFS; IFS='-'
3645 set x $ac_cv_target
3646 shift
3647 target_cpu=$1
3648 target_vendor=$2
3649 shift; shift
3650 # Remember, the first character of IFS is used to create $*,
3651 # except with old shells:
3652 target_os=$*
3653 IFS=$ac_save_IFS
3654 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3655
3656
3657 # The aliases save the names the user supplied, while $host etc.
3658 # will get canonicalized.
3659 test -n "$target_alias" &&
3660   test "$program_prefix$program_suffix$program_transform_name" = \
3661     NONENONEs,x,x, &&
3662   program_prefix=${target_alias}-
3663
3664 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3665 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3666 if test "${llvm_cv_os_type+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   case $host in
3670   *-*-aix*)
3671     llvm_cv_link_all_option="-Wl,--whole-archive"
3672     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673     llvm_cv_os_type="AIX"
3674     llvm_cv_platform_type="Unix" ;;
3675   *-*-irix*)
3676     llvm_cv_link_all_option="-Wl,--whole-archive"
3677     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678     llvm_cv_os_type="IRIX"
3679     llvm_cv_platform_type="Unix" ;;
3680   *-*-cygwin*)
3681     llvm_cv_link_all_option="-Wl,--whole-archive"
3682     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683     llvm_cv_os_type="Cygwin"
3684     llvm_cv_platform_type="Unix" ;;
3685   *-*-darwin*)
3686     llvm_cv_link_all_option="-Wl,-all_load"
3687     llvm_cv_no_link_all_option="-Wl,-noall_load"
3688     llvm_cv_os_type="Darwin"
3689     llvm_cv_platform_type="Unix" ;;
3690   *-*-minix*)
3691     llvm_cv_link_all_option="-Wl,-all_load"
3692     llvm_cv_no_link_all_option="-Wl,-noall_load"
3693     llvm_cv_os_type="Minix"
3694     llvm_cv_platform_type="Unix" ;;
3695   *-*-freebsd*)
3696     llvm_cv_link_all_option="-Wl,--whole-archive"
3697     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698     llvm_cv_os_type="FreeBSD"
3699     llvm_cv_platform_type="Unix" ;;
3700   *-*-openbsd*)
3701     llvm_cv_link_all_option="-Wl,--whole-archive"
3702     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703     llvm_cv_os_type="OpenBSD"
3704     llvm_cv_platform_type="Unix" ;;
3705   *-*-netbsd*)
3706     llvm_cv_link_all_option="-Wl,--whole-archive"
3707     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708     llvm_cv_os_type="NetBSD"
3709     llvm_cv_platform_type="Unix" ;;
3710   *-*-dragonfly*)
3711     llvm_cv_link_all_option="-Wl,--whole-archive"
3712     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713     llvm_cv_os_type="DragonFly"
3714     llvm_cv_platform_type="Unix" ;;
3715   *-*-hpux*)
3716     llvm_cv_link_all_option="-Wl,--whole-archive"
3717     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718     llvm_cv_os_type="HP-UX"
3719     llvm_cv_platform_type="Unix" ;;
3720   *-*-interix*)
3721     llvm_cv_link_all_option="-Wl,--whole-archive"
3722     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723     llvm_cv_os_type="Interix"
3724     llvm_cv_platform_type="Unix" ;;
3725   *-*-linux*)
3726     llvm_cv_link_all_option="-Wl,--whole-archive"
3727     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728     llvm_cv_os_type="Linux"
3729     llvm_cv_platform_type="Unix" ;;
3730   *-*-solaris*)
3731     llvm_cv_link_all_option="-Wl,-z,allextract"
3732     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3733     llvm_cv_os_type="SunOS"
3734     llvm_cv_platform_type="Unix" ;;
3735   *-*-auroraux*)
3736     llvm_cv_link_all_option="-Wl,-z,allextract"
3737     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3738     llvm_cv_os_type="AuroraUX"
3739     llvm_cv_platform_type="Unix" ;;
3740   *-*-win32*)
3741     llvm_cv_link_all_option="-Wl,--whole-archive"
3742     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743     llvm_cv_os_type="Win32"
3744     llvm_cv_platform_type="Win32" ;;
3745   *-*-mingw*)
3746     llvm_cv_link_all_option="-Wl,--whole-archive"
3747     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748     llvm_cv_os_type="MingW"
3749     llvm_cv_platform_type="Win32" ;;
3750   *-*-haiku*)
3751     llvm_cv_link_all_option="-Wl,--whole-archive"
3752     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753     llvm_cv_os_type="Haiku"
3754     llvm_cv_platform_type="Unix" ;;
3755   *-unknown-eabi*)
3756     llvm_cv_link_all_option="-Wl,--whole-archive"
3757     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758     llvm_cv_os_type="Freestanding"
3759     llvm_cv_platform_type="Unix" ;;
3760   *-unknown-elf*)
3761     llvm_cv_link_all_option="-Wl,--whole-archive"
3762     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763     llvm_cv_os_type="Freestanding"
3764     llvm_cv_platform_type="Unix" ;;
3765   *)
3766     llvm_cv_link_all_option=""
3767     llvm_cv_no_link_all_option=""
3768     llvm_cv_os_type="Unknown"
3769     llvm_cv_platform_type="Unknown" ;;
3770 esac
3771 fi
3772 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3773 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3774
3775 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3776 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3777 if test "${llvm_cv_target_os_type+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   case $target in
3781   *-*-aix*)
3782     llvm_cv_target_os_type="AIX" ;;
3783   *-*-irix*)
3784     llvm_cv_target_os_type="IRIX" ;;
3785   *-*-cygwin*)
3786     llvm_cv_target_os_type="Cygwin" ;;
3787   *-*-darwin*)
3788     llvm_cv_target_os_type="Darwin" ;;
3789   *-*-minix*)
3790     llvm_cv_target_os_type="Minix" ;;
3791   *-*-freebsd*)
3792     llvm_cv_target_os_type="FreeBSD" ;;
3793   *-*-openbsd*)
3794     llvm_cv_target_os_type="OpenBSD" ;;
3795   *-*-netbsd*)
3796     llvm_cv_target_os_type="NetBSD" ;;
3797   *-*-dragonfly*)
3798     llvm_cv_target_os_type="DragonFly" ;;
3799   *-*-hpux*)
3800     llvm_cv_target_os_type="HP-UX" ;;
3801   *-*-interix*)
3802     llvm_cv_target_os_type="Interix" ;;
3803   *-*-linux*)
3804     llvm_cv_target_os_type="Linux" ;;
3805   *-*-solaris*)
3806     llvm_cv_target_os_type="SunOS" ;;
3807   *-*-auroraux*)
3808     llvm_cv_target_os_type="AuroraUX" ;;
3809   *-*-win32*)
3810     llvm_cv_target_os_type="Win32" ;;
3811   *-*-mingw*)
3812     llvm_cv_target_os_type="MingW" ;;
3813   *-*-haiku*)
3814     llvm_cv_target_os_type="Haiku" ;;
3815   *-*-rtems*)
3816     llvm_cv_target_os_type="RTEMS" ;;
3817   *-*-nacl*)
3818     llvm_cv_target_os_type="NativeClient" ;;
3819   *-unknown-eabi*)
3820     llvm_cv_target_os_type="Freestanding" ;;
3821   *)
3822     llvm_cv_target_os_type="Unknown" ;;
3823 esac
3824 fi
3825 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3826 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3827
3828 if test "$llvm_cv_os_type" = "Unknown" ; then
3829   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3830 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3831    { (exit 1); exit 1; }; }
3832 fi
3833
3834 OS=$llvm_cv_os_type
3835
3836 HOST_OS=$llvm_cv_os_type
3837
3838 TARGET_OS=$llvm_cv_target_os_type
3839
3840
3841 LINKALL=$llvm_cv_link_all_option
3842
3843 NOLINKALL=$llvm_cv_no_link_all_option
3844
3845
3846 case $llvm_cv_platform_type in
3847   Unix)
3848
3849 cat >>confdefs.h <<\_ACEOF
3850 #define LLVM_ON_UNIX 1
3851 _ACEOF
3852
3853     LLVM_ON_UNIX=1
3854
3855     LLVM_ON_WIN32=0
3856
3857     ;;
3858   Win32)
3859
3860 cat >>confdefs.h <<\_ACEOF
3861 #define LLVM_ON_WIN32 1
3862 _ACEOF
3863
3864     LLVM_ON_UNIX=0
3865
3866     LLVM_ON_WIN32=1
3867
3868     ;;
3869 esac
3870
3871 { echo "$as_me:$LINENO: checking target architecture" >&5
3872 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3873 if test "${llvm_cv_target_arch+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   case $target in
3877   i?86-*)                 llvm_cv_target_arch="x86" ;;
3878   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3879   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3880   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3881   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3882   mips-*)                 llvm_cv_target_arch="Mips" ;;
3883   xcore-*)                llvm_cv_target_arch="XCore" ;;
3884   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3885   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3886   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3887   *)                      llvm_cv_target_arch="Unknown" ;;
3888 esac
3889 fi
3890 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3891 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3892
3893 if test "$llvm_cv_target_arch" = "Unknown" ; then
3894   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3895 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3896 fi
3897
3898 # Determine the LLVM native architecture for the target
3899 case "$llvm_cv_target_arch" in
3900     x86)     LLVM_NATIVE_ARCH="X86" ;;
3901     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3902     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3903 esac
3904
3905 ARCH=$llvm_cv_target_arch
3906
3907
3908
3909
3910 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3911 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3912 if test "${ac_cv_path_GREP+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   # Extract the first word of "grep ggrep" to use in msg output
3916 if test -z "$GREP"; then
3917 set dummy grep ggrep; ac_prog_name=$2
3918 if test "${ac_cv_path_GREP+set}" = set; then
3919   echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921   ac_path_GREP_found=false
3922 # Loop through the user's path and test for each of PROGNAME-LIST
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925 do
3926   IFS=$as_save_IFS
3927   test -z "$as_dir" && as_dir=.
3928   for ac_prog in grep ggrep; do
3929   for ac_exec_ext in '' $ac_executable_extensions; do
3930     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3932     # Check for GNU ac_path_GREP and select it if it is found.
3933   # Check for GNU $ac_path_GREP
3934 case `"$ac_path_GREP" --version 2>&1` in
3935 *GNU*)
3936   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937 *)
3938   ac_count=0
3939   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3940   while :
3941   do
3942     cat "conftest.in" "conftest.in" >"conftest.tmp"
3943     mv "conftest.tmp" "conftest.in"
3944     cp "conftest.in" "conftest.nl"
3945     echo 'GREP' >> "conftest.nl"
3946     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3948     ac_count=`expr $ac_count + 1`
3949     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950       # Best one so far, save it but keep looking for a better one
3951       ac_cv_path_GREP="$ac_path_GREP"
3952       ac_path_GREP_max=$ac_count
3953     fi
3954     # 10*(2^10) chars as input seems more than enough
3955     test $ac_count -gt 10 && break
3956   done
3957   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958 esac
3959
3960
3961     $ac_path_GREP_found && break 3
3962   done
3963 done
3964
3965 done
3966 IFS=$as_save_IFS
3967
3968
3969 fi
3970
3971 GREP="$ac_cv_path_GREP"
3972 if test -z "$GREP"; then
3973   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3974 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3975    { (exit 1); exit 1; }; }
3976 fi
3977
3978 else
3979   ac_cv_path_GREP=$GREP
3980 fi
3981
3982
3983 fi
3984 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3985 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3986  GREP="$ac_cv_path_GREP"
3987
3988
3989 { echo "$as_me:$LINENO: checking for egrep" >&5
3990 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3991 if test "${ac_cv_path_EGREP+set}" = set; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3995    then ac_cv_path_EGREP="$GREP -E"
3996    else
3997      # Extract the first word of "egrep" to use in msg output
3998 if test -z "$EGREP"; then
3999 set dummy egrep; ac_prog_name=$2
4000 if test "${ac_cv_path_EGREP+set}" = set; then
4001   echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003   ac_path_EGREP_found=false
4004 # Loop through the user's path and test for each of PROGNAME-LIST
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010   for ac_prog in egrep; do
4011   for ac_exec_ext in '' $ac_executable_extensions; do
4012     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4013     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4014     # Check for GNU ac_path_EGREP and select it if it is found.
4015   # Check for GNU $ac_path_EGREP
4016 case `"$ac_path_EGREP" --version 2>&1` in
4017 *GNU*)
4018   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019 *)
4020   ac_count=0
4021   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022   while :
4023   do
4024     cat "conftest.in" "conftest.in" >"conftest.tmp"
4025     mv "conftest.tmp" "conftest.in"
4026     cp "conftest.in" "conftest.nl"
4027     echo 'EGREP' >> "conftest.nl"
4028     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4030     ac_count=`expr $ac_count + 1`
4031     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4032       # Best one so far, save it but keep looking for a better one
4033       ac_cv_path_EGREP="$ac_path_EGREP"
4034       ac_path_EGREP_max=$ac_count
4035     fi
4036     # 10*(2^10) chars as input seems more than enough
4037     test $ac_count -gt 10 && break
4038   done
4039   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 esac
4041
4042
4043     $ac_path_EGREP_found && break 3
4044   done
4045 done
4046
4047 done
4048 IFS=$as_save_IFS
4049
4050
4051 fi
4052
4053 EGREP="$ac_cv_path_EGREP"
4054 if test -z "$EGREP"; then
4055   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4056 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4057    { (exit 1); exit 1; }; }
4058 fi
4059
4060 else
4061   ac_cv_path_EGREP=$EGREP
4062 fi
4063
4064
4065    fi
4066 fi
4067 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4068 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4069  EGREP="$ac_cv_path_EGREP"
4070
4071
4072 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4073 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4074 if test "${ac_cv_header_stdc+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h.  */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h.  */
4083 #include <stdlib.h>
4084 #include <stdarg.h>
4085 #include <string.h>
4086 #include <float.h>
4087
4088 int
4089 main ()
4090 {
4091
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 rm -f conftest.$ac_objext
4097 if { (ac_try="$ac_compile"
4098 case "(($ac_try" in
4099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100   *) ac_try_echo=$ac_try;;
4101 esac
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103   (eval "$ac_compile") 2>conftest.er1
4104   ac_status=$?
4105   grep -v '^ *+' conftest.er1 >conftest.err
4106   rm -f conftest.er1
4107   cat conftest.err >&5
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); } &&
4110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4111   { (case "(($ac_try" in
4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113   *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116   (eval "$ac_try") 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; } &&
4120          { ac_try='test -s conftest.$ac_objext'
4121   { (case "(($ac_try" in
4122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123   *) ac_try_echo=$ac_try;;
4124 esac
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126   (eval "$ac_try") 2>&5
4127   ac_status=$?
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); }; }; then
4130   ac_cv_header_stdc=yes
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135         ac_cv_header_stdc=no
4136 fi
4137
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139
4140 if test $ac_cv_header_stdc = yes; then
4141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4142   cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148 #include <string.h>
4149
4150 _ACEOF
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152   $EGREP "memchr" >/dev/null 2>&1; then
4153   :
4154 else
4155   ac_cv_header_stdc=no
4156 fi
4157 rm -f conftest*
4158
4159 fi
4160
4161 if test $ac_cv_header_stdc = yes; then
4162   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4163   cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169 #include <stdlib.h>
4170
4171 _ACEOF
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173   $EGREP "free" >/dev/null 2>&1; then
4174   :
4175 else
4176   ac_cv_header_stdc=no
4177 fi
4178 rm -f conftest*
4179
4180 fi
4181
4182 if test $ac_cv_header_stdc = yes; then
4183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4184   if test "$cross_compiling" = yes; then
4185   :
4186 else
4187   cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 #include <ctype.h>
4194 #include <stdlib.h>
4195 #if ((' ' & 0x0FF) == 0x020)
4196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4198 #else
4199 # define ISLOWER(c) \
4200                    (('a' <= (c) && (c) <= 'i') \
4201                      || ('j' <= (c) && (c) <= 'r') \
4202                      || ('s' <= (c) && (c) <= 'z'))
4203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204 #endif
4205
4206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4207 int
4208 main ()
4209 {
4210   int i;
4211   for (i = 0; i < 256; i++)
4212     if (XOR (islower (i), ISLOWER (i))
4213         || toupper (i) != TOUPPER (i))
4214       return 2;
4215   return 0;
4216 }
4217 _ACEOF
4218 rm -f conftest$ac_exeext
4219 if { (ac_try="$ac_link"
4220 case "(($ac_try" in
4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222   *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225   (eval "$ac_link") 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4238   :
4239 else
4240   echo "$as_me: program exited with status $ac_status" >&5
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244 ( exit $ac_status )
4245 ac_cv_header_stdc=no
4246 fi
4247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4248 fi
4249
4250
4251 fi
4252 fi
4253 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4254 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4255 if test $ac_cv_header_stdc = yes; then
4256
4257 cat >>confdefs.h <<\_ACEOF
4258 #define STDC_HEADERS 1
4259 _ACEOF
4260
4261 fi
4262
4263 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4274                   inttypes.h stdint.h unistd.h
4275 do
4276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4280   echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282   cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288 $ac_includes_default
4289
4290 #include <$ac_header>
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (ac_try="$ac_compile"
4294 case "(($ac_try" in
4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296   *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299   (eval "$ac_compile") 2>conftest.er1
4300   ac_status=$?
4301   grep -v '^ *+' conftest.er1 >conftest.err
4302   rm -f conftest.er1
4303   cat conftest.err >&5
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); } &&
4306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307   { (case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312   (eval "$ac_try") 2>&5
4313   ac_status=$?
4314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315   (exit $ac_status); }; } &&
4316          { ac_try='test -s conftest.$ac_objext'
4317   { (case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322   (eval "$ac_try") 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   eval "$as_ac_Header=yes"
4327 else
4328   echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331         eval "$as_ac_Header=no"
4332 fi
4333
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 ac_res=`eval echo '${'$as_ac_Header'}'`
4337                { echo "$as_me:$LINENO: result: $ac_res" >&5
4338 echo "${ECHO_T}$ac_res" >&6; }
4339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4340   cat >>confdefs.h <<_ACEOF
4341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4342 _ACEOF
4343
4344 fi
4345
4346 done
4347
4348
4349 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4350 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4351 if test "${ac_cv_c_bigendian+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   # See if sys/param.h defines the BYTE_ORDER macro.
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h.  */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h.  */
4361 #include <sys/types.h>
4362 #include <sys/param.h>
4363
4364 int
4365 main ()
4366 {
4367 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4368  bogus endian macros
4369 #endif
4370
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4377 case "(($ac_try" in
4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379   *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382   (eval "$ac_compile") 2>conftest.er1
4383   ac_status=$?
4384   grep -v '^ *+' conftest.er1 >conftest.err
4385   rm -f conftest.er1
4386   cat conftest.err >&5
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); } &&
4389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390   { (case "(($ac_try" in
4391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392   *) ac_try_echo=$ac_try;;
4393 esac
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395   (eval "$ac_try") 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; } &&
4399          { ac_try='test -s conftest.$ac_objext'
4400   { (case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405   (eval "$ac_try") 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; }; then
4409   # It does; now see whether it defined to BIG_ENDIAN or not.
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h.  */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h.  */
4416 #include <sys/types.h>
4417 #include <sys/param.h>
4418
4419 int
4420 main ()
4421 {
4422 #if BYTE_ORDER != BIG_ENDIAN
4423  not big endian
4424 #endif
4425
4426   ;
4427   return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (ac_try="$ac_compile"
4432 case "(($ac_try" in
4433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434   *) ac_try_echo=$ac_try;;
4435 esac
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437   (eval "$ac_compile") 2>conftest.er1
4438   ac_status=$?
4439   grep -v '^ *+' conftest.er1 >conftest.err
4440   rm -f conftest.er1
4441   cat conftest.err >&5
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); } &&
4444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4445   { (case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450   (eval "$ac_try") 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); }; } &&
4454          { ac_try='test -s conftest.$ac_objext'
4455   { (case "(($ac_try" in
4456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457   *) ac_try_echo=$ac_try;;
4458 esac
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460   (eval "$ac_try") 2>&5
4461   ac_status=$?
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); }; }; then
4464   ac_cv_c_bigendian=yes
4465 else
4466   echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469         ac_cv_c_bigendian=no
4470 fi
4471
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 else
4474   echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477         # It does not; compile a test program.
4478 if test "$cross_compiling" = yes; then
4479   # try to guess the endianness by grepping values into an object file
4480   ac_cv_c_bigendian=unknown
4481   cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4488 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4489 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4490 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4491 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4492 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4493 int
4494 main ()
4495 {
4496  _ascii (); _ebcdic ();
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 rm -f conftest.$ac_objext
4502 if { (ac_try="$ac_compile"
4503 case "(($ac_try" in
4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505   *) ac_try_echo=$ac_try;;
4506 esac
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508   (eval "$ac_compile") 2>conftest.er1
4509   ac_status=$?
4510   grep -v '^ *+' conftest.er1 >conftest.err
4511   rm -f conftest.er1
4512   cat conftest.err >&5
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } &&
4515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4516   { (case "(($ac_try" in
4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518   *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521   (eval "$ac_try") 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; } &&
4525          { ac_try='test -s conftest.$ac_objext'
4526   { (case "(($ac_try" in
4527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528   *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531   (eval "$ac_try") 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; }; then
4535   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4536   ac_cv_c_bigendian=yes
4537 fi
4538 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4539   if test "$ac_cv_c_bigendian" = unknown; then
4540     ac_cv_c_bigendian=no
4541   else
4542     # finding both strings is unlikely to happen, but who knows?
4543     ac_cv_c_bigendian=unknown
4544   fi
4545 fi
4546 else
4547   echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4549
4550
4551 fi
4552
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 else
4555   cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h.  */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h.  */
4561 $ac_includes_default
4562 int
4563 main ()
4564 {
4565
4566   /* Are we little or big endian?  From Harbison&Steele.  */
4567   union
4568   {
4569     long int l;
4570     char c[sizeof (long int)];
4571   } u;
4572   u.l = 1;
4573   return u.c[sizeof (long int) - 1] == 1;
4574
4575   ;
4576   return 0;
4577 }
4578 _ACEOF
4579 rm -f conftest$ac_exeext
4580 if { (ac_try="$ac_link"
4581 case "(($ac_try" in
4582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583   *) ac_try_echo=$ac_try;;
4584 esac
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586   (eval "$ac_link") 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4590   { (case "(($ac_try" in
4591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592   *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595   (eval "$ac_try") 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; }; then
4599   ac_cv_c_bigendian=no
4600 else
4601   echo "$as_me: program exited with status $ac_status" >&5
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 ( exit $ac_status )
4606 ac_cv_c_bigendian=yes
4607 fi
4608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4609 fi
4610
4611
4612 fi
4613
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 fi
4616 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4617 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4618 case $ac_cv_c_bigendian in
4619   yes)
4620     ENDIAN=big
4621  ;;
4622   no)
4623     ENDIAN=little
4624  ;;
4625   *)
4626     { { echo "$as_me:$LINENO: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4628 echo "$as_me: error: unknown endianness
4629 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4630    { (exit 1); exit 1; }; } ;;
4631 esac
4632
4633
4634 if test "$cross_compiling" = yes; then
4635   LLVM_CROSS_COMPILING=1
4636
4637
4638 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4639 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4640 if test "${ac_cv_build_exeext+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4644   ac_cv_build_exeext=.exe
4645 else
4646   ac_build_prefix=${build_alias}-
4647
4648   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4649 set dummy ${ac_build_prefix}gcc; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   if test -n "$BUILD_CC"; then
4656   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663   for ac_exec_ext in '' $ac_executable_extensions; do
4664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667     break 2
4668   fi
4669 done
4670 done
4671 IFS=$as_save_IFS
4672
4673 fi
4674 fi
4675 BUILD_CC=$ac_cv_prog_BUILD_CC
4676 if test -n "$BUILD_CC"; then
4677   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678 echo "${ECHO_T}$BUILD_CC" >&6; }
4679 else
4680   { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4682 fi
4683
4684
4685   if test -z "$BUILD_CC"; then
4686      # Extract the first word of "gcc", so it can be a program name with args.
4687 set dummy gcc; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691   echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693   if test -n "$BUILD_CC"; then
4694   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701   for ac_exec_ext in '' $ac_executable_extensions; do
4702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4703     ac_cv_prog_BUILD_CC="gcc"
4704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705     break 2
4706   fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 BUILD_CC=$ac_cv_prog_BUILD_CC
4714 if test -n "$BUILD_CC"; then
4715   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4716 echo "${ECHO_T}$BUILD_CC" >&6; }
4717 else
4718   { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4720 fi
4721
4722
4723      if test -z "$BUILD_CC"; then
4724        # Extract the first word of "cc", so it can be a program name with args.
4725 set dummy cc; ac_word=$2
4726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4729   echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731   if test -n "$BUILD_CC"; then
4732   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733 else
4734   ac_prog_rejected=no
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738   IFS=$as_save_IFS
4739   test -z "$as_dir" && as_dir=.
4740   for ac_exec_ext in '' $ac_executable_extensions; do
4741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4742     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4743        ac_prog_rejected=yes
4744        continue
4745      fi
4746     ac_cv_prog_BUILD_CC="cc"
4747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748     break 2
4749   fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 if test $ac_prog_rejected = yes; then
4755   # We found a bogon in the path, so make sure we never use it.
4756   set dummy $ac_cv_prog_BUILD_CC
4757   shift
4758   if test $# != 0; then
4759     # We chose a different compiler from the bogus one.
4760     # However, it has the same basename, so the bogon will be chosen
4761     # first if we set BUILD_CC to just the basename; use the full file name.
4762     shift
4763     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4764   fi
4765 fi
4766 fi
4767 fi
4768 BUILD_CC=$ac_cv_prog_BUILD_CC
4769 if test -n "$BUILD_CC"; then
4770   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4771 echo "${ECHO_T}$BUILD_CC" >&6; }
4772 else
4773   { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4775 fi
4776
4777
4778      fi
4779   fi
4780   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4781 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4782    { (exit 1); exit 1; }; }
4783   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4784   rm -f conftest*
4785   echo 'int main () { return 0; }' > conftest.$ac_ext
4786   ac_cv_build_exeext=
4787   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4788   (eval $ac_build_link) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); }; then
4792     for file in conftest.*; do
4793       case $file in
4794       *.c | *.o | *.obj | *.dSYM) ;;
4795       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4796       esac
4797     done
4798   else
4799     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4800 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4801    { (exit 1); exit 1; }; }
4802   fi
4803   rm -f conftest*
4804   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4805 fi
4806 fi
4807
4808 BUILD_EXEEXT=""
4809 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4810 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4811 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4812 ac_build_exeext=$BUILD_EXEEXT
4813
4814   ac_build_prefix=${build_alias}-
4815   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4816 set dummy ${ac_build_prefix}g++; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$BUILD_CXX"; then
4823   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843 if test -n "$BUILD_CXX"; then
4844   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845 echo "${ECHO_T}$BUILD_CXX" >&6; }
4846 else
4847   { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4849 fi
4850
4851
4852   if test -z "$BUILD_CXX"; then
4853      # Extract the first word of "g++", so it can be a program name with args.
4854 set dummy g++; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$BUILD_CXX"; then
4861   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_prog_BUILD_CXX="g++"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4881 if test -n "$BUILD_CXX"; then
4882   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4883 echo "${ECHO_T}$BUILD_CXX" >&6; }
4884 else
4885   { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4887 fi
4888
4889
4890      if test -z "$BUILD_CXX"; then
4891        # Extract the first word of "c++", so it can be a program name with args.
4892 set dummy c++; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   if test -n "$BUILD_CXX"; then
4899   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900 else
4901   ac_prog_rejected=no
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907   for ac_exec_ext in '' $ac_executable_extensions; do
4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4910        ac_prog_rejected=yes
4911        continue
4912      fi
4913     ac_cv_prog_BUILD_CXX="c++"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 if test $ac_prog_rejected = yes; then
4922   # We found a bogon in the path, so make sure we never use it.
4923   set dummy $ac_cv_prog_BUILD_CXX
4924   shift
4925   if test $# != 0; then
4926     # We chose a different compiler from the bogus one.
4927     # However, it has the same basename, so the bogon will be chosen
4928     # first if we set BUILD_CXX to just the basename; use the full file name.
4929     shift
4930     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4931   fi
4932 fi
4933 fi
4934 fi
4935 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4936 if test -n "$BUILD_CXX"; then
4937   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4938 echo "${ECHO_T}$BUILD_CXX" >&6; }
4939 else
4940   { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4942 fi
4943
4944
4945      fi
4946   fi
4947 else
4948   LLVM_CROSS_COMPILING=0
4949
4950 fi
4951
4952 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4953   cvsbuild="yes"
4954   optimize="no"
4955   CVSBUILD=CVSBUILD=1
4956
4957 else
4958   cvsbuild="no"
4959   optimize="yes"
4960 fi
4961
4962
4963 # Check whether --enable-libcpp was given.
4964 if test "${enable_libcpp+set}" = set; then
4965   enableval=$enable_libcpp;
4966 else
4967   enableval=default
4968 fi
4969
4970 case "$enableval" in
4971   yes) ENABLE_LIBCPP=1
4972  ;;
4973   no)  ENABLE_LIBCPP=0
4974  ;;
4975   default) ENABLE_LIBCPP=0
4976 ;;
4977   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4978 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4979    { (exit 1); exit 1; }; } ;;
4980 esac
4981
4982 # Check whether --enable-optimized was given.
4983 if test "${enable_optimized+set}" = set; then
4984   enableval=$enable_optimized;
4985 else
4986   enableval=$optimize
4987 fi
4988
4989 if test ${enableval} = "no" ; then
4990   ENABLE_OPTIMIZED=
4991
4992 else
4993   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4994
4995 fi
4996
4997 # Check whether --enable-profiling was given.
4998 if test "${enable_profiling+set}" = set; then
4999   enableval=$enable_profiling;
5000 else
5001   enableval="no"
5002 fi
5003
5004 if test ${enableval} = "no" ; then
5005   ENABLE_PROFILING=
5006
5007 else
5008   ENABLE_PROFILING=ENABLE_PROFILING=1
5009
5010 fi
5011
5012 # Check whether --enable-assertions was given.
5013 if test "${enable_assertions+set}" = set; then
5014   enableval=$enable_assertions;
5015 else
5016   enableval="yes"
5017 fi
5018
5019 if test ${enableval} = "yes" ; then
5020   DISABLE_ASSERTIONS=
5021
5022 else
5023   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5024
5025 fi
5026
5027 # Check whether --enable-expensive-checks was given.
5028 if test "${enable_expensive_checks+set}" = set; then
5029   enableval=$enable_expensive_checks;
5030 else
5031   enableval="no"
5032 fi
5033
5034 if test ${enableval} = "yes" ; then
5035   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5036
5037   EXPENSIVE_CHECKS=yes
5038
5039 else
5040   ENABLE_EXPENSIVE_CHECKS=
5041
5042   EXPENSIVE_CHECKS=no
5043
5044 fi
5045
5046 # Check whether --enable-debug-runtime was given.
5047 if test "${enable_debug_runtime+set}" = set; then
5048   enableval=$enable_debug_runtime;
5049 else
5050   enableval=no
5051 fi
5052
5053 if test ${enableval} = "no" ; then
5054   DEBUG_RUNTIME=
5055
5056 else
5057   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5058
5059 fi
5060
5061 # Check whether --enable-debug-symbols was given.
5062 if test "${enable_debug_symbols+set}" = set; then
5063   enableval=$enable_debug_symbols;
5064 else
5065   enableval=no
5066 fi
5067
5068 if test ${enableval} = "no" ; then
5069   DEBUG_SYMBOLS=
5070
5071 else
5072   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5073
5074 fi
5075
5076 # Check whether --enable-jit was given.
5077 if test "${enable_jit+set}" = set; then
5078   enableval=$enable_jit;
5079 else
5080   enableval=default
5081 fi
5082
5083 if test ${enableval} = "no"
5084 then
5085   JIT=
5086
5087 else
5088   case "$llvm_cv_target_arch" in
5089     x86)         TARGET_HAS_JIT=1
5090  ;;
5091     Sparc)       TARGET_HAS_JIT=0
5092  ;;
5093     PowerPC)     TARGET_HAS_JIT=1
5094  ;;
5095     x86_64)      TARGET_HAS_JIT=1
5096  ;;
5097     ARM)         TARGET_HAS_JIT=1
5098  ;;
5099     Mips)        TARGET_HAS_JIT=1
5100  ;;
5101     XCore)       TARGET_HAS_JIT=0
5102  ;;
5103     MSP430)      TARGET_HAS_JIT=0
5104  ;;
5105     MBlaze)      TARGET_HAS_JIT=0
5106  ;;
5107     PTX)         TARGET_HAS_JIT=0
5108  ;;
5109     *)           TARGET_HAS_JIT=0
5110  ;;
5111   esac
5112 fi
5113
5114 # Check whether --enable-docs was given.
5115 if test "${enable_docs+set}" = set; then
5116   enableval=$enable_docs;
5117 else
5118   enableval=default
5119 fi
5120
5121 case "$enableval" in
5122   yes) ENABLE_DOCS=1
5123  ;;
5124   no)  ENABLE_DOCS=0
5125  ;;
5126   default) ENABLE_DOCS=1
5127  ;;
5128   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5130    { (exit 1); exit 1; }; } ;;
5131 esac
5132
5133 # Check whether --enable-doxygen was given.
5134 if test "${enable_doxygen+set}" = set; then
5135   enableval=$enable_doxygen;
5136 else
5137   enableval=default
5138 fi
5139
5140 case "$enableval" in
5141   yes) ENABLE_DOXYGEN=1
5142  ;;
5143   no)  ENABLE_DOXYGEN=0
5144  ;;
5145   default) ENABLE_DOXYGEN=0
5146  ;;
5147   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5148 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5149    { (exit 1); exit 1; }; } ;;
5150 esac
5151
5152 # Check whether --enable-threads was given.
5153 if test "${enable_threads+set}" = set; then
5154   enableval=$enable_threads;
5155 else
5156   enableval=default
5157 fi
5158
5159 case "$enableval" in
5160   yes) LLVM_ENABLE_THREADS=1
5161  ;;
5162   no)  LLVM_ENABLE_THREADS=0
5163  ;;
5164   default) LLVM_ENABLE_THREADS=1
5165  ;;
5166   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5167 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5168    { (exit 1); exit 1; }; } ;;
5169 esac
5170
5171 cat >>confdefs.h <<_ACEOF
5172 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5173 _ACEOF
5174
5175
5176 # Check whether --enable-pthreads was given.
5177 if test "${enable_pthreads+set}" = set; then
5178   enableval=$enable_pthreads;
5179 else
5180   enableval=default
5181 fi
5182
5183 case "$enableval" in
5184   yes) ENABLE_PTHREADS=1
5185  ;;
5186   no)  ENABLE_PTHREADS=0
5187  ;;
5188   default) ENABLE_PTHREADS=1
5189  ;;
5190   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5191 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5192    { (exit 1); exit 1; }; } ;;
5193 esac
5194
5195 # Check whether --enable-pic was given.
5196 if test "${enable_pic+set}" = set; then
5197   enableval=$enable_pic;
5198 else
5199   enableval=default
5200 fi
5201
5202 case "$enableval" in
5203   yes) ENABLE_PIC=1
5204  ;;
5205   no)  ENABLE_PIC=0
5206  ;;
5207   default) ENABLE_PIC=1
5208  ;;
5209   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5210 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5211    { (exit 1); exit 1; }; } ;;
5212 esac
5213
5214 cat >>confdefs.h <<_ACEOF
5215 #define ENABLE_PIC $ENABLE_PIC
5216 _ACEOF
5217
5218
5219 # Check whether --enable-shared was given.
5220 if test "${enable_shared+set}" = set; then
5221   enableval=$enable_shared;
5222 else
5223   enableval=default
5224 fi
5225
5226 case "$enableval" in
5227   yes) ENABLE_SHARED=1
5228  ;;
5229   no)  ENABLE_SHARED=0
5230  ;;
5231   default) ENABLE_SHARED=0
5232  ;;
5233   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5234 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5235    { (exit 1); exit 1; }; } ;;
5236 esac
5237
5238 # Check whether --enable-embed-stdcxx was given.
5239 if test "${enable_embed_stdcxx+set}" = set; then
5240   enableval=$enable_embed_stdcxx;
5241 else
5242   enableval=default
5243 fi
5244
5245 case "$enableval" in
5246   yes) ENABLE_EMBED_STDCXX=1
5247  ;;
5248   no)  ENABLE_EMBED_STDCXX=0
5249  ;;
5250   default) ENABLE_EMBED_STDCXX=0
5251  ;;
5252   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5253 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5254    { (exit 1); exit 1; }; } ;;
5255 esac
5256
5257 # Check whether --enable-timestamps was given.
5258 if test "${enable_timestamps+set}" = set; then
5259   enableval=$enable_timestamps;
5260 else
5261   enableval=default
5262 fi
5263
5264 case "$enableval" in
5265   yes) ENABLE_TIMESTAMPS=1
5266  ;;
5267   no)  ENABLE_TIMESTAMPS=0
5268  ;;
5269   default) ENABLE_TIMESTAMPS=1
5270  ;;
5271   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5272 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5273    { (exit 1); exit 1; }; } ;;
5274 esac
5275
5276 cat >>confdefs.h <<_ACEOF
5277 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5278 _ACEOF
5279
5280
5281 TARGETS_TO_BUILD=""
5282 # Check whether --enable-targets was given.
5283 if test "${enable_targets+set}" = set; then
5284   enableval=$enable_targets;
5285 else
5286   enableval=all
5287 fi
5288
5289 if test "$enableval" = host-only ; then
5290   enableval=host
5291 fi
5292 case "$enableval" in
5293   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5294   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5295       case "$a_target" in
5296         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5297         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5298         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5299         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5300         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5301         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5302         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5303         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5304         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5305         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5306         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5307         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5308         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5309         host) case "$llvm_cv_target_arch" in
5310             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5313             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5314             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5315             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5317             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5318             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5319             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5320             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5321             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5322 echo "$as_me: error: Can not set target to build" >&2;}
5323    { (exit 1); exit 1; }; } ;;
5324           esac ;;
5325         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5326 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5327    { (exit 1); exit 1; }; } ;;
5328       esac
5329   done
5330   ;;
5331 esac
5332 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5333
5334
5335 # Determine whether we are building LLVM support for the native architecture.
5336 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5337 for a_target in $TARGETS_TO_BUILD; do
5338   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5339
5340 cat >>confdefs.h <<_ACEOF
5341 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5342 _ACEOF
5343
5344     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5345     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5346     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5347     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5348     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5349       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5350     fi
5351
5352 cat >>confdefs.h <<_ACEOF
5353 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5354 _ACEOF
5355
5356
5357 cat >>confdefs.h <<_ACEOF
5358 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5359 _ACEOF
5360
5361
5362 cat >>confdefs.h <<_ACEOF
5363 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5364 _ACEOF
5365
5366
5367 cat >>confdefs.h <<_ACEOF
5368 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5369 _ACEOF
5370
5371     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5372
5373 cat >>confdefs.h <<_ACEOF
5374 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5375 _ACEOF
5376
5377     fi
5378   fi
5379 done
5380
5381 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5382 # target feature def files.
5383 LLVM_ENUM_TARGETS=""
5384 LLVM_ENUM_ASM_PRINTERS=""
5385 LLVM_ENUM_ASM_PARSERS=""
5386 LLVM_ENUM_DISASSEMBLERS=""
5387 for target_to_build in $TARGETS_TO_BUILD; do
5388   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5389   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5390     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5391   fi
5392   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5393     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5394   fi
5395   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5396     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5397   fi
5398 done
5399
5400
5401
5402
5403
5404 # Check whether --enable-cbe-printf-a was given.
5405 if test "${enable_cbe_printf_a+set}" = set; then
5406   enableval=$enable_cbe_printf_a;
5407 else
5408   enableval=default
5409 fi
5410
5411 case "$enableval" in
5412   yes) ENABLE_CBE_PRINTF_A=1
5413  ;;
5414   no)  ENABLE_CBE_PRINTF_A=0
5415  ;;
5416   default)  ENABLE_CBE_PRINTF_A=1
5417  ;;
5418   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5419 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5420    { (exit 1); exit 1; }; } ;;
5421 esac
5422
5423 cat >>confdefs.h <<_ACEOF
5424 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5425 _ACEOF
5426
5427
5428
5429 # Check whether --with-optimize-option was given.
5430 if test "${with_optimize_option+set}" = set; then
5431   withval=$with_optimize_option;
5432 else
5433   withval=default
5434 fi
5435
5436 { echo "$as_me:$LINENO: checking optimization flags" >&5
5437 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5438 case "$withval" in
5439   default)
5440     case "$llvm_cv_os_type" in
5441     FreeBSD) optimize_option=-O2 ;;
5442     MingW) optimize_option=-O2 ;;
5443     *)     optimize_option=-O3 ;;
5444     esac ;;
5445   *) optimize_option="$withval" ;;
5446 esac
5447 OPTIMIZE_OPTION=$optimize_option
5448
5449 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5450 echo "${ECHO_T}$optimize_option" >&6; }
5451
5452
5453 # Check whether --with-extra-options was given.
5454 if test "${with_extra_options+set}" = set; then
5455   withval=$with_extra_options;
5456 else
5457   withval=default
5458 fi
5459
5460 case "$withval" in
5461   default) EXTRA_OPTIONS= ;;
5462   *) EXTRA_OPTIONS=$withval ;;
5463 esac
5464 EXTRA_OPTIONS=$EXTRA_OPTIONS
5465
5466
5467
5468 # Check whether --with-extra-ld-options was given.
5469 if test "${with_extra_ld_options+set}" = set; then
5470   withval=$with_extra_ld_options;
5471 else
5472   withval=default
5473 fi
5474
5475 case "$withval" in
5476   default) EXTRA_LD_OPTIONS= ;;
5477   *) EXTRA_LD_OPTIONS=$withval ;;
5478 esac
5479 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5480
5481
5482 # Check whether --enable-bindings was given.
5483 if test "${enable_bindings+set}" = set; then
5484   enableval=$enable_bindings;
5485 else
5486   enableval=default
5487 fi
5488
5489 BINDINGS_TO_BUILD=""
5490 case "$enableval" in
5491   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5492   all ) BINDINGS_TO_BUILD="ocaml" ;;
5493   none | no) BINDINGS_TO_BUILD="" ;;
5494   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5495       case "$a_binding" in
5496         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5497         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5498 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5499    { (exit 1); exit 1; }; } ;;
5500       esac
5501   done
5502   ;;
5503 esac
5504
5505
5506 # Check whether --with-ocaml-libdir was given.
5507 if test "${with_ocaml_libdir+set}" = set; then
5508   withval=$with_ocaml_libdir;
5509 else
5510   withval=auto
5511 fi
5512
5513 case "$withval" in
5514   auto) with_ocaml_libdir="$withval" ;;
5515   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5516   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5517 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5518    { (exit 1); exit 1; }; } ;;
5519 esac
5520
5521
5522 # Check whether --with-clang-srcdir was given.
5523 if test "${with_clang_srcdir+set}" = set; then
5524   withval=$with_clang_srcdir;
5525 else
5526   withval="-"
5527 fi
5528
5529 case "$withval" in
5530   -) clang_src_root="" ;;
5531   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5532   *) clang_src_root="$ac_pwd/$withval" ;;
5533 esac
5534 CLANG_SRC_ROOT=$clang_src_root
5535
5536
5537
5538 # Check whether --with-clang-resource-dir was given.
5539 if test "${with_clang_resource_dir+set}" = set; then
5540   withval=$with_clang_resource_dir;
5541 else
5542   withval=""
5543 fi
5544
5545
5546 cat >>confdefs.h <<_ACEOF
5547 #define CLANG_RESOURCE_DIR "$withval"
5548 _ACEOF
5549
5550
5551
5552 # Check whether --with-c-include-dirs was given.
5553 if test "${with_c_include_dirs+set}" = set; then
5554   withval=$with_c_include_dirs;
5555 else
5556   withval=""
5557 fi
5558
5559
5560 cat >>confdefs.h <<_ACEOF
5561 #define C_INCLUDE_DIRS "$withval"
5562 _ACEOF
5563
5564
5565
5566 # Check whether --with-cxx-include-root was given.
5567 if test "${with_cxx_include_root+set}" = set; then
5568   withval=$with_cxx_include_root;
5569 else
5570   withval=""
5571 fi
5572
5573
5574 cat >>confdefs.h <<_ACEOF
5575 #define CXX_INCLUDE_ROOT "$withval"
5576 _ACEOF
5577
5578
5579
5580 # Check whether --with-cxx-include-arch was given.
5581 if test "${with_cxx_include_arch+set}" = set; then
5582   withval=$with_cxx_include_arch;
5583 else
5584   withval=""
5585 fi
5586
5587
5588 cat >>confdefs.h <<_ACEOF
5589 #define CXX_INCLUDE_ARCH "$withval"
5590 _ACEOF
5591
5592
5593
5594 # Check whether --with-cxx-include-32bit-dir was given.
5595 if test "${with_cxx_include_32bit_dir+set}" = set; then
5596   withval=$with_cxx_include_32bit_dir;
5597 else
5598   withval=""
5599 fi
5600
5601
5602 cat >>confdefs.h <<_ACEOF
5603 #define CXX_INCLUDE_32BIT_DIR "$withval"
5604 _ACEOF
5605
5606
5607
5608 # Check whether --with-cxx-include-64bit-dir was given.
5609 if test "${with_cxx_include_64bit_dir+set}" = set; then
5610   withval=$with_cxx_include_64bit_dir;
5611 else
5612   withval=""
5613 fi
5614
5615
5616 cat >>confdefs.h <<_ACEOF
5617 #define CXX_INCLUDE_64BIT_DIR "$withval"
5618 _ACEOF
5619
5620
5621
5622 # Check whether --with-binutils-include was given.
5623 if test "${with_binutils_include+set}" = set; then
5624   withval=$with_binutils_include;
5625 else
5626   withval=default
5627 fi
5628
5629 case "$withval" in
5630   default) WITH_BINUTILS_INCDIR=default ;;
5631   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5632   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5633 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5634    { (exit 1); exit 1; }; } ;;
5635 esac
5636 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5637   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5638
5639   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5640      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5641      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5642 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5643    { (exit 1); exit 1; }; };
5644   fi
5645 fi
5646
5647
5648 # Check whether --with-bug-report-url was given.
5649 if test "${with_bug_report_url+set}" = set; then
5650   withval=$with_bug_report_url;
5651 else
5652   withval="http://llvm.org/bugs/"
5653 fi
5654
5655
5656 cat >>confdefs.h <<_ACEOF
5657 #define BUG_REPORT_URL "$withval"
5658 _ACEOF
5659
5660
5661 # Check whether --enable-libffi was given.
5662 if test "${enable_libffi+set}" = set; then
5663   enableval=$enable_libffi; case "$enableval" in
5664     yes) llvm_cv_enable_libffi="yes" ;;
5665     no)  llvm_cv_enable_libffi="no"  ;;
5666     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5667 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5668    { (exit 1); exit 1; }; } ;;
5669   esac
5670 else
5671   llvm_cv_enable_libffi=no
5672 fi
5673
5674
5675
5676 # Check whether --with-internal-prefix was given.
5677 if test "${with_internal_prefix+set}" = set; then
5678   withval=$with_internal_prefix;
5679 else
5680   withval=""
5681 fi
5682
5683 INTERNAL_PREFIX=$withval
5684
5685
5686
5687 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5688 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5689 if test "${lt_cv_path_NM+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test -n "$NM"; then
5693   # Let the user override the test.
5694   lt_cv_path_NM="$NM"
5695 else
5696   lt_nm_to_check="${ac_tool_prefix}nm"
5697   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5698     lt_nm_to_check="$lt_nm_to_check nm"
5699   fi
5700   for lt_tmp_nm in $lt_nm_to_check; do
5701     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5702     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5703       IFS="$lt_save_ifs"
5704       test -z "$ac_dir" && ac_dir=.
5705       tmp_nm="$ac_dir/$lt_tmp_nm"
5706       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5707         # Check to see if the nm accepts a BSD-compat flag.
5708         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5709         #   nm: unknown option "B" ignored
5710         # Tru64's nm complains that /dev/null is an invalid object file
5711         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5712         */dev/null* | *'Invalid file or object type'*)
5713           lt_cv_path_NM="$tmp_nm -B"
5714           break
5715           ;;
5716         *)
5717           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5718           */dev/null*)
5719             lt_cv_path_NM="$tmp_nm -p"
5720             break
5721             ;;
5722           *)
5723             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5724             continue # so that we can try to find one that supports BSD flags
5725             ;;
5726           esac
5727           ;;
5728         esac
5729       fi
5730     done
5731     IFS="$lt_save_ifs"
5732   done
5733   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5734 fi
5735 fi
5736 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5737 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5738 NM="$lt_cv_path_NM"
5739
5740
5741
5742 { echo "$as_me:$LINENO: checking for GNU make" >&5
5743 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5744 if test "${llvm_cv_gnu_make_command+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   llvm_cv_gnu_make_command=''
5748  for a in "$MAKE" make gmake gnumake ; do
5749   if test -z "$a" ; then continue ; fi ;
5750   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5751   then
5752    llvm_cv_gnu_make_command=$a ;
5753    break;
5754   fi
5755  done
5756 fi
5757 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5758 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5759  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5760    ifGNUmake='' ;
5761  else
5762    ifGNUmake='#' ;
5763    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5764 echo "${ECHO_T}\"Not found\"" >&6; };
5765  fi
5766
5767
5768 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5769 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5770 LN_S=$as_ln_s
5771 if test "$LN_S" = "ln -s"; then
5772   { echo "$as_me:$LINENO: result: yes" >&5
5773 echo "${ECHO_T}yes" >&6; }
5774 else
5775   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5776 echo "${ECHO_T}no, using $LN_S" >&6; }
5777 fi
5778
5779 # Extract the first word of "cmp", so it can be a program name with args.
5780 set dummy cmp; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_path_CMP+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   case $CMP in
5787   [\\/]* | ?:[\\/]*)
5788   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5789   ;;
5790   *)
5791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796   for ac_exec_ext in '' $ac_executable_extensions; do
5797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5798     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800     break 2
5801   fi
5802 done
5803 done
5804 IFS=$as_save_IFS
5805
5806   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5807   ;;
5808 esac
5809 fi
5810 CMP=$ac_cv_path_CMP
5811 if test -n "$CMP"; then
5812   { echo "$as_me:$LINENO: result: $CMP" >&5
5813 echo "${ECHO_T}$CMP" >&6; }
5814 else
5815   { echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6; }
5817 fi
5818
5819
5820 # Extract the first word of "cp", so it can be a program name with args.
5821 set dummy cp; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_path_CP+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   case $CP in
5828   [\\/]* | ?:[\\/]*)
5829   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5830   ;;
5831   *)
5832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837   for ac_exec_ext in '' $ac_executable_extensions; do
5838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844 done
5845 IFS=$as_save_IFS
5846
5847   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5848   ;;
5849 esac
5850 fi
5851 CP=$ac_cv_path_CP
5852 if test -n "$CP"; then
5853   { echo "$as_me:$LINENO: result: $CP" >&5
5854 echo "${ECHO_T}$CP" >&6; }
5855 else
5856   { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5858 fi
5859
5860
5861 # Extract the first word of "date", so it can be a program name with args.
5862 set dummy date; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_DATE+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   case $DATE in
5869   [\\/]* | ?:[\\/]*)
5870   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5871   ;;
5872   *)
5873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5889   ;;
5890 esac
5891 fi
5892 DATE=$ac_cv_path_DATE
5893 if test -n "$DATE"; then
5894   { echo "$as_me:$LINENO: result: $DATE" >&5
5895 echo "${ECHO_T}$DATE" >&6; }
5896 else
5897   { echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6; }
5899 fi
5900
5901
5902 # Extract the first word of "find", so it can be a program name with args.
5903 set dummy find; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_FIND+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   case $FIND in
5910   [\\/]* | ?:[\\/]*)
5911   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5912   ;;
5913   *)
5914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919   for ac_exec_ext in '' $ac_executable_extensions; do
5920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5930   ;;
5931 esac
5932 fi
5933 FIND=$ac_cv_path_FIND
5934 if test -n "$FIND"; then
5935   { echo "$as_me:$LINENO: result: $FIND" >&5
5936 echo "${ECHO_T}$FIND" >&6; }
5937 else
5938   { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5940 fi
5941
5942
5943 # Extract the first word of "grep", so it can be a program name with args.
5944 set dummy grep; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_path_GREP+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   case $GREP in
5951   [\\/]* | ?:[\\/]*)
5952   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5953   ;;
5954   *)
5955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960   for ac_exec_ext in '' $ac_executable_extensions; do
5961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967 done
5968 IFS=$as_save_IFS
5969
5970   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5971   ;;
5972 esac
5973 fi
5974 GREP=$ac_cv_path_GREP
5975 if test -n "$GREP"; then
5976   { echo "$as_me:$LINENO: result: $GREP" >&5
5977 echo "${ECHO_T}$GREP" >&6; }
5978 else
5979   { echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6; }
5981 fi
5982
5983
5984 # Extract the first word of "mkdir", so it can be a program name with args.
5985 set dummy mkdir; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_path_MKDIR+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   case $MKDIR in
5992   [\\/]* | ?:[\\/]*)
5993   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5994   ;;
5995   *)
5996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001   for ac_exec_ext in '' $ac_executable_extensions; do
6002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6003     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008 done
6009 IFS=$as_save_IFS
6010
6011   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6012   ;;
6013 esac
6014 fi
6015 MKDIR=$ac_cv_path_MKDIR
6016 if test -n "$MKDIR"; then
6017   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6018 echo "${ECHO_T}$MKDIR" >&6; }
6019 else
6020   { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6022 fi
6023
6024
6025 # Extract the first word of "mv", so it can be a program name with args.
6026 set dummy mv; ac_word=$2
6027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029 if test "${ac_cv_path_MV+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   case $MV in
6033   [\\/]* | ?:[\\/]*)
6034   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6035   ;;
6036   *)
6037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042   for ac_exec_ext in '' $ac_executable_extensions; do
6043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6044     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049 done
6050 IFS=$as_save_IFS
6051
6052   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6053   ;;
6054 esac
6055 fi
6056 MV=$ac_cv_path_MV
6057 if test -n "$MV"; then
6058   { echo "$as_me:$LINENO: result: $MV" >&5
6059 echo "${ECHO_T}$MV" >&6; }
6060 else
6061   { echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6; }
6063 fi
6064
6065
6066 if test -n "$ac_tool_prefix"; then
6067   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6068 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6071 if test "${ac_cv_prog_RANLIB+set}" = set; then
6072   echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074   if test -n "$RANLIB"; then
6075   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6076 else
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH
6079 do
6080   IFS=$as_save_IFS
6081   test -z "$as_dir" && as_dir=.
6082   for ac_exec_ext in '' $ac_executable_extensions; do
6083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6084     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086     break 2
6087   fi
6088 done
6089 done
6090 IFS=$as_save_IFS
6091
6092 fi
6093 fi
6094 RANLIB=$ac_cv_prog_RANLIB
6095 if test -n "$RANLIB"; then
6096   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6097 echo "${ECHO_T}$RANLIB" >&6; }
6098 else
6099   { echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6; }
6101 fi
6102
6103
6104 fi
6105 if test -z "$ac_cv_prog_RANLIB"; then
6106   ac_ct_RANLIB=$RANLIB
6107   # Extract the first word of "ranlib", so it can be a program name with args.
6108 set dummy ranlib; ac_word=$2
6109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   if test -n "$ac_ct_RANLIB"; then
6115   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122   for ac_exec_ext in '' $ac_executable_extensions; do
6123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124     ac_cv_prog_ac_ct_RANLIB="ranlib"
6125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132 fi
6133 fi
6134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6135 if test -n "$ac_ct_RANLIB"; then
6136   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6137 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6138 else
6139   { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6141 fi
6142
6143   if test "x$ac_ct_RANLIB" = x; then
6144     RANLIB=":"
6145   else
6146     case $cross_compiling:$ac_tool_warned in
6147 yes:)
6148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6149 whose name does not start with the host triplet.  If you think this
6150 configuration is useful to you, please write to autoconf@gnu.org." >&5
6151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6152 whose name does not start with the host triplet.  If you think this
6153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6154 ac_tool_warned=yes ;;
6155 esac
6156     RANLIB=$ac_ct_RANLIB
6157   fi
6158 else
6159   RANLIB="$ac_cv_prog_RANLIB"
6160 fi
6161
6162 if test -n "$ac_tool_prefix"; then
6163   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6164 set dummy ${ac_tool_prefix}ar; ac_word=$2
6165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6167 if test "${ac_cv_prog_AR+set}" = set; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   if test -n "$AR"; then
6171   ac_cv_prog_AR="$AR" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176   IFS=$as_save_IFS
6177   test -z "$as_dir" && as_dir=.
6178   for ac_exec_ext in '' $ac_executable_extensions; do
6179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6180     ac_cv_prog_AR="${ac_tool_prefix}ar"
6181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182     break 2
6183   fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 AR=$ac_cv_prog_AR
6191 if test -n "$AR"; then
6192   { echo "$as_me:$LINENO: result: $AR" >&5
6193 echo "${ECHO_T}$AR" >&6; }
6194 else
6195   { echo "$as_me:$LINENO: result: no" >&5
6196 echo "${ECHO_T}no" >&6; }
6197 fi
6198
6199
6200 fi
6201 if test -z "$ac_cv_prog_AR"; then
6202   ac_ct_AR=$AR
6203   # Extract the first word of "ar", so it can be a program name with args.
6204 set dummy ar; ac_word=$2
6205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   if test -n "$ac_ct_AR"; then
6211   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218   for ac_exec_ext in '' $ac_executable_extensions; do
6219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6220     ac_cv_prog_ac_ct_AR="ar"
6221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6231 if test -n "$ac_ct_AR"; then
6232   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6233 echo "${ECHO_T}$ac_ct_AR" >&6; }
6234 else
6235   { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6237 fi
6238
6239   if test "x$ac_ct_AR" = x; then
6240     AR="false"
6241   else
6242     case $cross_compiling:$ac_tool_warned in
6243 yes:)
6244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6245 whose name does not start with the host triplet.  If you think this
6246 configuration is useful to you, please write to autoconf@gnu.org." >&5
6247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6248 whose name does not start with the host triplet.  If you think this
6249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6250 ac_tool_warned=yes ;;
6251 esac
6252     AR=$ac_ct_AR
6253   fi
6254 else
6255   AR="$ac_cv_prog_AR"
6256 fi
6257
6258 # Extract the first word of "rm", so it can be a program name with args.
6259 set dummy rm; ac_word=$2
6260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6262 if test "${ac_cv_path_RM+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   case $RM in
6266   [\\/]* | ?:[\\/]*)
6267   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6268   ;;
6269   *)
6270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273   IFS=$as_save_IFS
6274   test -z "$as_dir" && as_dir=.
6275   for ac_exec_ext in '' $ac_executable_extensions; do
6276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6277     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279     break 2
6280   fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6286   ;;
6287 esac
6288 fi
6289 RM=$ac_cv_path_RM
6290 if test -n "$RM"; then
6291   { echo "$as_me:$LINENO: result: $RM" >&5
6292 echo "${ECHO_T}$RM" >&6; }
6293 else
6294   { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6296 fi
6297
6298
6299 # Extract the first word of "sed", so it can be a program name with args.
6300 set dummy sed; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_SED+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   case $SED in
6307   [\\/]* | ?:[\\/]*)
6308   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6309   ;;
6310   *)
6311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316   for ac_exec_ext in '' $ac_executable_extensions; do
6317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6318     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6327   ;;
6328 esac
6329 fi
6330 SED=$ac_cv_path_SED
6331 if test -n "$SED"; then
6332   { echo "$as_me:$LINENO: result: $SED" >&5
6333 echo "${ECHO_T}$SED" >&6; }
6334 else
6335   { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6337 fi
6338
6339
6340 # Extract the first word of "tar", so it can be a program name with args.
6341 set dummy tar; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_path_TAR+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   case $TAR in
6348   [\\/]* | ?:[\\/]*)
6349   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6350   ;;
6351   *)
6352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357   for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6368   ;;
6369 esac
6370 fi
6371 TAR=$ac_cv_path_TAR
6372 if test -n "$TAR"; then
6373   { echo "$as_me:$LINENO: result: $TAR" >&5
6374 echo "${ECHO_T}$TAR" >&6; }
6375 else
6376   { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6378 fi
6379
6380
6381 # Extract the first word of "pwd", so it can be a program name with args.
6382 set dummy pwd; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_path_BINPWD+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   case $BINPWD in
6389   [\\/]* | ?:[\\/]*)
6390   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6391   ;;
6392   *)
6393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396   IFS=$as_save_IFS
6397   test -z "$as_dir" && as_dir=.
6398   for ac_exec_ext in '' $ac_executable_extensions; do
6399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6400     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402     break 2
6403   fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6409   ;;
6410 esac
6411 fi
6412 BINPWD=$ac_cv_path_BINPWD
6413 if test -n "$BINPWD"; then
6414   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6415 echo "${ECHO_T}$BINPWD" >&6; }
6416 else
6417   { echo "$as_me:$LINENO: result: no" >&5
6418 echo "${ECHO_T}no" >&6; }
6419 fi
6420
6421
6422
6423 # Extract the first word of "Graphviz", so it can be a program name with args.
6424 set dummy Graphviz; 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_path_GRAPHVIZ+set}" = set; then
6428   echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430   case $GRAPHVIZ in
6431   [\\/]* | ?:[\\/]*)
6432   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6433   ;;
6434   *)
6435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440   for ac_exec_ext in '' $ac_executable_extensions; do
6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6442     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447 done
6448 IFS=$as_save_IFS
6449
6450   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6451   ;;
6452 esac
6453 fi
6454 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6455 if test -n "$GRAPHVIZ"; then
6456   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6457 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6458 else
6459   { echo "$as_me:$LINENO: result: no" >&5
6460 echo "${ECHO_T}no" >&6; }
6461 fi
6462
6463
6464 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6465
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_GRAPHVIZ 1
6468 _ACEOF
6469
6470     if test "$llvm_cv_os_type" = "MingW" ; then
6471     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6472   fi
6473
6474 cat >>confdefs.h <<_ACEOF
6475 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6476 _ACEOF
6477
6478 fi
6479 # Extract the first word of "dot", so it can be a program name with args.
6480 set dummy dot; ac_word=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_path_DOT+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   case $DOT in
6487   [\\/]* | ?:[\\/]*)
6488   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6489   ;;
6490   *)
6491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494   IFS=$as_save_IFS
6495   test -z "$as_dir" && as_dir=.
6496   for ac_exec_ext in '' $ac_executable_extensions; do
6497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6498     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500     break 2
6501   fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6507   ;;
6508 esac
6509 fi
6510 DOT=$ac_cv_path_DOT
6511 if test -n "$DOT"; then
6512   { echo "$as_me:$LINENO: result: $DOT" >&5
6513 echo "${ECHO_T}$DOT" >&6; }
6514 else
6515   { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6517 fi
6518
6519
6520 if test "$DOT" != "echo dot" ; then
6521
6522 cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_DOT 1
6524 _ACEOF
6525
6526     if test "$llvm_cv_os_type" = "MingW" ; then
6527     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6528   fi
6529
6530 cat >>confdefs.h <<_ACEOF
6531 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6532 _ACEOF
6533
6534 fi
6535 # Extract the first word of "fdp", so it can be a program name with args.
6536 set dummy fdp; ac_word=$2
6537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539 if test "${ac_cv_path_FDP+set}" = set; then
6540   echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542   case $FDP in
6543   [\\/]* | ?:[\\/]*)
6544   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6545   ;;
6546   *)
6547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550   IFS=$as_save_IFS
6551   test -z "$as_dir" && as_dir=.
6552   for ac_exec_ext in '' $ac_executable_extensions; do
6553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6554     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556     break 2
6557   fi
6558 done
6559 done
6560 IFS=$as_save_IFS
6561
6562   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6563   ;;
6564 esac
6565 fi
6566 FDP=$ac_cv_path_FDP
6567 if test -n "$FDP"; then
6568   { echo "$as_me:$LINENO: result: $FDP" >&5
6569 echo "${ECHO_T}$FDP" >&6; }
6570 else
6571   { echo "$as_me:$LINENO: result: no" >&5
6572 echo "${ECHO_T}no" >&6; }
6573 fi
6574
6575
6576 if test "$FDP" != "echo fdp" ; then
6577
6578 cat >>confdefs.h <<\_ACEOF
6579 #define HAVE_FDP 1
6580 _ACEOF
6581
6582     if test "$llvm_cv_os_type" = "MingW" ; then
6583     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6584   fi
6585
6586 cat >>confdefs.h <<_ACEOF
6587 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6588 _ACEOF
6589
6590 fi
6591 # Extract the first word of "neato", so it can be a program name with args.
6592 set dummy neato; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_NEATO+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   case $NEATO in
6599   [\\/]* | ?:[\\/]*)
6600   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6601   ;;
6602   *)
6603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608   for ac_exec_ext in '' $ac_executable_extensions; do
6609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6619   ;;
6620 esac
6621 fi
6622 NEATO=$ac_cv_path_NEATO
6623 if test -n "$NEATO"; then
6624   { echo "$as_me:$LINENO: result: $NEATO" >&5
6625 echo "${ECHO_T}$NEATO" >&6; }
6626 else
6627   { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6629 fi
6630
6631
6632 if test "$NEATO" != "echo neato" ; then
6633
6634 cat >>confdefs.h <<\_ACEOF
6635 #define HAVE_NEATO 1
6636 _ACEOF
6637
6638     if test "$llvm_cv_os_type" = "MingW" ; then
6639     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6640   fi
6641
6642 cat >>confdefs.h <<_ACEOF
6643 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6644 _ACEOF
6645
6646 fi
6647 # Extract the first word of "twopi", so it can be a program name with args.
6648 set dummy twopi; ac_word=$2
6649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651 if test "${ac_cv_path_TWOPI+set}" = set; then
6652   echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654   case $TWOPI in
6655   [\\/]* | ?:[\\/]*)
6656   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6657   ;;
6658   *)
6659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662   IFS=$as_save_IFS
6663   test -z "$as_dir" && as_dir=.
6664   for ac_exec_ext in '' $ac_executable_extensions; do
6665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6666     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668     break 2
6669   fi
6670 done
6671 done
6672 IFS=$as_save_IFS
6673
6674   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6675   ;;
6676 esac
6677 fi
6678 TWOPI=$ac_cv_path_TWOPI
6679 if test -n "$TWOPI"; then
6680   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6681 echo "${ECHO_T}$TWOPI" >&6; }
6682 else
6683   { echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6; }
6685 fi
6686
6687
6688 if test "$TWOPI" != "echo twopi" ; then
6689
6690 cat >>confdefs.h <<\_ACEOF
6691 #define HAVE_TWOPI 1
6692 _ACEOF
6693
6694     if test "$llvm_cv_os_type" = "MingW" ; then
6695     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6696   fi
6697
6698 cat >>confdefs.h <<_ACEOF
6699 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6700 _ACEOF
6701
6702 fi
6703 # Extract the first word of "circo", so it can be a program name with args.
6704 set dummy circo; ac_word=$2
6705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707 if test "${ac_cv_path_CIRCO+set}" = set; then
6708   echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710   case $CIRCO in
6711   [\\/]* | ?:[\\/]*)
6712   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6713   ;;
6714   *)
6715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718   IFS=$as_save_IFS
6719   test -z "$as_dir" && as_dir=.
6720   for ac_exec_ext in '' $ac_executable_extensions; do
6721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6722     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724     break 2
6725   fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6731   ;;
6732 esac
6733 fi
6734 CIRCO=$ac_cv_path_CIRCO
6735 if test -n "$CIRCO"; then
6736   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6737 echo "${ECHO_T}$CIRCO" >&6; }
6738 else
6739   { echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6; }
6741 fi
6742
6743
6744 if test "$CIRCO" != "echo circo" ; then
6745
6746 cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_CIRCO 1
6748 _ACEOF
6749
6750     if test "$llvm_cv_os_type" = "MingW" ; then
6751     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6752   fi
6753
6754 cat >>confdefs.h <<_ACEOF
6755 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6756 _ACEOF
6757
6758 fi
6759 for ac_prog in gv gsview32
6760 do
6761   # Extract the first word of "$ac_prog", so it can be a program name with args.
6762 set dummy $ac_prog; ac_word=$2
6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765 if test "${ac_cv_path_GV+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   case $GV in
6769   [\\/]* | ?:[\\/]*)
6770   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6771   ;;
6772   *)
6773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778   for ac_exec_ext in '' $ac_executable_extensions; do
6779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6780     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788   ;;
6789 esac
6790 fi
6791 GV=$ac_cv_path_GV
6792 if test -n "$GV"; then
6793   { echo "$as_me:$LINENO: result: $GV" >&5
6794 echo "${ECHO_T}$GV" >&6; }
6795 else
6796   { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6798 fi
6799
6800
6801   test -n "$GV" && break
6802 done
6803 test -n "$GV" || GV="echo gv"
6804
6805 if test "$GV" != "echo gv" ; then
6806
6807 cat >>confdefs.h <<\_ACEOF
6808 #define HAVE_GV 1
6809 _ACEOF
6810
6811     if test "$llvm_cv_os_type" = "MingW" ; then
6812     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6813   fi
6814
6815 cat >>confdefs.h <<_ACEOF
6816 #define LLVM_PATH_GV "$GV${EXEEXT}"
6817 _ACEOF
6818
6819 fi
6820 # Extract the first word of "dotty", so it can be a program name with args.
6821 set dummy dotty; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_DOTTY+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   case $DOTTY in
6828   [\\/]* | ?:[\\/]*)
6829   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6830   ;;
6831   *)
6832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837   for ac_exec_ext in '' $ac_executable_extensions; do
6838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6848   ;;
6849 esac
6850 fi
6851 DOTTY=$ac_cv_path_DOTTY
6852 if test -n "$DOTTY"; then
6853   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6854 echo "${ECHO_T}$DOTTY" >&6; }
6855 else
6856   { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6858 fi
6859
6860
6861 if test "$DOTTY" != "echo dotty" ; then
6862
6863 cat >>confdefs.h <<\_ACEOF
6864 #define HAVE_DOTTY 1
6865 _ACEOF
6866
6867     if test "$llvm_cv_os_type" = "MingW" ; then
6868     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6869   fi
6870
6871 cat >>confdefs.h <<_ACEOF
6872 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6873 _ACEOF
6874
6875 fi
6876 # Extract the first word of "xdot.py", so it can be a program name with args.
6877 set dummy xdot.py; ac_word=$2
6878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   case $XDOT_PY in
6884   [\\/]* | ?:[\\/]*)
6885   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6886   ;;
6887   *)
6888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893   for ac_exec_ext in '' $ac_executable_extensions; do
6894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900 done
6901 IFS=$as_save_IFS
6902
6903   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6904   ;;
6905 esac
6906 fi
6907 XDOT_PY=$ac_cv_path_XDOT_PY
6908 if test -n "$XDOT_PY"; then
6909   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6910 echo "${ECHO_T}$XDOT_PY" >&6; }
6911 else
6912   { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6914 fi
6915
6916
6917 if test "$XDOT_PY" != "echo xdot.py" ; then
6918
6919 cat >>confdefs.h <<\_ACEOF
6920 #define HAVE_XDOT_PY 1
6921 _ACEOF
6922
6923     if test "$llvm_cv_os_type" = "MingW" ; then
6924     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6925   fi
6926
6927 cat >>confdefs.h <<_ACEOF
6928 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6929 _ACEOF
6930
6931 fi
6932
6933
6934 # Extract the first word of "perl", so it can be a program name with args.
6935 set dummy perl; ac_word=$2
6936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6938 if test "${ac_cv_path_PERL+set}" = set; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941   case $PERL in
6942   [\\/]* | ?:[\\/]*)
6943   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6944   ;;
6945   *)
6946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949   IFS=$as_save_IFS
6950   test -z "$as_dir" && as_dir=.
6951   for ac_exec_ext in '' $ac_executable_extensions; do
6952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6953     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955     break 2
6956   fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6962   ;;
6963 esac
6964 fi
6965 PERL=$ac_cv_path_PERL
6966 if test -n "$PERL"; then
6967   { echo "$as_me:$LINENO: result: $PERL" >&5
6968 echo "${ECHO_T}$PERL" >&6; }
6969 else
6970   { echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6; }
6972 fi
6973
6974
6975 if test "$PERL" != "none"; then
6976   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6977 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6978   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6979     { echo "$as_me:$LINENO: result: yes" >&5
6980 echo "${ECHO_T}yes" >&6; }
6981   else
6982     PERL=none
6983     { echo "$as_me:$LINENO: result: not found" >&5
6984 echo "${ECHO_T}not found" >&6; }
6985   fi
6986 fi
6987
6988
6989 if test x"$PERL" = xnone; then
6990    HAVE_PERL=0
6991
6992    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6993 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6994    { (exit 1); exit 1; }; }
6995 else
6996    HAVE_PERL=1
6997
6998 fi
6999
7000 # Find a good install program.  We prefer a C program (faster),
7001 # so one script is as good as another.  But avoid the broken or
7002 # incompatible versions:
7003 # SysV /etc/install, /usr/sbin/install
7004 # SunOS /usr/etc/install
7005 # IRIX /sbin/install
7006 # AIX /bin/install
7007 # AmigaOS /C/install, which installs bootblocks on floppy discs
7008 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7009 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7010 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7011 # OS/2's system install, which has a completely different semantic
7012 # ./install, which can be erroneously created by make from ./install.sh.
7013 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7014 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7015 if test -z "$INSTALL"; then
7016 if test "${ac_cv_path_install+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022   IFS=$as_save_IFS
7023   test -z "$as_dir" && as_dir=.
7024   # Account for people who put trailing slashes in PATH elements.
7025 case $as_dir/ in
7026   ./ | .// | /cC/* | \
7027   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7028   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7029   /usr/ucb/* ) ;;
7030   *)
7031     # OSF1 and SCO ODT 3.0 have their own names for install.
7032     # Don't use installbsd from OSF since it installs stuff as root
7033     # by default.
7034     for ac_prog in ginstall scoinst install; do
7035       for ac_exec_ext in '' $ac_executable_extensions; do
7036         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7037           if test $ac_prog = install &&
7038             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7039             # AIX install.  It has an incompatible calling convention.
7040             :
7041           elif test $ac_prog = install &&
7042             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7043             # program-specific install script used by HP pwplus--don't use.
7044             :
7045           else
7046             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7047             break 3
7048           fi
7049         fi
7050       done
7051     done
7052     ;;
7053 esac
7054 done
7055 IFS=$as_save_IFS
7056
7057
7058 fi
7059   if test "${ac_cv_path_install+set}" = set; then
7060     INSTALL=$ac_cv_path_install
7061   else
7062     # As a last resort, use the slow shell script.  Don't cache a
7063     # value for INSTALL within a source directory, because that will
7064     # break other packages using the cache if that directory is
7065     # removed, or if the value is a relative name.
7066     INSTALL=$ac_install_sh
7067   fi
7068 fi
7069 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7070 echo "${ECHO_T}$INSTALL" >&6; }
7071
7072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7073 # It thinks the first close brace ends the variable substitution.
7074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7075
7076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7077
7078 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7079
7080 case "$INSTALL" in
7081  [\\/$]* | ?:[\\/]* ) ;;
7082  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7083 esac
7084
7085 # Extract the first word of "bzip2", so it can be a program name with args.
7086 set dummy bzip2; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_BZIP2+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   case $BZIP2 in
7093   [\\/]* | ?:[\\/]*)
7094   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7095   ;;
7096   *)
7097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100   IFS=$as_save_IFS
7101   test -z "$as_dir" && as_dir=.
7102   for ac_exec_ext in '' $ac_executable_extensions; do
7103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106     break 2
7107   fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112   ;;
7113 esac
7114 fi
7115 BZIP2=$ac_cv_path_BZIP2
7116 if test -n "$BZIP2"; then
7117   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7118 echo "${ECHO_T}$BZIP2" >&6; }
7119 else
7120   { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7122 fi
7123
7124
7125 # Extract the first word of "cat", so it can be a program name with args.
7126 set dummy cat; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_path_CAT+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   case $CAT in
7133   [\\/]* | ?:[\\/]*)
7134   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7135   ;;
7136   *)
7137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140   IFS=$as_save_IFS
7141   test -z "$as_dir" && as_dir=.
7142   for ac_exec_ext in '' $ac_executable_extensions; do
7143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146     break 2
7147   fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152   ;;
7153 esac
7154 fi
7155 CAT=$ac_cv_path_CAT
7156 if test -n "$CAT"; then
7157   { echo "$as_me:$LINENO: result: $CAT" >&5
7158 echo "${ECHO_T}$CAT" >&6; }
7159 else
7160   { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7162 fi
7163
7164
7165 # Extract the first word of "doxygen", so it can be a program name with args.
7166 set dummy doxygen; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   case $DOXYGEN in
7173   [\\/]* | ?:[\\/]*)
7174   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7175   ;;
7176   *)
7177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182   for ac_exec_ext in '' $ac_executable_extensions; do
7183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7184     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192   ;;
7193 esac
7194 fi
7195 DOXYGEN=$ac_cv_path_DOXYGEN
7196 if test -n "$DOXYGEN"; then
7197   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7198 echo "${ECHO_T}$DOXYGEN" >&6; }
7199 else
7200   { echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6; }
7202 fi
7203
7204
7205 # Extract the first word of "groff", so it can be a program name with args.
7206 set dummy groff; ac_word=$2
7207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7209 if test "${ac_cv_path_GROFF+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   case $GROFF in
7213   [\\/]* | ?:[\\/]*)
7214   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7215   ;;
7216   *)
7217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222   for ac_exec_ext in '' $ac_executable_extensions; do
7223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7224     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229 done
7230 IFS=$as_save_IFS
7231
7232   ;;
7233 esac
7234 fi
7235 GROFF=$ac_cv_path_GROFF
7236 if test -n "$GROFF"; then
7237   { echo "$as_me:$LINENO: result: $GROFF" >&5
7238 echo "${ECHO_T}$GROFF" >&6; }
7239 else
7240   { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7242 fi
7243
7244
7245 # Extract the first word of "gzip", so it can be a program name with args.
7246 set dummy gzip; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   case $GZIPBIN in
7253   [\\/]* | ?:[\\/]*)
7254   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7255   ;;
7256   *)
7257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262   for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272   ;;
7273 esac
7274 fi
7275 GZIPBIN=$ac_cv_path_GZIPBIN
7276 if test -n "$GZIPBIN"; then
7277   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7278 echo "${ECHO_T}$GZIPBIN" >&6; }
7279 else
7280   { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7282 fi
7283
7284
7285 # Extract the first word of "pod2html", so it can be a program name with args.
7286 set dummy pod2html; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_path_POD2HTML+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   case $POD2HTML in
7293   [\\/]* | ?:[\\/]*)
7294   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7295   ;;
7296   *)
7297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302   for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309 done
7310 IFS=$as_save_IFS
7311
7312   ;;
7313 esac
7314 fi
7315 POD2HTML=$ac_cv_path_POD2HTML
7316 if test -n "$POD2HTML"; then
7317   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7318 echo "${ECHO_T}$POD2HTML" >&6; }
7319 else
7320   { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7322 fi
7323
7324
7325 # Extract the first word of "pod2man", so it can be a program name with args.
7326 set dummy pod2man; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_POD2MAN+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   case $POD2MAN in
7333   [\\/]* | ?:[\\/]*)
7334   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7335   ;;
7336   *)
7337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342   for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352   ;;
7353 esac
7354 fi
7355 POD2MAN=$ac_cv_path_POD2MAN
7356 if test -n "$POD2MAN"; then
7357   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7358 echo "${ECHO_T}$POD2MAN" >&6; }
7359 else
7360   { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7362 fi
7363
7364
7365 # Extract the first word of "pdfroff", so it can be a program name with args.
7366 set dummy pdfroff; ac_word=$2
7367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369 if test "${ac_cv_path_PDFROFF+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372   case $PDFROFF in
7373   [\\/]* | ?:[\\/]*)
7374   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7375   ;;
7376   *)
7377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380   IFS=$as_save_IFS
7381   test -z "$as_dir" && as_dir=.
7382   for ac_exec_ext in '' $ac_executable_extensions; do
7383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7384     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386     break 2
7387   fi
7388 done
7389 done
7390 IFS=$as_save_IFS
7391
7392   ;;
7393 esac
7394 fi
7395 PDFROFF=$ac_cv_path_PDFROFF
7396 if test -n "$PDFROFF"; then
7397   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7398 echo "${ECHO_T}$PDFROFF" >&6; }
7399 else
7400   { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7402 fi
7403
7404
7405 # Extract the first word of "runtest", so it can be a program name with args.
7406 set dummy runtest; ac_word=$2
7407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409 if test "${ac_cv_path_RUNTEST+set}" = set; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   case $RUNTEST in
7413   [\\/]* | ?:[\\/]*)
7414   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7415   ;;
7416   *)
7417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422   for ac_exec_ext in '' $ac_executable_extensions; do
7423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432   ;;
7433 esac
7434 fi
7435 RUNTEST=$ac_cv_path_RUNTEST
7436 if test -n "$RUNTEST"; then
7437   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7438 echo "${ECHO_T}$RUNTEST" >&6; }
7439 else
7440   { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7442 fi
7443
7444
7445
7446 no_itcl=true
7447 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7448 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7449
7450 # Check whether --with-tclinclude was given.
7451 if test "${with_tclinclude+set}" = set; then
7452   withval=$with_tclinclude; with_tclinclude=${withval}
7453 else
7454   with_tclinclude=''
7455 fi
7456
7457 if test "${ac_cv_path_tclsh+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460
7461 if test x"${with_tclinclude}" != x ; then
7462   if test -f ${with_tclinclude}/tclsh ; then
7463     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7464   elif test -f ${with_tclinclude}/src/tclsh ; then
7465     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7466   else
7467     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7468 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7469    { (exit 1); exit 1; }; }
7470   fi
7471 fi
7472 fi
7473
7474
7475 if test x"${ac_cv_path_tclsh}" = x ; then
7476   { echo "$as_me:$LINENO: result: none" >&5
7477 echo "${ECHO_T}none" >&6; }
7478   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
7479 do
7480   # Extract the first word of "$ac_prog", so it can be a program name with args.
7481 set dummy $ac_prog; ac_word=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_path_TCLSH+set}" = set; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   case $TCLSH in
7488   [\\/]* | ?:[\\/]*)
7489   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7490   ;;
7491   *)
7492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495   IFS=$as_save_IFS
7496   test -z "$as_dir" && as_dir=.
7497   for ac_exec_ext in '' $ac_executable_extensions; do
7498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501     break 2
7502   fi
7503 done
7504 done
7505 IFS=$as_save_IFS
7506
7507   ;;
7508 esac
7509 fi
7510 TCLSH=$ac_cv_path_TCLSH
7511 if test -n "$TCLSH"; then
7512   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7513 echo "${ECHO_T}$TCLSH" >&6; }
7514 else
7515   { echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6; }
7517 fi
7518
7519
7520   test -n "$TCLSH" && break
7521 done
7522
7523   if test x"${TCLSH}" = x ; then
7524     ac_cv_path_tclsh='';
7525   else
7526     ac_cv_path_tclsh="${TCLSH}";
7527   fi
7528 else
7529   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7530 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7531   TCLSH="${ac_cv_path_tclsh}"
7532
7533 fi
7534
7535 # Extract the first word of "zip", so it can be a program name with args.
7536 set dummy zip; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_ZIP+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   case $ZIP in
7543   [\\/]* | ?:[\\/]*)
7544   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7545   ;;
7546   *)
7547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552   for ac_exec_ext in '' $ac_executable_extensions; do
7553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562   ;;
7563 esac
7564 fi
7565 ZIP=$ac_cv_path_ZIP
7566 if test -n "$ZIP"; then
7567   { echo "$as_me:$LINENO: result: $ZIP" >&5
7568 echo "${ECHO_T}$ZIP" >&6; }
7569 else
7570   { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7572 fi
7573
7574
7575 for ac_prog in ocamlc
7576 do
7577   # Extract the first word of "$ac_prog", so it can be a program name with args.
7578 set dummy $ac_prog; ac_word=$2
7579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581 if test "${ac_cv_path_OCAMLC+set}" = set; then
7582   echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584   case $OCAMLC in
7585   [\\/]* | ?:[\\/]*)
7586   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7587   ;;
7588   *)
7589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592   IFS=$as_save_IFS
7593   test -z "$as_dir" && as_dir=.
7594   for ac_exec_ext in '' $ac_executable_extensions; do
7595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7596     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598     break 2
7599   fi
7600 done
7601 done
7602 IFS=$as_save_IFS
7603
7604   ;;
7605 esac
7606 fi
7607 OCAMLC=$ac_cv_path_OCAMLC
7608 if test -n "$OCAMLC"; then
7609   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7610 echo "${ECHO_T}$OCAMLC" >&6; }
7611 else
7612   { echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6; }
7614 fi
7615
7616
7617   test -n "$OCAMLC" && break
7618 done
7619
7620 for ac_prog in ocamlopt
7621 do
7622   # Extract the first word of "$ac_prog", so it can be a program name with args.
7623 set dummy $ac_prog; ac_word=$2
7624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   case $OCAMLOPT in
7630   [\\/]* | ?:[\\/]*)
7631   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7632   ;;
7633   *)
7634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639   for ac_exec_ext in '' $ac_executable_extensions; do
7640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646 done
7647 IFS=$as_save_IFS
7648
7649   ;;
7650 esac
7651 fi
7652 OCAMLOPT=$ac_cv_path_OCAMLOPT
7653 if test -n "$OCAMLOPT"; then
7654   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7655 echo "${ECHO_T}$OCAMLOPT" >&6; }
7656 else
7657   { echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6; }
7659 fi
7660
7661
7662   test -n "$OCAMLOPT" && break
7663 done
7664
7665 for ac_prog in ocamldep
7666 do
7667   # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy $ac_prog; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   case $OCAMLDEP in
7675   [\\/]* | ?:[\\/]*)
7676   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7677   ;;
7678   *)
7679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684   for ac_exec_ext in '' $ac_executable_extensions; do
7685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694   ;;
7695 esac
7696 fi
7697 OCAMLDEP=$ac_cv_path_OCAMLDEP
7698 if test -n "$OCAMLDEP"; then
7699   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7700 echo "${ECHO_T}$OCAMLDEP" >&6; }
7701 else
7702   { echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6; }
7704 fi
7705
7706
7707   test -n "$OCAMLDEP" && break
7708 done
7709
7710 for ac_prog in ocamldoc
7711 do
7712   # Extract the first word of "$ac_prog", so it can be a program name with args.
7713 set dummy $ac_prog; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719   case $OCAMLDOC in
7720   [\\/]* | ?:[\\/]*)
7721   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7722   ;;
7723   *)
7724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727   IFS=$as_save_IFS
7728   test -z "$as_dir" && as_dir=.
7729   for ac_exec_ext in '' $ac_executable_extensions; do
7730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733     break 2
7734   fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739   ;;
7740 esac
7741 fi
7742 OCAMLDOC=$ac_cv_path_OCAMLDOC
7743 if test -n "$OCAMLDOC"; then
7744   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7745 echo "${ECHO_T}$OCAMLDOC" >&6; }
7746 else
7747   { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7749 fi
7750
7751
7752   test -n "$OCAMLDOC" && break
7753 done
7754
7755 for ac_prog in gas as
7756 do
7757   # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761 if test "${ac_cv_path_GAS+set}" = set; then
7762   echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764   case $GAS in
7765   [\\/]* | ?:[\\/]*)
7766   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7767   ;;
7768   *)
7769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772   IFS=$as_save_IFS
7773   test -z "$as_dir" && as_dir=.
7774   for ac_exec_ext in '' $ac_executable_extensions; do
7775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7776     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778     break 2
7779   fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784   ;;
7785 esac
7786 fi
7787 GAS=$ac_cv_path_GAS
7788 if test -n "$GAS"; then
7789   { echo "$as_me:$LINENO: result: $GAS" >&5
7790 echo "${ECHO_T}$GAS" >&6; }
7791 else
7792   { echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6; }
7794 fi
7795
7796
7797   test -n "$GAS" && break
7798 done
7799
7800
7801 { echo "$as_me:$LINENO: checking for linker version" >&5
7802 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7803 if test "${llvm_cv_link_version+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806
7807    version_string="$(ld -v 2>&1 | head -1)"
7808
7809    # Check for ld64.
7810    if (echo "$version_string" | grep -q "ld64"); then
7811      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7812    else
7813      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7814    fi
7815
7816 fi
7817 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7818 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7819
7820 cat >>confdefs.h <<_ACEOF
7821 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7822 _ACEOF
7823
7824
7825
7826 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7827 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7828 if test "${llvm_cv_link_use_r+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831    ac_ext=c
7832 ac_cpp='$CPP $CPPFLAGS'
7833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836
7837   oldcflags="$CFLAGS"
7838   CFLAGS="$CFLAGS -Wl,-R."
7839   cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h.  */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h.  */
7845
7846 int
7847 main ()
7848 {
7849
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 if { (ac_try="$ac_link"
7856 case "(($ac_try" in
7857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858   *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861   (eval "$ac_link") 2>conftest.er1
7862   ac_status=$?
7863   grep -v '^ *+' conftest.er1 >conftest.err
7864   rm -f conftest.er1
7865   cat conftest.err >&5
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); } &&
7868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7869   { (case "(($ac_try" in
7870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871   *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874   (eval "$ac_try") 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; } &&
7878          { ac_try='test -s conftest$ac_exeext'
7879   { (case "(($ac_try" in
7880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881   *) ac_try_echo=$ac_try;;
7882 esac
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884   (eval "$ac_try") 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); }; }; then
7888   llvm_cv_link_use_r=yes
7889 else
7890   echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893         llvm_cv_link_use_r=no
7894 fi
7895
7896 rm -f core conftest.err conftest.$ac_objext \
7897       conftest$ac_exeext conftest.$ac_ext
7898   CFLAGS="$oldcflags"
7899   ac_ext=c
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905
7906 fi
7907 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7908 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7909 if test "$llvm_cv_link_use_r" = yes ; then
7910
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_LINK_R 1
7913 _ACEOF
7914
7915   fi
7916
7917
7918 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7919 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7920 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923    ac_ext=c
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928
7929   oldcflags="$CFLAGS"
7930   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7931   cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h.  */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h.  */
7937
7938 int
7939 main ()
7940 {
7941
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7948 case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_link") 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } &&
7960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7961   { (case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_try") 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; } &&
7970          { ac_try='test -s conftest$ac_exeext'
7971   { (case "(($ac_try" in
7972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973   *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976   (eval "$ac_try") 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; }; then
7980   llvm_cv_link_use_export_dynamic=yes
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985         llvm_cv_link_use_export_dynamic=no
7986 fi
7987
7988 rm -f core conftest.err conftest.$ac_objext \
7989       conftest$ac_exeext conftest.$ac_ext
7990   CFLAGS="$oldcflags"
7991   ac_ext=c
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997
7998 fi
7999 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8000 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8001 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8002
8003 cat >>confdefs.h <<\_ACEOF
8004 #define HAVE_LINK_EXPORT_DYNAMIC 1
8005 _ACEOF
8006
8007   fi
8008
8009
8010 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8011 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8012 if test "${llvm_cv_link_use_version_script+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015    ac_ext=c
8016 ac_cpp='$CPP $CPPFLAGS'
8017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020
8021   oldcflags="$CFLAGS"
8022
8023   # The following code is from the autoconf manual,
8024   # "11.13: Limitations of Usual Tools".
8025   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8026   # Use mktemp if possible; otherwise fall back on mkdir,
8027   # with $RANDOM to make collisions less likely.
8028   : ${TMPDIR=/tmp}
8029   {
8030     tmp=`
8031       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8032     ` &&
8033     test -n "$tmp" && test -d "$tmp"
8034   } || {
8035     tmp=$TMPDIR/foo$$-$RANDOM
8036     (umask 077 && mkdir "$tmp")
8037   } || exit $?
8038
8039   echo "{" > "$tmp/export.map"
8040   echo "  global: main;" >> "$tmp/export.map"
8041   echo "  local: *;" >> "$tmp/export.map"
8042   echo "};" >> "$tmp/export.map"
8043
8044   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8045   cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h.  */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h.  */
8051
8052 int
8053 main ()
8054 {
8055
8056   ;
8057   return 0;
8058 }
8059 _ACEOF
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (ac_try="$ac_link"
8062 case "(($ac_try" in
8063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064   *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067   (eval "$ac_link") 2>conftest.er1
8068   ac_status=$?
8069   grep -v '^ *+' conftest.er1 >conftest.err
8070   rm -f conftest.er1
8071   cat conftest.err >&5
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); } &&
8074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8075   { (case "(($ac_try" in
8076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077   *) ac_try_echo=$ac_try;;
8078 esac
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080   (eval "$ac_try") 2>&5
8081   ac_status=$?
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); }; } &&
8084          { ac_try='test -s conftest$ac_exeext'
8085   { (case "(($ac_try" in
8086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087   *) ac_try_echo=$ac_try;;
8088 esac
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090   (eval "$ac_try") 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; }; then
8094   llvm_cv_link_use_version_script=yes
8095 else
8096   echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099         llvm_cv_link_use_version_script=no
8100 fi
8101
8102 rm -f core conftest.err conftest.$ac_objext \
8103       conftest$ac_exeext conftest.$ac_ext
8104   rm "$tmp/export.map"
8105   rmdir "$tmp"
8106   CFLAGS="$oldcflags"
8107   ac_ext=c
8108 ac_cpp='$CPP $CPPFLAGS'
8109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113
8114 fi
8115 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8116 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8117 if test "$llvm_cv_link_use_version_script" = yes ; then
8118   HAVE_LINK_VERSION_SCRIPT=1
8119
8120   fi
8121
8122
8123
8124
8125 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8126 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8127 if test "${ac_cv_c_const+set}" = set; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136
8137 int
8138 main ()
8139 {
8140 /* FIXME: Include the comments suggested by Paul. */
8141 #ifndef __cplusplus
8142   /* Ultrix mips cc rejects this.  */
8143   typedef int charset[2];
8144   const charset x;
8145   /* SunOS 4.1.1 cc rejects this.  */
8146   char const *const *ccp;
8147   char **p;
8148   /* NEC SVR4.0.2 mips cc rejects this.  */
8149   struct point {int x, y;};
8150   static struct point const zero = {0,0};
8151   /* AIX XL C 1.02.0.0 rejects this.
8152      It does not let you subtract one const X* pointer from another in
8153      an arm of an if-expression whose if-part is not a constant
8154      expression */
8155   const char *g = "string";
8156   ccp = &g + (g ? g-g : 0);
8157   /* HPUX 7.0 cc rejects these. */
8158   ++ccp;
8159   p = (char**) ccp;
8160   ccp = (char const *const *) p;
8161   { /* SCO 3.2v4 cc rejects this.  */
8162     char *t;
8163     char const *s = 0 ? (char *) 0 : (char const *) 0;
8164
8165     *t++ = 0;
8166     if (s) return 0;
8167   }
8168   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8169     int x[] = {25, 17};
8170     const int *foo = &x[0];
8171     ++foo;
8172   }
8173   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8174     typedef const int *iptr;
8175     iptr p = 0;
8176     ++p;
8177   }
8178   { /* AIX XL C 1.02.0.0 rejects this saying
8179        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8180     struct s { int j; const int *ap[3]; };
8181     struct s *b; b->j = 5;
8182   }
8183   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8184     const int foo = 10;
8185     if (!foo) return 0;
8186   }
8187   return !x[0] && !zero.x;
8188 #endif
8189
8190   ;
8191   return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8196 case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201   (eval "$ac_compile") 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209   { (case "(($ac_try" in
8210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211   *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214   (eval "$ac_try") 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); }; } &&
8218          { ac_try='test -s conftest.$ac_objext'
8219   { (case "(($ac_try" in
8220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221   *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224   (eval "$ac_try") 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; }; then
8228   ac_cv_c_const=yes
8229 else
8230   echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8232
8233         ac_cv_c_const=no
8234 fi
8235
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237 fi
8238 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8239 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8240 if test $ac_cv_c_const = no; then
8241
8242 cat >>confdefs.h <<\_ACEOF
8243 #define const
8244 _ACEOF
8245
8246 fi
8247
8248
8249
8250
8251
8252
8253 ac_header_dirent=no
8254 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8255   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8256 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8257 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267 #include <sys/types.h>
8268 #include <$ac_hdr>
8269
8270 int
8271 main ()
8272 {
8273 if ((DIR *) 0)
8274 return 0;
8275   ;
8276   return 0;
8277 }
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8281 case "(($ac_try" in
8282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283   *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286   (eval "$ac_compile") 2>conftest.er1
8287   ac_status=$?
8288   grep -v '^ *+' conftest.er1 >conftest.err
8289   rm -f conftest.er1
8290   cat conftest.err >&5
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); } &&
8293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294   { (case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_try") 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; } &&
8303          { ac_try='test -s conftest.$ac_objext'
8304   { (case "(($ac_try" in
8305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306   *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309   (eval "$ac_try") 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); }; }; then
8313   eval "$as_ac_Header=yes"
8314 else
8315   echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318         eval "$as_ac_Header=no"
8319 fi
8320
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 fi
8323 ac_res=`eval echo '${'$as_ac_Header'}'`
8324                { echo "$as_me:$LINENO: result: $ac_res" >&5
8325 echo "${ECHO_T}$ac_res" >&6; }
8326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8327   cat >>confdefs.h <<_ACEOF
8328 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8329 _ACEOF
8330
8331 ac_header_dirent=$ac_hdr; break
8332 fi
8333
8334 done
8335 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8336 if test $ac_header_dirent = dirent.h; then
8337   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8338 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8339 if test "${ac_cv_search_opendir+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   ac_func_search_save_LIBS=$LIBS
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349
8350 /* Override any GCC internal prototype to avoid an error.
8351    Use char because int might match the return type of a GCC
8352    builtin and then its argument prototype would still apply.  */
8353 #ifdef __cplusplus
8354 extern "C"
8355 #endif
8356 char opendir ();
8357 int
8358 main ()
8359 {
8360 return opendir ();
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 for ac_lib in '' dir; do
8366   if test -z "$ac_lib"; then
8367     ac_res="none required"
8368   else
8369     ac_res=-l$ac_lib
8370     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8371   fi
8372   rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (ac_try="$ac_link"
8374 case "(($ac_try" in
8375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376   *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379   (eval "$ac_link") 2>conftest.er1
8380   ac_status=$?
8381   grep -v '^ *+' conftest.er1 >conftest.err
8382   rm -f conftest.er1
8383   cat conftest.err >&5
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); } &&
8386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8387   { (case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392   (eval "$ac_try") 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); }; } &&
8396          { ac_try='test -s conftest$ac_exeext'
8397   { (case "(($ac_try" in
8398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399   *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402   (eval "$ac_try") 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   ac_cv_search_opendir=$ac_res
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411
8412 fi
8413
8414 rm -f core conftest.err conftest.$ac_objext \
8415       conftest$ac_exeext
8416   if test "${ac_cv_search_opendir+set}" = set; then
8417   break
8418 fi
8419 done
8420 if test "${ac_cv_search_opendir+set}" = set; then
8421   :
8422 else
8423   ac_cv_search_opendir=no
8424 fi
8425 rm conftest.$ac_ext
8426 LIBS=$ac_func_search_save_LIBS
8427 fi
8428 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8429 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8430 ac_res=$ac_cv_search_opendir
8431 if test "$ac_res" != no; then
8432   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8433
8434 fi
8435
8436 else
8437   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8438 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8439 if test "${ac_cv_search_opendir+set}" = set; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   ac_func_search_save_LIBS=$LIBS
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449
8450 /* Override any GCC internal prototype to avoid an error.
8451    Use char because int might match the return type of a GCC
8452    builtin and then its argument prototype would still apply.  */
8453 #ifdef __cplusplus
8454 extern "C"
8455 #endif
8456 char opendir ();
8457 int
8458 main ()
8459 {
8460 return opendir ();
8461   ;
8462   return 0;
8463 }
8464 _ACEOF
8465 for ac_lib in '' x; do
8466   if test -z "$ac_lib"; then
8467     ac_res="none required"
8468   else
8469     ac_res=-l$ac_lib
8470     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8471   fi
8472   rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8474 case "(($ac_try" in
8475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476   *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479   (eval "$ac_link") 2>conftest.er1
8480   ac_status=$?
8481   grep -v '^ *+' conftest.er1 >conftest.err
8482   rm -f conftest.er1
8483   cat conftest.err >&5
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } &&
8486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487   { (case "(($ac_try" in
8488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489   *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492   (eval "$ac_try") 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; } &&
8496          { ac_try='test -s conftest$ac_exeext'
8497   { (case "(($ac_try" in
8498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499   *) ac_try_echo=$ac_try;;
8500 esac
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502   (eval "$ac_try") 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   ac_cv_search_opendir=$ac_res
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511
8512 fi
8513
8514 rm -f core conftest.err conftest.$ac_objext \
8515       conftest$ac_exeext
8516   if test "${ac_cv_search_opendir+set}" = set; then
8517   break
8518 fi
8519 done
8520 if test "${ac_cv_search_opendir+set}" = set; then
8521   :
8522 else
8523   ac_cv_search_opendir=no
8524 fi
8525 rm conftest.$ac_ext
8526 LIBS=$ac_func_search_save_LIBS
8527 fi
8528 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8529 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8530 ac_res=$ac_cv_search_opendir
8531 if test "$ac_res" != no; then
8532   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8533
8534 fi
8535
8536 fi
8537
8538
8539 for ac_header in dlfcn.h
8540 do
8541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8543   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 fi
8548 ac_res=`eval echo '${'$as_ac_Header'}'`
8549                { echo "$as_me:$LINENO: result: $ac_res" >&5
8550 echo "${ECHO_T}$ac_res" >&6; }
8551 else
8552   # Is the header compilable?
8553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h.  */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h.  */
8561 $ac_includes_default
8562 #include <$ac_header>
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568   *) ac_try_echo=$ac_try;;
8569 esac
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571   (eval "$ac_compile") 2>conftest.er1
8572   ac_status=$?
8573   grep -v '^ *+' conftest.er1 >conftest.err
8574   rm -f conftest.er1
8575   cat conftest.err >&5
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } &&
8578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579   { (case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584   (eval "$ac_try") 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; } &&
8588          { ac_try='test -s conftest.$ac_objext'
8589   { (case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594   (eval "$ac_try") 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; }; then
8598   ac_header_compiler=yes
8599 else
8600   echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603         ac_header_compiler=no
8604 fi
8605
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6; }
8609
8610 # Is the header present?
8611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h.  */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h.  */
8619 #include <$ac_header>
8620 _ACEOF
8621 if { (ac_try="$ac_cpp conftest.$ac_ext"
8622 case "(($ac_try" in
8623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624   *) ac_try_echo=$ac_try;;
8625 esac
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8628   ac_status=$?
8629   grep -v '^ *+' conftest.er1 >conftest.err
8630   rm -f conftest.er1
8631   cat conftest.err >&5
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); } >/dev/null; then
8634   if test -s conftest.err; then
8635     ac_cpp_err=$ac_c_preproc_warn_flag
8636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8637   else
8638     ac_cpp_err=
8639   fi
8640 else
8641   ac_cpp_err=yes
8642 fi
8643 if test -z "$ac_cpp_err"; then
8644   ac_header_preproc=yes
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649   ac_header_preproc=no
8650 fi
8651
8652 rm -f conftest.err conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8654 echo "${ECHO_T}$ac_header_preproc" >&6; }
8655
8656 # So?  What about this header?
8657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8658   yes:no: )
8659     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8663     ac_header_preproc=yes
8664     ;;
8665   no:yes:* )
8666     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8668     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8669 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8670     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8673 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8678     ( cat <<\_ASBOX
8679 ## ----------------------------------- ##
8680 ## Report this to llvmbugs@cs.uiuc.edu ##
8681 ## ----------------------------------- ##
8682 _ASBOX
8683      ) | sed "s/^/$as_me: WARNING:     /" >&2
8684     ;;
8685 esac
8686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8689   echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691   eval "$as_ac_Header=\$ac_header_preproc"
8692 fi
8693 ac_res=`eval echo '${'$as_ac_Header'}'`
8694                { echo "$as_me:$LINENO: result: $ac_res" >&5
8695 echo "${ECHO_T}$ac_res" >&6; }
8696
8697 fi
8698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8699   cat >>confdefs.h <<_ACEOF
8700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8701 _ACEOF
8702
8703 fi
8704
8705 done
8706
8707 # Check whether --enable-ltdl-install was given.
8708 if test "${enable_ltdl_install+set}" = set; then
8709   enableval=$enable_ltdl_install;
8710 fi
8711
8712
8713
8714
8715 if test x"${enable_ltdl_install-no}" != xno; then
8716   INSTALL_LTDL_TRUE=
8717   INSTALL_LTDL_FALSE='#'
8718 else
8719   INSTALL_LTDL_TRUE='#'
8720   INSTALL_LTDL_FALSE=
8721 fi
8722
8723
8724
8725 if test x"${enable_ltdl_convenience-no}" != xno; then
8726   CONVENIENCE_LTDL_TRUE=
8727   CONVENIENCE_LTDL_FALSE='#'
8728 else
8729   CONVENIENCE_LTDL_TRUE='#'
8730   CONVENIENCE_LTDL_FALSE=
8731 fi
8732
8733
8734 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8735 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8736 library_names_spec=
8737 libname_spec='lib$name'
8738 soname_spec=
8739 shrext_cmds=".so"
8740 postinstall_cmds=
8741 postuninstall_cmds=
8742 finish_cmds=
8743 finish_eval=
8744 shlibpath_var=
8745 shlibpath_overrides_runpath=unknown
8746 version_type=none
8747 dynamic_linker="$host_os ld.so"
8748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8749 if test "$GCC" = yes; then
8750   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8752     # if the path contains ";" then we assume it to be the separator
8753     # otherwise default to the standard path separator (i.e. ":") - it is
8754     # assumed that no part of a normal pathname contains ";" but that should
8755     # okay in the real world where ";" in dirpaths is itself problematic.
8756     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8757   else
8758     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8759   fi
8760 else
8761   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8762 fi
8763 need_lib_prefix=unknown
8764 hardcode_into_libs=no
8765
8766 # when you set need_version to no, make sure it does not cause -set_version
8767 # flags to be left without arguments
8768 need_version=unknown
8769
8770 case $host_os in
8771 aix3*)
8772   version_type=linux
8773   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8774   shlibpath_var=LIBPATH
8775
8776   # AIX 3 has no versioning support, so we append a major version to the name.
8777   soname_spec='${libname}${release}${shared_ext}$major'
8778   ;;
8779
8780 aix4* | aix5*)
8781   version_type=linux
8782   need_lib_prefix=no
8783   need_version=no
8784   hardcode_into_libs=yes
8785   if test "$host_cpu" = ia64; then
8786     # AIX 5 supports IA64
8787     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8788     shlibpath_var=LD_LIBRARY_PATH
8789   else
8790     # With GCC up to 2.95.x, collect2 would create an import file
8791     # for dependence libraries.  The import file would start with
8792     # the line `#! .'.  This would cause the generated library to
8793     # depend on `.', always an invalid library.  This was fixed in
8794     # development snapshots of GCC prior to 3.0.
8795     case $host_os in
8796       aix4 | aix4.[01] | aix4.[01].*)
8797       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8798            echo ' yes '
8799            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8800         :
8801       else
8802         can_build_shared=no
8803       fi
8804       ;;
8805     esac
8806     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8807     # soname into executable. Probably we can add versioning support to
8808     # collect2, so additional links can be useful in future.
8809     if test "$aix_use_runtimelinking" = yes; then
8810       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8811       # instead of lib<name>.a to let people know that these are not
8812       # typical AIX shared libraries.
8813       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814     else
8815       # We preserve .a as extension for shared libraries through AIX4.2
8816       # and later when we are not doing run time linking.
8817       library_names_spec='${libname}${release}.a $libname.a'
8818       soname_spec='${libname}${release}${shared_ext}$major'
8819     fi
8820     shlibpath_var=LIBPATH
8821   fi
8822   ;;
8823
8824 amigaos*)
8825   library_names_spec='$libname.ixlibrary $libname.a'
8826   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8827   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'
8828   ;;
8829
8830 beos*)
8831   library_names_spec='${libname}${shared_ext}'
8832   dynamic_linker="$host_os ld.so"
8833   shlibpath_var=LIBRARY_PATH
8834   ;;
8835
8836 bsdi[45]*)
8837   version_type=linux
8838   need_version=no
8839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840   soname_spec='${libname}${release}${shared_ext}$major'
8841   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8842   shlibpath_var=LD_LIBRARY_PATH
8843   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8844   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8845   # the default ld.so.conf also contains /usr/contrib/lib and
8846   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8847   # libtool to hard-code these into programs
8848   ;;
8849
8850 cygwin* | mingw* | pw32*)
8851   version_type=windows
8852   shrext_cmds=".dll"
8853   need_version=no
8854   need_lib_prefix=no
8855
8856   case $GCC,$host_os in
8857   yes,cygwin* | yes,mingw* | yes,pw32*)
8858     library_names_spec='$libname.dll.a'
8859     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8860     postinstall_cmds='base_file=`basename \${file}`~
8861       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8862       dldir=$destdir/`dirname \$dlpath`~
8863       test -d \$dldir || mkdir -p \$dldir~
8864       $install_prog $dir/$dlname \$dldir/$dlname~
8865       chmod a+x \$dldir/$dlname'
8866     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8867       dlpath=$dir/\$dldll~
8868        $rm \$dlpath'
8869     shlibpath_overrides_runpath=yes
8870
8871     case $host_os in
8872     cygwin*)
8873       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8874       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8876       ;;
8877     mingw*)
8878       # MinGW DLLs use traditional 'lib' prefix
8879       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8882         # It is most probably a Windows format PATH printed by
8883         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8884         # path with ; separators, and with drive letters. We can handle the
8885         # drive letters (cygwin fileutils understands them), so leave them,
8886         # especially as we might pass files found there to a mingw objdump,
8887         # which wouldn't understand a cygwinified path. Ahh.
8888         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8889       else
8890         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8891       fi
8892       ;;
8893     pw32*)
8894       # pw32 DLLs use 'pw' prefix rather than 'lib'
8895       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8896       ;;
8897     esac
8898     ;;
8899
8900   *)
8901     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8902     ;;
8903   esac
8904   dynamic_linker='Win32 ld.exe'
8905   # FIXME: first we should search . and the directory the executable is in
8906   shlibpath_var=PATH
8907   ;;
8908
8909 darwin* | rhapsody*)
8910   dynamic_linker="$host_os dyld"
8911   version_type=darwin
8912   need_lib_prefix=no
8913   need_version=no
8914   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8915   soname_spec='${libname}${release}${major}$shared_ext'
8916   shlibpath_overrides_runpath=yes
8917   shlibpath_var=DYLD_LIBRARY_PATH
8918   shrext_cmds='.dylib'
8919   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8920   if test "$GCC" = yes; then
8921     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"`
8922   else
8923     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8924   fi
8925   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8926   ;;
8927
8928 dgux*)
8929   version_type=linux
8930   need_lib_prefix=no
8931   need_version=no
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8933   soname_spec='${libname}${release}${shared_ext}$major'
8934   shlibpath_var=LD_LIBRARY_PATH
8935   ;;
8936
8937 freebsd1.*)
8938   dynamic_linker=no
8939   ;;
8940
8941 kfreebsd*-gnu)
8942   version_type=linux
8943   need_lib_prefix=no
8944   need_version=no
8945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8946   soname_spec='${libname}${release}${shared_ext}$major'
8947   shlibpath_var=LD_LIBRARY_PATH
8948   shlibpath_overrides_runpath=no
8949   hardcode_into_libs=yes
8950   dynamic_linker='GNU ld.so'
8951   ;;
8952
8953 freebsd* | dragonfly*)
8954   # DragonFly does not have aout.  When/if they implement a new
8955   # versioning mechanism, adjust this.
8956   if test -x /usr/bin/objformat; then
8957     objformat=`/usr/bin/objformat`
8958   else
8959     case $host_os in
8960     freebsd[123].*) objformat=aout ;;
8961     *) objformat=elf ;;
8962     esac
8963   fi
8964   version_type=freebsd-$objformat
8965   case $version_type in
8966     freebsd-elf*)
8967       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8968       need_version=no
8969       need_lib_prefix=no
8970       ;;
8971     freebsd-*)
8972       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8973       need_version=yes
8974       ;;
8975   esac
8976   shlibpath_var=LD_LIBRARY_PATH
8977   case $host_os in
8978   freebsd2.*)
8979     shlibpath_overrides_runpath=yes
8980     ;;
8981   freebsd3.[01]* | freebsdelf3.[01]*)
8982     shlibpath_overrides_runpath=yes
8983     hardcode_into_libs=yes
8984     ;;
8985   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8986   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8987     shlibpath_overrides_runpath=no
8988     hardcode_into_libs=yes
8989     ;;
8990   freebsd*) # from 4.6 on
8991     shlibpath_overrides_runpath=yes
8992     hardcode_into_libs=yes
8993     ;;
8994   esac
8995   ;;
8996
8997 gnu*)
8998   version_type=linux
8999   need_lib_prefix=no
9000   need_version=no
9001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9002   soname_spec='${libname}${release}${shared_ext}$major'
9003   shlibpath_var=LD_LIBRARY_PATH
9004   hardcode_into_libs=yes
9005   ;;
9006
9007 hpux9* | hpux10* | hpux11*)
9008   # Give a soname corresponding to the major version so that dld.sl refuses to
9009   # link against other versions.
9010   version_type=sunos
9011   need_lib_prefix=no
9012   need_version=no
9013   case $host_cpu in
9014   ia64*)
9015     shrext_cmds='.so'
9016     hardcode_into_libs=yes
9017     dynamic_linker="$host_os dld.so"
9018     shlibpath_var=LD_LIBRARY_PATH
9019     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021     soname_spec='${libname}${release}${shared_ext}$major'
9022     if test "X$HPUX_IA64_MODE" = X32; then
9023       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9024     else
9025       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9026     fi
9027     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9028     ;;
9029    hppa*64*)
9030      shrext_cmds='.sl'
9031      hardcode_into_libs=yes
9032      dynamic_linker="$host_os dld.sl"
9033      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9034      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9035      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036      soname_spec='${libname}${release}${shared_ext}$major'
9037      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9038      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039      ;;
9040    *)
9041     shrext_cmds='.sl'
9042     dynamic_linker="$host_os dld.sl"
9043     shlibpath_var=SHLIB_PATH
9044     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046     soname_spec='${libname}${release}${shared_ext}$major'
9047     ;;
9048   esac
9049   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9050   postinstall_cmds='chmod 555 $lib'
9051   ;;
9052
9053 interix3*)
9054   version_type=linux
9055   need_lib_prefix=no
9056   need_version=no
9057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058   soname_spec='${libname}${release}${shared_ext}$major'
9059   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   shlibpath_overrides_runpath=no
9062   hardcode_into_libs=yes
9063   ;;
9064
9065 irix5* | irix6* | nonstopux*)
9066   case $host_os in
9067     nonstopux*) version_type=nonstopux ;;
9068     *)
9069         if test "$lt_cv_prog_gnu_ld" = yes; then
9070                 version_type=linux
9071         else
9072                 version_type=irix
9073         fi ;;
9074   esac
9075   need_lib_prefix=no
9076   need_version=no
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9079   case $host_os in
9080   irix5* | nonstopux*)
9081     libsuff= shlibsuff=
9082     ;;
9083   *)
9084     case $LD in # libtool.m4 will add one of these switches to LD
9085     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9086       libsuff= shlibsuff= libmagic=32-bit;;
9087     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9088       libsuff=32 shlibsuff=N32 libmagic=N32;;
9089     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9090       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9091     *) libsuff= shlibsuff= libmagic=never-match;;
9092     esac
9093     ;;
9094   esac
9095   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9096   shlibpath_overrides_runpath=no
9097   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9098   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9099   hardcode_into_libs=yes
9100   ;;
9101
9102 # No shared lib support for Linux oldld, aout, or coff.
9103 linux*oldld* | linux*aout* | linux*coff*)
9104   dynamic_linker=no
9105   ;;
9106
9107 # This must be Linux ELF.
9108 linux*)
9109   version_type=linux
9110   need_lib_prefix=no
9111   need_version=no
9112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113   soname_spec='${libname}${release}${shared_ext}$major'
9114   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9115   shlibpath_var=LD_LIBRARY_PATH
9116   shlibpath_overrides_runpath=no
9117   # This implies no fast_install, which is unacceptable.
9118   # Some rework will be needed to allow for fast_install
9119   # before this can be enabled.
9120   hardcode_into_libs=yes
9121
9122   # Append ld.so.conf contents to the search path
9123   if test -f /etc/ld.so.conf; then
9124     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' ' '`
9125     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9126   fi
9127
9128   # We used to test for /lib/ld.so.1 and disable shared libraries on
9129   # powerpc, because MkLinux only supported shared libraries with the
9130   # GNU dynamic linker.  Since this was broken with cross compilers,
9131   # most powerpc-linux boxes support dynamic linking these days and
9132   # people can always --disable-shared, the test was removed, and we
9133   # assume the GNU/Linux dynamic linker is in use.
9134   dynamic_linker='GNU/Linux ld.so'
9135   ;;
9136
9137 knetbsd*-gnu)
9138   version_type=linux
9139   need_lib_prefix=no
9140   need_version=no
9141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9142   soname_spec='${libname}${release}${shared_ext}$major'
9143   shlibpath_var=LD_LIBRARY_PATH
9144   shlibpath_overrides_runpath=no
9145   hardcode_into_libs=yes
9146   dynamic_linker='GNU ld.so'
9147   ;;
9148
9149 netbsd*)
9150   version_type=sunos
9151   need_lib_prefix=no
9152   need_version=no
9153   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9156     dynamic_linker='NetBSD (a.out) ld.so'
9157   else
9158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9159     soname_spec='${libname}${release}${shared_ext}$major'
9160     dynamic_linker='NetBSD ld.elf_so'
9161   fi
9162   shlibpath_var=LD_LIBRARY_PATH
9163   shlibpath_overrides_runpath=yes
9164   hardcode_into_libs=yes
9165   ;;
9166
9167 newsos6)
9168   version_type=linux
9169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170   shlibpath_var=LD_LIBRARY_PATH
9171   shlibpath_overrides_runpath=yes
9172   ;;
9173
9174 nto-qnx*)
9175   version_type=linux
9176   need_lib_prefix=no
9177   need_version=no
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179   soname_spec='${libname}${release}${shared_ext}$major'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   shlibpath_overrides_runpath=yes
9182   ;;
9183
9184 openbsd*)
9185   version_type=sunos
9186   sys_lib_dlsearch_path_spec="/usr/lib"
9187   need_lib_prefix=no
9188   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9189   case $host_os in
9190     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9191     *)                         need_version=no  ;;
9192   esac
9193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195   shlibpath_var=LD_LIBRARY_PATH
9196   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9197     case $host_os in
9198       openbsd2.[89] | openbsd2.[89].*)
9199         shlibpath_overrides_runpath=no
9200         ;;
9201       *)
9202         shlibpath_overrides_runpath=yes
9203         ;;
9204       esac
9205   else
9206     shlibpath_overrides_runpath=yes
9207   fi
9208   ;;
9209
9210 os2*)
9211   libname_spec='$name'
9212   shrext_cmds=".dll"
9213   need_lib_prefix=no
9214   library_names_spec='$libname${shared_ext} $libname.a'
9215   dynamic_linker='OS/2 ld.exe'
9216   shlibpath_var=LIBPATH
9217   ;;
9218
9219 osf3* | osf4* | osf5*)
9220   version_type=osf
9221   need_lib_prefix=no
9222   need_version=no
9223   soname_spec='${libname}${release}${shared_ext}$major'
9224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225   shlibpath_var=LD_LIBRARY_PATH
9226   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9227   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9228   ;;
9229
9230 solaris*)
9231   version_type=linux
9232   need_lib_prefix=no
9233   need_version=no
9234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235   soname_spec='${libname}${release}${shared_ext}$major'
9236   shlibpath_var=LD_LIBRARY_PATH
9237   shlibpath_overrides_runpath=yes
9238   hardcode_into_libs=yes
9239   # ldd complains unless libraries are executable
9240   postinstall_cmds='chmod +x $lib'
9241   ;;
9242
9243 sunos4*)
9244   version_type=sunos
9245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9247   shlibpath_var=LD_LIBRARY_PATH
9248   shlibpath_overrides_runpath=yes
9249   if test "$with_gnu_ld" = yes; then
9250     need_lib_prefix=no
9251   fi
9252   need_version=yes
9253   ;;
9254
9255 sysv4 | sysv4.3*)
9256   version_type=linux
9257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258   soname_spec='${libname}${release}${shared_ext}$major'
9259   shlibpath_var=LD_LIBRARY_PATH
9260   case $host_vendor in
9261     sni)
9262       shlibpath_overrides_runpath=no
9263       need_lib_prefix=no
9264       export_dynamic_flag_spec='${wl}-Blargedynsym'
9265       runpath_var=LD_RUN_PATH
9266       ;;
9267     siemens)
9268       need_lib_prefix=no
9269       ;;
9270     motorola)
9271       need_lib_prefix=no
9272       need_version=no
9273       shlibpath_overrides_runpath=no
9274       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9275       ;;
9276   esac
9277   ;;
9278
9279 sysv4*MP*)
9280   if test -d /usr/nec ;then
9281     version_type=linux
9282     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9283     soname_spec='$libname${shared_ext}.$major'
9284     shlibpath_var=LD_LIBRARY_PATH
9285   fi
9286   ;;
9287
9288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9289   version_type=freebsd-elf
9290   need_lib_prefix=no
9291   need_version=no
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293   soname_spec='${libname}${release}${shared_ext}$major'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   hardcode_into_libs=yes
9296   if test "$with_gnu_ld" = yes; then
9297     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9298     shlibpath_overrides_runpath=no
9299   else
9300     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9301     shlibpath_overrides_runpath=yes
9302     case $host_os in
9303       sco3.2v5*)
9304         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9305         ;;
9306     esac
9307   fi
9308   sys_lib_dlsearch_path_spec='/usr/lib'
9309   ;;
9310
9311 uts4*)
9312   version_type=linux
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314   soname_spec='${libname}${release}${shared_ext}$major'
9315   shlibpath_var=LD_LIBRARY_PATH
9316   ;;
9317
9318 *)
9319   dynamic_linker=no
9320   ;;
9321 esac
9322 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9323 echo "${ECHO_T}$dynamic_linker" >&6; }
9324 test "$dynamic_linker" = no && can_build_shared=no
9325
9326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9327 if test "$GCC" = yes; then
9328   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9329 fi
9330
9331
9332 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9333 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9334 if test "${libltdl_cv_shlibext+set}" = set; then
9335   echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337
9338 module=yes
9339 eval libltdl_cv_shlibext=$shrext_cmds
9340
9341 fi
9342 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9343 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9344 if test -n "$libltdl_cv_shlibext"; then
9345
9346 cat >>confdefs.h <<_ACEOF
9347 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9348 _ACEOF
9349
9350 fi
9351
9352
9353 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9354 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9355 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9356   echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358   libltdl_cv_shlibpath_var="$shlibpath_var"
9359 fi
9360 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9361 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9362 if test -n "$libltdl_cv_shlibpath_var"; then
9363
9364 cat >>confdefs.h <<_ACEOF
9365 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9366 _ACEOF
9367
9368 fi
9369
9370
9371 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9372 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9373 if test "${libltdl_cv_sys_search_path+set}" = set; then
9374   echo $ECHO_N "(cached) $ECHO_C" >&6
9375 else
9376   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9377 fi
9378 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9379 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9380 if test -n "$libltdl_cv_sys_search_path"; then
9381   sys_search_path=
9382   for dir in $libltdl_cv_sys_search_path; do
9383     if test -z "$sys_search_path"; then
9384       sys_search_path="$dir"
9385     else
9386       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9387     fi
9388   done
9389
9390 cat >>confdefs.h <<_ACEOF
9391 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9392 _ACEOF
9393
9394 fi
9395
9396 { echo "$as_me:$LINENO: checking for objdir" >&5
9397 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9398 if test "${libltdl_cv_objdir+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401   libltdl_cv_objdir="$objdir"
9402   if test -n "$objdir"; then
9403     :
9404   else
9405     rm -f .libs 2>/dev/null
9406     mkdir .libs 2>/dev/null
9407     if test -d .libs; then
9408       libltdl_cv_objdir=.libs
9409     else
9410       # MS-DOS does not allow filenames that begin with a dot.
9411       libltdl_cv_objdir=_libs
9412     fi
9413   rmdir .libs 2>/dev/null
9414   fi
9415
9416 fi
9417 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9418 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9419
9420 cat >>confdefs.h <<_ACEOF
9421 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9422 _ACEOF
9423
9424
9425
9426
9427
9428
9429 # Check for command to grab the raw symbol name followed by C symbol from nm.
9430 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9431 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9432 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9433   echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435
9436 # These are sane defaults that work on at least a few old systems.
9437 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9438
9439 # Character class describing NM global symbol codes.
9440 symcode='[BCDEGRST]'
9441
9442 # Regexp to match symbols that can be accessed directly from C.
9443 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9444
9445 # Transform an extracted symbol line into a proper C declaration
9446 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9447
9448 # Transform an extracted symbol line into symbol name and symbol address
9449 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'"
9450
9451 # Define system-specific variables.
9452 case $host_os in
9453 aix*)
9454   symcode='[BCDT]'
9455   ;;
9456 cygwin* | mingw* | pw32*)
9457   symcode='[ABCDGISTW]'
9458   ;;
9459 hpux*) # Its linker distinguishes data from code symbols
9460   if test "$host_cpu" = ia64; then
9461     symcode='[ABCDEGRST]'
9462   fi
9463   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9464   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'"
9465   ;;
9466 linux*)
9467   if test "$host_cpu" = ia64; then
9468     symcode='[ABCDGIRSTW]'
9469     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9470     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'"
9471   fi
9472   ;;
9473 irix* | nonstopux*)
9474   symcode='[BCDEGRST]'
9475   ;;
9476 osf*)
9477   symcode='[BCDEGQRST]'
9478   ;;
9479 solaris*)
9480   symcode='[BDRT]'
9481   ;;
9482 sco3.2v5*)
9483   symcode='[DT]'
9484   ;;
9485 sysv4.2uw2*)
9486   symcode='[DT]'
9487   ;;
9488 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9489   symcode='[ABDT]'
9490   ;;
9491 sysv4)
9492   symcode='[DFNSTU]'
9493   ;;
9494 esac
9495
9496 # Handle CRLF in mingw tool chain
9497 opt_cr=
9498 case $build_os in
9499 mingw*)
9500   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9501   ;;
9502 esac
9503
9504 # If we're using GNU nm, then use its standard symbol codes.
9505 case `$NM -V 2>&1` in
9506 *GNU* | *'with BFD'*)
9507   symcode='[ABCDGIRSTW]' ;;
9508 esac
9509
9510 # Try without a prefix undercore, then with it.
9511 for ac_symprfx in "" "_"; do
9512
9513   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9514   symxfrm="\\1 $ac_symprfx\\2 \\2"
9515
9516   # Write the raw and C identifiers.
9517   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9518
9519   # Check to see that the pipe works correctly.
9520   pipe_works=no
9521
9522   rm -f conftest*
9523   cat > conftest.$ac_ext <<EOF
9524 #ifdef __cplusplus
9525 extern "C" {
9526 #endif
9527 char nm_test_var;
9528 void nm_test_func(){}
9529 #ifdef __cplusplus
9530 }
9531 #endif
9532 int main(){nm_test_var='a';nm_test_func();return(0);}
9533 EOF
9534
9535   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536   (eval $ac_compile) 2>&5
9537   ac_status=$?
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); }; then
9540     # Now try to grab the symbols.
9541     nlist=conftest.nm
9542     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9543   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } && test -s "$nlist"; then
9547       # Try sorting and uniquifying the output.
9548       if sort "$nlist" | uniq > "$nlist"T; then
9549         mv -f "$nlist"T "$nlist"
9550       else
9551         rm -f "$nlist"T
9552       fi
9553
9554       # Make sure that we snagged all the symbols we need.
9555       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9556         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9557           cat <<EOF > conftest.$ac_ext
9558 #ifdef __cplusplus
9559 extern "C" {
9560 #endif
9561
9562 EOF
9563           # Now generate the symbol file.
9564           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9565
9566           cat <<EOF >> conftest.$ac_ext
9567 #if defined (__STDC__) && __STDC__
9568 # define lt_ptr_t void *
9569 #else
9570 # define lt_ptr_t char *
9571 # define const
9572 #endif
9573
9574 /* The mapping between symbol names and symbols. */
9575 const struct {
9576   const char *name;
9577   lt_ptr_t address;
9578 }
9579 lt_preloaded_symbols[] =
9580 {
9581 EOF
9582           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9583           cat <<\EOF >> conftest.$ac_ext
9584   {0, (lt_ptr_t) 0}
9585 };
9586
9587 #ifdef __cplusplus
9588 }
9589 #endif
9590 EOF
9591           # Now try linking the two files.
9592           mv conftest.$ac_objext conftstm.$ac_objext
9593           lt_save_LIBS="$LIBS"
9594           lt_save_CFLAGS="$CFLAGS"
9595           LIBS="conftstm.$ac_objext"
9596           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9597           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598   (eval $ac_link) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9602             pipe_works=yes
9603           fi
9604           LIBS="$lt_save_LIBS"
9605           CFLAGS="$lt_save_CFLAGS"
9606         else
9607           echo "cannot find nm_test_func in $nlist" >&5
9608         fi
9609       else
9610         echo "cannot find nm_test_var in $nlist" >&5
9611       fi
9612     else
9613       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9614     fi
9615   else
9616     echo "$progname: failed program was:" >&5
9617     cat conftest.$ac_ext >&5
9618   fi
9619   rm -f conftest* conftst*
9620
9621   # Do not use the global_symbol_pipe unless it works.
9622   if test "$pipe_works" = yes; then
9623     break
9624   else
9625     lt_cv_sys_global_symbol_pipe=
9626   fi
9627 done
9628
9629 fi
9630
9631 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9632   lt_cv_sys_global_symbol_to_cdecl=
9633 fi
9634 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9635   { echo "$as_me:$LINENO: result: failed" >&5
9636 echo "${ECHO_T}failed" >&6; }
9637 else
9638   { echo "$as_me:$LINENO: result: ok" >&5
9639 echo "${ECHO_T}ok" >&6; }
9640 fi
9641
9642
9643 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9644 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9645 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9649     libltdl_cv_preloaded_symbols=yes
9650   else
9651     libltdl_cv_preloaded_symbols=no
9652   fi
9653
9654 fi
9655 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9656 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9657 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9658
9659 cat >>confdefs.h <<\_ACEOF
9660 #define HAVE_PRELOADED_SYMBOLS 1
9661 _ACEOF
9662
9663 fi
9664
9665 LIBADD_DL=
9666
9667 ac_ext=c
9668 ac_cpp='$CPP $CPPFLAGS'
9669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9672
9673
9674 { echo "$as_me:$LINENO: checking for shl_load" >&5
9675 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9676 if test "${ac_cv_func_shl_load+set}" = set; then
9677   echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679   cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9687 #define shl_load innocuous_shl_load
9688
9689 /* System header to define __stub macros and hopefully few prototypes,
9690     which can conflict with char shl_load (); below.
9691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9692     <limits.h> exists even on freestanding compilers.  */
9693
9694 #ifdef __STDC__
9695 # include <limits.h>
9696 #else
9697 # include <assert.h>
9698 #endif
9699
9700 #undef shl_load
9701
9702 /* Override any GCC internal prototype to avoid an error.
9703    Use char because int might match the return type of a GCC
9704    builtin and then its argument prototype would still apply.  */
9705 #ifdef __cplusplus
9706 extern "C"
9707 #endif
9708 char shl_load ();
9709 /* The GNU C library defines this for functions which it implements
9710     to always fail with ENOSYS.  Some functions are actually named
9711     something starting with __ and the normal name is an alias.  */
9712 #if defined __stub_shl_load || defined __stub___shl_load
9713 choke me
9714 #endif
9715
9716 int
9717 main ()
9718 {
9719 return shl_load ();
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
9726 case "(($ac_try" in
9727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728   *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731   (eval "$ac_link") 2>conftest.er1
9732   ac_status=$?
9733   grep -v '^ *+' conftest.er1 >conftest.err
9734   rm -f conftest.er1
9735   cat conftest.err >&5
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } &&
9738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739   { (case "(($ac_try" in
9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741   *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744   (eval "$ac_try") 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); }; } &&
9748          { ac_try='test -s conftest$ac_exeext'
9749   { (case "(($ac_try" in
9750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751   *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754   (eval "$ac_try") 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; }; then
9758   ac_cv_func_shl_load=yes
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763         ac_cv_func_shl_load=no
9764 fi
9765
9766 rm -f core conftest.err conftest.$ac_objext \
9767       conftest$ac_exeext conftest.$ac_ext
9768 fi
9769 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9770 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9771 if test $ac_cv_func_shl_load = yes; then
9772
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_SHL_LOAD 1
9775 _ACEOF
9776
9777 else
9778   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9779 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9780 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   ac_check_lib_save_LIBS=$LIBS
9784 LIBS="-ldld  $LIBS"
9785 cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h.  */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h.  */
9791
9792 /* Override any GCC internal prototype to avoid an error.
9793    Use char because int might match the return type of a GCC
9794    builtin and then its argument prototype would still apply.  */
9795 #ifdef __cplusplus
9796 extern "C"
9797 #endif
9798 char shl_load ();
9799 int
9800 main ()
9801 {
9802 return shl_load ();
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (ac_try="$ac_link"
9809 case "(($ac_try" in
9810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811   *) ac_try_echo=$ac_try;;
9812 esac
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814   (eval "$ac_link") 2>conftest.er1
9815   ac_status=$?
9816   grep -v '^ *+' conftest.er1 >conftest.err
9817   rm -f conftest.er1
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9822   { (case "(($ac_try" in
9823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824   *) ac_try_echo=$ac_try;;
9825 esac
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827   (eval "$ac_try") 2>&5
9828   ac_status=$?
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); }; } &&
9831          { ac_try='test -s conftest$ac_exeext'
9832   { (case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_try") 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; }; then
9841   ac_cv_lib_dld_shl_load=yes
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846         ac_cv_lib_dld_shl_load=no
9847 fi
9848
9849 rm -f core conftest.err conftest.$ac_objext \
9850       conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9852 fi
9853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9855 if test $ac_cv_lib_dld_shl_load = yes; then
9856
9857 cat >>confdefs.h <<\_ACEOF
9858 #define HAVE_SHL_LOAD 1
9859 _ACEOF
9860
9861         LIBADD_DL="$LIBADD_DL -ldld"
9862 else
9863   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9864 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   ac_check_lib_save_LIBS=$LIBS
9869 LIBS="-ldl  $LIBS"
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h.  */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h.  */
9876
9877 /* Override any GCC internal prototype to avoid an error.
9878    Use char because int might match the return type of a GCC
9879    builtin and then its argument prototype would still apply.  */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 char dlopen ();
9884 int
9885 main ()
9886 {
9887 return dlopen ();
9888   ;
9889   return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_link") 2>conftest.er1
9900   ac_status=$?
9901   grep -v '^ *+' conftest.er1 >conftest.err
9902   rm -f conftest.er1
9903   cat conftest.err >&5
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } &&
9906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907   { (case "(($ac_try" in
9908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909   *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912   (eval "$ac_try") 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; } &&
9916          { ac_try='test -s conftest$ac_exeext'
9917   { (case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_try") 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926   ac_cv_lib_dl_dlopen=yes
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931         ac_cv_lib_dl_dlopen=no
9932 fi
9933
9934 rm -f core conftest.err conftest.$ac_objext \
9935       conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9937 fi
9938 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9940 if test $ac_cv_lib_dl_dlopen = yes; then
9941
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_LIBDL 1
9944 _ACEOF
9945
9946                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954 #if HAVE_DLFCN_H
9955 #  include <dlfcn.h>
9956 #endif
9957
9958 int
9959 main ()
9960 {
9961 dlopen(0, 0);
9962   ;
9963   return 0;
9964 }
9965 _ACEOF
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (ac_try="$ac_link"
9968 case "(($ac_try" in
9969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970   *) ac_try_echo=$ac_try;;
9971 esac
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973   (eval "$ac_link") 2>conftest.er1
9974   ac_status=$?
9975   grep -v '^ *+' conftest.er1 >conftest.err
9976   rm -f conftest.er1
9977   cat conftest.err >&5
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } &&
9980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981   { (case "(($ac_try" in
9982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983   *) ac_try_echo=$ac_try;;
9984 esac
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986   (eval "$ac_try") 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; } &&
9990          { ac_try='test -s conftest$ac_exeext'
9991   { (case "(($ac_try" in
9992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993   *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996   (eval "$ac_try") 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; }; then
10000
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_LIBDL 1
10003 _ACEOF
10004  libltdl_cv_func_dlopen="yes"
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10010 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10011 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014   ac_check_lib_save_LIBS=$LIBS
10015 LIBS="-lsvld  $LIBS"
10016 cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h.  */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h.  */
10022
10023 /* Override any GCC internal prototype to avoid an error.
10024    Use char because int might match the return type of a GCC
10025    builtin and then its argument prototype would still apply.  */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 char dlopen ();
10030 int
10031 main ()
10032 {
10033 return dlopen ();
10034   ;
10035   return 0;
10036 }
10037 _ACEOF
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042   *) ac_try_echo=$ac_try;;
10043 esac
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045   (eval "$ac_link") 2>conftest.er1
10046   ac_status=$?
10047   grep -v '^ *+' conftest.er1 >conftest.err
10048   rm -f conftest.er1
10049   cat conftest.err >&5
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } &&
10052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053   { (case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_try") 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; } &&
10062          { ac_try='test -s conftest$ac_exeext'
10063   { (case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_try") 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; }; then
10072   ac_cv_lib_svld_dlopen=yes
10073 else
10074   echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077         ac_cv_lib_svld_dlopen=no
10078 fi
10079
10080 rm -f core conftest.err conftest.$ac_objext \
10081       conftest$ac_exeext conftest.$ac_ext
10082 LIBS=$ac_check_lib_save_LIBS
10083 fi
10084 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10085 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10086 if test $ac_cv_lib_svld_dlopen = yes; then
10087
10088 cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_LIBDL 1
10090 _ACEOF
10091
10092                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10093 else
10094   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10095 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10096 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099   ac_check_lib_save_LIBS=$LIBS
10100 LIBS="-ldld  $LIBS"
10101 cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h.  */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h.  */
10107
10108 /* Override any GCC internal prototype to avoid an error.
10109    Use char because int might match the return type of a GCC
10110    builtin and then its argument prototype would still apply.  */
10111 #ifdef __cplusplus
10112 extern "C"
10113 #endif
10114 char dld_link ();
10115 int
10116 main ()
10117 {
10118 return dld_link ();
10119   ;
10120   return 0;
10121 }
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_link") 2>conftest.er1
10131   ac_status=$?
10132   grep -v '^ *+' conftest.er1 >conftest.err
10133   rm -f conftest.er1
10134   cat conftest.err >&5
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); } &&
10137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138   { (case "(($ac_try" in
10139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140   *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143   (eval "$ac_try") 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; } &&
10147          { ac_try='test -s conftest$ac_exeext'
10148   { (case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_try") 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_cv_lib_dld_dld_link=yes
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162         ac_cv_lib_dld_dld_link=no
10163 fi
10164
10165 rm -f core conftest.err conftest.$ac_objext \
10166       conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10168 fi
10169 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10170 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10171 if test $ac_cv_lib_dld_dld_link = yes; then
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_DLD 1
10175 _ACEOF
10176
10177                 LIBADD_DL="$LIBADD_DL -ldld"
10178 else
10179   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10180 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10181 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10182   echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184   cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h.  */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h.  */
10190 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10192 #define _dyld_func_lookup innocuous__dyld_func_lookup
10193
10194 /* System header to define __stub macros and hopefully few prototypes,
10195     which can conflict with char _dyld_func_lookup (); below.
10196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197     <limits.h> exists even on freestanding compilers.  */
10198
10199 #ifdef __STDC__
10200 # include <limits.h>
10201 #else
10202 # include <assert.h>
10203 #endif
10204
10205 #undef _dyld_func_lookup
10206
10207 /* Override any GCC internal prototype to avoid an error.
10208    Use char because int might match the return type of a GCC
10209    builtin and then its argument prototype would still apply.  */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char _dyld_func_lookup ();
10214 /* The GNU C library defines this for functions which it implements
10215     to always fail with ENOSYS.  Some functions are actually named
10216     something starting with __ and the normal name is an alias.  */
10217 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10218 choke me
10219 #endif
10220
10221 int
10222 main ()
10223 {
10224 return _dyld_func_lookup ();
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_link") 2>conftest.er1
10237   ac_status=$?
10238   grep -v '^ *+' conftest.er1 >conftest.err
10239   rm -f conftest.er1
10240   cat conftest.err >&5
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } &&
10243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244   { (case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_try") 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; } &&
10253          { ac_try='test -s conftest$ac_exeext'
10254   { (case "(($ac_try" in
10255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256   *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259   (eval "$ac_try") 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; }; then
10263   ac_cv_func__dyld_func_lookup=yes
10264 else
10265   echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10267
10268         ac_cv_func__dyld_func_lookup=no
10269 fi
10270
10271 rm -f core conftest.err conftest.$ac_objext \
10272       conftest$ac_exeext conftest.$ac_ext
10273 fi
10274 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10275 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10276 if test $ac_cv_func__dyld_func_lookup = yes; then
10277
10278 cat >>confdefs.h <<\_ACEOF
10279 #define HAVE_DYLD 1
10280 _ACEOF
10281
10282 fi
10283
10284
10285 fi
10286
10287
10288 fi
10289
10290
10291 fi
10292
10293 rm -f core conftest.err conftest.$ac_objext \
10294       conftest$ac_exeext conftest.$ac_ext
10295
10296 fi
10297
10298
10299 fi
10300
10301
10302 fi
10303
10304
10305 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10306 then
10307   lt_save_LIBS="$LIBS"
10308   LIBS="$LIBS $LIBADD_DL"
10309
10310 for ac_func in dlerror
10311 do
10312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10326 #define $ac_func innocuous_$ac_func
10327
10328 /* System header to define __stub macros and hopefully few prototypes,
10329     which can conflict with char $ac_func (); below.
10330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10331     <limits.h> exists even on freestanding compilers.  */
10332
10333 #ifdef __STDC__
10334 # include <limits.h>
10335 #else
10336 # include <assert.h>
10337 #endif
10338
10339 #undef $ac_func
10340
10341 /* Override any GCC internal prototype to avoid an error.
10342    Use char because int might match the return type of a GCC
10343    builtin and then its argument prototype would still apply.  */
10344 #ifdef __cplusplus
10345 extern "C"
10346 #endif
10347 char $ac_func ();
10348 /* The GNU C library defines this for functions which it implements
10349     to always fail with ENOSYS.  Some functions are actually named
10350     something starting with __ and the normal name is an alias.  */
10351 #if defined __stub_$ac_func || defined __stub___$ac_func
10352 choke me
10353 #endif
10354
10355 int
10356 main ()
10357 {
10358 return $ac_func ();
10359   ;
10360   return 0;
10361 }
10362 _ACEOF
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (ac_try="$ac_link"
10365 case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_link") 2>conftest.er1
10371   ac_status=$?
10372   grep -v '^ *+' conftest.er1 >conftest.err
10373   rm -f conftest.er1
10374   cat conftest.err >&5
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); } &&
10377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10378   { (case "(($ac_try" in
10379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380   *) ac_try_echo=$ac_try;;
10381 esac
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383   (eval "$ac_try") 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); }; } &&
10387          { ac_try='test -s conftest$ac_exeext'
10388   { (case "(($ac_try" in
10389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390   *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393   (eval "$ac_try") 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); }; }; then
10397   eval "$as_ac_var=yes"
10398 else
10399   echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402         eval "$as_ac_var=no"
10403 fi
10404
10405 rm -f core conftest.err conftest.$ac_objext \
10406       conftest$ac_exeext conftest.$ac_ext
10407 fi
10408 ac_res=`eval echo '${'$as_ac_var'}'`
10409                { echo "$as_me:$LINENO: result: $ac_res" >&5
10410 echo "${ECHO_T}$ac_res" >&6; }
10411 if test `eval echo '${'$as_ac_var'}'` = yes; then
10412   cat >>confdefs.h <<_ACEOF
10413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10414 _ACEOF
10415
10416 fi
10417 done
10418
10419   LIBS="$lt_save_LIBS"
10420 fi
10421 ac_ext=c
10422 ac_cpp='$CPP $CPPFLAGS'
10423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10426
10427
10428
10429 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10430 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10431 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   ac_cv_sys_symbol_underscore=no
10435   cat > conftest.$ac_ext <<EOF
10436 void nm_test_func(){}
10437 int main(){nm_test_func;return 0;}
10438 EOF
10439   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440   (eval $ac_compile) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; then
10444     # Now try to grab the symbols.
10445     ac_nlist=conftest.nm
10446     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10447   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10448   ac_status=$?
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } && test -s "$ac_nlist"; then
10451       # See whether the symbols have a leading underscore.
10452       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10453         ac_cv_sys_symbol_underscore=yes
10454       else
10455         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10456           :
10457         else
10458           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10459         fi
10460       fi
10461     else
10462       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10463     fi
10464   else
10465     echo "configure: failed program was:" >&5
10466     cat conftest.c >&5
10467   fi
10468   rm -rf conftest*
10469
10470 fi
10471 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10472 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10473
10474
10475 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10476   if test x"$libltdl_cv_func_dlopen" = xyes ||
10477      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10478         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10479 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10480 if test "${libltdl_cv_need_uscore+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   libltdl_cv_need_uscore=unknown
10484           save_LIBS="$LIBS"
10485           LIBS="$LIBS $LIBADD_DL"
10486           if test "$cross_compiling" = yes; then :
10487   libltdl_cv_need_uscore=cross
10488 else
10489   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490   lt_status=$lt_dlunknown
10491   cat > conftest.$ac_ext <<EOF
10492 #line 10492 "configure"
10493 #include "confdefs.h"
10494
10495 #if HAVE_DLFCN_H
10496 #include <dlfcn.h>
10497 #endif
10498
10499 #include <stdio.h>
10500
10501 #ifdef RTLD_GLOBAL
10502 #  define LT_DLGLOBAL           RTLD_GLOBAL
10503 #else
10504 #  ifdef DL_GLOBAL
10505 #    define LT_DLGLOBAL         DL_GLOBAL
10506 #  else
10507 #    define LT_DLGLOBAL         0
10508 #  endif
10509 #endif
10510
10511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512    find out it does not work in some platform. */
10513 #ifndef LT_DLLAZY_OR_NOW
10514 #  ifdef RTLD_LAZY
10515 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10516 #  else
10517 #    ifdef DL_LAZY
10518 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10519 #    else
10520 #      ifdef RTLD_NOW
10521 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10522 #      else
10523 #        ifdef DL_NOW
10524 #          define LT_DLLAZY_OR_NOW      DL_NOW
10525 #        else
10526 #          define LT_DLLAZY_OR_NOW      0
10527 #        endif
10528 #      endif
10529 #    endif
10530 #  endif
10531 #endif
10532
10533 #ifdef __cplusplus
10534 extern "C" void exit (int);
10535 #endif
10536
10537 void fnord() { int i=42;}
10538 int main ()
10539 {
10540   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541   int status = $lt_dlunknown;
10542
10543   if (self)
10544     {
10545       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10546       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547       /* dlclose (self); */
10548     }
10549   else
10550     puts (dlerror ());
10551
10552     exit (status);
10553 }
10554 EOF
10555   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556   (eval $ac_link) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560     (./conftest; exit; ) >&5 2>/dev/null
10561     lt_status=$?
10562     case x$lt_status in
10563       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10564       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10565       x$lt_dlunknown|x*)  ;;
10566     esac
10567   else :
10568     # compilation failed
10569
10570   fi
10571 fi
10572 rm -fr conftest*
10573
10574           LIBS="$save_LIBS"
10575
10576 fi
10577 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10578 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10579   fi
10580 fi
10581
10582 if test x"$libltdl_cv_need_uscore" = xyes; then
10583
10584 cat >>confdefs.h <<\_ACEOF
10585 #define NEED_USCORE 1
10586 _ACEOF
10587
10588 fi
10589
10590
10591 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10592 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10593 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10594   echo $ECHO_N "(cached) $ECHO_C" >&6
10595 else
10596   # PORTME does your system automatically load deplibs for dlopen?
10597   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10598   # For now, we just catch OSes we know something about -- in the
10599   # future, we'll try test this programmatically.
10600   libltdl_cv_sys_dlopen_deplibs=unknown
10601   case "$host_os" in
10602   aix3*|aix4.1.*|aix4.2.*)
10603     # Unknown whether this is true for these versions of AIX, but
10604     # we want this `case' here to explicitly catch those versions.
10605     libltdl_cv_sys_dlopen_deplibs=unknown
10606     ;;
10607   aix[45]*)
10608     libltdl_cv_sys_dlopen_deplibs=yes
10609     ;;
10610   darwin*)
10611     # Assuming the user has installed a libdl from somewhere, this is true
10612     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10613     libltdl_cv_sys_dlopen_deplibs=yes
10614     ;;
10615   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10616     # GNU and its variants, using gnu ld.so (Glibc)
10617     libltdl_cv_sys_dlopen_deplibs=yes
10618     ;;
10619   hpux10*|hpux11*)
10620     libltdl_cv_sys_dlopen_deplibs=yes
10621     ;;
10622   interix*)
10623     libltdl_cv_sys_dlopen_deplibs=yes
10624     ;;
10625   irix[12345]*|irix6.[01]*)
10626     # Catch all versions of IRIX before 6.2, and indicate that we don't
10627     # know how it worked for any of those versions.
10628     libltdl_cv_sys_dlopen_deplibs=unknown
10629     ;;
10630   irix*)
10631     # The case above catches anything before 6.2, and it's known that
10632     # at 6.2 and later dlopen does load deplibs.
10633     libltdl_cv_sys_dlopen_deplibs=yes
10634     ;;
10635   netbsd*)
10636     libltdl_cv_sys_dlopen_deplibs=yes
10637     ;;
10638   openbsd*)
10639     libltdl_cv_sys_dlopen_deplibs=yes
10640     ;;
10641   osf[1234]*)
10642     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10643     # it did *not* use an RPATH in a shared library to find objects the
10644     # library depends on, so we explicitly say `no'.
10645     libltdl_cv_sys_dlopen_deplibs=no
10646     ;;
10647   osf5.0|osf5.0a|osf5.1)
10648     # dlopen *does* load deplibs and with the right loader patch applied
10649     # it even uses RPATH in a shared library to search for shared objects
10650     # that the library depends on, but there's no easy way to know if that
10651     # patch is installed.  Since this is the case, all we can really
10652     # say is unknown -- it depends on the patch being installed.  If
10653     # it is, this changes to `yes'.  Without it, it would be `no'.
10654     libltdl_cv_sys_dlopen_deplibs=unknown
10655     ;;
10656   osf*)
10657     # the two cases above should catch all versions of osf <= 5.1.  Read
10658     # the comments above for what we know about them.
10659     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10660     # is used to find them so we can finally say `yes'.
10661     libltdl_cv_sys_dlopen_deplibs=yes
10662     ;;
10663   solaris*)
10664     libltdl_cv_sys_dlopen_deplibs=yes
10665     ;;
10666   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10667     libltdl_cv_sys_dlopen_deplibs=yes
10668     ;;
10669   esac
10670
10671 fi
10672 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10673 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10674 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10675
10676 cat >>confdefs.h <<\_ACEOF
10677 #define LTDL_DLOPEN_DEPLIBS 1
10678 _ACEOF
10679
10680 fi
10681
10682
10683 for ac_header in argz.h
10684 do
10685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10690   echo $ECHO_N "(cached) $ECHO_C" >&6
10691 fi
10692 ac_res=`eval echo '${'$as_ac_Header'}'`
10693                { echo "$as_me:$LINENO: result: $ac_res" >&5
10694 echo "${ECHO_T}$ac_res" >&6; }
10695 else
10696   # Is the header compilable?
10697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h.  */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h.  */
10705 $ac_includes_default
10706 #include <$ac_header>
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712   *) ac_try_echo=$ac_try;;
10713 esac
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715   (eval "$ac_compile") 2>conftest.er1
10716   ac_status=$?
10717   grep -v '^ *+' conftest.er1 >conftest.err
10718   rm -f conftest.er1
10719   cat conftest.err >&5
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); } &&
10722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10723   { (case "(($ac_try" in
10724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725   *) ac_try_echo=$ac_try;;
10726 esac
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728   (eval "$ac_try") 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; } &&
10732          { ac_try='test -s conftest.$ac_objext'
10733   { (case "(($ac_try" in
10734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735   *) ac_try_echo=$ac_try;;
10736 esac
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738   (eval "$ac_try") 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); }; }; then
10742   ac_header_compiler=yes
10743 else
10744   echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10746
10747         ac_header_compiler=no
10748 fi
10749
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10752 echo "${ECHO_T}$ac_header_compiler" >&6; }
10753
10754 # Is the header present?
10755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763 #include <$ac_header>
10764 _ACEOF
10765 if { (ac_try="$ac_cpp conftest.$ac_ext"
10766 case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } >/dev/null; then
10778   if test -s conftest.err; then
10779     ac_cpp_err=$ac_c_preproc_warn_flag
10780     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10781   else
10782     ac_cpp_err=
10783   fi
10784 else
10785   ac_cpp_err=yes
10786 fi
10787 if test -z "$ac_cpp_err"; then
10788   ac_header_preproc=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793   ac_header_preproc=no
10794 fi
10795
10796 rm -f conftest.err conftest.$ac_ext
10797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10798 echo "${ECHO_T}$ac_header_preproc" >&6; }
10799
10800 # So?  What about this header?
10801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10802   yes:no: )
10803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10807     ac_header_preproc=yes
10808     ;;
10809   no:yes:* )
10810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10822     ( cat <<\_ASBOX
10823 ## ----------------------------------- ##
10824 ## Report this to llvmbugs@cs.uiuc.edu ##
10825 ## ----------------------------------- ##
10826 _ASBOX
10827      ) | sed "s/^/$as_me: WARNING:     /" >&2
10828     ;;
10829 esac
10830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   eval "$as_ac_Header=\$ac_header_preproc"
10836 fi
10837 ac_res=`eval echo '${'$as_ac_Header'}'`
10838                { echo "$as_me:$LINENO: result: $ac_res" >&5
10839 echo "${ECHO_T}$ac_res" >&6; }
10840
10841 fi
10842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10843   cat >>confdefs.h <<_ACEOF
10844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10845 _ACEOF
10846
10847 fi
10848
10849 done
10850
10851
10852 { echo "$as_me:$LINENO: checking for error_t" >&5
10853 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10854 if test "${ac_cv_type_error_t+set}" = set; then
10855   echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857   cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h.  */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h.  */
10863 #if HAVE_ARGZ_H
10864 #  include <argz.h>
10865 #endif
10866
10867 typedef error_t ac__type_new_;
10868 int
10869 main ()
10870 {
10871 if ((ac__type_new_ *) 0)
10872   return 0;
10873 if (sizeof (ac__type_new_))
10874   return 0;
10875   ;
10876   return 0;
10877 }
10878 _ACEOF
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883   *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886   (eval "$ac_compile") 2>conftest.er1
10887   ac_status=$?
10888   grep -v '^ *+' conftest.er1 >conftest.err
10889   rm -f conftest.er1
10890   cat conftest.err >&5
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } &&
10893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894   { (case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_try") 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; } &&
10903          { ac_try='test -s conftest.$ac_objext'
10904   { (case "(($ac_try" in
10905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906   *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909   (eval "$ac_try") 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; }; then
10913   ac_cv_type_error_t=yes
10914 else
10915   echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10917
10918         ac_cv_type_error_t=no
10919 fi
10920
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922 fi
10923 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10924 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10925 if test $ac_cv_type_error_t = yes; then
10926
10927 cat >>confdefs.h <<_ACEOF
10928 #define HAVE_ERROR_T 1
10929 _ACEOF
10930
10931
10932 else
10933
10934 cat >>confdefs.h <<\_ACEOF
10935 #define error_t int
10936 _ACEOF
10937
10938 fi
10939
10940
10941
10942
10943
10944
10945
10946 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10947 do
10948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10952   echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954   cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h.  */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h.  */
10960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10962 #define $ac_func innocuous_$ac_func
10963
10964 /* System header to define __stub macros and hopefully few prototypes,
10965     which can conflict with char $ac_func (); below.
10966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10967     <limits.h> exists even on freestanding compilers.  */
10968
10969 #ifdef __STDC__
10970 # include <limits.h>
10971 #else
10972 # include <assert.h>
10973 #endif
10974
10975 #undef $ac_func
10976
10977 /* Override any GCC internal prototype to avoid an error.
10978    Use char because int might match the return type of a GCC
10979    builtin and then its argument prototype would still apply.  */
10980 #ifdef __cplusplus
10981 extern "C"
10982 #endif
10983 char $ac_func ();
10984 /* The GNU C library defines this for functions which it implements
10985     to always fail with ENOSYS.  Some functions are actually named
10986     something starting with __ and the normal name is an alias.  */
10987 #if defined __stub_$ac_func || defined __stub___$ac_func
10988 choke me
10989 #endif
10990
10991 int
10992 main ()
10993 {
10994 return $ac_func ();
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003   *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006   (eval "$ac_link") 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014   { (case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019   (eval "$ac_try") 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); }; } &&
11023          { ac_try='test -s conftest$ac_exeext'
11024   { (case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_try") 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; }; then
11033   eval "$as_ac_var=yes"
11034 else
11035   echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038         eval "$as_ac_var=no"
11039 fi
11040
11041 rm -f core conftest.err conftest.$ac_objext \
11042       conftest$ac_exeext conftest.$ac_ext
11043 fi
11044 ac_res=`eval echo '${'$as_ac_var'}'`
11045                { echo "$as_me:$LINENO: result: $ac_res" >&5
11046 echo "${ECHO_T}$ac_res" >&6; }
11047 if test `eval echo '${'$as_ac_var'}'` = yes; then
11048   cat >>confdefs.h <<_ACEOF
11049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11050 _ACEOF
11051
11052 fi
11053 done
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11083                   stdio.h unistd.h
11084 do
11085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11090   echo $ECHO_N "(cached) $ECHO_C" >&6
11091 fi
11092 ac_res=`eval echo '${'$as_ac_Header'}'`
11093                { echo "$as_me:$LINENO: result: $ac_res" >&5
11094 echo "${ECHO_T}$ac_res" >&6; }
11095 else
11096   # Is the header compilable?
11097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11099 cat >conftest.$ac_ext <<_ACEOF
11100 /* confdefs.h.  */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h.  */
11105 $ac_includes_default
11106 #include <$ac_header>
11107 _ACEOF
11108 rm -f conftest.$ac_objext
11109 if { (ac_try="$ac_compile"
11110 case "(($ac_try" in
11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112   *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115   (eval "$ac_compile") 2>conftest.er1
11116   ac_status=$?
11117   grep -v '^ *+' conftest.er1 >conftest.err
11118   rm -f conftest.er1
11119   cat conftest.err >&5
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } &&
11122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123   { (case "(($ac_try" in
11124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125   *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128   (eval "$ac_try") 2>&5
11129   ac_status=$?
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); }; } &&
11132          { ac_try='test -s conftest.$ac_objext'
11133   { (case "(($ac_try" in
11134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135   *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138   (eval "$ac_try") 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; }; then
11142   ac_header_compiler=yes
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147         ac_header_compiler=no
11148 fi
11149
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 echo "${ECHO_T}$ac_header_compiler" >&6; }
11153
11154 # Is the header present?
11155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11158 /* confdefs.h.  */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h.  */
11163 #include <$ac_header>
11164 _ACEOF
11165 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11172   ac_status=$?
11173   grep -v '^ *+' conftest.er1 >conftest.err
11174   rm -f conftest.er1
11175   cat conftest.err >&5
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); } >/dev/null; then
11178   if test -s conftest.err; then
11179     ac_cpp_err=$ac_c_preproc_warn_flag
11180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11181   else
11182     ac_cpp_err=
11183   fi
11184 else
11185   ac_cpp_err=yes
11186 fi
11187 if test -z "$ac_cpp_err"; then
11188   ac_header_preproc=yes
11189 else
11190   echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193   ac_header_preproc=no
11194 fi
11195
11196 rm -f conftest.err conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198 echo "${ECHO_T}$ac_header_preproc" >&6; }
11199
11200 # So?  What about this header?
11201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11202   yes:no: )
11203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11207     ac_header_preproc=yes
11208     ;;
11209   no:yes:* )
11210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11222     ( cat <<\_ASBOX
11223 ## ----------------------------------- ##
11224 ## Report this to llvmbugs@cs.uiuc.edu ##
11225 ## ----------------------------------- ##
11226 _ASBOX
11227      ) | sed "s/^/$as_me: WARNING:     /" >&2
11228     ;;
11229 esac
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   eval "$as_ac_Header=\$ac_header_preproc"
11236 fi
11237 ac_res=`eval echo '${'$as_ac_Header'}'`
11238                { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11240
11241 fi
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243   cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245 _ACEOF
11246
11247 fi
11248
11249 done
11250
11251
11252
11253
11254
11255 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11256 do
11257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11262   echo $ECHO_N "(cached) $ECHO_C" >&6
11263 fi
11264 ac_res=`eval echo '${'$as_ac_Header'}'`
11265                { echo "$as_me:$LINENO: result: $ac_res" >&5
11266 echo "${ECHO_T}$ac_res" >&6; }
11267 else
11268   # Is the header compilable?
11269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h.  */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h.  */
11277 $ac_includes_default
11278 #include <$ac_header>
11279 _ACEOF
11280 rm -f conftest.$ac_objext
11281 if { (ac_try="$ac_compile"
11282 case "(($ac_try" in
11283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284   *) ac_try_echo=$ac_try;;
11285 esac
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287   (eval "$ac_compile") 2>conftest.er1
11288   ac_status=$?
11289   grep -v '^ *+' conftest.er1 >conftest.err
11290   rm -f conftest.er1
11291   cat conftest.err >&5
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } &&
11294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11295   { (case "(($ac_try" in
11296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297   *) ac_try_echo=$ac_try;;
11298 esac
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300   (eval "$ac_try") 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; } &&
11304          { ac_try='test -s conftest.$ac_objext'
11305   { (case "(($ac_try" in
11306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307   *) ac_try_echo=$ac_try;;
11308 esac
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310   (eval "$ac_try") 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; }; then
11314   ac_header_compiler=yes
11315 else
11316   echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319         ac_header_compiler=no
11320 fi
11321
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324 echo "${ECHO_T}$ac_header_compiler" >&6; }
11325
11326 # Is the header present?
11327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 #include <$ac_header>
11336 _ACEOF
11337 if { (ac_try="$ac_cpp conftest.$ac_ext"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11344   ac_status=$?
11345   grep -v '^ *+' conftest.er1 >conftest.err
11346   rm -f conftest.er1
11347   cat conftest.err >&5
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } >/dev/null; then
11350   if test -s conftest.err; then
11351     ac_cpp_err=$ac_c_preproc_warn_flag
11352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11353   else
11354     ac_cpp_err=
11355   fi
11356 else
11357   ac_cpp_err=yes
11358 fi
11359 if test -z "$ac_cpp_err"; then
11360   ac_header_preproc=yes
11361 else
11362   echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11364
11365   ac_header_preproc=no
11366 fi
11367
11368 rm -f conftest.err conftest.$ac_ext
11369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11370 echo "${ECHO_T}$ac_header_preproc" >&6; }
11371
11372 # So?  What about this header?
11373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11374   yes:no: )
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11379     ac_header_preproc=yes
11380     ;;
11381   no:yes:* )
11382     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11385 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11389 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11392     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11394     ( cat <<\_ASBOX
11395 ## ----------------------------------- ##
11396 ## Report this to llvmbugs@cs.uiuc.edu ##
11397 ## ----------------------------------- ##
11398 _ASBOX
11399      ) | sed "s/^/$as_me: WARNING:     /" >&2
11400     ;;
11401 esac
11402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11405   echo $ECHO_N "(cached) $ECHO_C" >&6
11406 else
11407   eval "$as_ac_Header=\$ac_header_preproc"
11408 fi
11409 ac_res=`eval echo '${'$as_ac_Header'}'`
11410                { echo "$as_me:$LINENO: result: $ac_res" >&5
11411 echo "${ECHO_T}$ac_res" >&6; }
11412
11413 fi
11414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11415   cat >>confdefs.h <<_ACEOF
11416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417 _ACEOF
11418
11419 fi
11420
11421 done
11422
11423
11424
11425 for ac_header in string.h strings.h
11426 do
11427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 fi
11434 ac_res=`eval echo '${'$as_ac_Header'}'`
11435                { echo "$as_me:$LINENO: result: $ac_res" >&5
11436 echo "${ECHO_T}$ac_res" >&6; }
11437 else
11438   # Is the header compilable?
11439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 $ac_includes_default
11448 #include <$ac_header>
11449 _ACEOF
11450 rm -f conftest.$ac_objext
11451 if { (ac_try="$ac_compile"
11452 case "(($ac_try" in
11453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454   *) ac_try_echo=$ac_try;;
11455 esac
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457   (eval "$ac_compile") 2>conftest.er1
11458   ac_status=$?
11459   grep -v '^ *+' conftest.er1 >conftest.err
11460   rm -f conftest.er1
11461   cat conftest.err >&5
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); } &&
11464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11465   { (case "(($ac_try" in
11466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467   *) ac_try_echo=$ac_try;;
11468 esac
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470   (eval "$ac_try") 2>&5
11471   ac_status=$?
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); }; } &&
11474          { ac_try='test -s conftest.$ac_objext'
11475   { (case "(($ac_try" in
11476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477   *) ac_try_echo=$ac_try;;
11478 esac
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480   (eval "$ac_try") 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); }; }; then
11484   ac_header_compiler=yes
11485 else
11486   echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489         ac_header_compiler=no
11490 fi
11491
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11494 echo "${ECHO_T}$ac_header_compiler" >&6; }
11495
11496 # Is the header present?
11497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h.  */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h.  */
11505 #include <$ac_header>
11506 _ACEOF
11507 if { (ac_try="$ac_cpp conftest.$ac_ext"
11508 case "(($ac_try" in
11509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510   *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } >/dev/null; then
11520   if test -s conftest.err; then
11521     ac_cpp_err=$ac_c_preproc_warn_flag
11522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11523   else
11524     ac_cpp_err=
11525   fi
11526 else
11527   ac_cpp_err=yes
11528 fi
11529 if test -z "$ac_cpp_err"; then
11530   ac_header_preproc=yes
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535   ac_header_preproc=no
11536 fi
11537
11538 rm -f conftest.err conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11540 echo "${ECHO_T}$ac_header_preproc" >&6; }
11541
11542 # So?  What about this header?
11543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11544   yes:no: )
11545     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11549     ac_header_preproc=yes
11550     ;;
11551   no:yes:* )
11552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11554     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11555 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11556     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11558     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11559 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11562     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11564     ( cat <<\_ASBOX
11565 ## ----------------------------------- ##
11566 ## Report this to llvmbugs@cs.uiuc.edu ##
11567 ## ----------------------------------- ##
11568 _ASBOX
11569      ) | sed "s/^/$as_me: WARNING:     /" >&2
11570     ;;
11571 esac
11572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11575   echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577   eval "$as_ac_Header=\$ac_header_preproc"
11578 fi
11579 ac_res=`eval echo '${'$as_ac_Header'}'`
11580                { echo "$as_me:$LINENO: result: $ac_res" >&5
11581 echo "${ECHO_T}$ac_res" >&6; }
11582
11583 fi
11584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585   cat >>confdefs.h <<_ACEOF
11586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11587 _ACEOF
11588  break
11589 fi
11590
11591 done
11592
11593
11594
11595
11596 for ac_func in strchr index
11597 do
11598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h.  */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h.  */
11610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11612 #define $ac_func innocuous_$ac_func
11613
11614 /* System header to define __stub macros and hopefully few prototypes,
11615     which can conflict with char $ac_func (); below.
11616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617     <limits.h> exists even on freestanding compilers.  */
11618
11619 #ifdef __STDC__
11620 # include <limits.h>
11621 #else
11622 # include <assert.h>
11623 #endif
11624
11625 #undef $ac_func
11626
11627 /* Override any GCC internal prototype to avoid an error.
11628    Use char because int might match the return type of a GCC
11629    builtin and then its argument prototype would still apply.  */
11630 #ifdef __cplusplus
11631 extern "C"
11632 #endif
11633 char $ac_func ();
11634 /* The GNU C library defines this for functions which it implements
11635     to always fail with ENOSYS.  Some functions are actually named
11636     something starting with __ and the normal name is an alias.  */
11637 #if defined __stub_$ac_func || defined __stub___$ac_func
11638 choke me
11639 #endif
11640
11641 int
11642 main ()
11643 {
11644 return $ac_func ();
11645   ;
11646   return 0;
11647 }
11648 _ACEOF
11649 rm -f conftest.$ac_objext conftest$ac_exeext
11650 if { (ac_try="$ac_link"
11651 case "(($ac_try" in
11652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653   *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656   (eval "$ac_link") 2>conftest.er1
11657   ac_status=$?
11658   grep -v '^ *+' conftest.er1 >conftest.err
11659   rm -f conftest.er1
11660   cat conftest.err >&5
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); } &&
11663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11664   { (case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669   (eval "$ac_try") 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); }; } &&
11673          { ac_try='test -s conftest$ac_exeext'
11674   { (case "(($ac_try" in
11675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676   *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679   (eval "$ac_try") 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; }; then
11683   eval "$as_ac_var=yes"
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688         eval "$as_ac_var=no"
11689 fi
11690
11691 rm -f core conftest.err conftest.$ac_objext \
11692       conftest$ac_exeext conftest.$ac_ext
11693 fi
11694 ac_res=`eval echo '${'$as_ac_var'}'`
11695                { echo "$as_me:$LINENO: result: $ac_res" >&5
11696 echo "${ECHO_T}$ac_res" >&6; }
11697 if test `eval echo '${'$as_ac_var'}'` = yes; then
11698   cat >>confdefs.h <<_ACEOF
11699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11700 _ACEOF
11701  break
11702 fi
11703 done
11704
11705
11706
11707 for ac_func in strrchr rindex
11708 do
11709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11713   echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715   cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11723 #define $ac_func innocuous_$ac_func
11724
11725 /* System header to define __stub macros and hopefully few prototypes,
11726     which can conflict with char $ac_func (); below.
11727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728     <limits.h> exists even on freestanding compilers.  */
11729
11730 #ifdef __STDC__
11731 # include <limits.h>
11732 #else
11733 # include <assert.h>
11734 #endif
11735
11736 #undef $ac_func
11737
11738 /* Override any GCC internal prototype to avoid an error.
11739    Use char because int might match the return type of a GCC
11740    builtin and then its argument prototype would still apply.  */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 char $ac_func ();
11745 /* The GNU C library defines this for functions which it implements
11746     to always fail with ENOSYS.  Some functions are actually named
11747     something starting with __ and the normal name is an alias.  */
11748 #if defined __stub_$ac_func || defined __stub___$ac_func
11749 choke me
11750 #endif
11751
11752 int
11753 main ()
11754 {
11755 return $ac_func ();
11756   ;
11757   return 0;
11758 }
11759 _ACEOF
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764   *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_link") 2>conftest.er1
11768   ac_status=$?
11769   grep -v '^ *+' conftest.er1 >conftest.err
11770   rm -f conftest.er1
11771   cat conftest.err >&5
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); } &&
11774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11775   { (case "(($ac_try" in
11776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777   *) ac_try_echo=$ac_try;;
11778 esac
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780   (eval "$ac_try") 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; } &&
11784          { ac_try='test -s conftest$ac_exeext'
11785   { (case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790   (eval "$ac_try") 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; }; then
11794   eval "$as_ac_var=yes"
11795 else
11796   echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799         eval "$as_ac_var=no"
11800 fi
11801
11802 rm -f core conftest.err conftest.$ac_objext \
11803       conftest$ac_exeext conftest.$ac_ext
11804 fi
11805 ac_res=`eval echo '${'$as_ac_var'}'`
11806                { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11808 if test `eval echo '${'$as_ac_var'}'` = yes; then
11809   cat >>confdefs.h <<_ACEOF
11810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11811 _ACEOF
11812  break
11813 fi
11814 done
11815
11816
11817
11818 for ac_func in memcpy bcopy
11819 do
11820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11824   echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826   cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h.  */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h.  */
11832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11834 #define $ac_func innocuous_$ac_func
11835
11836 /* System header to define __stub macros and hopefully few prototypes,
11837     which can conflict with char $ac_func (); below.
11838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839     <limits.h> exists even on freestanding compilers.  */
11840
11841 #ifdef __STDC__
11842 # include <limits.h>
11843 #else
11844 # include <assert.h>
11845 #endif
11846
11847 #undef $ac_func
11848
11849 /* Override any GCC internal prototype to avoid an error.
11850    Use char because int might match the return type of a GCC
11851    builtin and then its argument prototype would still apply.  */
11852 #ifdef __cplusplus
11853 extern "C"
11854 #endif
11855 char $ac_func ();
11856 /* The GNU C library defines this for functions which it implements
11857     to always fail with ENOSYS.  Some functions are actually named
11858     something starting with __ and the normal name is an alias.  */
11859 #if defined __stub_$ac_func || defined __stub___$ac_func
11860 choke me
11861 #endif
11862
11863 int
11864 main ()
11865 {
11866 return $ac_func ();
11867   ;
11868   return 0;
11869 }
11870 _ACEOF
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (ac_try="$ac_link"
11873 case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878   (eval "$ac_link") 2>conftest.er1
11879   ac_status=$?
11880   grep -v '^ *+' conftest.er1 >conftest.err
11881   rm -f conftest.er1
11882   cat conftest.err >&5
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); } &&
11885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11886   { (case "(($ac_try" in
11887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888   *) ac_try_echo=$ac_try;;
11889 esac
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891   (eval "$ac_try") 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; } &&
11895          { ac_try='test -s conftest$ac_exeext'
11896   { (case "(($ac_try" in
11897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898   *) ac_try_echo=$ac_try;;
11899 esac
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901   (eval "$ac_try") 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; }; then
11905   eval "$as_ac_var=yes"
11906 else
11907   echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910         eval "$as_ac_var=no"
11911 fi
11912
11913 rm -f core conftest.err conftest.$ac_objext \
11914       conftest$ac_exeext conftest.$ac_ext
11915 fi
11916 ac_res=`eval echo '${'$as_ac_var'}'`
11917                { echo "$as_me:$LINENO: result: $ac_res" >&5
11918 echo "${ECHO_T}$ac_res" >&6; }
11919 if test `eval echo '${'$as_ac_var'}'` = yes; then
11920   cat >>confdefs.h <<_ACEOF
11921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11922 _ACEOF
11923  break
11924 fi
11925 done
11926
11927
11928
11929 for ac_func in memmove strcmp
11930 do
11931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11935   echo $ECHO_N "(cached) $ECHO_C" >&6
11936 else
11937   cat >conftest.$ac_ext <<_ACEOF
11938 /* confdefs.h.  */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h.  */
11943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11945 #define $ac_func innocuous_$ac_func
11946
11947 /* System header to define __stub macros and hopefully few prototypes,
11948     which can conflict with char $ac_func (); below.
11949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950     <limits.h> exists even on freestanding compilers.  */
11951
11952 #ifdef __STDC__
11953 # include <limits.h>
11954 #else
11955 # include <assert.h>
11956 #endif
11957
11958 #undef $ac_func
11959
11960 /* Override any GCC internal prototype to avoid an error.
11961    Use char because int might match the return type of a GCC
11962    builtin and then its argument prototype would still apply.  */
11963 #ifdef __cplusplus
11964 extern "C"
11965 #endif
11966 char $ac_func ();
11967 /* The GNU C library defines this for functions which it implements
11968     to always fail with ENOSYS.  Some functions are actually named
11969     something starting with __ and the normal name is an alias.  */
11970 #if defined __stub_$ac_func || defined __stub___$ac_func
11971 choke me
11972 #endif
11973
11974 int
11975 main ()
11976 {
11977 return $ac_func ();
11978   ;
11979   return 0;
11980 }
11981 _ACEOF
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (ac_try="$ac_link"
11984 case "(($ac_try" in
11985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986   *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989   (eval "$ac_link") 2>conftest.er1
11990   ac_status=$?
11991   grep -v '^ *+' conftest.er1 >conftest.err
11992   rm -f conftest.er1
11993   cat conftest.err >&5
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); } &&
11996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11997   { (case "(($ac_try" in
11998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999   *) ac_try_echo=$ac_try;;
12000 esac
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002   (eval "$ac_try") 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); }; } &&
12006          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12016   eval "$as_ac_var=yes"
12017 else
12018   echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12020
12021         eval "$as_ac_var=no"
12022 fi
12023
12024 rm -f core conftest.err conftest.$ac_objext \
12025       conftest$ac_exeext conftest.$ac_ext
12026 fi
12027 ac_res=`eval echo '${'$as_ac_var'}'`
12028                { echo "$as_me:$LINENO: result: $ac_res" >&5
12029 echo "${ECHO_T}$ac_res" >&6; }
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031   cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 _ACEOF
12034
12035 fi
12036 done
12037
12038
12039
12040
12041 for ac_func in closedir opendir readdir
12042 do
12043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12047   echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049   cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h.  */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h.  */
12055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12057 #define $ac_func innocuous_$ac_func
12058
12059 /* System header to define __stub macros and hopefully few prototypes,
12060     which can conflict with char $ac_func (); below.
12061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12062     <limits.h> exists even on freestanding compilers.  */
12063
12064 #ifdef __STDC__
12065 # include <limits.h>
12066 #else
12067 # include <assert.h>
12068 #endif
12069
12070 #undef $ac_func
12071
12072 /* Override any GCC internal prototype to avoid an error.
12073    Use char because int might match the return type of a GCC
12074    builtin and then its argument prototype would still apply.  */
12075 #ifdef __cplusplus
12076 extern "C"
12077 #endif
12078 char $ac_func ();
12079 /* The GNU C library defines this for functions which it implements
12080     to always fail with ENOSYS.  Some functions are actually named
12081     something starting with __ and the normal name is an alias.  */
12082 #if defined __stub_$ac_func || defined __stub___$ac_func
12083 choke me
12084 #endif
12085
12086 int
12087 main ()
12088 {
12089 return $ac_func ();
12090   ;
12091   return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (ac_try="$ac_link"
12096 case "(($ac_try" in
12097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098   *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101   (eval "$ac_link") 2>conftest.er1
12102   ac_status=$?
12103   grep -v '^ *+' conftest.er1 >conftest.err
12104   rm -f conftest.er1
12105   cat conftest.err >&5
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); } &&
12108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109   { (case "(($ac_try" in
12110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111   *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114   (eval "$ac_try") 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; } &&
12118          { ac_try='test -s conftest$ac_exeext'
12119   { (case "(($ac_try" in
12120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121   *) ac_try_echo=$ac_try;;
12122 esac
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124   (eval "$ac_try") 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; }; then
12128   eval "$as_ac_var=yes"
12129 else
12130   echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12132
12133         eval "$as_ac_var=no"
12134 fi
12135
12136 rm -f core conftest.err conftest.$ac_objext \
12137       conftest$ac_exeext conftest.$ac_ext
12138 fi
12139 ac_res=`eval echo '${'$as_ac_var'}'`
12140                { echo "$as_me:$LINENO: result: $ac_res" >&5
12141 echo "${ECHO_T}$ac_res" >&6; }
12142 if test `eval echo '${'$as_ac_var'}'` = yes; then
12143   cat >>confdefs.h <<_ACEOF
12144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12145 _ACEOF
12146
12147 fi
12148 done
12149
12150
12151
12152 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12153 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12154
12155 ICC=no
12156 IXX=no
12157 case $CC in
12158   icc*|icpc*)
12159     ICC=yes
12160     IXX=yes
12161     ;;
12162    *)
12163     ;;
12164 esac
12165
12166 if test "$GCC" != "yes" && test "$ICC" != "yes"
12167 then
12168   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12169 echo "$as_me: error: gcc|icc required but not found" >&2;}
12170    { (exit 1); exit 1; }; }
12171 fi
12172
12173 if test "$GXX" != "yes" && test "$IXX" != "yes"
12174 then
12175   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12176 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12177    { (exit 1); exit 1; }; }
12178 fi
12179
12180 if test "$GCC" = "yes"
12181 then
12182   cat >conftest.$ac_ext <<_ACEOF
12183 #if !defined(__GNUC__) || __GNUC__ < 3
12184 #error Unsupported GCC version
12185 #endif
12186
12187 _ACEOF
12188 rm -f conftest.$ac_objext
12189 if { (ac_try="$ac_compile"
12190 case "(($ac_try" in
12191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192   *) ac_try_echo=$ac_try;;
12193 esac
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195   (eval "$ac_compile") 2>conftest.er1
12196   ac_status=$?
12197   grep -v '^ *+' conftest.er1 >conftest.err
12198   rm -f conftest.er1
12199   cat conftest.err >&5
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); } &&
12202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12203   { (case "(($ac_try" in
12204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205   *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208   (eval "$ac_try") 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; } &&
12212          { ac_try='test -s conftest.$ac_objext'
12213   { (case "(($ac_try" in
12214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215   *) ac_try_echo=$ac_try;;
12216 esac
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218   (eval "$ac_try") 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); }; }; then
12222   :
12223 else
12224   echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12226
12227         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12228 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12229    { (exit 1); exit 1; }; }
12230 fi
12231
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 fi
12234
12235 if test -z "$llvm_cv_gnu_make_command"
12236 then
12237   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12238 echo "$as_me: error: GNU Make required but not found" >&2;}
12239    { (exit 1); exit 1; }; }
12240 fi
12241
12242 { echo "$as_me:$LINENO: result: ok" >&5
12243 echo "${ECHO_T}ok" >&6; }
12244
12245 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12246 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12247 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12248
12249 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12250
12251 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12252 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12253
12254
12255
12256 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12257 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12258 if test "${ac_cv_lib_m_sin+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261   ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-lm  $LIBS"
12263 cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h.  */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h.  */
12269
12270 /* Override any GCC internal prototype to avoid an error.
12271    Use char because int might match the return type of a GCC
12272    builtin and then its argument prototype would still apply.  */
12273 #ifdef __cplusplus
12274 extern "C"
12275 #endif
12276 char sin ();
12277 int
12278 main ()
12279 {
12280 return sin ();
12281   ;
12282   return 0;
12283 }
12284 _ACEOF
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (ac_try="$ac_link"
12287 case "(($ac_try" in
12288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289   *) ac_try_echo=$ac_try;;
12290 esac
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292   (eval "$ac_link") 2>conftest.er1
12293   ac_status=$?
12294   grep -v '^ *+' conftest.er1 >conftest.err
12295   rm -f conftest.er1
12296   cat conftest.err >&5
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); } &&
12299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12300   { (case "(($ac_try" in
12301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302   *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305   (eval "$ac_try") 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; } &&
12309          { ac_try='test -s conftest$ac_exeext'
12310   { (case "(($ac_try" in
12311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312   *) ac_try_echo=$ac_try;;
12313 esac
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315   (eval "$ac_try") 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; }; then
12319   ac_cv_lib_m_sin=yes
12320 else
12321   echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12323
12324         ac_cv_lib_m_sin=no
12325 fi
12326
12327 rm -f core conftest.err conftest.$ac_objext \
12328       conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12330 fi
12331 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12332 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12333 if test $ac_cv_lib_m_sin = yes; then
12334   cat >>confdefs.h <<_ACEOF
12335 #define HAVE_LIBM 1
12336 _ACEOF
12337
12338   LIBS="-lm $LIBS"
12339
12340 fi
12341
12342 if test "$llvm_cv_os_type" = "MingW" ; then
12343
12344 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12345 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12346 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12347   echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349   ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-limagehlp  $LIBS"
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357
12358
12359 int
12360 main ()
12361 {
12362 return main ();
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (ac_try="$ac_link"
12369 case "(($ac_try" in
12370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371   *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374   (eval "$ac_link") 2>conftest.er1
12375   ac_status=$?
12376   grep -v '^ *+' conftest.er1 >conftest.err
12377   rm -f conftest.er1
12378   cat conftest.err >&5
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); } &&
12381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382   { (case "(($ac_try" in
12383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384   *) ac_try_echo=$ac_try;;
12385 esac
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387   (eval "$ac_try") 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; } &&
12391          { ac_try='test -s conftest$ac_exeext'
12392   { (case "(($ac_try" in
12393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394   *) ac_try_echo=$ac_try;;
12395 esac
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397   (eval "$ac_try") 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   ac_cv_lib_imagehlp_main=yes
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406         ac_cv_lib_imagehlp_main=no
12407 fi
12408
12409 rm -f core conftest.err conftest.$ac_objext \
12410       conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12412 fi
12413 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12414 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12415 if test $ac_cv_lib_imagehlp_main = yes; then
12416   cat >>confdefs.h <<_ACEOF
12417 #define HAVE_LIBIMAGEHLP 1
12418 _ACEOF
12419
12420   LIBS="-limagehlp $LIBS"
12421
12422 fi
12423
12424
12425 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12426 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12427 if test "${ac_cv_lib_psapi_main+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-lpsapi  $LIBS"
12432 cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h.  */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h.  */
12438
12439
12440 int
12441 main ()
12442 {
12443 return main ();
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 rm -f conftest.$ac_objext conftest$ac_exeext
12449 if { (ac_try="$ac_link"
12450 case "(($ac_try" in
12451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452   *) ac_try_echo=$ac_try;;
12453 esac
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455   (eval "$ac_link") 2>conftest.er1
12456   ac_status=$?
12457   grep -v '^ *+' conftest.er1 >conftest.err
12458   rm -f conftest.er1
12459   cat conftest.err >&5
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } &&
12462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12463   { (case "(($ac_try" in
12464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465   *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468   (eval "$ac_try") 2>&5
12469   ac_status=$?
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); }; } &&
12472          { ac_try='test -s conftest$ac_exeext'
12473   { (case "(($ac_try" in
12474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475   *) ac_try_echo=$ac_try;;
12476 esac
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478   (eval "$ac_try") 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; }; then
12482   ac_cv_lib_psapi_main=yes
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487         ac_cv_lib_psapi_main=no
12488 fi
12489
12490 rm -f core conftest.err conftest.$ac_objext \
12491       conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS
12493 fi
12494 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12495 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12496 if test $ac_cv_lib_psapi_main = yes; then
12497   cat >>confdefs.h <<_ACEOF
12498 #define HAVE_LIBPSAPI 1
12499 _ACEOF
12500
12501   LIBS="-lpsapi $LIBS"
12502
12503 fi
12504
12505 fi
12506
12507 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12508 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12509 if test "${ac_cv_search_dlopen+set}" = set; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512   ac_func_search_save_LIBS=$LIBS
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h.  */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h.  */
12519
12520 /* Override any GCC internal prototype to avoid an error.
12521    Use char because int might match the return type of a GCC
12522    builtin and then its argument prototype would still apply.  */
12523 #ifdef __cplusplus
12524 extern "C"
12525 #endif
12526 char dlopen ();
12527 int
12528 main ()
12529 {
12530 return dlopen ();
12531   ;
12532   return 0;
12533 }
12534 _ACEOF
12535 for ac_lib in '' dl; do
12536   if test -z "$ac_lib"; then
12537     ac_res="none required"
12538   else
12539     ac_res=-l$ac_lib
12540     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12541   fi
12542   rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_link") 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } &&
12556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12557   { (case "(($ac_try" in
12558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559   *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562   (eval "$ac_try") 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); }; } &&
12566          { ac_try='test -s conftest$ac_exeext'
12567   { (case "(($ac_try" in
12568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569   *) ac_try_echo=$ac_try;;
12570 esac
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572   (eval "$ac_try") 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; }; then
12576   ac_cv_search_dlopen=$ac_res
12577 else
12578   echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581
12582 fi
12583
12584 rm -f core conftest.err conftest.$ac_objext \
12585       conftest$ac_exeext
12586   if test "${ac_cv_search_dlopen+set}" = set; then
12587   break
12588 fi
12589 done
12590 if test "${ac_cv_search_dlopen+set}" = set; then
12591   :
12592 else
12593   ac_cv_search_dlopen=no
12594 fi
12595 rm conftest.$ac_ext
12596 LIBS=$ac_func_search_save_LIBS
12597 fi
12598 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12599 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12600 ac_res=$ac_cv_search_dlopen
12601 if test "$ac_res" != no; then
12602   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12603
12604 cat >>confdefs.h <<\_ACEOF
12605 #define HAVE_DLOPEN 1
12606 _ACEOF
12607
12608 else
12609   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12610 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12611 fi
12612
12613
12614 if test "$llvm_cv_enable_libffi" = "yes" ; then
12615   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12616 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12617 if test "${ac_cv_search_ffi_call+set}" = set; then
12618   echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620   ac_func_search_save_LIBS=$LIBS
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h.  */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h.  */
12627
12628 /* Override any GCC internal prototype to avoid an error.
12629    Use char because int might match the return type of a GCC
12630    builtin and then its argument prototype would still apply.  */
12631 #ifdef __cplusplus
12632 extern "C"
12633 #endif
12634 char ffi_call ();
12635 int
12636 main ()
12637 {
12638 return ffi_call ();
12639   ;
12640   return 0;
12641 }
12642 _ACEOF
12643 for ac_lib in '' ffi; do
12644   if test -z "$ac_lib"; then
12645     ac_res="none required"
12646   else
12647     ac_res=-l$ac_lib
12648     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12649   fi
12650   rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (ac_try="$ac_link"
12652 case "(($ac_try" in
12653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654   *) ac_try_echo=$ac_try;;
12655 esac
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657   (eval "$ac_link") 2>conftest.er1
12658   ac_status=$?
12659   grep -v '^ *+' conftest.er1 >conftest.err
12660   rm -f conftest.er1
12661   cat conftest.err >&5
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); } &&
12664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12665   { (case "(($ac_try" in
12666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667   *) ac_try_echo=$ac_try;;
12668 esac
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670   (eval "$ac_try") 2>&5
12671   ac_status=$?
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); }; } &&
12674          { ac_try='test -s conftest$ac_exeext'
12675   { (case "(($ac_try" in
12676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677   *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680   (eval "$ac_try") 2>&5
12681   ac_status=$?
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); }; }; then
12684   ac_cv_search_ffi_call=$ac_res
12685 else
12686   echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12688
12689
12690 fi
12691
12692 rm -f core conftest.err conftest.$ac_objext \
12693       conftest$ac_exeext
12694   if test "${ac_cv_search_ffi_call+set}" = set; then
12695   break
12696 fi
12697 done
12698 if test "${ac_cv_search_ffi_call+set}" = set; then
12699   :
12700 else
12701   ac_cv_search_ffi_call=no
12702 fi
12703 rm conftest.$ac_ext
12704 LIBS=$ac_func_search_save_LIBS
12705 fi
12706 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12707 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12708 ac_res=$ac_cv_search_ffi_call
12709 if test "$ac_res" != no; then
12710   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12711
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_FFI_CALL 1
12714 _ACEOF
12715
12716 else
12717   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12718 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12719    { (exit 1); exit 1; }; }
12720 fi
12721
12722 fi
12723
12724 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12725 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12726 if test "${ac_cv_search_mallinfo+set}" = set; then
12727   echo $ECHO_N "(cached) $ECHO_C" >&6
12728 else
12729   ac_func_search_save_LIBS=$LIBS
12730 cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h.  */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h.  */
12736
12737 /* Override any GCC internal prototype to avoid an error.
12738    Use char because int might match the return type of a GCC
12739    builtin and then its argument prototype would still apply.  */
12740 #ifdef __cplusplus
12741 extern "C"
12742 #endif
12743 char mallinfo ();
12744 int
12745 main ()
12746 {
12747 return mallinfo ();
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 for ac_lib in '' malloc; do
12753   if test -z "$ac_lib"; then
12754     ac_res="none required"
12755   else
12756     ac_res=-l$ac_lib
12757     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12758   fi
12759   rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (ac_try="$ac_link"
12761 case "(($ac_try" in
12762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763   *) ac_try_echo=$ac_try;;
12764 esac
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766   (eval "$ac_link") 2>conftest.er1
12767   ac_status=$?
12768   grep -v '^ *+' conftest.er1 >conftest.err
12769   rm -f conftest.er1
12770   cat conftest.err >&5
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); } &&
12773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12774   { (case "(($ac_try" in
12775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776   *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779   (eval "$ac_try") 2>&5
12780   ac_status=$?
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); }; } &&
12783          { ac_try='test -s conftest$ac_exeext'
12784   { (case "(($ac_try" in
12785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786   *) ac_try_echo=$ac_try;;
12787 esac
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789   (eval "$ac_try") 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); }; }; then
12793   ac_cv_search_mallinfo=$ac_res
12794 else
12795   echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798
12799 fi
12800
12801 rm -f core conftest.err conftest.$ac_objext \
12802       conftest$ac_exeext
12803   if test "${ac_cv_search_mallinfo+set}" = set; then
12804   break
12805 fi
12806 done
12807 if test "${ac_cv_search_mallinfo+set}" = set; then
12808   :
12809 else
12810   ac_cv_search_mallinfo=no
12811 fi
12812 rm conftest.$ac_ext
12813 LIBS=$ac_func_search_save_LIBS
12814 fi
12815 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12816 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12817 ac_res=$ac_cv_search_mallinfo
12818 if test "$ac_res" != no; then
12819   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12820
12821 cat >>confdefs.h <<\_ACEOF
12822 #define HAVE_MALLINFO 1
12823 _ACEOF
12824
12825 fi
12826
12827
12828 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12829
12830 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12831 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12832 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12833   echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835   ac_check_lib_save_LIBS=$LIBS
12836 LIBS="-lpthread  $LIBS"
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843
12844 /* Override any GCC internal prototype to avoid an error.
12845    Use char because int might match the return type of a GCC
12846    builtin and then its argument prototype would still apply.  */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 char pthread_mutex_init ();
12851 int
12852 main ()
12853 {
12854 return pthread_mutex_init ();
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (ac_try="$ac_link"
12861 case "(($ac_try" in
12862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863   *) ac_try_echo=$ac_try;;
12864 esac
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866   (eval "$ac_link") 2>conftest.er1
12867   ac_status=$?
12868   grep -v '^ *+' conftest.er1 >conftest.err
12869   rm -f conftest.er1
12870   cat conftest.err >&5
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } &&
12873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874   { (case "(($ac_try" in
12875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876   *) ac_try_echo=$ac_try;;
12877 esac
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879   (eval "$ac_try") 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); }; } &&
12883          { ac_try='test -s conftest$ac_exeext'
12884   { (case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889   (eval "$ac_try") 2>&5
12890   ac_status=$?
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); }; }; then
12893   ac_cv_lib_pthread_pthread_mutex_init=yes
12894 else
12895   echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12897
12898         ac_cv_lib_pthread_pthread_mutex_init=no
12899 fi
12900
12901 rm -f core conftest.err conftest.$ac_objext \
12902       conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12904 fi
12905 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12906 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12907 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12908   cat >>confdefs.h <<_ACEOF
12909 #define HAVE_LIBPTHREAD 1
12910 _ACEOF
12911
12912   LIBS="-lpthread $LIBS"
12913
12914 fi
12915
12916   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12917 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12918 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12919   echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921   ac_func_search_save_LIBS=$LIBS
12922 cat >conftest.$ac_ext <<_ACEOF
12923 /* confdefs.h.  */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h.  */
12928
12929 /* Override any GCC internal prototype to avoid an error.
12930    Use char because int might match the return type of a GCC
12931    builtin and then its argument prototype would still apply.  */
12932 #ifdef __cplusplus
12933 extern "C"
12934 #endif
12935 char pthread_mutex_lock ();
12936 int
12937 main ()
12938 {
12939 return pthread_mutex_lock ();
12940   ;
12941   return 0;
12942 }
12943 _ACEOF
12944 for ac_lib in '' pthread; do
12945   if test -z "$ac_lib"; then
12946     ac_res="none required"
12947   else
12948     ac_res=-l$ac_lib
12949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12950   fi
12951   rm -f conftest.$ac_objext conftest$ac_exeext
12952 if { (ac_try="$ac_link"
12953 case "(($ac_try" in
12954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955   *) ac_try_echo=$ac_try;;
12956 esac
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958   (eval "$ac_link") 2>conftest.er1
12959   ac_status=$?
12960   grep -v '^ *+' conftest.er1 >conftest.err
12961   rm -f conftest.er1
12962   cat conftest.err >&5
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } &&
12965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12966   { (case "(($ac_try" in
12967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968   *) ac_try_echo=$ac_try;;
12969 esac
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971   (eval "$ac_try") 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); }; } &&
12975          { ac_try='test -s conftest$ac_exeext'
12976   { (case "(($ac_try" in
12977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978   *) ac_try_echo=$ac_try;;
12979 esac
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981   (eval "$ac_try") 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; }; then
12985   ac_cv_search_pthread_mutex_lock=$ac_res
12986 else
12987   echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12989
12990
12991 fi
12992
12993 rm -f core conftest.err conftest.$ac_objext \
12994       conftest$ac_exeext
12995   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12996   break
12997 fi
12998 done
12999 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13000   :
13001 else
13002   ac_cv_search_pthread_mutex_lock=no
13003 fi
13004 rm conftest.$ac_ext
13005 LIBS=$ac_func_search_save_LIBS
13006 fi
13007 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13008 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13009 ac_res=$ac_cv_search_pthread_mutex_lock
13010 if test "$ac_res" != no; then
13011   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13012
13013 cat >>confdefs.h <<\_ACEOF
13014 #define HAVE_PTHREAD_MUTEX_LOCK 1
13015 _ACEOF
13016
13017 fi
13018
13019   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13020 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13021 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13022   echo $ECHO_N "(cached) $ECHO_C" >&6
13023 else
13024   ac_func_search_save_LIBS=$LIBS
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h.  */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h.  */
13031
13032 /* Override any GCC internal prototype to avoid an error.
13033    Use char because int might match the return type of a GCC
13034    builtin and then its argument prototype would still apply.  */
13035 #ifdef __cplusplus
13036 extern "C"
13037 #endif
13038 char pthread_rwlock_init ();
13039 int
13040 main ()
13041 {
13042 return pthread_rwlock_init ();
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 for ac_lib in '' pthread; do
13048   if test -z "$ac_lib"; then
13049     ac_res="none required"
13050   else
13051     ac_res=-l$ac_lib
13052     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13053   fi
13054   rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (ac_try="$ac_link"
13056 case "(($ac_try" in
13057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058   *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061   (eval "$ac_link") 2>conftest.er1
13062   ac_status=$?
13063   grep -v '^ *+' conftest.er1 >conftest.err
13064   rm -f conftest.er1
13065   cat conftest.err >&5
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); } &&
13068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069   { (case "(($ac_try" in
13070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071   *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074   (eval "$ac_try") 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); }; } &&
13078          { ac_try='test -s conftest$ac_exeext'
13079   { (case "(($ac_try" in
13080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081   *) ac_try_echo=$ac_try;;
13082 esac
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084   (eval "$ac_try") 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); }; }; then
13088   ac_cv_search_pthread_rwlock_init=$ac_res
13089 else
13090   echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13092
13093
13094 fi
13095
13096 rm -f core conftest.err conftest.$ac_objext \
13097       conftest$ac_exeext
13098   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13099   break
13100 fi
13101 done
13102 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13103   :
13104 else
13105   ac_cv_search_pthread_rwlock_init=no
13106 fi
13107 rm conftest.$ac_ext
13108 LIBS=$ac_func_search_save_LIBS
13109 fi
13110 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13111 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13112 ac_res=$ac_cv_search_pthread_rwlock_init
13113 if test "$ac_res" != no; then
13114   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13115
13116 cat >>confdefs.h <<\_ACEOF
13117 #define HAVE_PTHREAD_RWLOCK_INIT 1
13118 _ACEOF
13119
13120 fi
13121
13122   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13123 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13124 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13125   echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127   ac_func_search_save_LIBS=$LIBS
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h.  */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h.  */
13134
13135 /* Override any GCC internal prototype to avoid an error.
13136    Use char because int might match the return type of a GCC
13137    builtin and then its argument prototype would still apply.  */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char pthread_getspecific ();
13142 int
13143 main ()
13144 {
13145 return pthread_getspecific ();
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 for ac_lib in '' pthread; do
13151   if test -z "$ac_lib"; then
13152     ac_res="none required"
13153   else
13154     ac_res=-l$ac_lib
13155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13156   fi
13157   rm -f conftest.$ac_objext conftest$ac_exeext
13158 if { (ac_try="$ac_link"
13159 case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164   (eval "$ac_link") 2>conftest.er1
13165   ac_status=$?
13166   grep -v '^ *+' conftest.er1 >conftest.err
13167   rm -f conftest.er1
13168   cat conftest.err >&5
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); } &&
13171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13172   { (case "(($ac_try" in
13173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174   *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177   (eval "$ac_try") 2>&5
13178   ac_status=$?
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); }; } &&
13181          { ac_try='test -s conftest$ac_exeext'
13182   { (case "(($ac_try" in
13183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184   *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187   (eval "$ac_try") 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; }; then
13191   ac_cv_search_pthread_getspecific=$ac_res
13192 else
13193   echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196
13197 fi
13198
13199 rm -f core conftest.err conftest.$ac_objext \
13200       conftest$ac_exeext
13201   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13202   break
13203 fi
13204 done
13205 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13206   :
13207 else
13208   ac_cv_search_pthread_getspecific=no
13209 fi
13210 rm conftest.$ac_ext
13211 LIBS=$ac_func_search_save_LIBS
13212 fi
13213 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13214 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13215 ac_res=$ac_cv_search_pthread_getspecific
13216 if test "$ac_res" != no; then
13217   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13218
13219 cat >>confdefs.h <<\_ACEOF
13220 #define HAVE_PTHREAD_GETSPECIFIC 1
13221 _ACEOF
13222
13223 fi
13224
13225 fi
13226
13227
13228 # Check whether --with-udis86 was given.
13229 if test "${with_udis86+set}" = set; then
13230   withval=$with_udis86;
13231       USE_UDIS86=1
13232
13233       case "$withval" in
13234         /usr/lib|yes) ;;
13235         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13236       esac
13237
13238 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13239 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13240 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13241   echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243   ac_check_lib_save_LIBS=$LIBS
13244 LIBS="-ludis86  $LIBS"
13245 cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h.  */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h.  */
13251
13252 /* Override any GCC internal prototype to avoid an error.
13253    Use char because int might match the return type of a GCC
13254    builtin and then its argument prototype would still apply.  */
13255 #ifdef __cplusplus
13256 extern "C"
13257 #endif
13258 char ud_init ();
13259 int
13260 main ()
13261 {
13262 return ud_init ();
13263   ;
13264   return 0;
13265 }
13266 _ACEOF
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (ac_try="$ac_link"
13269 case "(($ac_try" in
13270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271   *) ac_try_echo=$ac_try;;
13272 esac
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274   (eval "$ac_link") 2>conftest.er1
13275   ac_status=$?
13276   grep -v '^ *+' conftest.er1 >conftest.err
13277   rm -f conftest.er1
13278   cat conftest.err >&5
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); } &&
13281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282   { (case "(($ac_try" in
13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284   *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287   (eval "$ac_try") 2>&5
13288   ac_status=$?
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); }; } &&
13291          { ac_try='test -s conftest$ac_exeext'
13292   { (case "(($ac_try" in
13293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294   *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297   (eval "$ac_try") 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; }; then
13301   ac_cv_lib_udis86_ud_init=yes
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13305
13306         ac_cv_lib_udis86_ud_init=no
13307 fi
13308
13309 rm -f core conftest.err conftest.$ac_objext \
13310       conftest$ac_exeext conftest.$ac_ext
13311 LIBS=$ac_check_lib_save_LIBS
13312 fi
13313 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13314 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13315 if test $ac_cv_lib_udis86_ud_init = yes; then
13316   cat >>confdefs.h <<_ACEOF
13317 #define HAVE_LIBUDIS86 1
13318 _ACEOF
13319
13320   LIBS="-ludis86 $LIBS"
13321
13322 else
13323
13324         echo "Error! You need to have libudis86 around."
13325         exit -1
13326
13327 fi
13328
13329
13330 else
13331   USE_UDIS86=0
13332
13333 fi
13334
13335
13336 cat >>confdefs.h <<_ACEOF
13337 #define USE_UDIS86 $USE_UDIS86
13338 _ACEOF
13339
13340
13341
13342 # Check whether --with-oprofile was given.
13343 if test "${with_oprofile+set}" = set; then
13344   withval=$with_oprofile;
13345       USE_OPROFILE=1
13346
13347       case "$withval" in
13348         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13349         no) llvm_cv_oppath=
13350             USE_OPROFILE=0
13351  ;;
13352         *) llvm_cv_oppath="${withval}/lib/oprofile"
13353            CPPFLAGS="-I${withval}/include";;
13354       esac
13355       if test -n "$llvm_cv_oppath" ; then
13356         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13357                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13358 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13359 if test "${ac_cv_search_bfd_init+set}" = set; then
13360   echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362   ac_func_search_save_LIBS=$LIBS
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369
13370 /* Override any GCC internal prototype to avoid an error.
13371    Use char because int might match the return type of a GCC
13372    builtin and then its argument prototype would still apply.  */
13373 #ifdef __cplusplus
13374 extern "C"
13375 #endif
13376 char bfd_init ();
13377 int
13378 main ()
13379 {
13380 return bfd_init ();
13381   ;
13382   return 0;
13383 }
13384 _ACEOF
13385 for ac_lib in '' bfd; do
13386   if test -z "$ac_lib"; then
13387     ac_res="none required"
13388   else
13389     ac_res=-l$ac_lib
13390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13391   fi
13392   rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396   *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399   (eval "$ac_link") 2>conftest.er1
13400   ac_status=$?
13401   grep -v '^ *+' conftest.er1 >conftest.err
13402   rm -f conftest.er1
13403   cat conftest.err >&5
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); } &&
13406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13407   { (case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412   (eval "$ac_try") 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); }; } &&
13416          { ac_try='test -s conftest$ac_exeext'
13417   { (case "(($ac_try" in
13418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419   *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422   (eval "$ac_try") 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); }; }; then
13426   ac_cv_search_bfd_init=$ac_res
13427 else
13428   echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13430
13431
13432 fi
13433
13434 rm -f core conftest.err conftest.$ac_objext \
13435       conftest$ac_exeext
13436   if test "${ac_cv_search_bfd_init+set}" = set; then
13437   break
13438 fi
13439 done
13440 if test "${ac_cv_search_bfd_init+set}" = set; then
13441   :
13442 else
13443   ac_cv_search_bfd_init=no
13444 fi
13445 rm conftest.$ac_ext
13446 LIBS=$ac_func_search_save_LIBS
13447 fi
13448 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13449 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13450 ac_res=$ac_cv_search_bfd_init
13451 if test "$ac_res" != no; then
13452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13453
13454 fi
13455
13456         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13457 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13458 if test "${ac_cv_search_op_open_agent+set}" = set; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461   ac_func_search_save_LIBS=$LIBS
13462 cat >conftest.$ac_ext <<_ACEOF
13463 /* confdefs.h.  */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h.  */
13468
13469 /* Override any GCC internal prototype to avoid an error.
13470    Use char because int might match the return type of a GCC
13471    builtin and then its argument prototype would still apply.  */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 char op_open_agent ();
13476 int
13477 main ()
13478 {
13479 return op_open_agent ();
13480   ;
13481   return 0;
13482 }
13483 _ACEOF
13484 for ac_lib in '' opagent; do
13485   if test -z "$ac_lib"; then
13486     ac_res="none required"
13487   else
13488     ac_res=-l$ac_lib
13489     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13490   fi
13491   rm -f conftest.$ac_objext conftest$ac_exeext
13492 if { (ac_try="$ac_link"
13493 case "(($ac_try" in
13494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495   *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498   (eval "$ac_link") 2>conftest.er1
13499   ac_status=$?
13500   grep -v '^ *+' conftest.er1 >conftest.err
13501   rm -f conftest.er1
13502   cat conftest.err >&5
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); } &&
13505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13506   { (case "(($ac_try" in
13507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508   *) ac_try_echo=$ac_try;;
13509 esac
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511   (eval "$ac_try") 2>&5
13512   ac_status=$?
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); }; } &&
13515          { ac_try='test -s conftest$ac_exeext'
13516   { (case "(($ac_try" in
13517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518   *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521   (eval "$ac_try") 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; }; then
13525   ac_cv_search_op_open_agent=$ac_res
13526 else
13527   echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530
13531 fi
13532
13533 rm -f core conftest.err conftest.$ac_objext \
13534       conftest$ac_exeext
13535   if test "${ac_cv_search_op_open_agent+set}" = set; then
13536   break
13537 fi
13538 done
13539 if test "${ac_cv_search_op_open_agent+set}" = set; then
13540   :
13541 else
13542   ac_cv_search_op_open_agent=no
13543 fi
13544 rm conftest.$ac_ext
13545 LIBS=$ac_func_search_save_LIBS
13546 fi
13547 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13548 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13549 ac_res=$ac_cv_search_op_open_agent
13550 if test "$ac_res" != no; then
13551   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13552
13553 else
13554
13555           echo "Error! You need to have libopagent around."
13556           exit -1
13557
13558 fi
13559
13560         if test "${ac_cv_header_opagent_h+set}" = set; then
13561   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13562 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13563 if test "${ac_cv_header_opagent_h+set}" = set; then
13564   echo $ECHO_N "(cached) $ECHO_C" >&6
13565 fi
13566 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13568 else
13569   # Is the header compilable?
13570 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13571 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578 $ac_includes_default
13579 #include <opagent.h>
13580 _ACEOF
13581 rm -f conftest.$ac_objext
13582 if { (ac_try="$ac_compile"
13583 case "(($ac_try" in
13584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585   *) ac_try_echo=$ac_try;;
13586 esac
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588   (eval "$ac_compile") 2>conftest.er1
13589   ac_status=$?
13590   grep -v '^ *+' conftest.er1 >conftest.err
13591   rm -f conftest.er1
13592   cat conftest.err >&5
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } &&
13595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13596   { (case "(($ac_try" in
13597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598   *) ac_try_echo=$ac_try;;
13599 esac
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601   (eval "$ac_try") 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; } &&
13605          { ac_try='test -s conftest.$ac_objext'
13606   { (case "(($ac_try" in
13607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608   *) ac_try_echo=$ac_try;;
13609 esac
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611   (eval "$ac_try") 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; }; then
13615   ac_header_compiler=yes
13616 else
13617   echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13619
13620         ac_header_compiler=no
13621 fi
13622
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13625 echo "${ECHO_T}$ac_header_compiler" >&6; }
13626
13627 # Is the header present?
13628 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13629 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13630 cat >conftest.$ac_ext <<_ACEOF
13631 /* confdefs.h.  */
13632 _ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h.  */
13636 #include <opagent.h>
13637 _ACEOF
13638 if { (ac_try="$ac_cpp conftest.$ac_ext"
13639 case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } >/dev/null; then
13651   if test -s conftest.err; then
13652     ac_cpp_err=$ac_c_preproc_warn_flag
13653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13654   else
13655     ac_cpp_err=
13656   fi
13657 else
13658   ac_cpp_err=yes
13659 fi
13660 if test -z "$ac_cpp_err"; then
13661   ac_header_preproc=yes
13662 else
13663   echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13665
13666   ac_header_preproc=no
13667 fi
13668
13669 rm -f conftest.err conftest.$ac_ext
13670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13671 echo "${ECHO_T}$ac_header_preproc" >&6; }
13672
13673 # So?  What about this header?
13674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13675   yes:no: )
13676     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13677 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13678     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13679 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13680     ac_header_preproc=yes
13681     ;;
13682   no:yes:* )
13683     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13684 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13685     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13686 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13687     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13688 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13689     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13690 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13691     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13692 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13693     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13694 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13695     ( cat <<\_ASBOX
13696 ## ----------------------------------- ##
13697 ## Report this to llvmbugs@cs.uiuc.edu ##
13698 ## ----------------------------------- ##
13699 _ASBOX
13700      ) | sed "s/^/$as_me: WARNING:     /" >&2
13701     ;;
13702 esac
13703 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13704 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13705 if test "${ac_cv_header_opagent_h+set}" = set; then
13706   echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708   ac_cv_header_opagent_h=$ac_header_preproc
13709 fi
13710 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13711 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13712
13713 fi
13714 if test $ac_cv_header_opagent_h = yes; then
13715   :
13716 else
13717
13718           echo "Error! You need to have opagent.h around."
13719           exit -1
13720
13721 fi
13722
13723
13724       fi
13725
13726 else
13727
13728       USE_OPROFILE=0
13729
13730
13731 fi
13732
13733
13734 cat >>confdefs.h <<_ACEOF
13735 #define USE_OPROFILE $USE_OPROFILE
13736 _ACEOF
13737
13738
13739
13740
13741
13742
13743
13744
13745 ac_header_dirent=no
13746 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13747   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13748 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13749 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13751   echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753   cat >conftest.$ac_ext <<_ACEOF
13754 /* confdefs.h.  */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h.  */
13759 #include <sys/types.h>
13760 #include <$ac_hdr>
13761
13762 int
13763 main ()
13764 {
13765 if ((DIR *) 0)
13766 return 0;
13767   ;
13768   return 0;
13769 }
13770 _ACEOF
13771 rm -f conftest.$ac_objext
13772 if { (ac_try="$ac_compile"
13773 case "(($ac_try" in
13774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775   *) ac_try_echo=$ac_try;;
13776 esac
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778   (eval "$ac_compile") 2>conftest.er1
13779   ac_status=$?
13780   grep -v '^ *+' conftest.er1 >conftest.err
13781   rm -f conftest.er1
13782   cat conftest.err >&5
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } &&
13785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13786   { (case "(($ac_try" in
13787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788   *) ac_try_echo=$ac_try;;
13789 esac
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791   (eval "$ac_try") 2>&5
13792   ac_status=$?
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); }; } &&
13795          { ac_try='test -s conftest.$ac_objext'
13796   { (case "(($ac_try" in
13797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798   *) ac_try_echo=$ac_try;;
13799 esac
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801   (eval "$ac_try") 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; }; then
13805   eval "$as_ac_Header=yes"
13806 else
13807   echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13809
13810         eval "$as_ac_Header=no"
13811 fi
13812
13813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814 fi
13815 ac_res=`eval echo '${'$as_ac_Header'}'`
13816                { echo "$as_me:$LINENO: result: $ac_res" >&5
13817 echo "${ECHO_T}$ac_res" >&6; }
13818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13819   cat >>confdefs.h <<_ACEOF
13820 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13821 _ACEOF
13822
13823 ac_header_dirent=$ac_hdr; break
13824 fi
13825
13826 done
13827 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13828 if test $ac_header_dirent = dirent.h; then
13829   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13830 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13831 if test "${ac_cv_search_opendir+set}" = set; then
13832   echo $ECHO_N "(cached) $ECHO_C" >&6
13833 else
13834   ac_func_search_save_LIBS=$LIBS
13835 cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h.  */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h.  */
13841
13842 /* Override any GCC internal prototype to avoid an error.
13843    Use char because int might match the return type of a GCC
13844    builtin and then its argument prototype would still apply.  */
13845 #ifdef __cplusplus
13846 extern "C"
13847 #endif
13848 char opendir ();
13849 int
13850 main ()
13851 {
13852 return opendir ();
13853   ;
13854   return 0;
13855 }
13856 _ACEOF
13857 for ac_lib in '' dir; do
13858   if test -z "$ac_lib"; then
13859     ac_res="none required"
13860   else
13861     ac_res=-l$ac_lib
13862     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13863   fi
13864   rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_link") 2>conftest.er1
13872   ac_status=$?
13873   grep -v '^ *+' conftest.er1 >conftest.err
13874   rm -f conftest.er1
13875   cat conftest.err >&5
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); } &&
13878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13879   { (case "(($ac_try" in
13880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881   *) ac_try_echo=$ac_try;;
13882 esac
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884   (eval "$ac_try") 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); }; } &&
13888          { ac_try='test -s conftest$ac_exeext'
13889   { (case "(($ac_try" in
13890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891   *) ac_try_echo=$ac_try;;
13892 esac
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894   (eval "$ac_try") 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; }; then
13898   ac_cv_search_opendir=$ac_res
13899 else
13900   echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903
13904 fi
13905
13906 rm -f core conftest.err conftest.$ac_objext \
13907       conftest$ac_exeext
13908   if test "${ac_cv_search_opendir+set}" = set; then
13909   break
13910 fi
13911 done
13912 if test "${ac_cv_search_opendir+set}" = set; then
13913   :
13914 else
13915   ac_cv_search_opendir=no
13916 fi
13917 rm conftest.$ac_ext
13918 LIBS=$ac_func_search_save_LIBS
13919 fi
13920 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13921 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13922 ac_res=$ac_cv_search_opendir
13923 if test "$ac_res" != no; then
13924   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13925
13926 fi
13927
13928 else
13929   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13930 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13931 if test "${ac_cv_search_opendir+set}" = set; then
13932   echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934   ac_func_search_save_LIBS=$LIBS
13935 cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h.  */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h.  */
13941
13942 /* Override any GCC internal prototype to avoid an error.
13943    Use char because int might match the return type of a GCC
13944    builtin and then its argument prototype would still apply.  */
13945 #ifdef __cplusplus
13946 extern "C"
13947 #endif
13948 char opendir ();
13949 int
13950 main ()
13951 {
13952 return opendir ();
13953   ;
13954   return 0;
13955 }
13956 _ACEOF
13957 for ac_lib in '' x; do
13958   if test -z "$ac_lib"; then
13959     ac_res="none required"
13960   else
13961     ac_res=-l$ac_lib
13962     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13963   fi
13964   rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (ac_try="$ac_link"
13966 case "(($ac_try" in
13967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968   *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971   (eval "$ac_link") 2>conftest.er1
13972   ac_status=$?
13973   grep -v '^ *+' conftest.er1 >conftest.err
13974   rm -f conftest.er1
13975   cat conftest.err >&5
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); } &&
13978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979   { (case "(($ac_try" in
13980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981   *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984   (eval "$ac_try") 2>&5
13985   ac_status=$?
13986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987   (exit $ac_status); }; } &&
13988          { ac_try='test -s conftest$ac_exeext'
13989   { (case "(($ac_try" in
13990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991   *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994   (eval "$ac_try") 2>&5
13995   ac_status=$?
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); }; }; then
13998   ac_cv_search_opendir=$ac_res
13999 else
14000   echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14002
14003
14004 fi
14005
14006 rm -f core conftest.err conftest.$ac_objext \
14007       conftest$ac_exeext
14008   if test "${ac_cv_search_opendir+set}" = set; then
14009   break
14010 fi
14011 done
14012 if test "${ac_cv_search_opendir+set}" = set; then
14013   :
14014 else
14015   ac_cv_search_opendir=no
14016 fi
14017 rm conftest.$ac_ext
14018 LIBS=$ac_func_search_save_LIBS
14019 fi
14020 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14021 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14022 ac_res=$ac_cv_search_opendir
14023 if test "$ac_res" != no; then
14024   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14025
14026 fi
14027
14028 fi
14029
14030 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14031 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14032 if test "${ac_cv_header_mmap_anon+set}" = set; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035    ac_ext=c
14036 ac_cpp='$CPP $CPPFLAGS'
14037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14040
14041   cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h.  */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h.  */
14047 #include <sys/mman.h>
14048 #include <unistd.h>
14049 #include <fcntl.h>
14050 int
14051 main ()
14052 {
14053 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14054   ;
14055   return 0;
14056 }
14057 _ACEOF
14058 rm -f conftest.$ac_objext
14059 if { (ac_try="$ac_compile"
14060 case "(($ac_try" in
14061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062   *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065   (eval "$ac_compile") 2>conftest.er1
14066   ac_status=$?
14067   grep -v '^ *+' conftest.er1 >conftest.err
14068   rm -f conftest.er1
14069   cat conftest.err >&5
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); } &&
14072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073   { (case "(($ac_try" in
14074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075   *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078   (eval "$ac_try") 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; } &&
14082          { ac_try='test -s conftest.$ac_objext'
14083   { (case "(($ac_try" in
14084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085   *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088   (eval "$ac_try") 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; }; then
14092   ac_cv_header_mmap_anon=yes
14093 else
14094   echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097         ac_cv_header_mmap_anon=no
14098 fi
14099
14100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101   ac_ext=c
14102 ac_cpp='$CPP $CPPFLAGS'
14103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14106
14107
14108 fi
14109 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14110 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14111 if test "$ac_cv_header_mmap_anon" = yes; then
14112
14113 cat >>confdefs.h <<\_ACEOF
14114 #define HAVE_MMAP_ANONYMOUS 1
14115 _ACEOF
14116
14117 fi
14118
14119 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14120 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14121 if test "${ac_cv_header_stat_broken+set}" = set; then
14122   echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124   cat >conftest.$ac_ext <<_ACEOF
14125 /* confdefs.h.  */
14126 _ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h.  */
14130 #include <sys/types.h>
14131 #include <sys/stat.h>
14132
14133 #if defined S_ISBLK && defined S_IFDIR
14134 # if S_ISBLK (S_IFDIR)
14135 You lose.
14136 # endif
14137 #endif
14138
14139 #if defined S_ISBLK && defined S_IFCHR
14140 # if S_ISBLK (S_IFCHR)
14141 You lose.
14142 # endif
14143 #endif
14144
14145 #if defined S_ISLNK && defined S_IFREG
14146 # if S_ISLNK (S_IFREG)
14147 You lose.
14148 # endif
14149 #endif
14150
14151 #if defined S_ISSOCK && defined S_IFREG
14152 # if S_ISSOCK (S_IFREG)
14153 You lose.
14154 # endif
14155 #endif
14156
14157 _ACEOF
14158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14159   $EGREP "You lose" >/dev/null 2>&1; then
14160   ac_cv_header_stat_broken=yes
14161 else
14162   ac_cv_header_stat_broken=no
14163 fi
14164 rm -f conftest*
14165
14166 fi
14167 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14168 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14169 if test $ac_cv_header_stat_broken = yes; then
14170
14171 cat >>confdefs.h <<\_ACEOF
14172 #define STAT_MACROS_BROKEN 1
14173 _ACEOF
14174
14175 fi
14176
14177 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14178 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14179 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h.  */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h.  */
14188 #include <sys/types.h>
14189 #include <sys/wait.h>
14190 #ifndef WEXITSTATUS
14191 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14192 #endif
14193 #ifndef WIFEXITED
14194 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14195 #endif
14196
14197 int
14198 main ()
14199 {
14200   int s;
14201   wait (&s);
14202   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14203   ;
14204   return 0;
14205 }
14206 _ACEOF
14207 rm -f conftest.$ac_objext
14208 if { (ac_try="$ac_compile"
14209 case "(($ac_try" in
14210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211   *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214   (eval "$ac_compile") 2>conftest.er1
14215   ac_status=$?
14216   grep -v '^ *+' conftest.er1 >conftest.err
14217   rm -f conftest.er1
14218   cat conftest.err >&5
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); } &&
14221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14222   { (case "(($ac_try" in
14223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224   *) ac_try_echo=$ac_try;;
14225 esac
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227   (eval "$ac_try") 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; } &&
14231          { ac_try='test -s conftest.$ac_objext'
14232   { (case "(($ac_try" in
14233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234   *) ac_try_echo=$ac_try;;
14235 esac
14236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237   (eval "$ac_try") 2>&5
14238   ac_status=$?
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); }; }; then
14241   ac_cv_header_sys_wait_h=yes
14242 else
14243   echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246         ac_cv_header_sys_wait_h=no
14247 fi
14248
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250 fi
14251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14252 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14253 if test $ac_cv_header_sys_wait_h = yes; then
14254
14255 cat >>confdefs.h <<\_ACEOF
14256 #define HAVE_SYS_WAIT_H 1
14257 _ACEOF
14258
14259 fi
14260
14261 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14262 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14263 if test "${ac_cv_header_time+set}" = set; then
14264   echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266   cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272 #include <sys/types.h>
14273 #include <sys/time.h>
14274 #include <time.h>
14275
14276 int
14277 main ()
14278 {
14279 if ((struct tm *) 0)
14280 return 0;
14281   ;
14282   return 0;
14283 }
14284 _ACEOF
14285 rm -f conftest.$ac_objext
14286 if { (ac_try="$ac_compile"
14287 case "(($ac_try" in
14288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289   *) ac_try_echo=$ac_try;;
14290 esac
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292   (eval "$ac_compile") 2>conftest.er1
14293   ac_status=$?
14294   grep -v '^ *+' conftest.er1 >conftest.err
14295   rm -f conftest.er1
14296   cat conftest.err >&5
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); } &&
14299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14300   { (case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305   (eval "$ac_try") 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); }; } &&
14309          { ac_try='test -s conftest.$ac_objext'
14310   { (case "(($ac_try" in
14311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312   *) ac_try_echo=$ac_try;;
14313 esac
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315   (eval "$ac_try") 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); }; }; then
14319   ac_cv_header_time=yes
14320 else
14321   echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14323
14324         ac_cv_header_time=no
14325 fi
14326
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328 fi
14329 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14330 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14331 if test $ac_cv_header_time = yes; then
14332
14333 cat >>confdefs.h <<\_ACEOF
14334 #define TIME_WITH_SYS_TIME 1
14335 _ACEOF
14336
14337 fi
14338
14339
14340
14341
14342
14343
14344
14345
14346 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14347 do
14348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14353   echo $ECHO_N "(cached) $ECHO_C" >&6
14354 fi
14355 ac_res=`eval echo '${'$as_ac_Header'}'`
14356                { echo "$as_me:$LINENO: result: $ac_res" >&5
14357 echo "${ECHO_T}$ac_res" >&6; }
14358 else
14359   # Is the header compilable?
14360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14362 cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368 $ac_includes_default
14369 #include <$ac_header>
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (ac_try="$ac_compile"
14373 case "(($ac_try" in
14374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375   *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378   (eval "$ac_compile") 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } &&
14385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14386   { (case "(($ac_try" in
14387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388   *) ac_try_echo=$ac_try;;
14389 esac
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391   (eval "$ac_try") 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; } &&
14395          { ac_try='test -s conftest.$ac_objext'
14396   { (case "(($ac_try" in
14397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398   *) ac_try_echo=$ac_try;;
14399 esac
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401   (eval "$ac_try") 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }; }; then
14405   ac_header_compiler=yes
14406 else
14407   echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14409
14410         ac_header_compiler=no
14411 fi
14412
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14415 echo "${ECHO_T}$ac_header_compiler" >&6; }
14416
14417 # Is the header present?
14418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h.  */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h.  */
14426 #include <$ac_header>
14427 _ACEOF
14428 if { (ac_try="$ac_cpp conftest.$ac_ext"
14429 case "(($ac_try" in
14430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431   *) ac_try_echo=$ac_try;;
14432 esac
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14435   ac_status=$?
14436   grep -v '^ *+' conftest.er1 >conftest.err
14437   rm -f conftest.er1
14438   cat conftest.err >&5
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); } >/dev/null; then
14441   if test -s conftest.err; then
14442     ac_cpp_err=$ac_c_preproc_warn_flag
14443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14444   else
14445     ac_cpp_err=
14446   fi
14447 else
14448   ac_cpp_err=yes
14449 fi
14450 if test -z "$ac_cpp_err"; then
14451   ac_header_preproc=yes
14452 else
14453   echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456   ac_header_preproc=no
14457 fi
14458
14459 rm -f conftest.err conftest.$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14461 echo "${ECHO_T}$ac_header_preproc" >&6; }
14462
14463 # So?  What about this header?
14464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14465   yes:no: )
14466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14470     ac_header_preproc=yes
14471     ;;
14472   no:yes:* )
14473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14485     ( cat <<\_ASBOX
14486 ## ----------------------------------- ##
14487 ## Report this to llvmbugs@cs.uiuc.edu ##
14488 ## ----------------------------------- ##
14489 _ASBOX
14490      ) | sed "s/^/$as_me: WARNING:     /" >&2
14491     ;;
14492 esac
14493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496   echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498   eval "$as_ac_Header=\$ac_header_preproc"
14499 fi
14500 ac_res=`eval echo '${'$as_ac_Header'}'`
14501                { echo "$as_me:$LINENO: result: $ac_res" >&5
14502 echo "${ECHO_T}$ac_res" >&6; }
14503
14504 fi
14505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14506   cat >>confdefs.h <<_ACEOF
14507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14508 _ACEOF
14509
14510 fi
14511
14512 done
14513
14514
14515
14516
14517
14518
14519
14520 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14521 do
14522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14524   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 fi
14529 ac_res=`eval echo '${'$as_ac_Header'}'`
14530                { echo "$as_me:$LINENO: result: $ac_res" >&5
14531 echo "${ECHO_T}$ac_res" >&6; }
14532 else
14533   # Is the header compilable?
14534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14536 cat >conftest.$ac_ext <<_ACEOF
14537 /* confdefs.h.  */
14538 _ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h.  */
14542 $ac_includes_default
14543 #include <$ac_header>
14544 _ACEOF
14545 rm -f conftest.$ac_objext
14546 if { (ac_try="$ac_compile"
14547 case "(($ac_try" in
14548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549   *) ac_try_echo=$ac_try;;
14550 esac
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552   (eval "$ac_compile") 2>conftest.er1
14553   ac_status=$?
14554   grep -v '^ *+' conftest.er1 >conftest.err
14555   rm -f conftest.er1
14556   cat conftest.err >&5
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); } &&
14559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14560   { (case "(($ac_try" in
14561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562   *) ac_try_echo=$ac_try;;
14563 esac
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565   (eval "$ac_try") 2>&5
14566   ac_status=$?
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); }; } &&
14569          { ac_try='test -s conftest.$ac_objext'
14570   { (case "(($ac_try" in
14571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572   *) ac_try_echo=$ac_try;;
14573 esac
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575   (eval "$ac_try") 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); }; }; then
14579   ac_header_compiler=yes
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584         ac_header_compiler=no
14585 fi
14586
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14589 echo "${ECHO_T}$ac_header_compiler" >&6; }
14590
14591 # Is the header present?
14592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14594 cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h.  */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h.  */
14600 #include <$ac_header>
14601 _ACEOF
14602 if { (ac_try="$ac_cpp conftest.$ac_ext"
14603 case "(($ac_try" in
14604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605   *) ac_try_echo=$ac_try;;
14606 esac
14607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14609   ac_status=$?
14610   grep -v '^ *+' conftest.er1 >conftest.err
14611   rm -f conftest.er1
14612   cat conftest.err >&5
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } >/dev/null; then
14615   if test -s conftest.err; then
14616     ac_cpp_err=$ac_c_preproc_warn_flag
14617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14618   else
14619     ac_cpp_err=
14620   fi
14621 else
14622   ac_cpp_err=yes
14623 fi
14624 if test -z "$ac_cpp_err"; then
14625   ac_header_preproc=yes
14626 else
14627   echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630   ac_header_preproc=no
14631 fi
14632
14633 rm -f conftest.err conftest.$ac_ext
14634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14635 echo "${ECHO_T}$ac_header_preproc" >&6; }
14636
14637 # So?  What about this header?
14638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14639   yes:no: )
14640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14644     ac_header_preproc=yes
14645     ;;
14646   no:yes:* )
14647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14659     ( cat <<\_ASBOX
14660 ## ----------------------------------- ##
14661 ## Report this to llvmbugs@cs.uiuc.edu ##
14662 ## ----------------------------------- ##
14663 _ASBOX
14664      ) | sed "s/^/$as_me: WARNING:     /" >&2
14665     ;;
14666 esac
14667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14670   echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672   eval "$as_ac_Header=\$ac_header_preproc"
14673 fi
14674 ac_res=`eval echo '${'$as_ac_Header'}'`
14675                { echo "$as_me:$LINENO: result: $ac_res" >&5
14676 echo "${ECHO_T}$ac_res" >&6; }
14677
14678 fi
14679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14680   cat >>confdefs.h <<_ACEOF
14681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14682 _ACEOF
14683
14684 fi
14685
14686 done
14687
14688
14689
14690 for ac_header in utime.h windows.h
14691 do
14692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14697   echo $ECHO_N "(cached) $ECHO_C" >&6
14698 fi
14699 ac_res=`eval echo '${'$as_ac_Header'}'`
14700                { echo "$as_me:$LINENO: result: $ac_res" >&5
14701 echo "${ECHO_T}$ac_res" >&6; }
14702 else
14703   # Is the header compilable?
14704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712 $ac_includes_default
14713 #include <$ac_header>
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722   (eval "$ac_compile") 2>conftest.er1
14723   ac_status=$?
14724   grep -v '^ *+' conftest.er1 >conftest.err
14725   rm -f conftest.er1
14726   cat conftest.err >&5
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } &&
14729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14730   { (case "(($ac_try" in
14731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732   *) ac_try_echo=$ac_try;;
14733 esac
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735   (eval "$ac_try") 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; } &&
14739          { ac_try='test -s conftest.$ac_objext'
14740   { (case "(($ac_try" in
14741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742   *) ac_try_echo=$ac_try;;
14743 esac
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745   (eval "$ac_try") 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); }; }; then
14749   ac_header_compiler=yes
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754         ac_header_compiler=no
14755 fi
14756
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14759 echo "${ECHO_T}$ac_header_compiler" >&6; }
14760
14761 # Is the header present?
14762 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14764 cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h.  */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h.  */
14770 #include <$ac_header>
14771 _ACEOF
14772 if { (ac_try="$ac_cpp conftest.$ac_ext"
14773 case "(($ac_try" in
14774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775   *) ac_try_echo=$ac_try;;
14776 esac
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14779   ac_status=$?
14780   grep -v '^ *+' conftest.er1 >conftest.err
14781   rm -f conftest.er1
14782   cat conftest.err >&5
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); } >/dev/null; then
14785   if test -s conftest.err; then
14786     ac_cpp_err=$ac_c_preproc_warn_flag
14787     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14788   else
14789     ac_cpp_err=
14790   fi
14791 else
14792   ac_cpp_err=yes
14793 fi
14794 if test -z "$ac_cpp_err"; then
14795   ac_header_preproc=yes
14796 else
14797   echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14799
14800   ac_header_preproc=no
14801 fi
14802
14803 rm -f conftest.err conftest.$ac_ext
14804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14805 echo "${ECHO_T}$ac_header_preproc" >&6; }
14806
14807 # So?  What about this header?
14808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14809   yes:no: )
14810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14814     ac_header_preproc=yes
14815     ;;
14816   no:yes:* )
14817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14829     ( cat <<\_ASBOX
14830 ## ----------------------------------- ##
14831 ## Report this to llvmbugs@cs.uiuc.edu ##
14832 ## ----------------------------------- ##
14833 _ASBOX
14834      ) | sed "s/^/$as_me: WARNING:     /" >&2
14835     ;;
14836 esac
14837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14840   echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842   eval "$as_ac_Header=\$ac_header_preproc"
14843 fi
14844 ac_res=`eval echo '${'$as_ac_Header'}'`
14845                { echo "$as_me:$LINENO: result: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14847
14848 fi
14849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14850   cat >>confdefs.h <<_ACEOF
14851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14852 _ACEOF
14853
14854 fi
14855
14856 done
14857
14858
14859
14860
14861
14862
14863 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14864 do
14865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14867   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14870   echo $ECHO_N "(cached) $ECHO_C" >&6
14871 fi
14872 ac_res=`eval echo '${'$as_ac_Header'}'`
14873                { echo "$as_me:$LINENO: result: $ac_res" >&5
14874 echo "${ECHO_T}$ac_res" >&6; }
14875 else
14876   # Is the header compilable?
14877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14879 cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h.  */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h.  */
14885 $ac_includes_default
14886 #include <$ac_header>
14887 _ACEOF
14888 rm -f conftest.$ac_objext
14889 if { (ac_try="$ac_compile"
14890 case "(($ac_try" in
14891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892   *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895   (eval "$ac_compile") 2>conftest.er1
14896   ac_status=$?
14897   grep -v '^ *+' conftest.er1 >conftest.err
14898   rm -f conftest.er1
14899   cat conftest.err >&5
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); } &&
14902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14903   { (case "(($ac_try" in
14904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905   *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908   (eval "$ac_try") 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); }; } &&
14912          { ac_try='test -s conftest.$ac_objext'
14913   { (case "(($ac_try" in
14914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915   *) ac_try_echo=$ac_try;;
14916 esac
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918   (eval "$ac_try") 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); }; }; then
14922   ac_header_compiler=yes
14923 else
14924   echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927         ac_header_compiler=no
14928 fi
14929
14930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932 echo "${ECHO_T}$ac_header_compiler" >&6; }
14933
14934 # Is the header present?
14935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h.  */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h.  */
14943 #include <$ac_header>
14944 _ACEOF
14945 if { (ac_try="$ac_cpp conftest.$ac_ext"
14946 case "(($ac_try" in
14947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948   *) ac_try_echo=$ac_try;;
14949 esac
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14952   ac_status=$?
14953   grep -v '^ *+' conftest.er1 >conftest.err
14954   rm -f conftest.er1
14955   cat conftest.err >&5
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } >/dev/null; then
14958   if test -s conftest.err; then
14959     ac_cpp_err=$ac_c_preproc_warn_flag
14960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14961   else
14962     ac_cpp_err=
14963   fi
14964 else
14965   ac_cpp_err=yes
14966 fi
14967 if test -z "$ac_cpp_err"; then
14968   ac_header_preproc=yes
14969 else
14970   echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14972
14973   ac_header_preproc=no
14974 fi
14975
14976 rm -f conftest.err conftest.$ac_ext
14977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978 echo "${ECHO_T}$ac_header_preproc" >&6; }
14979
14980 # So?  What about this header?
14981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982   yes:no: )
14983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14987     ac_header_preproc=yes
14988     ;;
14989   no:yes:* )
14990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14992     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14993 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14994     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14996     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14997 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15000     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15002     ( cat <<\_ASBOX
15003 ## ----------------------------------- ##
15004 ## Report this to llvmbugs@cs.uiuc.edu ##
15005 ## ----------------------------------- ##
15006 _ASBOX
15007      ) | sed "s/^/$as_me: WARNING:     /" >&2
15008     ;;
15009 esac
15010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013   echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015   eval "$as_ac_Header=\$ac_header_preproc"
15016 fi
15017 ac_res=`eval echo '${'$as_ac_Header'}'`
15018                { echo "$as_me:$LINENO: result: $ac_res" >&5
15019 echo "${ECHO_T}$ac_res" >&6; }
15020
15021 fi
15022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15023   cat >>confdefs.h <<_ACEOF
15024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15025 _ACEOF
15026
15027 fi
15028
15029 done
15030
15031
15032
15033
15034
15035 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15036 do
15037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15039   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15042   echo $ECHO_N "(cached) $ECHO_C" >&6
15043 fi
15044 ac_res=`eval echo '${'$as_ac_Header'}'`
15045                { echo "$as_me:$LINENO: result: $ac_res" >&5
15046 echo "${ECHO_T}$ac_res" >&6; }
15047 else
15048   # Is the header compilable?
15049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15051 cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057 $ac_includes_default
15058 #include <$ac_header>
15059 _ACEOF
15060 rm -f conftest.$ac_objext
15061 if { (ac_try="$ac_compile"
15062 case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067   (eval "$ac_compile") 2>conftest.er1
15068   ac_status=$?
15069   grep -v '^ *+' conftest.er1 >conftest.err
15070   rm -f conftest.er1
15071   cat conftest.err >&5
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); } &&
15074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15075   { (case "(($ac_try" in
15076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077   *) ac_try_echo=$ac_try;;
15078 esac
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080   (eval "$ac_try") 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); }; } &&
15084          { ac_try='test -s conftest.$ac_objext'
15085   { (case "(($ac_try" in
15086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087   *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090   (eval "$ac_try") 2>&5
15091   ac_status=$?
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); }; }; then
15094   ac_header_compiler=yes
15095 else
15096   echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099         ac_header_compiler=no
15100 fi
15101
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15104 echo "${ECHO_T}$ac_header_compiler" >&6; }
15105
15106 # Is the header present?
15107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15109 cat >conftest.$ac_ext <<_ACEOF
15110 /* confdefs.h.  */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h.  */
15115 #include <$ac_header>
15116 _ACEOF
15117 if { (ac_try="$ac_cpp conftest.$ac_ext"
15118 case "(($ac_try" in
15119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120   *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15124   ac_status=$?
15125   grep -v '^ *+' conftest.er1 >conftest.err
15126   rm -f conftest.er1
15127   cat conftest.err >&5
15128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); } >/dev/null; then
15130   if test -s conftest.err; then
15131     ac_cpp_err=$ac_c_preproc_warn_flag
15132     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15133   else
15134     ac_cpp_err=
15135   fi
15136 else
15137   ac_cpp_err=yes
15138 fi
15139 if test -z "$ac_cpp_err"; then
15140   ac_header_preproc=yes
15141 else
15142   echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15144
15145   ac_header_preproc=no
15146 fi
15147
15148 rm -f conftest.err conftest.$ac_ext
15149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15150 echo "${ECHO_T}$ac_header_preproc" >&6; }
15151
15152 # So?  What about this header?
15153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15154   yes:no: )
15155     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15159     ac_header_preproc=yes
15160     ;;
15161   no:yes:* )
15162     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15164     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15165 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15166     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15168     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15169 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15172     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15174     ( cat <<\_ASBOX
15175 ## ----------------------------------- ##
15176 ## Report this to llvmbugs@cs.uiuc.edu ##
15177 ## ----------------------------------- ##
15178 _ASBOX
15179      ) | sed "s/^/$as_me: WARNING:     /" >&2
15180     ;;
15181 esac
15182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187   eval "$as_ac_Header=\$ac_header_preproc"
15188 fi
15189 ac_res=`eval echo '${'$as_ac_Header'}'`
15190                { echo "$as_me:$LINENO: result: $ac_res" >&5
15191 echo "${ECHO_T}$ac_res" >&6; }
15192
15193 fi
15194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15195   cat >>confdefs.h <<_ACEOF
15196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15197 _ACEOF
15198
15199 fi
15200
15201 done
15202
15203
15204 for ac_header in valgrind/valgrind.h
15205 do
15206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15208   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15211   echo $ECHO_N "(cached) $ECHO_C" >&6
15212 fi
15213 ac_res=`eval echo '${'$as_ac_Header'}'`
15214                { echo "$as_me:$LINENO: result: $ac_res" >&5
15215 echo "${ECHO_T}$ac_res" >&6; }
15216 else
15217   # Is the header compilable?
15218 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15220 cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h.  */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h.  */
15226 $ac_includes_default
15227 #include <$ac_header>
15228 _ACEOF
15229 rm -f conftest.$ac_objext
15230 if { (ac_try="$ac_compile"
15231 case "(($ac_try" in
15232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233   *) ac_try_echo=$ac_try;;
15234 esac
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236   (eval "$ac_compile") 2>conftest.er1
15237   ac_status=$?
15238   grep -v '^ *+' conftest.er1 >conftest.err
15239   rm -f conftest.er1
15240   cat conftest.err >&5
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); } &&
15243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244   { (case "(($ac_try" in
15245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246   *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249   (eval "$ac_try") 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; } &&
15253          { ac_try='test -s conftest.$ac_objext'
15254   { (case "(($ac_try" in
15255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256   *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259   (eval "$ac_try") 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   ac_header_compiler=yes
15264 else
15265   echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15267
15268         ac_header_compiler=no
15269 fi
15270
15271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15273 echo "${ECHO_T}$ac_header_compiler" >&6; }
15274
15275 # Is the header present?
15276 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284 #include <$ac_header>
15285 _ACEOF
15286 if { (ac_try="$ac_cpp conftest.$ac_ext"
15287 case "(($ac_try" in
15288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289   *) ac_try_echo=$ac_try;;
15290 esac
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15293   ac_status=$?
15294   grep -v '^ *+' conftest.er1 >conftest.err
15295   rm -f conftest.er1
15296   cat conftest.err >&5
15297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298   (exit $ac_status); } >/dev/null; then
15299   if test -s conftest.err; then
15300     ac_cpp_err=$ac_c_preproc_warn_flag
15301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15302   else
15303     ac_cpp_err=
15304   fi
15305 else
15306   ac_cpp_err=yes
15307 fi
15308 if test -z "$ac_cpp_err"; then
15309   ac_header_preproc=yes
15310 else
15311   echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15313
15314   ac_header_preproc=no
15315 fi
15316
15317 rm -f conftest.err conftest.$ac_ext
15318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 echo "${ECHO_T}$ac_header_preproc" >&6; }
15320
15321 # So?  What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15323   yes:no: )
15324     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15328     ac_header_preproc=yes
15329     ;;
15330   no:yes:* )
15331     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15333     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15334 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15335     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15337     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15338 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15341     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15343     ( cat <<\_ASBOX
15344 ## ----------------------------------- ##
15345 ## Report this to llvmbugs@cs.uiuc.edu ##
15346 ## ----------------------------------- ##
15347 _ASBOX
15348      ) | sed "s/^/$as_me: WARNING:     /" >&2
15349     ;;
15350 esac
15351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354   echo $ECHO_N "(cached) $ECHO_C" >&6
15355 else
15356   eval "$as_ac_Header=\$ac_header_preproc"
15357 fi
15358 ac_res=`eval echo '${'$as_ac_Header'}'`
15359                { echo "$as_me:$LINENO: result: $ac_res" >&5
15360 echo "${ECHO_T}$ac_res" >&6; }
15361
15362 fi
15363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15364   cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15366 _ACEOF
15367
15368 fi
15369
15370 done
15371
15372
15373 for ac_header in fenv.h
15374 do
15375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15377   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15380   echo $ECHO_N "(cached) $ECHO_C" >&6
15381 fi
15382 ac_res=`eval echo '${'$as_ac_Header'}'`
15383                { echo "$as_me:$LINENO: result: $ac_res" >&5
15384 echo "${ECHO_T}$ac_res" >&6; }
15385 else
15386   # Is the header compilable?
15387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15389 cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h.  */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h.  */
15395 $ac_includes_default
15396 #include <$ac_header>
15397 _ACEOF
15398 rm -f conftest.$ac_objext
15399 if { (ac_try="$ac_compile"
15400 case "(($ac_try" in
15401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402   *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405   (eval "$ac_compile") 2>conftest.er1
15406   ac_status=$?
15407   grep -v '^ *+' conftest.er1 >conftest.err
15408   rm -f conftest.er1
15409   cat conftest.err >&5
15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); } &&
15412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15413   { (case "(($ac_try" in
15414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415   *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418   (eval "$ac_try") 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); }; } &&
15422          { ac_try='test -s conftest.$ac_objext'
15423   { (case "(($ac_try" in
15424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425   *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428   (eval "$ac_try") 2>&5
15429   ac_status=$?
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); }; }; then
15432   ac_header_compiler=yes
15433 else
15434   echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15436
15437         ac_header_compiler=no
15438 fi
15439
15440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15442 echo "${ECHO_T}$ac_header_compiler" >&6; }
15443
15444 # Is the header present?
15445 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15447 cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h.  */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h.  */
15453 #include <$ac_header>
15454 _ACEOF
15455 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15468   if test -s conftest.err; then
15469     ac_cpp_err=$ac_c_preproc_warn_flag
15470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15471   else
15472     ac_cpp_err=
15473   fi
15474 else
15475   ac_cpp_err=yes
15476 fi
15477 if test -z "$ac_cpp_err"; then
15478   ac_header_preproc=yes
15479 else
15480   echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15482
15483   ac_header_preproc=no
15484 fi
15485
15486 rm -f conftest.err conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15488 echo "${ECHO_T}$ac_header_preproc" >&6; }
15489
15490 # So?  What about this header?
15491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15492   yes:no: )
15493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15497     ac_header_preproc=yes
15498     ;;
15499   no:yes:* )
15500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15512     ( cat <<\_ASBOX
15513 ## ----------------------------------- ##
15514 ## Report this to llvmbugs@cs.uiuc.edu ##
15515 ## ----------------------------------- ##
15516 _ASBOX
15517      ) | sed "s/^/$as_me: WARNING:     /" >&2
15518     ;;
15519 esac
15520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15523   echo $ECHO_N "(cached) $ECHO_C" >&6
15524 else
15525   eval "$as_ac_Header=\$ac_header_preproc"
15526 fi
15527 ac_res=`eval echo '${'$as_ac_Header'}'`
15528                { echo "$as_me:$LINENO: result: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15530
15531 fi
15532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15533   cat >>confdefs.h <<_ACEOF
15534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15535 _ACEOF
15536
15537 fi
15538
15539 done
15540
15541 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15542
15543 for ac_header in pthread.h
15544 do
15545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15547   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 fi
15552 ac_res=`eval echo '${'$as_ac_Header'}'`
15553                { echo "$as_me:$LINENO: result: $ac_res" >&5
15554 echo "${ECHO_T}$ac_res" >&6; }
15555 else
15556   # Is the header compilable?
15557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15559 cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h.  */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h.  */
15565 $ac_includes_default
15566 #include <$ac_header>
15567 _ACEOF
15568 rm -f conftest.$ac_objext
15569 if { (ac_try="$ac_compile"
15570 case "(($ac_try" in
15571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572   *) ac_try_echo=$ac_try;;
15573 esac
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575   (eval "$ac_compile") 2>conftest.er1
15576   ac_status=$?
15577   grep -v '^ *+' conftest.er1 >conftest.err
15578   rm -f conftest.er1
15579   cat conftest.err >&5
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); } &&
15582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15583   { (case "(($ac_try" in
15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585   *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588   (eval "$ac_try") 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; } &&
15592          { ac_try='test -s conftest.$ac_objext'
15593   { (case "(($ac_try" in
15594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595   *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598   (eval "$ac_try") 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; }; then
15602   ac_header_compiler=yes
15603 else
15604   echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15606
15607         ac_header_compiler=no
15608 fi
15609
15610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15612 echo "${ECHO_T}$ac_header_compiler" >&6; }
15613
15614 # Is the header present?
15615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h.  */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h.  */
15623 #include <$ac_header>
15624 _ACEOF
15625 if { (ac_try="$ac_cpp conftest.$ac_ext"
15626 case "(($ac_try" in
15627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628   *) ac_try_echo=$ac_try;;
15629 esac
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15632   ac_status=$?
15633   grep -v '^ *+' conftest.er1 >conftest.err
15634   rm -f conftest.er1
15635   cat conftest.err >&5
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); } >/dev/null; then
15638   if test -s conftest.err; then
15639     ac_cpp_err=$ac_c_preproc_warn_flag
15640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15641   else
15642     ac_cpp_err=
15643   fi
15644 else
15645   ac_cpp_err=yes
15646 fi
15647 if test -z "$ac_cpp_err"; then
15648   ac_header_preproc=yes
15649 else
15650   echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15652
15653   ac_header_preproc=no
15654 fi
15655
15656 rm -f conftest.err conftest.$ac_ext
15657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15658 echo "${ECHO_T}$ac_header_preproc" >&6; }
15659
15660 # So?  What about this header?
15661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15662   yes:no: )
15663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15667     ac_header_preproc=yes
15668     ;;
15669   no:yes:* )
15670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15682     ( cat <<\_ASBOX
15683 ## ----------------------------------- ##
15684 ## Report this to llvmbugs@cs.uiuc.edu ##
15685 ## ----------------------------------- ##
15686 _ASBOX
15687      ) | sed "s/^/$as_me: WARNING:     /" >&2
15688     ;;
15689 esac
15690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693   echo $ECHO_N "(cached) $ECHO_C" >&6
15694 else
15695   eval "$as_ac_Header=\$ac_header_preproc"
15696 fi
15697 ac_res=`eval echo '${'$as_ac_Header'}'`
15698                { echo "$as_me:$LINENO: result: $ac_res" >&5
15699 echo "${ECHO_T}$ac_res" >&6; }
15700
15701 fi
15702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15703   cat >>confdefs.h <<_ACEOF
15704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15705 _ACEOF
15706  HAVE_PTHREAD=1
15707
15708 else
15709   HAVE_PTHREAD=0
15710
15711 fi
15712
15713 done
15714
15715 else
15716   HAVE_PTHREAD=0
15717
15718 fi
15719
15720 if test "$llvm_cv_enable_libffi" = "yes" ; then
15721
15722
15723 for ac_header in ffi.h ffi/ffi.h
15724 do
15725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15727   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15730   echo $ECHO_N "(cached) $ECHO_C" >&6
15731 fi
15732 ac_res=`eval echo '${'$as_ac_Header'}'`
15733                { echo "$as_me:$LINENO: result: $ac_res" >&5
15734 echo "${ECHO_T}$ac_res" >&6; }
15735 else
15736   # Is the header compilable?
15737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745 $ac_includes_default
15746 #include <$ac_header>
15747 _ACEOF
15748 rm -f conftest.$ac_objext
15749 if { (ac_try="$ac_compile"
15750 case "(($ac_try" in
15751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752   *) ac_try_echo=$ac_try;;
15753 esac
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755   (eval "$ac_compile") 2>conftest.er1
15756   ac_status=$?
15757   grep -v '^ *+' conftest.er1 >conftest.err
15758   rm -f conftest.er1
15759   cat conftest.err >&5
15760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); } &&
15762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15763   { (case "(($ac_try" in
15764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765   *) ac_try_echo=$ac_try;;
15766 esac
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768   (eval "$ac_try") 2>&5
15769   ac_status=$?
15770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771   (exit $ac_status); }; } &&
15772          { ac_try='test -s conftest.$ac_objext'
15773   { (case "(($ac_try" in
15774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775   *) ac_try_echo=$ac_try;;
15776 esac
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778   (eval "$ac_try") 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); }; }; then
15782   ac_header_compiler=yes
15783 else
15784   echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15786
15787         ac_header_compiler=no
15788 fi
15789
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15792 echo "${ECHO_T}$ac_header_compiler" >&6; }
15793
15794 # Is the header present?
15795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15797 cat >conftest.$ac_ext <<_ACEOF
15798 /* confdefs.h.  */
15799 _ACEOF
15800 cat confdefs.h >>conftest.$ac_ext
15801 cat >>conftest.$ac_ext <<_ACEOF
15802 /* end confdefs.h.  */
15803 #include <$ac_header>
15804 _ACEOF
15805 if { (ac_try="$ac_cpp conftest.$ac_ext"
15806 case "(($ac_try" in
15807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808   *) ac_try_echo=$ac_try;;
15809 esac
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15812   ac_status=$?
15813   grep -v '^ *+' conftest.er1 >conftest.err
15814   rm -f conftest.er1
15815   cat conftest.err >&5
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); } >/dev/null; then
15818   if test -s conftest.err; then
15819     ac_cpp_err=$ac_c_preproc_warn_flag
15820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15821   else
15822     ac_cpp_err=
15823   fi
15824 else
15825   ac_cpp_err=yes
15826 fi
15827 if test -z "$ac_cpp_err"; then
15828   ac_header_preproc=yes
15829 else
15830   echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15832
15833   ac_header_preproc=no
15834 fi
15835
15836 rm -f conftest.err conftest.$ac_ext
15837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15838 echo "${ECHO_T}$ac_header_preproc" >&6; }
15839
15840 # So?  What about this header?
15841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15842   yes:no: )
15843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15847     ac_header_preproc=yes
15848     ;;
15849   no:yes:* )
15850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15862     ( cat <<\_ASBOX
15863 ## ----------------------------------- ##
15864 ## Report this to llvmbugs@cs.uiuc.edu ##
15865 ## ----------------------------------- ##
15866 _ASBOX
15867      ) | sed "s/^/$as_me: WARNING:     /" >&2
15868     ;;
15869 esac
15870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873   echo $ECHO_N "(cached) $ECHO_C" >&6
15874 else
15875   eval "$as_ac_Header=\$ac_header_preproc"
15876 fi
15877 ac_res=`eval echo '${'$as_ac_Header'}'`
15878                { echo "$as_me:$LINENO: result: $ac_res" >&5
15879 echo "${ECHO_T}$ac_res" >&6; }
15880
15881 fi
15882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15883   cat >>confdefs.h <<_ACEOF
15884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15885 _ACEOF
15886
15887 fi
15888
15889 done
15890
15891 fi
15892
15893
15894 for ac_header in CrashReporterClient.h
15895 do
15896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15898   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15901   echo $ECHO_N "(cached) $ECHO_C" >&6
15902 fi
15903 ac_res=`eval echo '${'$as_ac_Header'}'`
15904                { echo "$as_me:$LINENO: result: $ac_res" >&5
15905 echo "${ECHO_T}$ac_res" >&6; }
15906 else
15907   # Is the header compilable?
15908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15910 cat >conftest.$ac_ext <<_ACEOF
15911 /* confdefs.h.  */
15912 _ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h.  */
15916 $ac_includes_default
15917 #include <$ac_header>
15918 _ACEOF
15919 rm -f conftest.$ac_objext
15920 if { (ac_try="$ac_compile"
15921 case "(($ac_try" in
15922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923   *) ac_try_echo=$ac_try;;
15924 esac
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926   (eval "$ac_compile") 2>conftest.er1
15927   ac_status=$?
15928   grep -v '^ *+' conftest.er1 >conftest.err
15929   rm -f conftest.er1
15930   cat conftest.err >&5
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } &&
15933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15934   { (case "(($ac_try" in
15935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936   *) ac_try_echo=$ac_try;;
15937 esac
15938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939   (eval "$ac_try") 2>&5
15940   ac_status=$?
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); }; } &&
15943          { ac_try='test -s conftest.$ac_objext'
15944   { (case "(($ac_try" in
15945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946   *) ac_try_echo=$ac_try;;
15947 esac
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949   (eval "$ac_try") 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; }; then
15953   ac_header_compiler=yes
15954 else
15955   echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958         ac_header_compiler=no
15959 fi
15960
15961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15963 echo "${ECHO_T}$ac_header_compiler" >&6; }
15964
15965 # Is the header present?
15966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15968 cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h.  */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h.  */
15974 #include <$ac_header>
15975 _ACEOF
15976 if { (ac_try="$ac_cpp conftest.$ac_ext"
15977 case "(($ac_try" in
15978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979   *) ac_try_echo=$ac_try;;
15980 esac
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15983   ac_status=$?
15984   grep -v '^ *+' conftest.er1 >conftest.err
15985   rm -f conftest.er1
15986   cat conftest.err >&5
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); } >/dev/null; then
15989   if test -s conftest.err; then
15990     ac_cpp_err=$ac_c_preproc_warn_flag
15991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15992   else
15993     ac_cpp_err=
15994   fi
15995 else
15996   ac_cpp_err=yes
15997 fi
15998 if test -z "$ac_cpp_err"; then
15999   ac_header_preproc=yes
16000 else
16001   echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004   ac_header_preproc=no
16005 fi
16006
16007 rm -f conftest.err conftest.$ac_ext
16008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16009 echo "${ECHO_T}$ac_header_preproc" >&6; }
16010
16011 # So?  What about this header?
16012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16013   yes:no: )
16014     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16018     ac_header_preproc=yes
16019     ;;
16020   no:yes:* )
16021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16023     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16024 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16025     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16027     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16028 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16031     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16033     ( cat <<\_ASBOX
16034 ## ----------------------------------- ##
16035 ## Report this to llvmbugs@cs.uiuc.edu ##
16036 ## ----------------------------------- ##
16037 _ASBOX
16038      ) | sed "s/^/$as_me: WARNING:     /" >&2
16039     ;;
16040 esac
16041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16044   echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046   eval "$as_ac_Header=\$ac_header_preproc"
16047 fi
16048 ac_res=`eval echo '${'$as_ac_Header'}'`
16049                { echo "$as_me:$LINENO: result: $ac_res" >&5
16050 echo "${ECHO_T}$ac_res" >&6; }
16051
16052 fi
16053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16054   cat >>confdefs.h <<_ACEOF
16055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16056 _ACEOF
16057
16058 fi
16059
16060 done
16061
16062
16063 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16064 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16065 cat >conftest.$ac_ext <<_ACEOF
16066 /* confdefs.h.  */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h.  */
16071 extern const char *__crashreporter_info__;
16072       int main() {
16073         __crashreporter_info__ = "test";
16074         return 0;
16075       }
16076
16077 _ACEOF
16078 rm -f conftest.$ac_objext conftest$ac_exeext
16079 if { (ac_try="$ac_link"
16080 case "(($ac_try" in
16081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082   *) ac_try_echo=$ac_try;;
16083 esac
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085   (eval "$ac_link") 2>conftest.er1
16086   ac_status=$?
16087   grep -v '^ *+' conftest.er1 >conftest.err
16088   rm -f conftest.er1
16089   cat conftest.err >&5
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); } &&
16092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16093   { (case "(($ac_try" in
16094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095   *) ac_try_echo=$ac_try;;
16096 esac
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098   (eval "$ac_try") 2>&5
16099   ac_status=$?
16100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101   (exit $ac_status); }; } &&
16102          { ac_try='test -s conftest$ac_exeext'
16103   { (case "(($ac_try" in
16104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105   *) ac_try_echo=$ac_try;;
16106 esac
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108   (eval "$ac_try") 2>&5
16109   ac_status=$?
16110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111   (exit $ac_status); }; }; then
16112   { echo "$as_me:$LINENO: result: yes" >&5
16113 echo "${ECHO_T}yes" >&6; }
16114
16115 cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_CRASHREPORTER_INFO 1
16117 _ACEOF
16118
16119 else
16120   echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16122
16123         { echo "$as_me:$LINENO: result: no" >&5
16124 echo "${ECHO_T}no" >&6; }
16125
16126 cat >>confdefs.h <<\_ACEOF
16127 #define HAVE_CRASHREPORTER_INFO 0
16128 _ACEOF
16129
16130 fi
16131
16132 rm -f core conftest.err conftest.$ac_objext \
16133       conftest$ac_exeext conftest.$ac_ext
16134
16135
16136
16137
16138   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16139 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16140 if test "${ac_cv_huge_val_sanity+set}" = set; then
16141   echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143
16144     ac_ext=cpp
16145 ac_cpp='$CXXCPP $CPPFLAGS'
16146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16149
16150     ac_save_CXXFLAGS=$CXXFLAGS
16151     CXXFLAGS=-pedantic
16152     if test "$cross_compiling" = yes; then
16153   ac_cv_huge_val_sanity=yes
16154 else
16155   cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h.  */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h.  */
16161 #include <math.h>
16162 int
16163 main ()
16164 {
16165 double x = HUGE_VAL; return x != x;
16166   ;
16167   return 0;
16168 }
16169 _ACEOF
16170 rm -f conftest$ac_exeext
16171 if { (ac_try="$ac_link"
16172 case "(($ac_try" in
16173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174   *) ac_try_echo=$ac_try;;
16175 esac
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177   (eval "$ac_link") 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181   { (case "(($ac_try" in
16182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183   *) ac_try_echo=$ac_try;;
16184 esac
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186   (eval "$ac_try") 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); }; }; then
16190   ac_cv_huge_val_sanity=yes
16191 else
16192   echo "$as_me: program exited with status $ac_status" >&5
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16195
16196 ( exit $ac_status )
16197 ac_cv_huge_val_sanity=no
16198 fi
16199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16200 fi
16201
16202
16203     CXXFLAGS=$ac_save_CXXFLAGS
16204     ac_ext=c
16205 ac_cpp='$CPP $CPPFLAGS'
16206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16209
16210
16211 fi
16212 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16213 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16214   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16215
16216
16217 { echo "$as_me:$LINENO: checking for pid_t" >&5
16218 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16219 if test "${ac_cv_type_pid_t+set}" = set; then
16220   echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222   cat >conftest.$ac_ext <<_ACEOF
16223 /* confdefs.h.  */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h.  */
16228 $ac_includes_default
16229 typedef pid_t ac__type_new_;
16230 int
16231 main ()
16232 {
16233 if ((ac__type_new_ *) 0)
16234   return 0;
16235 if (sizeof (ac__type_new_))
16236   return 0;
16237   ;
16238   return 0;
16239 }
16240 _ACEOF
16241 rm -f conftest.$ac_objext
16242 if { (ac_try="$ac_compile"
16243 case "(($ac_try" in
16244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245   *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248   (eval "$ac_compile") 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } &&
16255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256   { (case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_try") 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); }; } &&
16265          { ac_try='test -s conftest.$ac_objext'
16266   { (case "(($ac_try" in
16267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268   *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271   (eval "$ac_try") 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; }; then
16275   ac_cv_type_pid_t=yes
16276 else
16277   echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280         ac_cv_type_pid_t=no
16281 fi
16282
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 fi
16285 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16286 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16287 if test $ac_cv_type_pid_t = yes; then
16288   :
16289 else
16290
16291 cat >>confdefs.h <<_ACEOF
16292 #define pid_t int
16293 _ACEOF
16294
16295 fi
16296
16297 { echo "$as_me:$LINENO: checking for size_t" >&5
16298 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16299 if test "${ac_cv_type_size_t+set}" = set; then
16300   echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302   cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h.  */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h.  */
16308 $ac_includes_default
16309 typedef size_t ac__type_new_;
16310 int
16311 main ()
16312 {
16313 if ((ac__type_new_ *) 0)
16314   return 0;
16315 if (sizeof (ac__type_new_))
16316   return 0;
16317   ;
16318   return 0;
16319 }
16320 _ACEOF
16321 rm -f conftest.$ac_objext
16322 if { (ac_try="$ac_compile"
16323 case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_compile") 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } &&
16335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336   { (case "(($ac_try" in
16337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338   *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341   (eval "$ac_try") 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); }; } &&
16345          { ac_try='test -s conftest.$ac_objext'
16346   { (case "(($ac_try" in
16347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348   *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351   (eval "$ac_try") 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); }; }; then
16355   ac_cv_type_size_t=yes
16356 else
16357   echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360         ac_cv_type_size_t=no
16361 fi
16362
16363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364 fi
16365 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16366 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16367 if test $ac_cv_type_size_t = yes; then
16368   :
16369 else
16370
16371 cat >>confdefs.h <<_ACEOF
16372 #define size_t unsigned int
16373 _ACEOF
16374
16375 fi
16376
16377
16378 cat >>confdefs.h <<_ACEOF
16379 #define RETSIGTYPE void
16380 _ACEOF
16381
16382 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16383 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16384 if test "${ac_cv_struct_tm+set}" = set; then
16385   echo $ECHO_N "(cached) $ECHO_C" >&6
16386 else
16387   cat >conftest.$ac_ext <<_ACEOF
16388 /* confdefs.h.  */
16389 _ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h.  */
16393 #include <sys/types.h>
16394 #include <time.h>
16395
16396 int
16397 main ()
16398 {
16399 struct tm *tp; tp->tm_sec;
16400   ;
16401   return 0;
16402 }
16403 _ACEOF
16404 rm -f conftest.$ac_objext
16405 if { (ac_try="$ac_compile"
16406 case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411   (eval "$ac_compile") 2>conftest.er1
16412   ac_status=$?
16413   grep -v '^ *+' conftest.er1 >conftest.err
16414   rm -f conftest.er1
16415   cat conftest.err >&5
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); } &&
16418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16419   { (case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_try") 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; } &&
16428          { ac_try='test -s conftest.$ac_objext'
16429   { (case "(($ac_try" in
16430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431   *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434   (eval "$ac_try") 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438   ac_cv_struct_tm=time.h
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443         ac_cv_struct_tm=sys/time.h
16444 fi
16445
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447 fi
16448 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16449 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16450 if test $ac_cv_struct_tm = sys/time.h; then
16451
16452 cat >>confdefs.h <<\_ACEOF
16453 #define TM_IN_SYS_TIME 1
16454 _ACEOF
16455
16456 fi
16457
16458 { echo "$as_me:$LINENO: checking for int64_t" >&5
16459 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16460 if test "${ac_cv_type_int64_t+set}" = set; then
16461   echo $ECHO_N "(cached) $ECHO_C" >&6
16462 else
16463   cat >conftest.$ac_ext <<_ACEOF
16464 /* confdefs.h.  */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h.  */
16469 $ac_includes_default
16470 typedef int64_t ac__type_new_;
16471 int
16472 main ()
16473 {
16474 if ((ac__type_new_ *) 0)
16475   return 0;
16476 if (sizeof (ac__type_new_))
16477   return 0;
16478   ;
16479   return 0;
16480 }
16481 _ACEOF
16482 rm -f conftest.$ac_objext
16483 if { (ac_try="$ac_compile"
16484 case "(($ac_try" in
16485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486   *) ac_try_echo=$ac_try;;
16487 esac
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489   (eval "$ac_compile") 2>conftest.er1
16490   ac_status=$?
16491   grep -v '^ *+' conftest.er1 >conftest.err
16492   rm -f conftest.er1
16493   cat conftest.err >&5
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); } &&
16496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16497   { (case "(($ac_try" in
16498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499   *) ac_try_echo=$ac_try;;
16500 esac
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502   (eval "$ac_try") 2>&5
16503   ac_status=$?
16504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); }; } &&
16506          { ac_try='test -s conftest.$ac_objext'
16507   { (case "(($ac_try" in
16508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509   *) ac_try_echo=$ac_try;;
16510 esac
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512   (eval "$ac_try") 2>&5
16513   ac_status=$?
16514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515   (exit $ac_status); }; }; then
16516   ac_cv_type_int64_t=yes
16517 else
16518   echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16520
16521         ac_cv_type_int64_t=no
16522 fi
16523
16524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16525 fi
16526 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16527 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16528 if test $ac_cv_type_int64_t = yes; then
16529
16530 cat >>confdefs.h <<_ACEOF
16531 #define HAVE_INT64_T 1
16532 _ACEOF
16533
16534
16535 else
16536   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16537 echo "$as_me: error: Type int64_t required but not found" >&2;}
16538    { (exit 1); exit 1; }; }
16539 fi
16540
16541 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16542 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16543 if test "${ac_cv_type_uint64_t+set}" = set; then
16544   echo $ECHO_N "(cached) $ECHO_C" >&6
16545 else
16546   cat >conftest.$ac_ext <<_ACEOF
16547 /* confdefs.h.  */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h.  */
16552 $ac_includes_default
16553 typedef uint64_t ac__type_new_;
16554 int
16555 main ()
16556 {
16557 if ((ac__type_new_ *) 0)
16558   return 0;
16559 if (sizeof (ac__type_new_))
16560   return 0;
16561   ;
16562   return 0;
16563 }
16564 _ACEOF
16565 rm -f conftest.$ac_objext
16566 if { (ac_try="$ac_compile"
16567 case "(($ac_try" in
16568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569   *) ac_try_echo=$ac_try;;
16570 esac
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572   (eval "$ac_compile") 2>conftest.er1
16573   ac_status=$?
16574   grep -v '^ *+' conftest.er1 >conftest.err
16575   rm -f conftest.er1
16576   cat conftest.err >&5
16577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578   (exit $ac_status); } &&
16579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16580   { (case "(($ac_try" in
16581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582   *) ac_try_echo=$ac_try;;
16583 esac
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585   (eval "$ac_try") 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); }; } &&
16589          { ac_try='test -s conftest.$ac_objext'
16590   { (case "(($ac_try" in
16591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592   *) ac_try_echo=$ac_try;;
16593 esac
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595   (eval "$ac_try") 2>&5
16596   ac_status=$?
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); }; }; then
16599   ac_cv_type_uint64_t=yes
16600 else
16601   echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16603
16604         ac_cv_type_uint64_t=no
16605 fi
16606
16607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608 fi
16609 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16610 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16611 if test $ac_cv_type_uint64_t = yes; then
16612
16613 cat >>confdefs.h <<_ACEOF
16614 #define HAVE_UINT64_T 1
16615 _ACEOF
16616
16617
16618 else
16619   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16620 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16621 if test "${ac_cv_type_u_int64_t+set}" = set; then
16622   echo $ECHO_N "(cached) $ECHO_C" >&6
16623 else
16624   cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h.  */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h.  */
16630 $ac_includes_default
16631 typedef u_int64_t ac__type_new_;
16632 int
16633 main ()
16634 {
16635 if ((ac__type_new_ *) 0)
16636   return 0;
16637 if (sizeof (ac__type_new_))
16638   return 0;
16639   ;
16640   return 0;
16641 }
16642 _ACEOF
16643 rm -f conftest.$ac_objext
16644 if { (ac_try="$ac_compile"
16645 case "(($ac_try" in
16646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647   *) ac_try_echo=$ac_try;;
16648 esac
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650   (eval "$ac_compile") 2>conftest.er1
16651   ac_status=$?
16652   grep -v '^ *+' conftest.er1 >conftest.err
16653   rm -f conftest.er1
16654   cat conftest.err >&5
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); } &&
16657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16658   { (case "(($ac_try" in
16659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660   *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663   (eval "$ac_try") 2>&5
16664   ac_status=$?
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); }; } &&
16667          { ac_try='test -s conftest.$ac_objext'
16668   { (case "(($ac_try" in
16669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670   *) ac_try_echo=$ac_try;;
16671 esac
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673   (eval "$ac_try") 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; }; then
16677   ac_cv_type_u_int64_t=yes
16678 else
16679   echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16681
16682         ac_cv_type_u_int64_t=no
16683 fi
16684
16685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686 fi
16687 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16688 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16689 if test $ac_cv_type_u_int64_t = yes; then
16690
16691 cat >>confdefs.h <<_ACEOF
16692 #define HAVE_U_INT64_T 1
16693 _ACEOF
16694
16695
16696 else
16697   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16698 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16699    { (exit 1); exit 1; }; }
16700 fi
16701
16702 fi
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16714 do
16715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16719   echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721   cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16729 #define $ac_func innocuous_$ac_func
16730
16731 /* System header to define __stub macros and hopefully few prototypes,
16732     which can conflict with char $ac_func (); below.
16733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16734     <limits.h> exists even on freestanding compilers.  */
16735
16736 #ifdef __STDC__
16737 # include <limits.h>
16738 #else
16739 # include <assert.h>
16740 #endif
16741
16742 #undef $ac_func
16743
16744 /* Override any GCC internal prototype to avoid an error.
16745    Use char because int might match the return type of a GCC
16746    builtin and then its argument prototype would still apply.  */
16747 #ifdef __cplusplus
16748 extern "C"
16749 #endif
16750 char $ac_func ();
16751 /* The GNU C library defines this for functions which it implements
16752     to always fail with ENOSYS.  Some functions are actually named
16753     something starting with __ and the normal name is an alias.  */
16754 #if defined __stub_$ac_func || defined __stub___$ac_func
16755 choke me
16756 #endif
16757
16758 int
16759 main ()
16760 {
16761 return $ac_func ();
16762   ;
16763   return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (ac_try="$ac_link"
16768 case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_link") 2>conftest.er1
16774   ac_status=$?
16775   grep -v '^ *+' conftest.er1 >conftest.err
16776   rm -f conftest.er1
16777   cat conftest.err >&5
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); } &&
16780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16781   { (case "(($ac_try" in
16782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783   *) ac_try_echo=$ac_try;;
16784 esac
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786   (eval "$ac_try") 2>&5
16787   ac_status=$?
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); }; } &&
16790          { ac_try='test -s conftest$ac_exeext'
16791   { (case "(($ac_try" in
16792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793   *) ac_try_echo=$ac_try;;
16794 esac
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796   (eval "$ac_try") 2>&5
16797   ac_status=$?
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); }; }; then
16800   eval "$as_ac_var=yes"
16801 else
16802   echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805         eval "$as_ac_var=no"
16806 fi
16807
16808 rm -f core conftest.err conftest.$ac_objext \
16809       conftest$ac_exeext conftest.$ac_ext
16810 fi
16811 ac_res=`eval echo '${'$as_ac_var'}'`
16812                { echo "$as_me:$LINENO: result: $ac_res" >&5
16813 echo "${ECHO_T}$ac_res" >&6; }
16814 if test `eval echo '${'$as_ac_var'}'` = yes; then
16815   cat >>confdefs.h <<_ACEOF
16816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16817 _ACEOF
16818
16819 fi
16820 done
16821
16822
16823
16824
16825
16826 for ac_func in powf fmodf strtof round
16827 do
16828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834   cat >conftest.$ac_ext <<_ACEOF
16835 /* confdefs.h.  */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h.  */
16840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16842 #define $ac_func innocuous_$ac_func
16843
16844 /* System header to define __stub macros and hopefully few prototypes,
16845     which can conflict with char $ac_func (); below.
16846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16847     <limits.h> exists even on freestanding compilers.  */
16848
16849 #ifdef __STDC__
16850 # include <limits.h>
16851 #else
16852 # include <assert.h>
16853 #endif
16854
16855 #undef $ac_func
16856
16857 /* Override any GCC internal prototype to avoid an error.
16858    Use char because int might match the return type of a GCC
16859    builtin and then its argument prototype would still apply.  */
16860 #ifdef __cplusplus
16861 extern "C"
16862 #endif
16863 char $ac_func ();
16864 /* The GNU C library defines this for functions which it implements
16865     to always fail with ENOSYS.  Some functions are actually named
16866     something starting with __ and the normal name is an alias.  */
16867 #if defined __stub_$ac_func || defined __stub___$ac_func
16868 choke me
16869 #endif
16870
16871 int
16872 main ()
16873 {
16874 return $ac_func ();
16875   ;
16876   return 0;
16877 }
16878 _ACEOF
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_link") 2>conftest.er1
16887   ac_status=$?
16888   grep -v '^ *+' conftest.er1 >conftest.err
16889   rm -f conftest.er1
16890   cat conftest.err >&5
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } &&
16893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894   { (case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_try") 2>&5
16900   ac_status=$?
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); }; } &&
16903          { ac_try='test -s conftest$ac_exeext'
16904   { (case "(($ac_try" in
16905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906   *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909   (eval "$ac_try") 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; }; then
16913   eval "$as_ac_var=yes"
16914 else
16915   echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918         eval "$as_ac_var=no"
16919 fi
16920
16921 rm -f core conftest.err conftest.$ac_objext \
16922       conftest$ac_exeext conftest.$ac_ext
16923 fi
16924 ac_res=`eval echo '${'$as_ac_var'}'`
16925                { echo "$as_me:$LINENO: result: $ac_res" >&5
16926 echo "${ECHO_T}$ac_res" >&6; }
16927 if test `eval echo '${'$as_ac_var'}'` = yes; then
16928   cat >>confdefs.h <<_ACEOF
16929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16930 _ACEOF
16931
16932 fi
16933 done
16934
16935
16936
16937
16938
16939
16940 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16941 do
16942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h.  */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h.  */
16954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16956 #define $ac_func innocuous_$ac_func
16957
16958 /* System header to define __stub macros and hopefully few prototypes,
16959     which can conflict with char $ac_func (); below.
16960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961     <limits.h> exists even on freestanding compilers.  */
16962
16963 #ifdef __STDC__
16964 # include <limits.h>
16965 #else
16966 # include <assert.h>
16967 #endif
16968
16969 #undef $ac_func
16970
16971 /* Override any GCC internal prototype to avoid an error.
16972    Use char because int might match the return type of a GCC
16973    builtin and then its argument prototype would still apply.  */
16974 #ifdef __cplusplus
16975 extern "C"
16976 #endif
16977 char $ac_func ();
16978 /* The GNU C library defines this for functions which it implements
16979     to always fail with ENOSYS.  Some functions are actually named
16980     something starting with __ and the normal name is an alias.  */
16981 #if defined __stub_$ac_func || defined __stub___$ac_func
16982 choke me
16983 #endif
16984
16985 int
16986 main ()
16987 {
16988 return $ac_func ();
16989   ;
16990   return 0;
16991 }
16992 _ACEOF
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (ac_try="$ac_link"
16995 case "(($ac_try" in
16996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997   *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000   (eval "$ac_link") 2>conftest.er1
17001   ac_status=$?
17002   grep -v '^ *+' conftest.er1 >conftest.err
17003   rm -f conftest.er1
17004   cat conftest.err >&5
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); } &&
17007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17008   { (case "(($ac_try" in
17009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010   *) ac_try_echo=$ac_try;;
17011 esac
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013   (eval "$ac_try") 2>&5
17014   ac_status=$?
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); }; } &&
17017          { ac_try='test -s conftest$ac_exeext'
17018   { (case "(($ac_try" in
17019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020   *) ac_try_echo=$ac_try;;
17021 esac
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023   (eval "$ac_try") 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; }; then
17027   eval "$as_ac_var=yes"
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032         eval "$as_ac_var=no"
17033 fi
17034
17035 rm -f core conftest.err conftest.$ac_objext \
17036       conftest$ac_exeext conftest.$ac_ext
17037 fi
17038 ac_res=`eval echo '${'$as_ac_var'}'`
17039                { echo "$as_me:$LINENO: result: $ac_res" >&5
17040 echo "${ECHO_T}$ac_res" >&6; }
17041 if test `eval echo '${'$as_ac_var'}'` = yes; then
17042   cat >>confdefs.h <<_ACEOF
17043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17044 _ACEOF
17045
17046 fi
17047 done
17048
17049
17050
17051
17052 for ac_func in isatty mkdtemp mkstemp
17053 do
17054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17058   echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060   cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h.  */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h.  */
17066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17068 #define $ac_func innocuous_$ac_func
17069
17070 /* System header to define __stub macros and hopefully few prototypes,
17071     which can conflict with char $ac_func (); below.
17072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17073     <limits.h> exists even on freestanding compilers.  */
17074
17075 #ifdef __STDC__
17076 # include <limits.h>
17077 #else
17078 # include <assert.h>
17079 #endif
17080
17081 #undef $ac_func
17082
17083 /* Override any GCC internal prototype to avoid an error.
17084    Use char because int might match the return type of a GCC
17085    builtin and then its argument prototype would still apply.  */
17086 #ifdef __cplusplus
17087 extern "C"
17088 #endif
17089 char $ac_func ();
17090 /* The GNU C library defines this for functions which it implements
17091     to always fail with ENOSYS.  Some functions are actually named
17092     something starting with __ and the normal name is an alias.  */
17093 #if defined __stub_$ac_func || defined __stub___$ac_func
17094 choke me
17095 #endif
17096
17097 int
17098 main ()
17099 {
17100 return $ac_func ();
17101   ;
17102   return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109   *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112   (eval "$ac_link") 2>conftest.er1
17113   ac_status=$?
17114   grep -v '^ *+' conftest.er1 >conftest.err
17115   rm -f conftest.er1
17116   cat conftest.err >&5
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); } &&
17119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17120   { (case "(($ac_try" in
17121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122   *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125   (eval "$ac_try") 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; } &&
17129          { ac_try='test -s conftest$ac_exeext'
17130   { (case "(($ac_try" in
17131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132   *) ac_try_echo=$ac_try;;
17133 esac
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135   (eval "$ac_try") 2>&5
17136   ac_status=$?
17137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138   (exit $ac_status); }; }; then
17139   eval "$as_ac_var=yes"
17140 else
17141   echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144         eval "$as_ac_var=no"
17145 fi
17146
17147 rm -f core conftest.err conftest.$ac_objext \
17148       conftest$ac_exeext conftest.$ac_ext
17149 fi
17150 ac_res=`eval echo '${'$as_ac_var'}'`
17151                { echo "$as_me:$LINENO: result: $ac_res" >&5
17152 echo "${ECHO_T}$ac_res" >&6; }
17153 if test `eval echo '${'$as_ac_var'}'` = yes; then
17154   cat >>confdefs.h <<_ACEOF
17155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17156 _ACEOF
17157
17158 fi
17159 done
17160
17161
17162
17163
17164
17165
17166
17167
17168 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17169 do
17170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17174   echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17176   cat >conftest.$ac_ext <<_ACEOF
17177 /* confdefs.h.  */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h.  */
17182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17184 #define $ac_func innocuous_$ac_func
17185
17186 /* System header to define __stub macros and hopefully few prototypes,
17187     which can conflict with char $ac_func (); below.
17188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17189     <limits.h> exists even on freestanding compilers.  */
17190
17191 #ifdef __STDC__
17192 # include <limits.h>
17193 #else
17194 # include <assert.h>
17195 #endif
17196
17197 #undef $ac_func
17198
17199 /* Override any GCC internal prototype to avoid an error.
17200    Use char because int might match the return type of a GCC
17201    builtin and then its argument prototype would still apply.  */
17202 #ifdef __cplusplus
17203 extern "C"
17204 #endif
17205 char $ac_func ();
17206 /* The GNU C library defines this for functions which it implements
17207     to always fail with ENOSYS.  Some functions are actually named
17208     something starting with __ and the normal name is an alias.  */
17209 #if defined __stub_$ac_func || defined __stub___$ac_func
17210 choke me
17211 #endif
17212
17213 int
17214 main ()
17215 {
17216 return $ac_func ();
17217   ;
17218   return 0;
17219 }
17220 _ACEOF
17221 rm -f conftest.$ac_objext conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225   *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228   (eval "$ac_link") 2>conftest.er1
17229   ac_status=$?
17230   grep -v '^ *+' conftest.er1 >conftest.err
17231   rm -f conftest.er1
17232   cat conftest.err >&5
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); } &&
17235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17236   { (case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_try") 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; } &&
17245          { ac_try='test -s conftest$ac_exeext'
17246   { (case "(($ac_try" in
17247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248   *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251   (eval "$ac_try") 2>&5
17252   ac_status=$?
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); }; }; then
17255   eval "$as_ac_var=yes"
17256 else
17257   echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17259
17260         eval "$as_ac_var=no"
17261 fi
17262
17263 rm -f core conftest.err conftest.$ac_objext \
17264       conftest$ac_exeext conftest.$ac_ext
17265 fi
17266 ac_res=`eval echo '${'$as_ac_var'}'`
17267                { echo "$as_me:$LINENO: result: $ac_res" >&5
17268 echo "${ECHO_T}$ac_res" >&6; }
17269 if test `eval echo '${'$as_ac_var'}'` = yes; then
17270   cat >>confdefs.h <<_ACEOF
17271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17272 _ACEOF
17273
17274 fi
17275 done
17276
17277
17278
17279
17280 for ac_func in strerror strerror_r setenv
17281 do
17282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17286   echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288   cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h.  */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h.  */
17294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17296 #define $ac_func innocuous_$ac_func
17297
17298 /* System header to define __stub macros and hopefully few prototypes,
17299     which can conflict with char $ac_func (); below.
17300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17301     <limits.h> exists even on freestanding compilers.  */
17302
17303 #ifdef __STDC__
17304 # include <limits.h>
17305 #else
17306 # include <assert.h>
17307 #endif
17308
17309 #undef $ac_func
17310
17311 /* Override any GCC internal prototype to avoid an error.
17312    Use char because int might match the return type of a GCC
17313    builtin and then its argument prototype would still apply.  */
17314 #ifdef __cplusplus
17315 extern "C"
17316 #endif
17317 char $ac_func ();
17318 /* The GNU C library defines this for functions which it implements
17319     to always fail with ENOSYS.  Some functions are actually named
17320     something starting with __ and the normal name is an alias.  */
17321 #if defined __stub_$ac_func || defined __stub___$ac_func
17322 choke me
17323 #endif
17324
17325 int
17326 main ()
17327 {
17328 return $ac_func ();
17329   ;
17330   return 0;
17331 }
17332 _ACEOF
17333 rm -f conftest.$ac_objext conftest$ac_exeext
17334 if { (ac_try="$ac_link"
17335 case "(($ac_try" in
17336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337   *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340   (eval "$ac_link") 2>conftest.er1
17341   ac_status=$?
17342   grep -v '^ *+' conftest.er1 >conftest.err
17343   rm -f conftest.er1
17344   cat conftest.err >&5
17345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346   (exit $ac_status); } &&
17347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17348   { (case "(($ac_try" in
17349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350   *) ac_try_echo=$ac_try;;
17351 esac
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353   (eval "$ac_try") 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }; } &&
17357          { ac_try='test -s conftest$ac_exeext'
17358   { (case "(($ac_try" in
17359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360   *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363   (eval "$ac_try") 2>&5
17364   ac_status=$?
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); }; }; then
17367   eval "$as_ac_var=yes"
17368 else
17369   echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372         eval "$as_ac_var=no"
17373 fi
17374
17375 rm -f core conftest.err conftest.$ac_objext \
17376       conftest$ac_exeext conftest.$ac_ext
17377 fi
17378 ac_res=`eval echo '${'$as_ac_var'}'`
17379                { echo "$as_me:$LINENO: result: $ac_res" >&5
17380 echo "${ECHO_T}$ac_res" >&6; }
17381 if test `eval echo '${'$as_ac_var'}'` = yes; then
17382   cat >>confdefs.h <<_ACEOF
17383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17384 _ACEOF
17385
17386 fi
17387 done
17388
17389
17390
17391
17392
17393 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17394 do
17395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17399   echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401   cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17409 #define $ac_func innocuous_$ac_func
17410
17411 /* System header to define __stub macros and hopefully few prototypes,
17412     which can conflict with char $ac_func (); below.
17413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17414     <limits.h> exists even on freestanding compilers.  */
17415
17416 #ifdef __STDC__
17417 # include <limits.h>
17418 #else
17419 # include <assert.h>
17420 #endif
17421
17422 #undef $ac_func
17423
17424 /* Override any GCC internal prototype to avoid an error.
17425    Use char because int might match the return type of a GCC
17426    builtin and then its argument prototype would still apply.  */
17427 #ifdef __cplusplus
17428 extern "C"
17429 #endif
17430 char $ac_func ();
17431 /* The GNU C library defines this for functions which it implements
17432     to always fail with ENOSYS.  Some functions are actually named
17433     something starting with __ and the normal name is an alias.  */
17434 #if defined __stub_$ac_func || defined __stub___$ac_func
17435 choke me
17436 #endif
17437
17438 int
17439 main ()
17440 {
17441 return $ac_func ();
17442   ;
17443   return 0;
17444 }
17445 _ACEOF
17446 rm -f conftest.$ac_objext conftest$ac_exeext
17447 if { (ac_try="$ac_link"
17448 case "(($ac_try" in
17449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450   *) ac_try_echo=$ac_try;;
17451 esac
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453   (eval "$ac_link") 2>conftest.er1
17454   ac_status=$?
17455   grep -v '^ *+' conftest.er1 >conftest.err
17456   rm -f conftest.er1
17457   cat conftest.err >&5
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); } &&
17460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461   { (case "(($ac_try" in
17462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463   *) ac_try_echo=$ac_try;;
17464 esac
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466   (eval "$ac_try") 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); }; } &&
17470          { ac_try='test -s conftest$ac_exeext'
17471   { (case "(($ac_try" in
17472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473   *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476   (eval "$ac_try") 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); }; }; then
17480   eval "$as_ac_var=yes"
17481 else
17482   echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485         eval "$as_ac_var=no"
17486 fi
17487
17488 rm -f core conftest.err conftest.$ac_objext \
17489       conftest$ac_exeext conftest.$ac_ext
17490 fi
17491 ac_res=`eval echo '${'$as_ac_var'}'`
17492                { echo "$as_me:$LINENO: result: $ac_res" >&5
17493 echo "${ECHO_T}$ac_res" >&6; }
17494 if test `eval echo '${'$as_ac_var'}'` = yes; then
17495   cat >>confdefs.h <<_ACEOF
17496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17497 _ACEOF
17498
17499 fi
17500 done
17501
17502
17503
17504
17505
17506
17507 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17508 do
17509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17513   echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515   cat >conftest.$ac_ext <<_ACEOF
17516 /* confdefs.h.  */
17517 _ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h.  */
17521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17523 #define $ac_func innocuous_$ac_func
17524
17525 /* System header to define __stub macros and hopefully few prototypes,
17526     which can conflict with char $ac_func (); below.
17527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17528     <limits.h> exists even on freestanding compilers.  */
17529
17530 #ifdef __STDC__
17531 # include <limits.h>
17532 #else
17533 # include <assert.h>
17534 #endif
17535
17536 #undef $ac_func
17537
17538 /* Override any GCC internal prototype to avoid an error.
17539    Use char because int might match the return type of a GCC
17540    builtin and then its argument prototype would still apply.  */
17541 #ifdef __cplusplus
17542 extern "C"
17543 #endif
17544 char $ac_func ();
17545 /* The GNU C library defines this for functions which it implements
17546     to always fail with ENOSYS.  Some functions are actually named
17547     something starting with __ and the normal name is an alias.  */
17548 #if defined __stub_$ac_func || defined __stub___$ac_func
17549 choke me
17550 #endif
17551
17552 int
17553 main ()
17554 {
17555 return $ac_func ();
17556   ;
17557   return 0;
17558 }
17559 _ACEOF
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (ac_try="$ac_link"
17562 case "(($ac_try" in
17563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564   *) ac_try_echo=$ac_try;;
17565 esac
17566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567   (eval "$ac_link") 2>conftest.er1
17568   ac_status=$?
17569   grep -v '^ *+' conftest.er1 >conftest.err
17570   rm -f conftest.er1
17571   cat conftest.err >&5
17572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); } &&
17574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17575   { (case "(($ac_try" in
17576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577   *) ac_try_echo=$ac_try;;
17578 esac
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580   (eval "$ac_try") 2>&5
17581   ac_status=$?
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); }; } &&
17584          { ac_try='test -s conftest$ac_exeext'
17585   { (case "(($ac_try" in
17586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587   *) ac_try_echo=$ac_try;;
17588 esac
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590   (eval "$ac_try") 2>&5
17591   ac_status=$?
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); }; }; then
17594   eval "$as_ac_var=yes"
17595 else
17596   echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17598
17599         eval "$as_ac_var=no"
17600 fi
17601
17602 rm -f core conftest.err conftest.$ac_objext \
17603       conftest$ac_exeext conftest.$ac_ext
17604 fi
17605 ac_res=`eval echo '${'$as_ac_var'}'`
17606                { echo "$as_me:$LINENO: result: $ac_res" >&5
17607 echo "${ECHO_T}$ac_res" >&6; }
17608 if test `eval echo '${'$as_ac_var'}'` = yes; then
17609   cat >>confdefs.h <<_ACEOF
17610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17611 _ACEOF
17612
17613 fi
17614 done
17615
17616 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17617 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17618 if test "${llvm_cv_c_printf_a+set}" = set; then
17619   echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621   ac_ext=c
17622 ac_cpp='$CPP $CPPFLAGS'
17623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17626
17627  if test "$cross_compiling" = yes; then
17628   llvmac_cv_c_printf_a=no
17629 else
17630   cat >conftest.$ac_ext <<_ACEOF
17631
17632   /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637
17638 #include <stdio.h>
17639 #include <stdlib.h>
17640
17641 int
17642 main ()
17643 {
17644
17645 volatile double A, B;
17646 char Buffer[100];
17647 A = 1;
17648 A /= 10.0;
17649 sprintf(Buffer, "%a", A);
17650 B = atof(Buffer);
17651 if (A != B)
17652   return (1);
17653 if (A != 0x1.999999999999ap-4)
17654   return (1);
17655 return (0);
17656   ;
17657   return 0;
17658 }
17659 _ACEOF
17660 rm -f conftest$ac_exeext
17661 if { (ac_try="$ac_link"
17662 case "(($ac_try" in
17663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664   *) ac_try_echo=$ac_try;;
17665 esac
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667   (eval "$ac_link") 2>&5
17668   ac_status=$?
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17671   { (case "(($ac_try" in
17672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673   *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676   (eval "$ac_try") 2>&5
17677   ac_status=$?
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); }; }; then
17680   llvm_cv_c_printf_a=yes
17681 else
17682   echo "$as_me: program exited with status $ac_status" >&5
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17685
17686 ( exit $ac_status )
17687 llvmac_cv_c_printf_a=no
17688 fi
17689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17690 fi
17691
17692
17693  ac_ext=c
17694 ac_cpp='$CPP $CPPFLAGS'
17695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17698
17699 fi
17700 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17701 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17702  if test "$llvm_cv_c_printf_a" = "yes"; then
17703
17704 cat >>confdefs.h <<\_ACEOF
17705 #define HAVE_PRINTF_A 1
17706 _ACEOF
17707
17708  fi
17709
17710
17711 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17712 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17713 if test "${ac_cv_func_rand48+set}" = set; then
17714   echo $ECHO_N "(cached) $ECHO_C" >&6
17715 else
17716   ac_ext=cpp
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
17722    cat >conftest.$ac_ext <<_ACEOF
17723 /* confdefs.h.  */
17724 _ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h.  */
17728 #include <stdlib.h>
17729 int
17730 main ()
17731 {
17732 srand48(0);lrand48();drand48();
17733   ;
17734   return 0;
17735 }
17736 _ACEOF
17737 rm -f conftest.$ac_objext
17738 if { (ac_try="$ac_compile"
17739 case "(($ac_try" in
17740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741   *) ac_try_echo=$ac_try;;
17742 esac
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744   (eval "$ac_compile") 2>conftest.er1
17745   ac_status=$?
17746   grep -v '^ *+' conftest.er1 >conftest.err
17747   rm -f conftest.er1
17748   cat conftest.err >&5
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); } &&
17751          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17752   { (case "(($ac_try" in
17753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754   *) ac_try_echo=$ac_try;;
17755 esac
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757   (eval "$ac_try") 2>&5
17758   ac_status=$?
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); }; } &&
17761          { ac_try='test -s conftest.$ac_objext'
17762   { (case "(($ac_try" in
17763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764   *) ac_try_echo=$ac_try;;
17765 esac
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767   (eval "$ac_try") 2>&5
17768   ac_status=$?
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); }; }; then
17771   ac_cv_func_rand48=yes
17772 else
17773   echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17775
17776         ac_cv_func_rand48=no
17777 fi
17778
17779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17780   ac_ext=c
17781 ac_cpp='$CPP $CPPFLAGS'
17782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17785
17786 fi
17787 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17788 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17789
17790 if test "$ac_cv_func_rand48" = "yes" ; then
17791
17792 cat >>confdefs.h <<\_ACEOF
17793 #define HAVE_RAND48 1
17794 _ACEOF
17795
17796 fi
17797
17798
17799 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17800 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17801 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17802   echo $ECHO_N "(cached) $ECHO_C" >&6
17803 else
17804   cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h.  */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h.  */
17810 $ac_includes_default
17811 int
17812 main ()
17813 {
17814 #ifndef strerror_s
17815   char *p = (char *) strerror_s;
17816   return !p;
17817 #endif
17818
17819   ;
17820   return 0;
17821 }
17822 _ACEOF
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_compile") 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } &&
17837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838   { (case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_try") 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; } &&
17847          { ac_try='test -s conftest.$ac_objext'
17848   { (case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853   (eval "$ac_try") 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; }; then
17857   ac_cv_have_decl_strerror_s=yes
17858 else
17859   echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17861
17862         ac_cv_have_decl_strerror_s=no
17863 fi
17864
17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17866 fi
17867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17868 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17869 if test $ac_cv_have_decl_strerror_s = yes; then
17870
17871 cat >>confdefs.h <<_ACEOF
17872 #define HAVE_DECL_STRERROR_S 1
17873 _ACEOF
17874
17875
17876 else
17877   cat >>confdefs.h <<_ACEOF
17878 #define HAVE_DECL_STRERROR_S 0
17879 _ACEOF
17880
17881
17882 fi
17883
17884
17885
17886 if test "$llvm_cv_os_type" = "MingW" ; then
17887   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17888 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17889 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17890   echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892   ac_check_lib_save_LIBS=$LIBS
17893 LIBS="-lgcc  $LIBS"
17894 cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h.  */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h.  */
17900
17901 /* Override any GCC internal prototype to avoid an error.
17902    Use char because int might match the return type of a GCC
17903    builtin and then its argument prototype would still apply.  */
17904 #ifdef __cplusplus
17905 extern "C"
17906 #endif
17907 char _alloca ();
17908 int
17909 main ()
17910 {
17911 return _alloca ();
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (ac_try="$ac_link"
17918 case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_link") 2>conftest.er1
17924   ac_status=$?
17925   grep -v '^ *+' conftest.er1 >conftest.err
17926   rm -f conftest.er1
17927   cat conftest.err >&5
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } &&
17930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17931   { (case "(($ac_try" in
17932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933   *) ac_try_echo=$ac_try;;
17934 esac
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936   (eval "$ac_try") 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); }; } &&
17940          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17950   ac_cv_lib_gcc__alloca=yes
17951 else
17952   echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17954
17955         ac_cv_lib_gcc__alloca=no
17956 fi
17957
17958 rm -f core conftest.err conftest.$ac_objext \
17959       conftest$ac_exeext conftest.$ac_ext
17960 LIBS=$ac_check_lib_save_LIBS
17961 fi
17962 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17963 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17964 if test $ac_cv_lib_gcc__alloca = yes; then
17965
17966 cat >>confdefs.h <<\_ACEOF
17967 #define HAVE__ALLOCA 1
17968 _ACEOF
17969
17970 fi
17971
17972   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17973 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17974 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17975   echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977   ac_check_lib_save_LIBS=$LIBS
17978 LIBS="-lgcc  $LIBS"
17979 cat >conftest.$ac_ext <<_ACEOF
17980 /* confdefs.h.  */
17981 _ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h.  */
17985
17986 /* Override any GCC internal prototype to avoid an error.
17987    Use char because int might match the return type of a GCC
17988    builtin and then its argument prototype would still apply.  */
17989 #ifdef __cplusplus
17990 extern "C"
17991 #endif
17992 char __alloca ();
17993 int
17994 main ()
17995 {
17996 return __alloca ();
17997   ;
17998   return 0;
17999 }
18000 _ACEOF
18001 rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (ac_try="$ac_link"
18003 case "(($ac_try" in
18004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005   *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008   (eval "$ac_link") 2>conftest.er1
18009   ac_status=$?
18010   grep -v '^ *+' conftest.er1 >conftest.err
18011   rm -f conftest.er1
18012   cat conftest.err >&5
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); } &&
18015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18016   { (case "(($ac_try" in
18017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018   *) ac_try_echo=$ac_try;;
18019 esac
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021   (eval "$ac_try") 2>&5
18022   ac_status=$?
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); }; } &&
18025          { ac_try='test -s conftest$ac_exeext'
18026   { (case "(($ac_try" in
18027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028   *) ac_try_echo=$ac_try;;
18029 esac
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031   (eval "$ac_try") 2>&5
18032   ac_status=$?
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); }; }; then
18035   ac_cv_lib_gcc___alloca=yes
18036 else
18037   echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.$ac_ext >&5
18039
18040         ac_cv_lib_gcc___alloca=no
18041 fi
18042
18043 rm -f core conftest.err conftest.$ac_objext \
18044       conftest$ac_exeext conftest.$ac_ext
18045 LIBS=$ac_check_lib_save_LIBS
18046 fi
18047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18048 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18049 if test $ac_cv_lib_gcc___alloca = yes; then
18050
18051 cat >>confdefs.h <<\_ACEOF
18052 #define HAVE___ALLOCA 1
18053 _ACEOF
18054
18055 fi
18056
18057   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18058 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18059 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18060   echo $ECHO_N "(cached) $ECHO_C" >&6
18061 else
18062   ac_check_lib_save_LIBS=$LIBS
18063 LIBS="-lgcc  $LIBS"
18064 cat >conftest.$ac_ext <<_ACEOF
18065 /* confdefs.h.  */
18066 _ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h.  */
18070
18071 /* Override any GCC internal prototype to avoid an error.
18072    Use char because int might match the return type of a GCC
18073    builtin and then its argument prototype would still apply.  */
18074 #ifdef __cplusplus
18075 extern "C"
18076 #endif
18077 char __chkstk ();
18078 int
18079 main ()
18080 {
18081 return __chkstk ();
18082   ;
18083   return 0;
18084 }
18085 _ACEOF
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090   *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093   (eval "$ac_link") 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } &&
18100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101   { (case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106   (eval "$ac_try") 2>&5
18107   ac_status=$?
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); }; } &&
18110          { ac_try='test -s conftest$ac_exeext'
18111   { (case "(($ac_try" in
18112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113   *) ac_try_echo=$ac_try;;
18114 esac
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116   (eval "$ac_try") 2>&5
18117   ac_status=$?
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); }; }; then
18120   ac_cv_lib_gcc___chkstk=yes
18121 else
18122   echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18124
18125         ac_cv_lib_gcc___chkstk=no
18126 fi
18127
18128 rm -f core conftest.err conftest.$ac_objext \
18129       conftest$ac_exeext conftest.$ac_ext
18130 LIBS=$ac_check_lib_save_LIBS
18131 fi
18132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18133 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18134 if test $ac_cv_lib_gcc___chkstk = yes; then
18135
18136 cat >>confdefs.h <<\_ACEOF
18137 #define HAVE___CHKSTK 1
18138 _ACEOF
18139
18140 fi
18141
18142   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18143 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18144 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18145   echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147   ac_check_lib_save_LIBS=$LIBS
18148 LIBS="-lgcc  $LIBS"
18149 cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h.  */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h.  */
18155
18156 /* Override any GCC internal prototype to avoid an error.
18157    Use char because int might match the return type of a GCC
18158    builtin and then its argument prototype would still apply.  */
18159 #ifdef __cplusplus
18160 extern "C"
18161 #endif
18162 char ___chkstk ();
18163 int
18164 main ()
18165 {
18166 return ___chkstk ();
18167   ;
18168   return 0;
18169 }
18170 _ACEOF
18171 rm -f conftest.$ac_objext conftest$ac_exeext
18172 if { (ac_try="$ac_link"
18173 case "(($ac_try" in
18174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175   *) ac_try_echo=$ac_try;;
18176 esac
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178   (eval "$ac_link") 2>conftest.er1
18179   ac_status=$?
18180   grep -v '^ *+' conftest.er1 >conftest.err
18181   rm -f conftest.er1
18182   cat conftest.err >&5
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); } &&
18185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18186   { (case "(($ac_try" in
18187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188   *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191   (eval "$ac_try") 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; } &&
18195          { ac_try='test -s conftest$ac_exeext'
18196   { (case "(($ac_try" in
18197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198   *) ac_try_echo=$ac_try;;
18199 esac
18200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201   (eval "$ac_try") 2>&5
18202   ac_status=$?
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); }; }; then
18205   ac_cv_lib_gcc____chkstk=yes
18206 else
18207   echo "$as_me: failed program was:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18209
18210         ac_cv_lib_gcc____chkstk=no
18211 fi
18212
18213 rm -f core conftest.err conftest.$ac_objext \
18214       conftest$ac_exeext conftest.$ac_ext
18215 LIBS=$ac_check_lib_save_LIBS
18216 fi
18217 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18218 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18219 if test $ac_cv_lib_gcc____chkstk = yes; then
18220
18221 cat >>confdefs.h <<\_ACEOF
18222 #define HAVE____CHKSTK 1
18223 _ACEOF
18224
18225 fi
18226
18227
18228   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18229 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18230 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18231   echo $ECHO_N "(cached) $ECHO_C" >&6
18232 else
18233   ac_check_lib_save_LIBS=$LIBS
18234 LIBS="-lgcc  $LIBS"
18235 cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h.  */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h.  */
18241
18242 /* Override any GCC internal prototype to avoid an error.
18243    Use char because int might match the return type of a GCC
18244    builtin and then its argument prototype would still apply.  */
18245 #ifdef __cplusplus
18246 extern "C"
18247 #endif
18248 char __ashldi3 ();
18249 int
18250 main ()
18251 {
18252 return __ashldi3 ();
18253   ;
18254   return 0;
18255 }
18256 _ACEOF
18257 rm -f conftest.$ac_objext conftest$ac_exeext
18258 if { (ac_try="$ac_link"
18259 case "(($ac_try" in
18260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261   *) ac_try_echo=$ac_try;;
18262 esac
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264   (eval "$ac_link") 2>conftest.er1
18265   ac_status=$?
18266   grep -v '^ *+' conftest.er1 >conftest.err
18267   rm -f conftest.er1
18268   cat conftest.err >&5
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); } &&
18271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272   { (case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_try") 2>&5
18278   ac_status=$?
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); }; } &&
18281          { ac_try='test -s conftest$ac_exeext'
18282   { (case "(($ac_try" in
18283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284   *) ac_try_echo=$ac_try;;
18285 esac
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287   (eval "$ac_try") 2>&5
18288   ac_status=$?
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); }; }; then
18291   ac_cv_lib_gcc___ashldi3=yes
18292 else
18293   echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18295
18296         ac_cv_lib_gcc___ashldi3=no
18297 fi
18298
18299 rm -f core conftest.err conftest.$ac_objext \
18300       conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18302 fi
18303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18304 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18305 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18306
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE___ASHLDI3 1
18309 _ACEOF
18310
18311 fi
18312
18313   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18314 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18315 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18316   echo $ECHO_N "(cached) $ECHO_C" >&6
18317 else
18318   ac_check_lib_save_LIBS=$LIBS
18319 LIBS="-lgcc  $LIBS"
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h.  */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h.  */
18326
18327 /* Override any GCC internal prototype to avoid an error.
18328    Use char because int might match the return type of a GCC
18329    builtin and then its argument prototype would still apply.  */
18330 #ifdef __cplusplus
18331 extern "C"
18332 #endif
18333 char __ashrdi3 ();
18334 int
18335 main ()
18336 {
18337 return __ashrdi3 ();
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346   *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349   (eval "$ac_link") 2>conftest.er1
18350   ac_status=$?
18351   grep -v '^ *+' conftest.er1 >conftest.err
18352   rm -f conftest.er1
18353   cat conftest.err >&5
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); } &&
18356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357   { (case "(($ac_try" in
18358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359   *) ac_try_echo=$ac_try;;
18360 esac
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362   (eval "$ac_try") 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; } &&
18366          { ac_try='test -s conftest$ac_exeext'
18367   { (case "(($ac_try" in
18368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369   *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372   (eval "$ac_try") 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; }; then
18376   ac_cv_lib_gcc___ashrdi3=yes
18377 else
18378   echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18380
18381         ac_cv_lib_gcc___ashrdi3=no
18382 fi
18383
18384 rm -f core conftest.err conftest.$ac_objext \
18385       conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18387 fi
18388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18389 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18390 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18391
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE___ASHRDI3 1
18394 _ACEOF
18395
18396 fi
18397
18398   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18399 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18401   echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403   ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-lgcc  $LIBS"
18405 cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412 /* Override any GCC internal prototype to avoid an error.
18413    Use char because int might match the return type of a GCC
18414    builtin and then its argument prototype would still apply.  */
18415 #ifdef __cplusplus
18416 extern "C"
18417 #endif
18418 char __divdi3 ();
18419 int
18420 main ()
18421 {
18422 return __divdi3 ();
18423   ;
18424   return 0;
18425 }
18426 _ACEOF
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431   *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434   (eval "$ac_link") 2>conftest.er1
18435   ac_status=$?
18436   grep -v '^ *+' conftest.er1 >conftest.err
18437   rm -f conftest.er1
18438   cat conftest.err >&5
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } &&
18441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442   { (case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_try") 2>&5
18448   ac_status=$?
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); }; } &&
18451          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18461   ac_cv_lib_gcc___divdi3=yes
18462 else
18463   echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18465
18466         ac_cv_lib_gcc___divdi3=no
18467 fi
18468
18469 rm -f core conftest.err conftest.$ac_objext \
18470       conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18472 fi
18473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18474 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18475 if test $ac_cv_lib_gcc___divdi3 = yes; then
18476
18477 cat >>confdefs.h <<\_ACEOF
18478 #define HAVE___DIVDI3 1
18479 _ACEOF
18480
18481 fi
18482
18483   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18484 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18485 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18486   echo $ECHO_N "(cached) $ECHO_C" >&6
18487 else
18488   ac_check_lib_save_LIBS=$LIBS
18489 LIBS="-lgcc  $LIBS"
18490 cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h.  */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h.  */
18496
18497 /* Override any GCC internal prototype to avoid an error.
18498    Use char because int might match the return type of a GCC
18499    builtin and then its argument prototype would still apply.  */
18500 #ifdef __cplusplus
18501 extern "C"
18502 #endif
18503 char __fixdfdi ();
18504 int
18505 main ()
18506 {
18507 return __fixdfdi ();
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_link") 2>conftest.er1
18520   ac_status=$?
18521   grep -v '^ *+' conftest.er1 >conftest.err
18522   rm -f conftest.er1
18523   cat conftest.err >&5
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); } &&
18526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527   { (case "(($ac_try" in
18528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529   *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532   (eval "$ac_try") 2>&5
18533   ac_status=$?
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); }; } &&
18536          { ac_try='test -s conftest$ac_exeext'
18537   { (case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542   (eval "$ac_try") 2>&5
18543   ac_status=$?
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); }; }; then
18546   ac_cv_lib_gcc___fixdfdi=yes
18547 else
18548   echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551         ac_cv_lib_gcc___fixdfdi=no
18552 fi
18553
18554 rm -f core conftest.err conftest.$ac_objext \
18555       conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18557 fi
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18559 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18560 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18561
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE___FIXDFDI 1
18564 _ACEOF
18565
18566 fi
18567
18568   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18569 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18570 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18571   echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573   ac_check_lib_save_LIBS=$LIBS
18574 LIBS="-lgcc  $LIBS"
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h.  */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h.  */
18581
18582 /* Override any GCC internal prototype to avoid an error.
18583    Use char because int might match the return type of a GCC
18584    builtin and then its argument prototype would still apply.  */
18585 #ifdef __cplusplus
18586 extern "C"
18587 #endif
18588 char __fixsfdi ();
18589 int
18590 main ()
18591 {
18592 return __fixsfdi ();
18593   ;
18594   return 0;
18595 }
18596 _ACEOF
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601   *) ac_try_echo=$ac_try;;
18602 esac
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604   (eval "$ac_link") 2>conftest.er1
18605   ac_status=$?
18606   grep -v '^ *+' conftest.er1 >conftest.err
18607   rm -f conftest.er1
18608   cat conftest.err >&5
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); } &&
18611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612   { (case "(($ac_try" in
18613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614   *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617   (eval "$ac_try") 2>&5
18618   ac_status=$?
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); }; } &&
18621          { ac_try='test -s conftest$ac_exeext'
18622   { (case "(($ac_try" in
18623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624   *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627   (eval "$ac_try") 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); }; }; then
18631   ac_cv_lib_gcc___fixsfdi=yes
18632 else
18633   echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18635
18636         ac_cv_lib_gcc___fixsfdi=no
18637 fi
18638
18639 rm -f core conftest.err conftest.$ac_objext \
18640       conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18642 fi
18643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18644 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18645 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18646
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE___FIXSFDI 1
18649 _ACEOF
18650
18651 fi
18652
18653   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18654 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18655 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658   ac_check_lib_save_LIBS=$LIBS
18659 LIBS="-lgcc  $LIBS"
18660 cat >conftest.$ac_ext <<_ACEOF
18661 /* confdefs.h.  */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h.  */
18666
18667 /* Override any GCC internal prototype to avoid an error.
18668    Use char because int might match the return type of a GCC
18669    builtin and then its argument prototype would still apply.  */
18670 #ifdef __cplusplus
18671 extern "C"
18672 #endif
18673 char __floatdidf ();
18674 int
18675 main ()
18676 {
18677 return __floatdidf ();
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686   *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689   (eval "$ac_link") 2>conftest.er1
18690   ac_status=$?
18691   grep -v '^ *+' conftest.er1 >conftest.err
18692   rm -f conftest.er1
18693   cat conftest.err >&5
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); } &&
18696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697   { (case "(($ac_try" in
18698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699   *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702   (eval "$ac_try") 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; } &&
18706          { ac_try='test -s conftest$ac_exeext'
18707   { (case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_try") 2>&5
18713   ac_status=$?
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); }; }; then
18716   ac_cv_lib_gcc___floatdidf=yes
18717 else
18718   echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18720
18721         ac_cv_lib_gcc___floatdidf=no
18722 fi
18723
18724 rm -f core conftest.err conftest.$ac_objext \
18725       conftest$ac_exeext conftest.$ac_ext
18726 LIBS=$ac_check_lib_save_LIBS
18727 fi
18728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18729 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18730 if test $ac_cv_lib_gcc___floatdidf = yes; then
18731
18732 cat >>confdefs.h <<\_ACEOF
18733 #define HAVE___FLOATDIDF 1
18734 _ACEOF
18735
18736 fi
18737
18738   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18739 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18740 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18741   echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743   ac_check_lib_save_LIBS=$LIBS
18744 LIBS="-lgcc  $LIBS"
18745 cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h.  */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h.  */
18751
18752 /* Override any GCC internal prototype to avoid an error.
18753    Use char because int might match the return type of a GCC
18754    builtin and then its argument prototype would still apply.  */
18755 #ifdef __cplusplus
18756 extern "C"
18757 #endif
18758 char __lshrdi3 ();
18759 int
18760 main ()
18761 {
18762 return __lshrdi3 ();
18763   ;
18764   return 0;
18765 }
18766 _ACEOF
18767 rm -f conftest.$ac_objext conftest$ac_exeext
18768 if { (ac_try="$ac_link"
18769 case "(($ac_try" in
18770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771   *) ac_try_echo=$ac_try;;
18772 esac
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774   (eval "$ac_link") 2>conftest.er1
18775   ac_status=$?
18776   grep -v '^ *+' conftest.er1 >conftest.err
18777   rm -f conftest.er1
18778   cat conftest.err >&5
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } &&
18781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782   { (case "(($ac_try" in
18783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784   *) ac_try_echo=$ac_try;;
18785 esac
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787   (eval "$ac_try") 2>&5
18788   ac_status=$?
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); }; } &&
18791          { ac_try='test -s conftest$ac_exeext'
18792   { (case "(($ac_try" in
18793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794   *) ac_try_echo=$ac_try;;
18795 esac
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797   (eval "$ac_try") 2>&5
18798   ac_status=$?
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); }; }; then
18801   ac_cv_lib_gcc___lshrdi3=yes
18802 else
18803   echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806         ac_cv_lib_gcc___lshrdi3=no
18807 fi
18808
18809 rm -f core conftest.err conftest.$ac_objext \
18810       conftest$ac_exeext conftest.$ac_ext
18811 LIBS=$ac_check_lib_save_LIBS
18812 fi
18813 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18814 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18815 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18816
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE___LSHRDI3 1
18819 _ACEOF
18820
18821 fi
18822
18823   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18824 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18825 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18826   echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828   ac_check_lib_save_LIBS=$LIBS
18829 LIBS="-lgcc  $LIBS"
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836
18837 /* Override any GCC internal prototype to avoid an error.
18838    Use char because int might match the return type of a GCC
18839    builtin and then its argument prototype would still apply.  */
18840 #ifdef __cplusplus
18841 extern "C"
18842 #endif
18843 char __moddi3 ();
18844 int
18845 main ()
18846 {
18847 return __moddi3 ();
18848   ;
18849   return 0;
18850 }
18851 _ACEOF
18852 rm -f conftest.$ac_objext conftest$ac_exeext
18853 if { (ac_try="$ac_link"
18854 case "(($ac_try" in
18855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856   *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859   (eval "$ac_link") 2>conftest.er1
18860   ac_status=$?
18861   grep -v '^ *+' conftest.er1 >conftest.err
18862   rm -f conftest.er1
18863   cat conftest.err >&5
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); } &&
18866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18867   { (case "(($ac_try" in
18868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869   *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872   (eval "$ac_try") 2>&5
18873   ac_status=$?
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); }; } &&
18876          { ac_try='test -s conftest$ac_exeext'
18877   { (case "(($ac_try" in
18878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879   *) ac_try_echo=$ac_try;;
18880 esac
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882   (eval "$ac_try") 2>&5
18883   ac_status=$?
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); }; }; then
18886   ac_cv_lib_gcc___moddi3=yes
18887 else
18888   echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18890
18891         ac_cv_lib_gcc___moddi3=no
18892 fi
18893
18894 rm -f core conftest.err conftest.$ac_objext \
18895       conftest$ac_exeext conftest.$ac_ext
18896 LIBS=$ac_check_lib_save_LIBS
18897 fi
18898 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18899 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18900 if test $ac_cv_lib_gcc___moddi3 = yes; then
18901
18902 cat >>confdefs.h <<\_ACEOF
18903 #define HAVE___MODDI3 1
18904 _ACEOF
18905
18906 fi
18907
18908   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18909 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18910 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18911   echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913   ac_check_lib_save_LIBS=$LIBS
18914 LIBS="-lgcc  $LIBS"
18915 cat >conftest.$ac_ext <<_ACEOF
18916 /* confdefs.h.  */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h.  */
18921
18922 /* Override any GCC internal prototype to avoid an error.
18923    Use char because int might match the return type of a GCC
18924    builtin and then its argument prototype would still apply.  */
18925 #ifdef __cplusplus
18926 extern "C"
18927 #endif
18928 char __udivdi3 ();
18929 int
18930 main ()
18931 {
18932 return __udivdi3 ();
18933   ;
18934   return 0;
18935 }
18936 _ACEOF
18937 rm -f conftest.$ac_objext conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941   *) ac_try_echo=$ac_try;;
18942 esac
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944   (eval "$ac_link") 2>conftest.er1
18945   ac_status=$?
18946   grep -v '^ *+' conftest.er1 >conftest.err
18947   rm -f conftest.er1
18948   cat conftest.err >&5
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); } &&
18951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952   { (case "(($ac_try" in
18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954   *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957   (eval "$ac_try") 2>&5
18958   ac_status=$?
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); }; } &&
18961          { ac_try='test -s conftest$ac_exeext'
18962   { (case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_try") 2>&5
18968   ac_status=$?
18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); }; }; then
18971   ac_cv_lib_gcc___udivdi3=yes
18972 else
18973   echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18975
18976         ac_cv_lib_gcc___udivdi3=no
18977 fi
18978
18979 rm -f core conftest.err conftest.$ac_objext \
18980       conftest$ac_exeext conftest.$ac_ext
18981 LIBS=$ac_check_lib_save_LIBS
18982 fi
18983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18984 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18985 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18986
18987 cat >>confdefs.h <<\_ACEOF
18988 #define HAVE___UDIVDI3 1
18989 _ACEOF
18990
18991 fi
18992
18993   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18994 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18995 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18996   echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998   ac_check_lib_save_LIBS=$LIBS
18999 LIBS="-lgcc  $LIBS"
19000 cat >conftest.$ac_ext <<_ACEOF
19001 /* confdefs.h.  */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h.  */
19006
19007 /* Override any GCC internal prototype to avoid an error.
19008    Use char because int might match the return type of a GCC
19009    builtin and then its argument prototype would still apply.  */
19010 #ifdef __cplusplus
19011 extern "C"
19012 #endif
19013 char __umoddi3 ();
19014 int
19015 main ()
19016 {
19017 return __umoddi3 ();
19018   ;
19019   return 0;
19020 }
19021 _ACEOF
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (ac_try="$ac_link"
19024 case "(($ac_try" in
19025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026   *) ac_try_echo=$ac_try;;
19027 esac
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029   (eval "$ac_link") 2>conftest.er1
19030   ac_status=$?
19031   grep -v '^ *+' conftest.er1 >conftest.err
19032   rm -f conftest.er1
19033   cat conftest.err >&5
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); } &&
19036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19037   { (case "(($ac_try" in
19038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039   *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042   (eval "$ac_try") 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; } &&
19046          { ac_try='test -s conftest$ac_exeext'
19047   { (case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_try") 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }; }; then
19056   ac_cv_lib_gcc___umoddi3=yes
19057 else
19058   echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19060
19061         ac_cv_lib_gcc___umoddi3=no
19062 fi
19063
19064 rm -f core conftest.err conftest.$ac_objext \
19065       conftest$ac_exeext conftest.$ac_ext
19066 LIBS=$ac_check_lib_save_LIBS
19067 fi
19068 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19069 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19070 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19071
19072 cat >>confdefs.h <<\_ACEOF
19073 #define HAVE___UMODDI3 1
19074 _ACEOF
19075
19076 fi
19077
19078
19079   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19080 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19081 if test "${ac_cv_lib_gcc___main+set}" = set; then
19082   echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084   ac_check_lib_save_LIBS=$LIBS
19085 LIBS="-lgcc  $LIBS"
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092
19093 /* Override any GCC internal prototype to avoid an error.
19094    Use char because int might match the return type of a GCC
19095    builtin and then its argument prototype would still apply.  */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 char __main ();
19100 int
19101 main ()
19102 {
19103 return __main ();
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (ac_try="$ac_link"
19110 case "(($ac_try" in
19111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112   *) ac_try_echo=$ac_try;;
19113 esac
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115   (eval "$ac_link") 2>conftest.er1
19116   ac_status=$?
19117   grep -v '^ *+' conftest.er1 >conftest.err
19118   rm -f conftest.er1
19119   cat conftest.err >&5
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); } &&
19122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123   { (case "(($ac_try" in
19124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125   *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128   (eval "$ac_try") 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; } &&
19132          { ac_try='test -s conftest$ac_exeext'
19133   { (case "(($ac_try" in
19134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135   *) ac_try_echo=$ac_try;;
19136 esac
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138   (eval "$ac_try") 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; }; then
19142   ac_cv_lib_gcc___main=yes
19143 else
19144   echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19146
19147         ac_cv_lib_gcc___main=no
19148 fi
19149
19150 rm -f core conftest.err conftest.$ac_objext \
19151       conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19153 fi
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19155 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19156 if test $ac_cv_lib_gcc___main = yes; then
19157
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE___MAIN 1
19160 _ACEOF
19161
19162 fi
19163
19164   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19165 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19167   echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169   ac_check_lib_save_LIBS=$LIBS
19170 LIBS="-lgcc  $LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h.  */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h.  */
19177
19178 /* Override any GCC internal prototype to avoid an error.
19179    Use char because int might match the return type of a GCC
19180    builtin and then its argument prototype would still apply.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 char __cmpdi2 ();
19185 int
19186 main ()
19187 {
19188 return __cmpdi2 ();
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } &&
19207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208   { (case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_try") 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; } &&
19217          { ac_try='test -s conftest$ac_exeext'
19218   { (case "(($ac_try" in
19219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220   *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223   (eval "$ac_try") 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }; }; then
19227   ac_cv_lib_gcc___cmpdi2=yes
19228 else
19229   echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232         ac_cv_lib_gcc___cmpdi2=no
19233 fi
19234
19235 rm -f core conftest.err conftest.$ac_objext \
19236       conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19238 fi
19239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19240 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19241 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19242
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE___CMPDI2 1
19245 _ACEOF
19246
19247 fi
19248
19249 fi
19250
19251 if test "$llvm_cv_os_type" = "MingW" ; then
19252   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19253 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19254   cat >conftest.$ac_ext <<_ACEOF
19255 #include <windows.h>
19256 #include <imagehlp.h>
19257 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19258 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19259 _ACEOF
19260 rm -f conftest.$ac_objext
19261 if { (ac_try="$ac_compile"
19262 case "(($ac_try" in
19263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264   *) ac_try_echo=$ac_try;;
19265 esac
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267   (eval "$ac_compile") 2>conftest.er1
19268   ac_status=$?
19269   grep -v '^ *+' conftest.er1 >conftest.err
19270   rm -f conftest.er1
19271   cat conftest.err >&5
19272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273   (exit $ac_status); } &&
19274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19275   { (case "(($ac_try" in
19276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277   *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280   (eval "$ac_try") 2>&5
19281   ac_status=$?
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); }; } &&
19284          { ac_try='test -s conftest.$ac_objext'
19285   { (case "(($ac_try" in
19286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287   *) ac_try_echo=$ac_try;;
19288 esac
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290   (eval "$ac_try") 2>&5
19291   ac_status=$?
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); }; }; then
19294
19295   { echo "$as_me:$LINENO: result: yes" >&5
19296 echo "${ECHO_T}yes" >&6; }
19297   llvm_cv_win32_elmcb_pcstr="PCSTR"
19298
19299 else
19300   echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303
19304   { echo "$as_me:$LINENO: result: no" >&5
19305 echo "${ECHO_T}no" >&6; }
19306   llvm_cv_win32_elmcb_pcstr="PSTR"
19307
19308 fi
19309
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311
19312 cat >>confdefs.h <<_ACEOF
19313 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19314 _ACEOF
19315
19316 fi
19317
19318
19319 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19320 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19321 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19322   echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324   ac_ext=cpp
19325 ac_cpp='$CXXCPP $CPPFLAGS'
19326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19329
19330    cat >conftest.$ac_ext <<_ACEOF
19331 /* confdefs.h.  */
19332 _ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h.  */
19336 #include <math.h>
19337 int
19338 main ()
19339 {
19340 float f; isnan(f);
19341   ;
19342   return 0;
19343 }
19344 _ACEOF
19345 rm -f conftest.$ac_objext
19346 if { (ac_try="$ac_compile"
19347 case "(($ac_try" in
19348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349   *) ac_try_echo=$ac_try;;
19350 esac
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352   (eval "$ac_compile") 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } &&
19359          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19360   { (case "(($ac_try" in
19361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362   *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365   (eval "$ac_try") 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; } &&
19369          { ac_try='test -s conftest.$ac_objext'
19370   { (case "(($ac_try" in
19371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372   *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375   (eval "$ac_try") 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; }; then
19379   ac_cv_func_isnan_in_math_h=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384         ac_cv_func_isnan_in_math_h=no
19385 fi
19386
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388   ac_ext=c
19389 ac_cpp='$CPP $CPPFLAGS'
19390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19393
19394 fi
19395 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19396 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19397
19398
19399 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19400
19401 cat >>confdefs.h <<\_ACEOF
19402 #define HAVE_ISNAN_IN_MATH_H 1
19403 _ACEOF
19404
19405 fi
19406
19407 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19408 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19409 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19410   echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412   ac_ext=cpp
19413 ac_cpp='$CXXCPP $CPPFLAGS'
19414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19417
19418    cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h.  */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h.  */
19424 #include <cmath>
19425 int
19426 main ()
19427 {
19428 float f; isnan(f);
19429   ;
19430   return 0;
19431 }
19432 _ACEOF
19433 rm -f conftest.$ac_objext
19434 if { (ac_try="$ac_compile"
19435 case "(($ac_try" in
19436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437   *) ac_try_echo=$ac_try;;
19438 esac
19439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440   (eval "$ac_compile") 2>conftest.er1
19441   ac_status=$?
19442   grep -v '^ *+' conftest.er1 >conftest.err
19443   rm -f conftest.er1
19444   cat conftest.err >&5
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); } &&
19447          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19448   { (case "(($ac_try" in
19449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450   *) ac_try_echo=$ac_try;;
19451 esac
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453   (eval "$ac_try") 2>&5
19454   ac_status=$?
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); }; } &&
19457          { ac_try='test -s conftest.$ac_objext'
19458   { (case "(($ac_try" in
19459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460   *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463   (eval "$ac_try") 2>&5
19464   ac_status=$?
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); }; }; then
19467   ac_cv_func_isnan_in_cmath=yes
19468 else
19469   echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19471
19472         ac_cv_func_isnan_in_cmath=no
19473 fi
19474
19475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19476   ac_ext=c
19477 ac_cpp='$CPP $CPPFLAGS'
19478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19481
19482 fi
19483 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19484 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19485
19486 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19487
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE_ISNAN_IN_CMATH 1
19490 _ACEOF
19491
19492 fi
19493
19494 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19495 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19496 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19497   echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499   ac_ext=cpp
19500 ac_cpp='$CXXCPP $CPPFLAGS'
19501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19504
19505    cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h.  */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h.  */
19511 #include <cmath>
19512 int
19513 main ()
19514 {
19515 float f; std::isnan(f);
19516   ;
19517   return 0;
19518 }
19519 _ACEOF
19520 rm -f conftest.$ac_objext
19521 if { (ac_try="$ac_compile"
19522 case "(($ac_try" in
19523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524   *) ac_try_echo=$ac_try;;
19525 esac
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527   (eval "$ac_compile") 2>conftest.er1
19528   ac_status=$?
19529   grep -v '^ *+' conftest.er1 >conftest.err
19530   rm -f conftest.er1
19531   cat conftest.err >&5
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); } &&
19534          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19535   { (case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_try") 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); }; } &&
19544          { ac_try='test -s conftest.$ac_objext'
19545   { (case "(($ac_try" in
19546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547   *) ac_try_echo=$ac_try;;
19548 esac
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550   (eval "$ac_try") 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; }; then
19554   ac_cv_func_std_isnan_in_cmath=yes
19555 else
19556   echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559         ac_cv_func_std_isnan_in_cmath=no
19560 fi
19561
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563   ac_ext=c
19564 ac_cpp='$CPP $CPPFLAGS'
19565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19568
19569 fi
19570 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19571 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19572
19573 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19574
19575 cat >>confdefs.h <<\_ACEOF
19576 #define HAVE_STD_ISNAN_IN_CMATH 1
19577 _ACEOF
19578
19579 fi
19580
19581
19582 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19583 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19584 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19585   echo $ECHO_N "(cached) $ECHO_C" >&6
19586 else
19587   ac_ext=cpp
19588 ac_cpp='$CXXCPP $CPPFLAGS'
19589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19592
19593    cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599 #include <math.h>
19600 int
19601 main ()
19602 {
19603 float f; isinf(f);
19604   ;
19605   return 0;
19606 }
19607 _ACEOF
19608 rm -f conftest.$ac_objext
19609 if { (ac_try="$ac_compile"
19610 case "(($ac_try" in
19611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612   *) ac_try_echo=$ac_try;;
19613 esac
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615   (eval "$ac_compile") 2>conftest.er1
19616   ac_status=$?
19617   grep -v '^ *+' conftest.er1 >conftest.err
19618   rm -f conftest.er1
19619   cat conftest.err >&5
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); } &&
19622          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19623   { (case "(($ac_try" in
19624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625   *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628   (eval "$ac_try") 2>&5
19629   ac_status=$?
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); }; } &&
19632          { ac_try='test -s conftest.$ac_objext'
19633   { (case "(($ac_try" in
19634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635   *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638   (eval "$ac_try") 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; }; then
19642   ac_cv_func_isinf_in_math_h=yes
19643 else
19644   echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647         ac_cv_func_isinf_in_math_h=no
19648 fi
19649
19650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651   ac_ext=c
19652 ac_cpp='$CPP $CPPFLAGS'
19653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19656
19657 fi
19658 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19659 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19660
19661 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19662
19663 cat >>confdefs.h <<\_ACEOF
19664 #define HAVE_ISINF_IN_MATH_H 1
19665 _ACEOF
19666
19667 fi
19668
19669 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19670 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19671 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19672   echo $ECHO_N "(cached) $ECHO_C" >&6
19673 else
19674   ac_ext=cpp
19675 ac_cpp='$CXXCPP $CPPFLAGS'
19676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19679
19680    cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h.  */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h.  */
19686 #include <cmath>
19687 int
19688 main ()
19689 {
19690 float f; isinf(f);
19691   ;
19692   return 0;
19693 }
19694 _ACEOF
19695 rm -f conftest.$ac_objext
19696 if { (ac_try="$ac_compile"
19697 case "(($ac_try" in
19698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699   *) ac_try_echo=$ac_try;;
19700 esac
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702   (eval "$ac_compile") 2>conftest.er1
19703   ac_status=$?
19704   grep -v '^ *+' conftest.er1 >conftest.err
19705   rm -f conftest.er1
19706   cat conftest.err >&5
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); } &&
19709          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19710   { (case "(($ac_try" in
19711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712   *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715   (eval "$ac_try") 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); }; } &&
19719          { ac_try='test -s conftest.$ac_objext'
19720   { (case "(($ac_try" in
19721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722   *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725   (eval "$ac_try") 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; }; then
19729   ac_cv_func_isinf_in_cmath=yes
19730 else
19731   echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734         ac_cv_func_isinf_in_cmath=no
19735 fi
19736
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738   ac_ext=c
19739 ac_cpp='$CPP $CPPFLAGS'
19740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744 fi
19745 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19746 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19747
19748 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19749
19750 cat >>confdefs.h <<\_ACEOF
19751 #define HAVE_ISINF_IN_CMATH 1
19752 _ACEOF
19753
19754 fi
19755
19756 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19757 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19758 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761   ac_ext=cpp
19762 ac_cpp='$CXXCPP $CPPFLAGS'
19763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19766
19767    cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773 #include <cmath>
19774 int
19775 main ()
19776 {
19777 float f; std::isinf(f)}
19778   ;
19779   return 0;
19780 }
19781 _ACEOF
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786   *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789   (eval "$ac_compile") 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797   { (case "(($ac_try" in
19798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799   *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802   (eval "$ac_try") 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); }; } &&
19806          { ac_try='test -s conftest.$ac_objext'
19807   { (case "(($ac_try" in
19808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809   *) ac_try_echo=$ac_try;;
19810 esac
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812   (eval "$ac_try") 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); }; }; then
19816   ac_cv_func_std_isinf_in_cmath=yes
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821         ac_cv_func_std_isinf_in_cmath=no
19822 fi
19823
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825   ac_ext=c
19826 ac_cpp='$CPP $CPPFLAGS'
19827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19830
19831 fi
19832 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19833 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19834
19835 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19836
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE_STD_ISINF_IN_CMATH 1
19839 _ACEOF
19840
19841 fi
19842
19843 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19844 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19845 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19846   echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848   ac_ext=cpp
19849 ac_cpp='$CXXCPP $CPPFLAGS'
19850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19853
19854    cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h.  */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h.  */
19860 #include <ieeefp.h>
19861 int
19862 main ()
19863 {
19864 float f; finite(f);
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_compile") 2>conftest.er1
19877   ac_status=$?
19878   grep -v '^ *+' conftest.er1 >conftest.err
19879   rm -f conftest.er1
19880   cat conftest.err >&5
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } &&
19883          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884   { (case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_try") 2>&5
19890   ac_status=$?
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); }; } &&
19893          { ac_try='test -s conftest.$ac_objext'
19894   { (case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_try") 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); }; }; then
19903   ac_cv_func_finite_in_ieeefp_h=yes
19904 else
19905   echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19907
19908         ac_cv_func_finite_in_ieeefp_h=no
19909 fi
19910
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912   ac_ext=c
19913 ac_cpp='$CPP $CPPFLAGS'
19914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19917
19918 fi
19919 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19920 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19921
19922 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19923
19924 cat >>confdefs.h <<\_ACEOF
19925 #define HAVE_FINITE_IN_IEEEFP_H 1
19926 _ACEOF
19927
19928 fi
19929
19930
19931
19932 if test "$llvm_cv_platform_type" = "Unix" ; then
19933
19934
19935 for ac_header in stdlib.h unistd.h
19936 do
19937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19939   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942   echo $ECHO_N "(cached) $ECHO_C" >&6
19943 fi
19944 ac_res=`eval echo '${'$as_ac_Header'}'`
19945                { echo "$as_me:$LINENO: result: $ac_res" >&5
19946 echo "${ECHO_T}$ac_res" >&6; }
19947 else
19948   # Is the header compilable?
19949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19951 cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h.  */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h.  */
19957 $ac_includes_default
19958 #include <$ac_header>
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964   *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967   (eval "$ac_compile") 2>conftest.er1
19968   ac_status=$?
19969   grep -v '^ *+' conftest.er1 >conftest.err
19970   rm -f conftest.er1
19971   cat conftest.err >&5
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); } &&
19974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19975   { (case "(($ac_try" in
19976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977   *) ac_try_echo=$ac_try;;
19978 esac
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980   (eval "$ac_try") 2>&5
19981   ac_status=$?
19982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983   (exit $ac_status); }; } &&
19984          { ac_try='test -s conftest.$ac_objext'
19985   { (case "(($ac_try" in
19986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987   *) ac_try_echo=$ac_try;;
19988 esac
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990   (eval "$ac_try") 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); }; }; then
19994   ac_header_compiler=yes
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999         ac_header_compiler=no
20000 fi
20001
20002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20004 echo "${ECHO_T}$ac_header_compiler" >&6; }
20005
20006 # Is the header present?
20007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015 #include <$ac_header>
20016 _ACEOF
20017 if { (ac_try="$ac_cpp conftest.$ac_ext"
20018 case "(($ac_try" in
20019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020   *) ac_try_echo=$ac_try;;
20021 esac
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20024   ac_status=$?
20025   grep -v '^ *+' conftest.er1 >conftest.err
20026   rm -f conftest.er1
20027   cat conftest.err >&5
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); } >/dev/null; then
20030   if test -s conftest.err; then
20031     ac_cpp_err=$ac_c_preproc_warn_flag
20032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20033   else
20034     ac_cpp_err=
20035   fi
20036 else
20037   ac_cpp_err=yes
20038 fi
20039 if test -z "$ac_cpp_err"; then
20040   ac_header_preproc=yes
20041 else
20042   echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045   ac_header_preproc=no
20046 fi
20047
20048 rm -f conftest.err conftest.$ac_ext
20049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20050 echo "${ECHO_T}$ac_header_preproc" >&6; }
20051
20052 # So?  What about this header?
20053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20054   yes:no: )
20055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20059     ac_header_preproc=yes
20060     ;;
20061   no:yes:* )
20062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20064     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20065 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20066     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20068     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20069 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20072     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20074     ( cat <<\_ASBOX
20075 ## ----------------------------------- ##
20076 ## Report this to llvmbugs@cs.uiuc.edu ##
20077 ## ----------------------------------- ##
20078 _ASBOX
20079      ) | sed "s/^/$as_me: WARNING:     /" >&2
20080     ;;
20081 esac
20082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20085   echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087   eval "$as_ac_Header=\$ac_header_preproc"
20088 fi
20089 ac_res=`eval echo '${'$as_ac_Header'}'`
20090                { echo "$as_me:$LINENO: result: $ac_res" >&5
20091 echo "${ECHO_T}$ac_res" >&6; }
20092
20093 fi
20094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20095   cat >>confdefs.h <<_ACEOF
20096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20097 _ACEOF
20098
20099 fi
20100
20101 done
20102
20103
20104 for ac_func in getpagesize
20105 do
20106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20110   echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112   cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h.  */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h.  */
20118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20120 #define $ac_func innocuous_$ac_func
20121
20122 /* System header to define __stub macros and hopefully few prototypes,
20123     which can conflict with char $ac_func (); below.
20124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20125     <limits.h> exists even on freestanding compilers.  */
20126
20127 #ifdef __STDC__
20128 # include <limits.h>
20129 #else
20130 # include <assert.h>
20131 #endif
20132
20133 #undef $ac_func
20134
20135 /* Override any GCC internal prototype to avoid an error.
20136    Use char because int might match the return type of a GCC
20137    builtin and then its argument prototype would still apply.  */
20138 #ifdef __cplusplus
20139 extern "C"
20140 #endif
20141 char $ac_func ();
20142 /* The GNU C library defines this for functions which it implements
20143     to always fail with ENOSYS.  Some functions are actually named
20144     something starting with __ and the normal name is an alias.  */
20145 #if defined __stub_$ac_func || defined __stub___$ac_func
20146 choke me
20147 #endif
20148
20149 int
20150 main ()
20151 {
20152 return $ac_func ();
20153   ;
20154   return 0;
20155 }
20156 _ACEOF
20157 rm -f conftest.$ac_objext conftest$ac_exeext
20158 if { (ac_try="$ac_link"
20159 case "(($ac_try" in
20160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161   *) ac_try_echo=$ac_try;;
20162 esac
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164   (eval "$ac_link") 2>conftest.er1
20165   ac_status=$?
20166   grep -v '^ *+' conftest.er1 >conftest.err
20167   rm -f conftest.er1
20168   cat conftest.err >&5
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); } &&
20171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20172   { (case "(($ac_try" in
20173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174   *) ac_try_echo=$ac_try;;
20175 esac
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177   (eval "$ac_try") 2>&5
20178   ac_status=$?
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); }; } &&
20181          { ac_try='test -s conftest$ac_exeext'
20182   { (case "(($ac_try" in
20183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184   *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187   (eval "$ac_try") 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; }; then
20191   eval "$as_ac_var=yes"
20192 else
20193   echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20195
20196         eval "$as_ac_var=no"
20197 fi
20198
20199 rm -f core conftest.err conftest.$ac_objext \
20200       conftest$ac_exeext conftest.$ac_ext
20201 fi
20202 ac_res=`eval echo '${'$as_ac_var'}'`
20203                { echo "$as_me:$LINENO: result: $ac_res" >&5
20204 echo "${ECHO_T}$ac_res" >&6; }
20205 if test `eval echo '${'$as_ac_var'}'` = yes; then
20206   cat >>confdefs.h <<_ACEOF
20207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20208 _ACEOF
20209
20210 fi
20211 done
20212
20213 { echo "$as_me:$LINENO: checking for working mmap" >&5
20214 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20215 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20216   echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218   if test "$cross_compiling" = yes; then
20219   ac_cv_func_mmap_fixed_mapped=no
20220 else
20221   cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h.  */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h.  */
20227 $ac_includes_default
20228 /* malloc might have been renamed as rpl_malloc. */
20229 #undef malloc
20230
20231 /* Thanks to Mike Haertel and Jim Avera for this test.
20232    Here is a matrix of mmap possibilities:
20233         mmap private not fixed
20234         mmap private fixed at somewhere currently unmapped
20235         mmap private fixed at somewhere already mapped
20236         mmap shared not fixed
20237         mmap shared fixed at somewhere currently unmapped
20238         mmap shared fixed at somewhere already mapped
20239    For private mappings, we should verify that changes cannot be read()
20240    back from the file, nor mmap's back from the file at a different
20241    address.  (There have been systems where private was not correctly
20242    implemented like the infamous i386 svr4.0, and systems where the
20243    VM page cache was not coherent with the file system buffer cache
20244    like early versions of FreeBSD and possibly contemporary NetBSD.)
20245    For shared mappings, we should conversely verify that changes get
20246    propagated back to all the places they're supposed to be.
20247
20248    Grep wants private fixed already mapped.
20249    The main things grep needs to know about mmap are:
20250    * does it exist and is it safe to write into the mmap'd area
20251    * how to use it (BSD variants)  */
20252
20253 #include <fcntl.h>
20254 #include <sys/mman.h>
20255
20256 #if !STDC_HEADERS && !HAVE_STDLIB_H
20257 char *malloc ();
20258 #endif
20259
20260 /* This mess was copied from the GNU getpagesize.h.  */
20261 #if !HAVE_GETPAGESIZE
20262 /* Assume that all systems that can run configure have sys/param.h.  */
20263 # if !HAVE_SYS_PARAM_H
20264 #  define HAVE_SYS_PARAM_H 1
20265 # endif
20266
20267 # ifdef _SC_PAGESIZE
20268 #  define getpagesize() sysconf(_SC_PAGESIZE)
20269 # else /* no _SC_PAGESIZE */
20270 #  if HAVE_SYS_PARAM_H
20271 #   include <sys/param.h>
20272 #   ifdef EXEC_PAGESIZE
20273 #    define getpagesize() EXEC_PAGESIZE
20274 #   else /* no EXEC_PAGESIZE */
20275 #    ifdef NBPG
20276 #     define getpagesize() NBPG * CLSIZE
20277 #     ifndef CLSIZE
20278 #      define CLSIZE 1
20279 #     endif /* no CLSIZE */
20280 #    else /* no NBPG */
20281 #     ifdef NBPC
20282 #      define getpagesize() NBPC
20283 #     else /* no NBPC */
20284 #      ifdef PAGESIZE
20285 #       define getpagesize() PAGESIZE
20286 #      endif /* PAGESIZE */
20287 #     endif /* no NBPC */
20288 #    endif /* no NBPG */
20289 #   endif /* no EXEC_PAGESIZE */
20290 #  else /* no HAVE_SYS_PARAM_H */
20291 #   define getpagesize() 8192   /* punt totally */
20292 #  endif /* no HAVE_SYS_PARAM_H */
20293 # endif /* no _SC_PAGESIZE */
20294
20295 #endif /* no HAVE_GETPAGESIZE */
20296
20297 int
20298 main ()
20299 {
20300   char *data, *data2, *data3;
20301   int i, pagesize;
20302   int fd;
20303
20304   pagesize = getpagesize ();
20305
20306   /* First, make a file with some known garbage in it. */
20307   data = (char *) malloc (pagesize);
20308   if (!data)
20309     return 1;
20310   for (i = 0; i < pagesize; ++i)
20311     *(data + i) = rand ();
20312   umask (0);
20313   fd = creat ("conftest.mmap", 0600);
20314   if (fd < 0)
20315     return 1;
20316   if (write (fd, data, pagesize) != pagesize)
20317     return 1;
20318   close (fd);
20319
20320   /* Next, try to mmap the file at a fixed address which already has
20321      something else allocated at it.  If we can, also make sure that
20322      we see the same garbage.  */
20323   fd = open ("conftest.mmap", O_RDWR);
20324   if (fd < 0)
20325     return 1;
20326   data2 = (char *) malloc (2 * pagesize);
20327   if (!data2)
20328     return 1;
20329   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20330   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20331                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20332     return 1;
20333   for (i = 0; i < pagesize; ++i)
20334     if (*(data + i) != *(data2 + i))
20335       return 1;
20336
20337   /* Finally, make sure that changes to the mapped area do not
20338      percolate back to the file as seen by read().  (This is a bug on
20339      some variants of i386 svr4.0.)  */
20340   for (i = 0; i < pagesize; ++i)
20341     *(data2 + i) = *(data2 + i) + 1;
20342   data3 = (char *) malloc (pagesize);
20343   if (!data3)
20344     return 1;
20345   if (read (fd, data3, pagesize) != pagesize)
20346     return 1;
20347   for (i = 0; i < pagesize; ++i)
20348     if (*(data + i) != *(data3 + i))
20349       return 1;
20350   close (fd);
20351   return 0;
20352 }
20353 _ACEOF
20354 rm -f conftest$ac_exeext
20355 if { (ac_try="$ac_link"
20356 case "(($ac_try" in
20357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358   *) ac_try_echo=$ac_try;;
20359 esac
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361   (eval "$ac_link") 2>&5
20362   ac_status=$?
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20365   { (case "(($ac_try" in
20366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367   *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370   (eval "$ac_try") 2>&5
20371   ac_status=$?
20372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); }; }; then
20374   ac_cv_func_mmap_fixed_mapped=yes
20375 else
20376   echo "$as_me: program exited with status $ac_status" >&5
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20379
20380 ( exit $ac_status )
20381 ac_cv_func_mmap_fixed_mapped=no
20382 fi
20383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20384 fi
20385
20386
20387 fi
20388 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20389 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20390 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20391
20392 cat >>confdefs.h <<\_ACEOF
20393 #define HAVE_MMAP 1
20394 _ACEOF
20395
20396 fi
20397 rm -f conftest.mmap
20398
20399   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20400 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20401 if test "${ac_cv_func_mmap_file+set}" = set; then
20402   echo $ECHO_N "(cached) $ECHO_C" >&6
20403 else
20404    ac_ext=c
20405 ac_cpp='$CPP $CPPFLAGS'
20406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20409
20410   if test "$cross_compiling" = yes; then
20411   ac_cv_func_mmap_file=no
20412 else
20413   cat >conftest.$ac_ext <<_ACEOF
20414
20415     /* confdefs.h.  */
20416 _ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h.  */
20420
20421 #include <sys/types.h>
20422 #include <sys/mman.h>
20423 #include <fcntl.h>
20424
20425 int
20426 main ()
20427 {
20428
20429   int fd;
20430   fd = creat ("foo",0777);
20431   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20432   unlink ("foo");
20433   return (fd != (int) MAP_FAILED);
20434   ;
20435   return 0;
20436 }
20437 _ACEOF
20438 rm -f conftest$ac_exeext
20439 if { (ac_try="$ac_link"
20440 case "(($ac_try" in
20441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442   *) ac_try_echo=$ac_try;;
20443 esac
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445   (eval "$ac_link") 2>&5
20446   ac_status=$?
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20449   { (case "(($ac_try" in
20450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451   *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454   (eval "$ac_try") 2>&5
20455   ac_status=$?
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); }; }; then
20458   ac_cv_func_mmap_file=yes
20459 else
20460   echo "$as_me: program exited with status $ac_status" >&5
20461 echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.$ac_ext >&5
20463
20464 ( exit $ac_status )
20465 ac_cv_func_mmap_file=no
20466 fi
20467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20468 fi
20469
20470
20471   ac_ext=c
20472 ac_cpp='$CPP $CPPFLAGS'
20473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20476
20477
20478 fi
20479 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20480 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20481 if test "$ac_cv_func_mmap_file" = yes; then
20482
20483 cat >>confdefs.h <<\_ACEOF
20484 #define HAVE_MMAP_FILE
20485 _ACEOF
20486
20487    MMAP_FILE=yes
20488
20489 fi
20490
20491   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20492 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20493 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20494   echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496   if test "$llvm_cv_os_type" = "Interix" ; then
20497    ac_cv_need_dev_zero_for_mmap=yes
20498  else
20499    ac_cv_need_dev_zero_for_mmap=no
20500  fi
20501
20502 fi
20503 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20504 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20505 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20506
20507 cat >>confdefs.h <<\_ACEOF
20508 #define NEED_DEV_ZERO_FOR_MMAP 1
20509 _ACEOF
20510
20511 fi
20512
20513   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20514   then
20515     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20516 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20517   fi
20518   if test "$ac_cv_func_mmap_file" = "no"
20519   then
20520     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20521 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20522   fi
20523 fi
20524
20525 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20526 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20527 ac_ext=cpp
20528 ac_cpp='$CXXCPP $CPPFLAGS'
20529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20532
20533 cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539 int main() {
20540         volatile unsigned long val = 1;
20541         __sync_synchronize();
20542         __sync_val_compare_and_swap(&val, 1, 0);
20543         __sync_add_and_fetch(&val, 1);
20544         __sync_sub_and_fetch(&val, 1);
20545         return 0;
20546       }
20547
20548 _ACEOF
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (ac_try="$ac_link"
20551 case "(($ac_try" in
20552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553   *) ac_try_echo=$ac_try;;
20554 esac
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556   (eval "$ac_link") 2>conftest.er1
20557   ac_status=$?
20558   grep -v '^ *+' conftest.er1 >conftest.err
20559   rm -f conftest.er1
20560   cat conftest.err >&5
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); } &&
20563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20564   { (case "(($ac_try" in
20565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566   *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569   (eval "$ac_try") 2>&5
20570   ac_status=$?
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); }; } &&
20573          { ac_try='test -s conftest$ac_exeext'
20574   { (case "(($ac_try" in
20575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576   *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579   (eval "$ac_try") 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); }; }; then
20583   ac_ext=c
20584 ac_cpp='$CPP $CPPFLAGS'
20585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588
20589   { echo "$as_me:$LINENO: result: yes" >&5
20590 echo "${ECHO_T}yes" >&6; }
20591
20592 cat >>confdefs.h <<\_ACEOF
20593 #define LLVM_HAS_ATOMICS 1
20594 _ACEOF
20595
20596 else
20597   echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20599
20600         { echo "$as_me:$LINENO: result: no" >&5
20601 echo "${ECHO_T}no" >&6; }
20602
20603 cat >>confdefs.h <<\_ACEOF
20604 #define LLVM_HAS_ATOMICS 0
20605 _ACEOF
20606
20607   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20608 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20609 fi
20610
20611 rm -f core conftest.err conftest.$ac_objext \
20612       conftest$ac_exeext conftest.$ac_ext
20613
20614
20615 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20616   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20617 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20618 if test "${llvm_cv_linux_mixed+set}" = set; then
20619   echo $ECHO_N "(cached) $ECHO_C" >&6
20620 else
20621    ac_ext=c
20622 ac_cpp='$CPP $CPPFLAGS'
20623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20626
20627   cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h.  */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h.  */
20633 #ifndef __x86_64__
20634        error: Not x86-64 even if uname says so!
20635       #endif
20636
20637 int
20638 main ()
20639 {
20640
20641   ;
20642   return 0;
20643 }
20644 _ACEOF
20645 rm -f conftest.$ac_objext
20646 if { (ac_try="$ac_compile"
20647 case "(($ac_try" in
20648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649   *) ac_try_echo=$ac_try;;
20650 esac
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652   (eval "$ac_compile") 2>conftest.er1
20653   ac_status=$?
20654   grep -v '^ *+' conftest.er1 >conftest.err
20655   rm -f conftest.er1
20656   cat conftest.err >&5
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); } &&
20659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20660   { (case "(($ac_try" in
20661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662   *) ac_try_echo=$ac_try;;
20663 esac
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665   (eval "$ac_try") 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); }; } &&
20669          { ac_try='test -s conftest.$ac_objext'
20670   { (case "(($ac_try" in
20671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672   *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675   (eval "$ac_try") 2>&5
20676   ac_status=$?
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); }; }; then
20679   llvm_cv_linux_mixed=no
20680 else
20681   echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20683
20684         llvm_cv_linux_mixed=yes
20685 fi
20686
20687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20688   ac_ext=c
20689 ac_cpp='$CPP $CPPFLAGS'
20690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20693
20694
20695 fi
20696 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20697 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20698
20699   if test "$llvm_cv_linux_mixed" = "yes"; then
20700     llvm_cv_target_arch="x86"
20701     ARCH="x86"
20702   fi
20703 fi
20704
20705
20706 for ac_func in __dso_handle
20707 do
20708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714   cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20722 #define $ac_func innocuous_$ac_func
20723
20724 /* System header to define __stub macros and hopefully few prototypes,
20725     which can conflict with char $ac_func (); below.
20726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20727     <limits.h> exists even on freestanding compilers.  */
20728
20729 #ifdef __STDC__
20730 # include <limits.h>
20731 #else
20732 # include <assert.h>
20733 #endif
20734
20735 #undef $ac_func
20736
20737 /* Override any GCC internal prototype to avoid an error.
20738    Use char because int might match the return type of a GCC
20739    builtin and then its argument prototype would still apply.  */
20740 #ifdef __cplusplus
20741 extern "C"
20742 #endif
20743 char $ac_func ();
20744 /* The GNU C library defines this for functions which it implements
20745     to always fail with ENOSYS.  Some functions are actually named
20746     something starting with __ and the normal name is an alias.  */
20747 #if defined __stub_$ac_func || defined __stub___$ac_func
20748 choke me
20749 #endif
20750
20751 int
20752 main ()
20753 {
20754 return $ac_func ();
20755   ;
20756   return 0;
20757 }
20758 _ACEOF
20759 rm -f conftest.$ac_objext conftest$ac_exeext
20760 if { (ac_try="$ac_link"
20761 case "(($ac_try" in
20762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763   *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766   (eval "$ac_link") 2>conftest.er1
20767   ac_status=$?
20768   grep -v '^ *+' conftest.er1 >conftest.err
20769   rm -f conftest.er1
20770   cat conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } &&
20773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20774   { (case "(($ac_try" in
20775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776   *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779   (eval "$ac_try") 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); }; } &&
20783          { ac_try='test -s conftest$ac_exeext'
20784   { (case "(($ac_try" in
20785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786   *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789   (eval "$ac_try") 2>&5
20790   ac_status=$?
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); }; }; then
20793   eval "$as_ac_var=yes"
20794 else
20795   echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20797
20798         eval "$as_ac_var=no"
20799 fi
20800
20801 rm -f core conftest.err conftest.$ac_objext \
20802       conftest$ac_exeext conftest.$ac_ext
20803 fi
20804 ac_res=`eval echo '${'$as_ac_var'}'`
20805                { echo "$as_me:$LINENO: result: $ac_res" >&5
20806 echo "${ECHO_T}$ac_res" >&6; }
20807 if test `eval echo '${'$as_ac_var'}'` = yes; then
20808   cat >>confdefs.h <<_ACEOF
20809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20810 _ACEOF
20811
20812 fi
20813 done
20814
20815
20816 SHLIBEXT=$libltdl_cv_shlibext
20817
20818
20819 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20820
20821
20822 # Translate the various configuration directories and other basic
20823 # information into substitutions that will end up in Makefile.config.in
20824 # that these configured values can be used by the makefiles
20825 if test "${prefix}" = "NONE" ; then
20826   prefix="/usr/local"
20827 fi
20828 eval LLVM_PREFIX="${prefix}";
20829 eval LLVM_BINDIR="${prefix}/bin";
20830 eval LLVM_LIBDIR="${prefix}/lib";
20831 eval LLVM_DATADIR="${prefix}/share/llvm";
20832 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20833 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20834 eval LLVM_INCLUDEDIR="${prefix}/include";
20835 eval LLVM_INFODIR="${prefix}/info";
20836 eval LLVM_MANDIR="${prefix}/man";
20837 LLVM_CONFIGTIME=`date`
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849 # Place the various directores into the config.h file as #defines so that we
20850 # can know about the installation paths within LLVM.
20851
20852 cat >>confdefs.h <<_ACEOF
20853 #define LLVM_PREFIX "$LLVM_PREFIX"
20854 _ACEOF
20855
20856
20857 cat >>confdefs.h <<_ACEOF
20858 #define LLVM_BINDIR "$LLVM_BINDIR"
20859 _ACEOF
20860
20861
20862 cat >>confdefs.h <<_ACEOF
20863 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20864 _ACEOF
20865
20866
20867 cat >>confdefs.h <<_ACEOF
20868 #define LLVM_DATADIR "$LLVM_DATADIR"
20869 _ACEOF
20870
20871
20872 cat >>confdefs.h <<_ACEOF
20873 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20874 _ACEOF
20875
20876
20877 cat >>confdefs.h <<_ACEOF
20878 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20879 _ACEOF
20880
20881
20882 cat >>confdefs.h <<_ACEOF
20883 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20884 _ACEOF
20885
20886
20887 cat >>confdefs.h <<_ACEOF
20888 #define LLVM_INFODIR "$LLVM_INFODIR"
20889 _ACEOF
20890
20891
20892 cat >>confdefs.h <<_ACEOF
20893 #define LLVM_MANDIR "$LLVM_MANDIR"
20894 _ACEOF
20895
20896
20897 cat >>confdefs.h <<_ACEOF
20898 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20899 _ACEOF
20900
20901
20902 cat >>confdefs.h <<_ACEOF
20903 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20904 _ACEOF
20905
20906
20907 # Determine which bindings to build.
20908 if test "$BINDINGS_TO_BUILD" = auto ; then
20909   BINDINGS_TO_BUILD=""
20910   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20911     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20912   fi
20913 fi
20914 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20915
20916
20917 # This isn't really configurey, but it avoids having to repeat the list in
20918 # other files.
20919 ALL_BINDINGS=ocaml
20920
20921
20922 # Do any work necessary to ensure that bindings have what they need.
20923 binding_prereqs_failed=0
20924 for a_binding in $BINDINGS_TO_BUILD ; do
20925   case "$a_binding" in
20926   ocaml)
20927     if test "x$OCAMLC" = x ; then
20928       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20929 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20930       binding_prereqs_failed=1
20931     fi
20932     if test "x$OCAMLDEP" = x ; then
20933       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20934 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20935       binding_prereqs_failed=1
20936     fi
20937     if test "x$OCAMLOPT" = x ; then
20938       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20939 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20940           fi
20941     if test "x$with_ocaml_libdir" != xauto ; then
20942       OCAML_LIBDIR=$with_ocaml_libdir
20943
20944     else
20945       ocaml_stdlib="`"$OCAMLC" -where`"
20946       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20947       then
20948         # ocaml stdlib is beneath our prefix; use stdlib
20949         OCAML_LIBDIR=$ocaml_stdlib
20950
20951       else
20952         # ocaml stdlib is outside our prefix; use libdir/ocaml
20953         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20954
20955       fi
20956     fi
20957     ;;
20958   esac
20959 done
20960 if test "$binding_prereqs_failed" = 1 ; then
20961   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20962 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20963    { (exit 1); exit 1; }; }
20964 fi
20965
20966 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20967 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20968 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20969   echo $ECHO_N "(cached) $ECHO_C" >&6
20970 else
20971    ac_ext=cpp
20972 ac_cpp='$CXXCPP $CPPFLAGS'
20973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20976
20977   oldcxxflags="$CXXFLAGS"
20978   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20979   cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985
20986 int
20987 main ()
20988 {
20989
20990   ;
20991   return 0;
20992 }
20993 _ACEOF
20994 rm -f conftest.$ac_objext
20995 if { (ac_try="$ac_compile"
20996 case "(($ac_try" in
20997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20998   *) ac_try_echo=$ac_try;;
20999 esac
21000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21001   (eval "$ac_compile") 2>conftest.er1
21002   ac_status=$?
21003   grep -v '^ *+' conftest.er1 >conftest.err
21004   rm -f conftest.er1
21005   cat conftest.err >&5
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); } &&
21008          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21009   { (case "(($ac_try" in
21010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011   *) ac_try_echo=$ac_try;;
21012 esac
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014   (eval "$ac_try") 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; } &&
21018          { ac_try='test -s conftest.$ac_objext'
21019   { (case "(($ac_try" in
21020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021   *) ac_try_echo=$ac_try;;
21022 esac
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024   (eval "$ac_try") 2>&5
21025   ac_status=$?
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); }; }; then
21028   llvm_cv_cxx_visibility_inlines_hidden=yes
21029 else
21030   echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21032
21033         llvm_cv_cxx_visibility_inlines_hidden=no
21034 fi
21035
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037   CXXFLAGS="$oldcxxflags"
21038   ac_ext=c
21039 ac_cpp='$CPP $CPPFLAGS'
21040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21043
21044
21045 fi
21046 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21047 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21048 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21049   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21050
21051 else
21052   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21053
21054 fi
21055
21056
21057 if test "$llvm_cv_link_use_r" = "yes" ; then
21058   RPATH="-Wl,-R"
21059 else
21060   RPATH="-Wl,-rpath"
21061 fi
21062
21063
21064 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21065   RDYNAMIC="-Wl,-export-dynamic"
21066 else
21067   RDYNAMIC=""
21068 fi
21069
21070
21071
21072 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21073
21074
21075
21076
21077
21078
21079 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21080
21081 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21082
21083 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21084
21085 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21086
21087 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21088
21089
21090 ac_config_files="$ac_config_files Makefile.config"
21091
21092
21093 ac_config_files="$ac_config_files llvm.spec"
21094
21095
21096 ac_config_files="$ac_config_files docs/doxygen.cfg"
21097
21098 if test -f ${srcdir}/tools/clang/README.txt; then
21099   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21100
21101 fi
21102
21103 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21104
21105
21106 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21107
21108
21109 ac_config_commands="$ac_config_commands setup"
21110
21111 ac_config_commands="$ac_config_commands Makefile"
21112
21113
21114 ac_config_commands="$ac_config_commands Makefile.common"
21115
21116
21117 ac_config_commands="$ac_config_commands examples/Makefile"
21118
21119
21120 ac_config_commands="$ac_config_commands lib/Makefile"
21121
21122
21123 ac_config_commands="$ac_config_commands runtime/Makefile"
21124
21125
21126 ac_config_commands="$ac_config_commands test/Makefile"
21127
21128
21129 ac_config_commands="$ac_config_commands test/Makefile.tests"
21130
21131
21132 ac_config_commands="$ac_config_commands unittests/Makefile"
21133
21134
21135 ac_config_commands="$ac_config_commands tools/Makefile"
21136
21137
21138 ac_config_commands="$ac_config_commands utils/Makefile"
21139
21140
21141 ac_config_commands="$ac_config_commands projects/Makefile"
21142
21143
21144 ac_config_commands="$ac_config_commands bindings/Makefile"
21145
21146
21147 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21148
21149
21150
21151 cat >confcache <<\_ACEOF
21152 # This file is a shell script that caches the results of configure
21153 # tests run on this system so they can be shared between configure
21154 # scripts and configure runs, see configure's option --config-cache.
21155 # It is not useful on other systems.  If it contains results you don't
21156 # want to keep, you may remove or edit it.
21157 #
21158 # config.status only pays attention to the cache file if you give it
21159 # the --recheck option to rerun configure.
21160 #
21161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21163 # following values.
21164
21165 _ACEOF
21166
21167 # The following way of writing the cache mishandles newlines in values,
21168 # but we know of no workaround that is simple, portable, and efficient.
21169 # So, we kill variables containing newlines.
21170 # Ultrix sh set writes to stderr and can't be redirected directly,
21171 # and sets the high bit in the cache file unless we assign to the vars.
21172 (
21173   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21174     eval ac_val=\$$ac_var
21175     case $ac_val in #(
21176     *${as_nl}*)
21177       case $ac_var in #(
21178       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21179 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21180       esac
21181       case $ac_var in #(
21182       _ | IFS | as_nl) ;; #(
21183       *) $as_unset $ac_var ;;
21184       esac ;;
21185     esac
21186   done
21187
21188   (set) 2>&1 |
21189     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21190     *${as_nl}ac_space=\ *)
21191       # `set' does not quote correctly, so add quotes (double-quote
21192       # substitution turns \\\\ into \\, and sed turns \\ into \).
21193       sed -n \
21194         "s/'/'\\\\''/g;
21195           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21196       ;; #(
21197     *)
21198       # `set' quotes correctly as required by POSIX, so do not add quotes.
21199       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21200       ;;
21201     esac |
21202     sort
21203 ) |
21204   sed '
21205      /^ac_cv_env_/b end
21206      t clear
21207      :clear
21208      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21209      t end
21210      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21211      :end' >>confcache
21212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21213   if test -w "$cache_file"; then
21214     test "x$cache_file" != "x/dev/null" &&
21215       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21216 echo "$as_me: updating cache $cache_file" >&6;}
21217     cat confcache >$cache_file
21218   else
21219     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21220 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21221   fi
21222 fi
21223 rm -f confcache
21224
21225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21226 # Let make expand exec_prefix.
21227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21228
21229 DEFS=-DHAVE_CONFIG_H
21230
21231 ac_libobjs=
21232 ac_ltlibobjs=
21233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21234   # 1. Remove the extension, and $U if already installed.
21235   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21236   ac_i=`echo "$ac_i" | sed "$ac_script"`
21237   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21238   #    will be set to the directory where LIBOBJS objects are built.
21239   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21240   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21241 done
21242 LIBOBJS=$ac_libobjs
21243
21244 LTLIBOBJS=$ac_ltlibobjs
21245
21246
21247 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21248   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21249 Usually this means the macro was only invoked conditionally." >&5
21250 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21251 Usually this means the macro was only invoked conditionally." >&2;}
21252    { (exit 1); exit 1; }; }
21253 fi
21254 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21255   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21256 Usually this means the macro was only invoked conditionally." >&5
21257 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21258 Usually this means the macro was only invoked conditionally." >&2;}
21259    { (exit 1); exit 1; }; }
21260 fi
21261
21262 : ${CONFIG_STATUS=./config.status}
21263 ac_clean_files_save=$ac_clean_files
21264 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21265 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21266 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21267 cat >$CONFIG_STATUS <<_ACEOF
21268 #! $SHELL
21269 # Generated by $as_me.
21270 # Run this file to recreate the current configuration.
21271 # Compiler output produced by configure, useful for debugging
21272 # configure, is in config.log if it exists.
21273
21274 debug=false
21275 ac_cs_recheck=false
21276 ac_cs_silent=false
21277 SHELL=\${CONFIG_SHELL-$SHELL}
21278 _ACEOF
21279
21280 cat >>$CONFIG_STATUS <<\_ACEOF
21281 ## --------------------- ##
21282 ## M4sh Initialization.  ##
21283 ## --------------------- ##
21284
21285 # Be Bourne compatible
21286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21287   emulate sh
21288   NULLCMD=:
21289   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21290   # is contrary to our usage.  Disable this feature.
21291   alias -g '${1+"$@"}'='"$@"'
21292   setopt NO_GLOB_SUBST
21293 else
21294   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21295 fi
21296 BIN_SH=xpg4; export BIN_SH # for Tru64
21297 DUALCASE=1; export DUALCASE # for MKS sh
21298
21299
21300 # PATH needs CR
21301 # Avoid depending upon Character Ranges.
21302 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21303 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21304 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21305 as_cr_digits='0123456789'
21306 as_cr_alnum=$as_cr_Letters$as_cr_digits
21307
21308 # The user is always right.
21309 if test "${PATH_SEPARATOR+set}" != set; then
21310   echo "#! /bin/sh" >conf$$.sh
21311   echo  "exit 0"   >>conf$$.sh
21312   chmod +x conf$$.sh
21313   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21314     PATH_SEPARATOR=';'
21315   else
21316     PATH_SEPARATOR=:
21317   fi
21318   rm -f conf$$.sh
21319 fi
21320
21321 # Support unset when possible.
21322 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21323   as_unset=unset
21324 else
21325   as_unset=false
21326 fi
21327
21328
21329 # IFS
21330 # We need space, tab and new line, in precisely that order.  Quoting is
21331 # there to prevent editors from complaining about space-tab.
21332 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21333 # splitting by setting IFS to empty value.)
21334 as_nl='
21335 '
21336 IFS=" ""        $as_nl"
21337
21338 # Find who we are.  Look in the path if we contain no directory separator.
21339 case $0 in
21340   *[\\/]* ) as_myself=$0 ;;
21341   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21342 for as_dir in $PATH
21343 do
21344   IFS=$as_save_IFS
21345   test -z "$as_dir" && as_dir=.
21346   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21347 done
21348 IFS=$as_save_IFS
21349
21350      ;;
21351 esac
21352 # We did not find ourselves, most probably we were run as `sh COMMAND'
21353 # in which case we are not to be found in the path.
21354 if test "x$as_myself" = x; then
21355   as_myself=$0
21356 fi
21357 if test ! -f "$as_myself"; then
21358   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21359   { (exit 1); exit 1; }
21360 fi
21361
21362 # Work around bugs in pre-3.0 UWIN ksh.
21363 for as_var in ENV MAIL MAILPATH
21364 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21365 done
21366 PS1='$ '
21367 PS2='> '
21368 PS4='+ '
21369
21370 # NLS nuisances.
21371 for as_var in \
21372   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21373   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21374   LC_TELEPHONE LC_TIME
21375 do
21376   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21377     eval $as_var=C; export $as_var
21378   else
21379     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21380   fi
21381 done
21382
21383 # Required to use basename.
21384 if expr a : '\(a\)' >/dev/null 2>&1 &&
21385    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21386   as_expr=expr
21387 else
21388   as_expr=false
21389 fi
21390
21391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21392   as_basename=basename
21393 else
21394   as_basename=false
21395 fi
21396
21397
21398 # Name of the executable.
21399 as_me=`$as_basename -- "$0" ||
21400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21401          X"$0" : 'X\(//\)$' \| \
21402          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21403 echo X/"$0" |
21404     sed '/^.*\/\([^/][^/]*\)\/*$/{
21405             s//\1/
21406             q
21407           }
21408           /^X\/\(\/\/\)$/{
21409             s//\1/
21410             q
21411           }
21412           /^X\/\(\/\).*/{
21413             s//\1/
21414             q
21415           }
21416           s/.*/./; q'`
21417
21418 # CDPATH.
21419 $as_unset CDPATH
21420
21421
21422
21423   as_lineno_1=$LINENO
21424   as_lineno_2=$LINENO
21425   test "x$as_lineno_1" != "x$as_lineno_2" &&
21426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21427
21428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21429   # uniformly replaced by the line number.  The first 'sed' inserts a
21430   # line-number line after each line using $LINENO; the second 'sed'
21431   # does the real work.  The second script uses 'N' to pair each
21432   # line-number line with the line containing $LINENO, and appends
21433   # trailing '-' during substitution so that $LINENO is not a special
21434   # case at line end.
21435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21437   # E. McMahon (1931-1989) for sed's syntax.  :-)
21438   sed -n '
21439     p
21440     /[$]LINENO/=
21441   ' <$as_myself |
21442     sed '
21443       s/[$]LINENO.*/&-/
21444       t lineno
21445       b
21446       :lineno
21447       N
21448       :loop
21449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21450       t loop
21451       s/-\n.*//
21452     ' >$as_me.lineno &&
21453   chmod +x "$as_me.lineno" ||
21454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21455    { (exit 1); exit 1; }; }
21456
21457   # Don't try to exec as it changes $[0], causing all sort of problems
21458   # (the dirname of $[0] is not the place where we might find the
21459   # original and so on.  Autoconf is especially sensitive to this).
21460   . "./$as_me.lineno"
21461   # Exit status is that of the last command.
21462   exit
21463 }
21464
21465
21466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21467   as_dirname=dirname
21468 else
21469   as_dirname=false
21470 fi
21471
21472 ECHO_C= ECHO_N= ECHO_T=
21473 case `echo -n x` in
21474 -n*)
21475   case `echo 'x\c'` in
21476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21477   *)   ECHO_C='\c';;
21478   esac;;
21479 *)
21480   ECHO_N='-n';;
21481 esac
21482
21483 if expr a : '\(a\)' >/dev/null 2>&1 &&
21484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21485   as_expr=expr
21486 else
21487   as_expr=false
21488 fi
21489
21490 rm -f conf$$ conf$$.exe conf$$.file
21491 if test -d conf$$.dir; then
21492   rm -f conf$$.dir/conf$$.file
21493 else
21494   rm -f conf$$.dir
21495   mkdir conf$$.dir
21496 fi
21497 echo >conf$$.file
21498 if ln -s conf$$.file conf$$ 2>/dev/null; then
21499   as_ln_s='ln -s'
21500   # ... but there are two gotchas:
21501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21503   # In both cases, we have to default to `cp -p'.
21504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21505     as_ln_s='cp -p'
21506 elif ln conf$$.file conf$$ 2>/dev/null; then
21507   as_ln_s=ln
21508 else
21509   as_ln_s='cp -p'
21510 fi
21511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21512 rmdir conf$$.dir 2>/dev/null
21513
21514 if mkdir -p . 2>/dev/null; then
21515   as_mkdir_p=:
21516 else
21517   test -d ./-p && rmdir ./-p
21518   as_mkdir_p=false
21519 fi
21520
21521 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21522 # systems may use methods other than mode bits to determine executability.
21523 cat >conf$$.file <<_ASEOF
21524 #! /bin/sh
21525 exit 0
21526 _ASEOF
21527 chmod +x conf$$.file
21528 if test -x conf$$.file >/dev/null 2>&1; then
21529   as_executable_p="test -x"
21530 else
21531   as_executable_p=:
21532 fi
21533 rm -f conf$$.file
21534
21535 # Sed expression to map a string onto a valid CPP name.
21536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21537
21538 # Sed expression to map a string onto a valid variable name.
21539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21540
21541
21542 exec 6>&1
21543
21544 # Save the log message, to keep $[0] and so on meaningful, and to
21545 # report actual input values of CONFIG_FILES etc. instead of their
21546 # values after options handling.
21547 ac_log="
21548 This file was extended by llvm $as_me 3.1svn, which was
21549 generated by GNU Autoconf 2.60.  Invocation command line was
21550
21551   CONFIG_FILES    = $CONFIG_FILES
21552   CONFIG_HEADERS  = $CONFIG_HEADERS
21553   CONFIG_LINKS    = $CONFIG_LINKS
21554   CONFIG_COMMANDS = $CONFIG_COMMANDS
21555   $ $0 $@
21556
21557 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21558 "
21559
21560 _ACEOF
21561
21562 cat >>$CONFIG_STATUS <<_ACEOF
21563 # Files that config.status was made for.
21564 config_files="$ac_config_files"
21565 config_headers="$ac_config_headers"
21566 config_commands="$ac_config_commands"
21567
21568 _ACEOF
21569
21570 cat >>$CONFIG_STATUS <<\_ACEOF
21571 ac_cs_usage="\
21572 \`$as_me' instantiates files from templates according to the
21573 current configuration.
21574
21575 Usage: $0 [OPTIONS] [FILE]...
21576
21577   -h, --help       print this help, then exit
21578   -V, --version    print version number, then exit
21579   -q, --quiet      do not print progress messages
21580   -d, --debug      don't remove temporary files
21581       --recheck    update $as_me by reconfiguring in the same conditions
21582   --file=FILE[:TEMPLATE]
21583                    instantiate the configuration file FILE
21584   --header=FILE[:TEMPLATE]
21585                    instantiate the configuration header FILE
21586
21587 Configuration files:
21588 $config_files
21589
21590 Configuration headers:
21591 $config_headers
21592
21593 Configuration commands:
21594 $config_commands
21595
21596 Report bugs to <bug-autoconf@gnu.org>."
21597
21598 _ACEOF
21599 cat >>$CONFIG_STATUS <<_ACEOF
21600 ac_cs_version="\\
21601 llvm config.status 3.1svn
21602 configured by $0, generated by GNU Autoconf 2.60,
21603   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21604
21605 Copyright (C) 2006 Free Software Foundation, Inc.
21606 This config.status script is free software; the Free Software Foundation
21607 gives unlimited permission to copy, distribute and modify it."
21608
21609 ac_pwd='$ac_pwd'
21610 srcdir='$srcdir'
21611 INSTALL='$INSTALL'
21612 _ACEOF
21613
21614 cat >>$CONFIG_STATUS <<\_ACEOF
21615 # If no file are specified by the user, then we need to provide default
21616 # value.  By we need to know if files were specified by the user.
21617 ac_need_defaults=:
21618 while test $# != 0
21619 do
21620   case $1 in
21621   --*=*)
21622     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21623     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21624     ac_shift=:
21625     ;;
21626   *)
21627     ac_option=$1
21628     ac_optarg=$2
21629     ac_shift=shift
21630     ;;
21631   esac
21632
21633   case $ac_option in
21634   # Handling of the options.
21635   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21636     ac_cs_recheck=: ;;
21637   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21638     echo "$ac_cs_version"; exit ;;
21639   --debug | --debu | --deb | --de | --d | -d )
21640     debug=: ;;
21641   --file | --fil | --fi | --f )
21642     $ac_shift
21643     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21644     ac_need_defaults=false;;
21645   --header | --heade | --head | --hea )
21646     $ac_shift
21647     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21648     ac_need_defaults=false;;
21649   --he | --h)
21650     # Conflict between --help and --header
21651     { echo "$as_me: error: ambiguous option: $1
21652 Try \`$0 --help' for more information." >&2
21653    { (exit 1); exit 1; }; };;
21654   --help | --hel | -h )
21655     echo "$ac_cs_usage"; exit ;;
21656   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21657   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21658     ac_cs_silent=: ;;
21659
21660   # This is an error.
21661   -*) { echo "$as_me: error: unrecognized option: $1
21662 Try \`$0 --help' for more information." >&2
21663    { (exit 1); exit 1; }; } ;;
21664
21665   *) ac_config_targets="$ac_config_targets $1"
21666      ac_need_defaults=false ;;
21667
21668   esac
21669   shift
21670 done
21671
21672 ac_configure_extra_args=
21673
21674 if $ac_cs_silent; then
21675   exec 6>/dev/null
21676   ac_configure_extra_args="$ac_configure_extra_args --silent"
21677 fi
21678
21679 _ACEOF
21680 cat >>$CONFIG_STATUS <<_ACEOF
21681 if \$ac_cs_recheck; then
21682   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21683   CONFIG_SHELL=$SHELL
21684   export CONFIG_SHELL
21685   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21686 fi
21687
21688 _ACEOF
21689 cat >>$CONFIG_STATUS <<\_ACEOF
21690 exec 5>>config.log
21691 {
21692   echo
21693   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21694 ## Running $as_me. ##
21695 _ASBOX
21696   echo "$ac_log"
21697 } >&5
21698
21699 _ACEOF
21700 cat >>$CONFIG_STATUS <<_ACEOF
21701 #
21702 # INIT-COMMANDS
21703 #
21704 llvm_src="${srcdir}"
21705
21706 _ACEOF
21707
21708 cat >>$CONFIG_STATUS <<\_ACEOF
21709
21710 # Handling of arguments.
21711 for ac_config_target in $ac_config_targets
21712 do
21713   case $ac_config_target in
21714     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21715     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21716     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21717     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21718     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21719     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21720     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21721     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21722     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21723     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21724     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21725     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21726     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21727     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21728     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21729     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21730     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21731     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21732     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21733     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21734     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21735     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21736     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21737     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21738     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21739     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21740     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21741
21742   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21743 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21744    { (exit 1); exit 1; }; };;
21745   esac
21746 done
21747
21748
21749 # If the user did not use the arguments to specify the items to instantiate,
21750 # then the envvar interface is used.  Set only those that are not.
21751 # We use the long form for the default assignment because of an extremely
21752 # bizarre bug on SunOS 4.1.3.
21753 if $ac_need_defaults; then
21754   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21755   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21756   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21757 fi
21758
21759 # Have a temporary directory for convenience.  Make it in the build tree
21760 # simply because there is no reason against having it here, and in addition,
21761 # creating and moving files from /tmp can sometimes cause problems.
21762 # Hook for its removal unless debugging.
21763 # Note that there is a small window in which the directory will not be cleaned:
21764 # after its creation but before its name has been assigned to `$tmp'.
21765 $debug ||
21766 {
21767   tmp=
21768   trap 'exit_status=$?
21769   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21770 ' 0
21771   trap '{ (exit 1); exit 1; }' 1 2 13 15
21772 }
21773 # Create a (secure) tmp directory for tmp files.
21774
21775 {
21776   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21777   test -n "$tmp" && test -d "$tmp"
21778 }  ||
21779 {
21780   tmp=./conf$$-$RANDOM
21781   (umask 077 && mkdir "$tmp")
21782 } ||
21783 {
21784    echo "$me: cannot create a temporary directory in ." >&2
21785    { (exit 1); exit 1; }
21786 }
21787
21788 #
21789 # Set up the sed scripts for CONFIG_FILES section.
21790 #
21791
21792 # No need to generate the scripts if there are no CONFIG_FILES.
21793 # This happens for instance when ./config.status config.h
21794 if test -n "$CONFIG_FILES"; then
21795
21796 _ACEOF
21797
21798
21799
21800 ac_delim='%!_!# '
21801 for ac_last_try in false false false false false :; do
21802   cat >conf$$subs.sed <<_ACEOF
21803 SHELL!$SHELL$ac_delim
21804 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21805 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21806 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21807 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21808 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21809 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21810 exec_prefix!$exec_prefix$ac_delim
21811 prefix!$prefix$ac_delim
21812 program_transform_name!$program_transform_name$ac_delim
21813 bindir!$bindir$ac_delim
21814 sbindir!$sbindir$ac_delim
21815 libexecdir!$libexecdir$ac_delim
21816 datarootdir!$datarootdir$ac_delim
21817 datadir!$datadir$ac_delim
21818 sysconfdir!$sysconfdir$ac_delim
21819 sharedstatedir!$sharedstatedir$ac_delim
21820 localstatedir!$localstatedir$ac_delim
21821 includedir!$includedir$ac_delim
21822 oldincludedir!$oldincludedir$ac_delim
21823 docdir!$docdir$ac_delim
21824 infodir!$infodir$ac_delim
21825 htmldir!$htmldir$ac_delim
21826 dvidir!$dvidir$ac_delim
21827 pdfdir!$pdfdir$ac_delim
21828 psdir!$psdir$ac_delim
21829 libdir!$libdir$ac_delim
21830 localedir!$localedir$ac_delim
21831 mandir!$mandir$ac_delim
21832 DEFS!$DEFS$ac_delim
21833 ECHO_C!$ECHO_C$ac_delim
21834 ECHO_N!$ECHO_N$ac_delim
21835 ECHO_T!$ECHO_T$ac_delim
21836 LIBS!$LIBS$ac_delim
21837 build_alias!$build_alias$ac_delim
21838 host_alias!$host_alias$ac_delim
21839 target_alias!$target_alias$ac_delim
21840 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21841 CC!$CC$ac_delim
21842 CFLAGS!$CFLAGS$ac_delim
21843 LDFLAGS!$LDFLAGS$ac_delim
21844 CPPFLAGS!$CPPFLAGS$ac_delim
21845 ac_ct_CC!$ac_ct_CC$ac_delim
21846 EXEEXT!$EXEEXT$ac_delim
21847 OBJEXT!$OBJEXT$ac_delim
21848 CXX!$CXX$ac_delim
21849 CXXFLAGS!$CXXFLAGS$ac_delim
21850 ac_ct_CXX!$ac_ct_CXX$ac_delim
21851 CPP!$CPP$ac_delim
21852 subdirs!$subdirs$ac_delim
21853 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21854 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21855 build!$build$ac_delim
21856 build_cpu!$build_cpu$ac_delim
21857 build_vendor!$build_vendor$ac_delim
21858 build_os!$build_os$ac_delim
21859 host!$host$ac_delim
21860 host_cpu!$host_cpu$ac_delim
21861 host_vendor!$host_vendor$ac_delim
21862 host_os!$host_os$ac_delim
21863 target!$target$ac_delim
21864 target_cpu!$target_cpu$ac_delim
21865 target_vendor!$target_vendor$ac_delim
21866 target_os!$target_os$ac_delim
21867 OS!$OS$ac_delim
21868 HOST_OS!$HOST_OS$ac_delim
21869 TARGET_OS!$TARGET_OS$ac_delim
21870 LINKALL!$LINKALL$ac_delim
21871 NOLINKALL!$NOLINKALL$ac_delim
21872 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21873 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21874 ARCH!$ARCH$ac_delim
21875 ENDIAN!$ENDIAN$ac_delim
21876 GREP!$GREP$ac_delim
21877 EGREP!$EGREP$ac_delim
21878 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21879 BUILD_CC!$BUILD_CC$ac_delim
21880 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21881 BUILD_CXX!$BUILD_CXX$ac_delim
21882 CVSBUILD!$CVSBUILD$ac_delim
21883 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21884 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21885 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21886 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21887 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21888 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21889 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21890 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21891 JIT!$JIT$ac_delim
21892 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21893 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21894 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21895 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21896 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21897 ENABLE_PIC!$ENABLE_PIC$ac_delim
21898 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21899 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21900 _ACEOF
21901
21902   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21903     break
21904   elif $ac_last_try; then
21905     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21906 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21907    { (exit 1); exit 1; }; }
21908   else
21909     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21910   fi
21911 done
21912
21913 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21914 if test -n "$ac_eof"; then
21915   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21916   ac_eof=`expr $ac_eof + 1`
21917 fi
21918
21919 cat >>$CONFIG_STATUS <<_ACEOF
21920 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21922 _ACEOF
21923 sed '
21924 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21925 s/^/s,@/; s/!/@,|#_!!_#|/
21926 :n
21927 t n
21928 s/'"$ac_delim"'$/,g/; t
21929 s/$/\\/; p
21930 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21931 ' >>$CONFIG_STATUS <conf$$subs.sed
21932 rm -f conf$$subs.sed
21933 cat >>$CONFIG_STATUS <<_ACEOF
21934 CEOF$ac_eof
21935 _ACEOF
21936
21937
21938 ac_delim='%!_!# '
21939 for ac_last_try in false false false false false :; do
21940   cat >conf$$subs.sed <<_ACEOF
21941 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21942 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21943 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21944 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21945 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21946 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21947 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21948 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21949 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21950 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21951 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21952 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21953 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21954 NM!$NM$ac_delim
21955 ifGNUmake!$ifGNUmake$ac_delim
21956 LN_S!$LN_S$ac_delim
21957 CMP!$CMP$ac_delim
21958 CP!$CP$ac_delim
21959 DATE!$DATE$ac_delim
21960 FIND!$FIND$ac_delim
21961 MKDIR!$MKDIR$ac_delim
21962 MV!$MV$ac_delim
21963 RANLIB!$RANLIB$ac_delim
21964 AR!$AR$ac_delim
21965 RM!$RM$ac_delim
21966 SED!$SED$ac_delim
21967 TAR!$TAR$ac_delim
21968 BINPWD!$BINPWD$ac_delim
21969 GRAPHVIZ!$GRAPHVIZ$ac_delim
21970 DOT!$DOT$ac_delim
21971 FDP!$FDP$ac_delim
21972 NEATO!$NEATO$ac_delim
21973 TWOPI!$TWOPI$ac_delim
21974 CIRCO!$CIRCO$ac_delim
21975 GV!$GV$ac_delim
21976 DOTTY!$DOTTY$ac_delim
21977 XDOT_PY!$XDOT_PY$ac_delim
21978 PERL!$PERL$ac_delim
21979 HAVE_PERL!$HAVE_PERL$ac_delim
21980 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21981 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21982 INSTALL_DATA!$INSTALL_DATA$ac_delim
21983 BZIP2!$BZIP2$ac_delim
21984 CAT!$CAT$ac_delim
21985 DOXYGEN!$DOXYGEN$ac_delim
21986 GROFF!$GROFF$ac_delim
21987 GZIPBIN!$GZIPBIN$ac_delim
21988 POD2HTML!$POD2HTML$ac_delim
21989 POD2MAN!$POD2MAN$ac_delim
21990 PDFROFF!$PDFROFF$ac_delim
21991 RUNTEST!$RUNTEST$ac_delim
21992 TCLSH!$TCLSH$ac_delim
21993 ZIP!$ZIP$ac_delim
21994 OCAMLC!$OCAMLC$ac_delim
21995 OCAMLOPT!$OCAMLOPT$ac_delim
21996 OCAMLDEP!$OCAMLDEP$ac_delim
21997 OCAMLDOC!$OCAMLDOC$ac_delim
21998 GAS!$GAS$ac_delim
21999 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22000 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22001 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22002 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22003 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22004 LIBADD_DL!$LIBADD_DL$ac_delim
22005 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22006 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22007 USE_UDIS86!$USE_UDIS86$ac_delim
22008 USE_OPROFILE!$USE_OPROFILE$ac_delim
22009 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22010 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22011 MMAP_FILE!$MMAP_FILE$ac_delim
22012 SHLIBEXT!$SHLIBEXT$ac_delim
22013 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22014 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22015 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22016 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22017 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22018 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22019 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22020 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22021 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22022 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22023 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22024 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22025 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22026 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22027 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22028 RPATH!$RPATH$ac_delim
22029 RDYNAMIC!$RDYNAMIC$ac_delim
22030 LIBOBJS!$LIBOBJS$ac_delim
22031 LTLIBOBJS!$LTLIBOBJS$ac_delim
22032 _ACEOF
22033
22034   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22035     break
22036   elif $ac_last_try; then
22037     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22038 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22039    { (exit 1); exit 1; }; }
22040   else
22041     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22042   fi
22043 done
22044
22045 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22046 if test -n "$ac_eof"; then
22047   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22048   ac_eof=`expr $ac_eof + 1`
22049 fi
22050
22051 cat >>$CONFIG_STATUS <<_ACEOF
22052 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22053 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22054 _ACEOF
22055 sed '
22056 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22057 s/^/s,@/; s/!/@,|#_!!_#|/
22058 :n
22059 t n
22060 s/'"$ac_delim"'$/,g/; t
22061 s/$/\\/; p
22062 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22063 ' >>$CONFIG_STATUS <conf$$subs.sed
22064 rm -f conf$$subs.sed
22065 cat >>$CONFIG_STATUS <<_ACEOF
22066 :end
22067 s/|#_!!_#|//g
22068 CEOF$ac_eof
22069 _ACEOF
22070
22071
22072 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22073 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22074 # trailing colons and then remove the whole line if VPATH becomes empty
22075 # (actually we leave an empty line to preserve line numbers).
22076 if test "x$srcdir" = x.; then
22077   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22078 s/:*\$(srcdir):*/:/
22079 s/:*\${srcdir}:*/:/
22080 s/:*@srcdir@:*/:/
22081 s/^\([^=]*=[     ]*\):*/\1/
22082 s/:*$//
22083 s/^[^=]*=[       ]*$//
22084 }'
22085 fi
22086
22087 cat >>$CONFIG_STATUS <<\_ACEOF
22088 fi # test -n "$CONFIG_FILES"
22089
22090
22091 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22092 do
22093   case $ac_tag in
22094   :[FHLC]) ac_mode=$ac_tag; continue;;
22095   esac
22096   case $ac_mode$ac_tag in
22097   :[FHL]*:*);;
22098   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22099 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22100    { (exit 1); exit 1; }; };;
22101   :[FH]-) ac_tag=-:-;;
22102   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22103   esac
22104   ac_save_IFS=$IFS
22105   IFS=:
22106   set x $ac_tag
22107   IFS=$ac_save_IFS
22108   shift
22109   ac_file=$1
22110   shift
22111
22112   case $ac_mode in
22113   :L) ac_source=$1;;
22114   :[FH])
22115     ac_file_inputs=
22116     for ac_f
22117     do
22118       case $ac_f in
22119       -) ac_f="$tmp/stdin";;
22120       *) # Look for the file first in the build tree, then in the source tree
22121          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22122          # because $ac_f cannot contain `:'.
22123          test -f "$ac_f" ||
22124            case $ac_f in
22125            [\\/$]*) false;;
22126            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22127            esac ||
22128            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22129 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22130    { (exit 1); exit 1; }; };;
22131       esac
22132       ac_file_inputs="$ac_file_inputs $ac_f"
22133     done
22134
22135     # Let's still pretend it is `configure' which instantiates (i.e., don't
22136     # use $as_me), people would be surprised to read:
22137     #    /* config.h.  Generated by config.status.  */
22138     configure_input="Generated from "`IFS=:
22139           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22140     if test x"$ac_file" != x-; then
22141       configure_input="$ac_file.  $configure_input"
22142       { echo "$as_me:$LINENO: creating $ac_file" >&5
22143 echo "$as_me: creating $ac_file" >&6;}
22144     fi
22145
22146     case $ac_tag in
22147     *:-:* | *:-) cat >"$tmp/stdin";;
22148     esac
22149     ;;
22150   esac
22151
22152   ac_dir=`$as_dirname -- "$ac_file" ||
22153 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22154          X"$ac_file" : 'X\(//\)[^/]' \| \
22155          X"$ac_file" : 'X\(//\)$' \| \
22156          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22157 echo X"$ac_file" |
22158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22159             s//\1/
22160             q
22161           }
22162           /^X\(\/\/\)[^/].*/{
22163             s//\1/
22164             q
22165           }
22166           /^X\(\/\/\)$/{
22167             s//\1/
22168             q
22169           }
22170           /^X\(\/\).*/{
22171             s//\1/
22172             q
22173           }
22174           s/.*/./; q'`
22175   { as_dir="$ac_dir"
22176   case $as_dir in #(
22177   -*) as_dir=./$as_dir;;
22178   esac
22179   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22180     as_dirs=
22181     while :; do
22182       case $as_dir in #(
22183       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22184       *) as_qdir=$as_dir;;
22185       esac
22186       as_dirs="'$as_qdir' $as_dirs"
22187       as_dir=`$as_dirname -- "$as_dir" ||
22188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22189          X"$as_dir" : 'X\(//\)[^/]' \| \
22190          X"$as_dir" : 'X\(//\)$' \| \
22191          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22192 echo X"$as_dir" |
22193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22194             s//\1/
22195             q
22196           }
22197           /^X\(\/\/\)[^/].*/{
22198             s//\1/
22199             q
22200           }
22201           /^X\(\/\/\)$/{
22202             s//\1/
22203             q
22204           }
22205           /^X\(\/\).*/{
22206             s//\1/
22207             q
22208           }
22209           s/.*/./; q'`
22210       test -d "$as_dir" && break
22211     done
22212     test -z "$as_dirs" || eval "mkdir $as_dirs"
22213   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22214 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22215    { (exit 1); exit 1; }; }; }
22216   ac_builddir=.
22217
22218 case "$ac_dir" in
22219 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22220 *)
22221   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22222   # A ".." for each directory in $ac_dir_suffix.
22223   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22224   case $ac_top_builddir_sub in
22225   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22226   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22227   esac ;;
22228 esac
22229 ac_abs_top_builddir=$ac_pwd
22230 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22231 # for backward compatibility:
22232 ac_top_builddir=$ac_top_build_prefix
22233
22234 case $srcdir in
22235   .)  # We are building in place.
22236     ac_srcdir=.
22237     ac_top_srcdir=$ac_top_builddir_sub
22238     ac_abs_top_srcdir=$ac_pwd ;;
22239   [\\/]* | ?:[\\/]* )  # Absolute name.
22240     ac_srcdir=$srcdir$ac_dir_suffix;
22241     ac_top_srcdir=$srcdir
22242     ac_abs_top_srcdir=$srcdir ;;
22243   *) # Relative name.
22244     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22245     ac_top_srcdir=$ac_top_build_prefix$srcdir
22246     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22247 esac
22248 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22249
22250
22251   case $ac_mode in
22252   :F)
22253   #
22254   # CONFIG_FILE
22255   #
22256
22257   case $INSTALL in
22258   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22259   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22260   esac
22261 _ACEOF
22262
22263 cat >>$CONFIG_STATUS <<\_ACEOF
22264 # If the template does not know about datarootdir, expand it.
22265 # FIXME: This hack should be removed a few years after 2.60.
22266 ac_datarootdir_hack=; ac_datarootdir_seen=
22267
22268 case `sed -n '/datarootdir/ {
22269   p
22270   q
22271 }
22272 /@datadir@/p
22273 /@docdir@/p
22274 /@infodir@/p
22275 /@localedir@/p
22276 /@mandir@/p
22277 ' $ac_file_inputs` in
22278 *datarootdir*) ac_datarootdir_seen=yes;;
22279 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22280   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22281 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22282 _ACEOF
22283 cat >>$CONFIG_STATUS <<_ACEOF
22284   ac_datarootdir_hack='
22285   s&@datadir@&$datadir&g
22286   s&@docdir@&$docdir&g
22287   s&@infodir@&$infodir&g
22288   s&@localedir@&$localedir&g
22289   s&@mandir@&$mandir&g
22290     s&\\\${datarootdir}&$datarootdir&g' ;;
22291 esac
22292 _ACEOF
22293
22294 # Neutralize VPATH when `$srcdir' = `.'.
22295 # Shell code in configure.ac might set extrasub.
22296 # FIXME: do we really want to maintain this feature?
22297 cat >>$CONFIG_STATUS <<_ACEOF
22298   sed "$ac_vpsub
22299 $extrasub
22300 _ACEOF
22301 cat >>$CONFIG_STATUS <<\_ACEOF
22302 :t
22303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22304 s&@configure_input@&$configure_input&;t t
22305 s&@top_builddir@&$ac_top_builddir_sub&;t t
22306 s&@srcdir@&$ac_srcdir&;t t
22307 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22308 s&@top_srcdir@&$ac_top_srcdir&;t t
22309 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22310 s&@builddir@&$ac_builddir&;t t
22311 s&@abs_builddir@&$ac_abs_builddir&;t t
22312 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22313 s&@INSTALL@&$ac_INSTALL&;t t
22314 $ac_datarootdir_hack
22315 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22316
22317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22318   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22319   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22320   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22321 which seems to be undefined.  Please make sure it is defined." >&5
22322 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323 which seems to be undefined.  Please make sure it is defined." >&2;}
22324
22325   rm -f "$tmp/stdin"
22326   case $ac_file in
22327   -) cat "$tmp/out"; rm -f "$tmp/out";;
22328   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22329   esac
22330  ;;
22331   :H)
22332   #
22333   # CONFIG_HEADER
22334   #
22335 _ACEOF
22336
22337 # Transform confdefs.h into a sed script `conftest.defines', that
22338 # substitutes the proper values into config.h.in to produce config.h.
22339 rm -f conftest.defines conftest.tail
22340 # First, append a space to every undef/define line, to ease matching.
22341 echo 's/$/ /' >conftest.defines
22342 # Then, protect against being on the right side of a sed subst, or in
22343 # an unquoted here document, in config.status.  If some macros were
22344 # called several times there might be several #defines for the same
22345 # symbol, which is useless.  But do not sort them, since the last
22346 # AC_DEFINE must be honored.
22347 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22348 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22349 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22350 # PARAMS is the parameter list in the macro definition--in most cases, it's
22351 # just an empty string.
22352 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22353 ac_dB='\\)[      (].*,\\1define\\2'
22354 ac_dC=' '
22355 ac_dD=' ,'
22356
22357 uniq confdefs.h |
22358   sed -n '
22359         t rset
22360         :rset
22361         s/^[     ]*#[    ]*define[       ][      ]*//
22362         t ok
22363         d
22364         :ok
22365         s/[\\&,]/\\&/g
22366         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22367         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22368   ' >>conftest.defines
22369
22370 # Remove the space that was appended to ease matching.
22371 # Then replace #undef with comments.  This is necessary, for
22372 # example, in the case of _POSIX_SOURCE, which is predefined and required
22373 # on some systems where configure will not decide to define it.
22374 # (The regexp can be short, since the line contains either #define or #undef.)
22375 echo 's/ $//
22376 s,^[     #]*u.*,/* & */,' >>conftest.defines
22377
22378 # Break up conftest.defines:
22379 ac_max_sed_lines=50
22380
22381 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22382 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22383 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22384 # et cetera.
22385 ac_in='$ac_file_inputs'
22386 ac_out='"$tmp/out1"'
22387 ac_nxt='"$tmp/out2"'
22388
22389 while :
22390 do
22391   # Write a here document:
22392     cat >>$CONFIG_STATUS <<_ACEOF
22393     # First, check the format of the line:
22394     cat >"\$tmp/defines.sed" <<\\CEOF
22395 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22396 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22397 b
22398 :def
22399 _ACEOF
22400   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22401   echo 'CEOF
22402     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22403   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22404   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22405   grep . conftest.tail >/dev/null || break
22406   rm -f conftest.defines
22407   mv conftest.tail conftest.defines
22408 done
22409 rm -f conftest.defines conftest.tail
22410
22411 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22412 cat >>$CONFIG_STATUS <<\_ACEOF
22413   if test x"$ac_file" != x-; then
22414     echo "/* $configure_input  */" >"$tmp/config.h"
22415     cat "$ac_result" >>"$tmp/config.h"
22416     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22417       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22418 echo "$as_me: $ac_file is unchanged" >&6;}
22419     else
22420       rm -f $ac_file
22421       mv "$tmp/config.h" $ac_file
22422     fi
22423   else
22424     echo "/* $configure_input  */"
22425     cat "$ac_result"
22426   fi
22427   rm -f "$tmp/out12"
22428  ;;
22429
22430   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22431 echo "$as_me: executing $ac_file commands" >&6;}
22432  ;;
22433   esac
22434
22435
22436   case $ac_file$ac_mode in
22437     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22438    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22439     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22440    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22441     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22442    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22443     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22444    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22445     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22446    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22447     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22448    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22449     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22450    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22451     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22452    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22453     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22454    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22455     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22456    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22457     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22458    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22459     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22460    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22461     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22462    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22463
22464   esac
22465 done # for ac_tag
22466
22467
22468 { (exit 0); exit 0; }
22469 _ACEOF
22470 chmod +x $CONFIG_STATUS
22471 ac_clean_files=$ac_clean_files_save
22472
22473
22474 # configure is writing to config.log, and then calls config.status.
22475 # config.status does its own redirection, appending to config.log.
22476 # Unfortunately, on DOS this fails, as config.log is still kept open
22477 # by configure, so config.status won't be able to write to it; its
22478 # output is simply discarded.  So we exec the FD to /dev/null,
22479 # effectively closing config.log, so it can be properly (re)opened and
22480 # appended to by config.status.  When coming back to configure, we
22481 # need to make the FD available again.
22482 if test "$no_create" != yes; then
22483   ac_cs_success=:
22484   ac_config_status_args=
22485   test "$silent" = yes &&
22486     ac_config_status_args="$ac_config_status_args --quiet"
22487   exec 5>/dev/null
22488   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22489   exec 5>>config.log
22490   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22491   # would make configure fail if this is the last instruction.
22492   $ac_cs_success || { (exit 1); exit 1; }
22493 fi
22494
22495 #
22496 # CONFIG_SUBDIRS section.
22497 #
22498 if test "$no_recursion" != yes; then
22499
22500   # Remove --cache-file and --srcdir arguments so they do not pile up.
22501   ac_sub_configure_args=
22502   ac_prev=
22503   eval "set x $ac_configure_args"
22504   shift
22505   for ac_arg
22506   do
22507     if test -n "$ac_prev"; then
22508       ac_prev=
22509       continue
22510     fi
22511     case $ac_arg in
22512     -cache-file | --cache-file | --cache-fil | --cache-fi \
22513     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22514       ac_prev=cache_file ;;
22515     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22516     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22517     | --c=*)
22518       ;;
22519     --config-cache | -C)
22520       ;;
22521     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22522       ac_prev=srcdir ;;
22523     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22524       ;;
22525     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22526       ac_prev=prefix ;;
22527     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22528       ;;
22529     *)
22530       case $ac_arg in
22531       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22532       esac
22533       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22534     esac
22535   done
22536
22537   # Always prepend --prefix to ensure using the same prefix
22538   # in subdir configurations.
22539   ac_arg="--prefix=$prefix"
22540   case $ac_arg in
22541   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22542   esac
22543   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22544
22545   ac_popdir=`pwd`
22546   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22547
22548     # Do not complain, so a configure script can configure whichever
22549     # parts of a large source tree are present.
22550     test -d "$srcdir/$ac_dir" || continue
22551
22552     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22553     echo "$as_me:$LINENO: $ac_msg" >&5
22554     echo "$ac_msg" >&6
22555     { as_dir="$ac_dir"
22556   case $as_dir in #(
22557   -*) as_dir=./$as_dir;;
22558   esac
22559   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22560     as_dirs=
22561     while :; do
22562       case $as_dir in #(
22563       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22564       *) as_qdir=$as_dir;;
22565       esac
22566       as_dirs="'$as_qdir' $as_dirs"
22567       as_dir=`$as_dirname -- "$as_dir" ||
22568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22569          X"$as_dir" : 'X\(//\)[^/]' \| \
22570          X"$as_dir" : 'X\(//\)$' \| \
22571          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22572 echo X"$as_dir" |
22573     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22574             s//\1/
22575             q
22576           }
22577           /^X\(\/\/\)[^/].*/{
22578             s//\1/
22579             q
22580           }
22581           /^X\(\/\/\)$/{
22582             s//\1/
22583             q
22584           }
22585           /^X\(\/\).*/{
22586             s//\1/
22587             q
22588           }
22589           s/.*/./; q'`
22590       test -d "$as_dir" && break
22591     done
22592     test -z "$as_dirs" || eval "mkdir $as_dirs"
22593   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22594 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22595    { (exit 1); exit 1; }; }; }
22596     ac_builddir=.
22597
22598 case "$ac_dir" in
22599 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22600 *)
22601   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22602   # A ".." for each directory in $ac_dir_suffix.
22603   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22604   case $ac_top_builddir_sub in
22605   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22606   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22607   esac ;;
22608 esac
22609 ac_abs_top_builddir=$ac_pwd
22610 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22611 # for backward compatibility:
22612 ac_top_builddir=$ac_top_build_prefix
22613
22614 case $srcdir in
22615   .)  # We are building in place.
22616     ac_srcdir=.
22617     ac_top_srcdir=$ac_top_builddir_sub
22618     ac_abs_top_srcdir=$ac_pwd ;;
22619   [\\/]* | ?:[\\/]* )  # Absolute name.
22620     ac_srcdir=$srcdir$ac_dir_suffix;
22621     ac_top_srcdir=$srcdir
22622     ac_abs_top_srcdir=$srcdir ;;
22623   *) # Relative name.
22624     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22625     ac_top_srcdir=$ac_top_build_prefix$srcdir
22626     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22627 esac
22628 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22629
22630
22631     cd "$ac_dir"
22632
22633     # Check for guested configure; otherwise get Cygnus style configure.
22634     if test -f "$ac_srcdir/configure.gnu"; then
22635       ac_sub_configure=$ac_srcdir/configure.gnu
22636     elif test -f "$ac_srcdir/configure"; then
22637       ac_sub_configure=$ac_srcdir/configure
22638     elif test -f "$ac_srcdir/configure.in"; then
22639       # This should be Cygnus configure.
22640       ac_sub_configure=$ac_aux_dir/configure
22641     else
22642       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22643 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22644       ac_sub_configure=
22645     fi
22646
22647     # The recursion is here.
22648     if test -n "$ac_sub_configure"; then
22649       # Make the cache file name correct relative to the subdirectory.
22650       case $cache_file in
22651       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22652       *) # Relative name.
22653         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22654       esac
22655
22656       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22657 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22658       # The eval makes quoting arguments work.
22659       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22660            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22661         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22662 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22663    { (exit 1); exit 1; }; }
22664     fi
22665
22666     cd "$ac_popdir"
22667   done
22668 fi
22669