Search for and use the strip program and pass it to install for it
[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_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 CLANG_SRC_ROOT
712 BINUTILS_INCDIR
713 NM
714 ifGNUmake
715 LN_S
716 CMP
717 CP
718 DATE
719 FIND
720 MKDIR
721 MV
722 RANLIB
723 AR
724 STRIP
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
738 PERL
739 HAVE_PERL
740 INSTALL_PROGRAM
741 INSTALL_SCRIPT
742 INSTALL_DATA
743 BZIP2
744 CAT
745 DOXYGEN
746 GROFF
747 GZIPBIN
748 POD2HTML
749 POD2MAN
750 PDFROFF
751 RUNTEST
752 TCLSH
753 ZIP
754 OCAMLC
755 OCAMLOPT
756 OCAMLDEP
757 OCAMLDOC
758 GAS
759 HAVE_LINK_VERSION_SCRIPT
760 INSTALL_LTDL_TRUE
761 INSTALL_LTDL_FALSE
762 CONVENIENCE_LTDL_TRUE
763 CONVENIENCE_LTDL_FALSE
764 LIBADD_DL
765 NO_VARIADIC_MACROS
766 NO_MISSING_FIELD_INITIALIZERS
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HUGE_VAL_SANITY
771 MMAP_FILE
772 SHLIBEXT
773 SHLIBPATH_VAR
774 LLVM_PREFIX
775 LLVM_BINDIR
776 LLVM_LIBDIR
777 LLVM_DATADIR
778 LLVM_DOCSDIR
779 LLVM_ETCDIR
780 LLVM_INCLUDEDIR
781 LLVM_INFODIR
782 LLVM_MANDIR
783 LLVM_CONFIGTIME
784 BINDINGS_TO_BUILD
785 ALL_BINDINGS
786 OCAML_LIBDIR
787 ENABLE_VISIBILITY_INLINES_HIDDEN
788 RPATH
789 RDYNAMIC
790 LIBOBJS
791 LTLIBOBJS'
792 ac_subst_files=''
793       ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 CPPFLAGS
800 CXX
801 CXXFLAGS
802 CCC
803 CPP'
804 ac_subdirs_all='projects/llvm-gcc
805 projects/test-suite
806 projects/llvm-test
807 projects/poolalloc
808 projects/llvm-poolalloc
809 projects/sample
810 projects/privbracket
811 projects/llvm-stacker
812 projects/llvm-reopt
813 projects/llvm-java
814 projects/llvm-tv
815 projects/safecode
816 projects/llvm-kernel
817 tools/polly'
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *)    ac_optarg=yes ;;
879   esac
880
881   # Accept the important Cygnus configure options, so we can diagnose typos.
882
883   case $ac_dashdash$ac_option in
884   --)
885     ac_dashdash=yes ;;
886
887   -bindir | --bindir | --bindi | --bind | --bin | --bi)
888     ac_prev=bindir ;;
889   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890     bindir=$ac_optarg ;;
891
892   -build | --build | --buil | --bui | --bu)
893     ac_prev=build_alias ;;
894   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895     build_alias=$ac_optarg ;;
896
897   -cache-file | --cache-file | --cache-fil | --cache-fi \
898   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899     ac_prev=cache_file ;;
900   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902     cache_file=$ac_optarg ;;
903
904   --config-cache | -C)
905     cache_file=config.cache ;;
906
907   -datadir | --datadir | --datadi | --datad)
908     ac_prev=datadir ;;
909   -datadir=* | --datadir=* | --datadi=* | --datad=*)
910     datadir=$ac_optarg ;;
911
912   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913   | --dataroo | --dataro | --datar)
914     ac_prev=datarootdir ;;
915   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917     datarootdir=$ac_optarg ;;
918
919   -disable-* | --disable-*)
920     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924    { (exit 1); exit 1; }; }
925     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926     eval enable_$ac_feature=no ;;
927
928   -docdir | --docdir | --docdi | --doc | --do)
929     ac_prev=docdir ;;
930   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931     docdir=$ac_optarg ;;
932
933   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934     ac_prev=dvidir ;;
935   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936     dvidir=$ac_optarg ;;
937
938   -enable-* | --enable-*)
939     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943    { (exit 1); exit 1; }; }
944     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945     eval enable_$ac_feature=\$ac_optarg ;;
946
947   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949   | --exec | --exe | --ex)
950     ac_prev=exec_prefix ;;
951   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953   | --exec=* | --exe=* | --ex=*)
954     exec_prefix=$ac_optarg ;;
955
956   -gas | --gas | --ga | --g)
957     # Obsolete; use --with-gas.
958     with_gas=yes ;;
959
960   -help | --help | --hel | --he | -h)
961     ac_init_help=long ;;
962   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963     ac_init_help=recursive ;;
964   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965     ac_init_help=short ;;
966
967   -host | --host | --hos | --ho)
968     ac_prev=host_alias ;;
969   -host=* | --host=* | --hos=* | --ho=*)
970     host_alias=$ac_optarg ;;
971
972   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973     ac_prev=htmldir ;;
974   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975   | --ht=*)
976     htmldir=$ac_optarg ;;
977
978   -includedir | --includedir | --includedi | --included | --include \
979   | --includ | --inclu | --incl | --inc)
980     ac_prev=includedir ;;
981   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982   | --includ=* | --inclu=* | --incl=* | --inc=*)
983     includedir=$ac_optarg ;;
984
985   -infodir | --infodir | --infodi | --infod | --info | --inf)
986     ac_prev=infodir ;;
987   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988     infodir=$ac_optarg ;;
989
990   -libdir | --libdir | --libdi | --libd)
991     ac_prev=libdir ;;
992   -libdir=* | --libdir=* | --libdi=* | --libd=*)
993     libdir=$ac_optarg ;;
994
995   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996   | --libexe | --libex | --libe)
997     ac_prev=libexecdir ;;
998   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999   | --libexe=* | --libex=* | --libe=*)
1000     libexecdir=$ac_optarg ;;
1001
1002   -localedir | --localedir | --localedi | --localed | --locale)
1003     ac_prev=localedir ;;
1004   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005     localedir=$ac_optarg ;;
1006
1007   -localstatedir | --localstatedir | --localstatedi | --localstated \
1008   | --localstate | --localstat | --localsta | --localst | --locals)
1009     ac_prev=localstatedir ;;
1010   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012     localstatedir=$ac_optarg ;;
1013
1014   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015     ac_prev=mandir ;;
1016   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017     mandir=$ac_optarg ;;
1018
1019   -nfp | --nfp | --nf)
1020     # Obsolete; use --without-fp.
1021     with_fp=no ;;
1022
1023   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024   | --no-cr | --no-c | -n)
1025     no_create=yes ;;
1026
1027   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029     no_recursion=yes ;;
1030
1031   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033   | --oldin | --oldi | --old | --ol | --o)
1034     ac_prev=oldincludedir ;;
1035   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038     oldincludedir=$ac_optarg ;;
1039
1040   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041     ac_prev=prefix ;;
1042   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043     prefix=$ac_optarg ;;
1044
1045   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046   | --program-pre | --program-pr | --program-p)
1047     ac_prev=program_prefix ;;
1048   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050     program_prefix=$ac_optarg ;;
1051
1052   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053   | --program-suf | --program-su | --program-s)
1054     ac_prev=program_suffix ;;
1055   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057     program_suffix=$ac_optarg ;;
1058
1059   -program-transform-name | --program-transform-name \
1060   | --program-transform-nam | --program-transform-na \
1061   | --program-transform-n | --program-transform- \
1062   | --program-transform | --program-transfor \
1063   | --program-transfo | --program-transf \
1064   | --program-trans | --program-tran \
1065   | --progr-tra | --program-tr | --program-t)
1066     ac_prev=program_transform_name ;;
1067   -program-transform-name=* | --program-transform-name=* \
1068   | --program-transform-nam=* | --program-transform-na=* \
1069   | --program-transform-n=* | --program-transform-=* \
1070   | --program-transform=* | --program-transfor=* \
1071   | --program-transfo=* | --program-transf=* \
1072   | --program-trans=* | --program-tran=* \
1073   | --progr-tra=* | --program-tr=* | --program-t=*)
1074     program_transform_name=$ac_optarg ;;
1075
1076   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077     ac_prev=pdfdir ;;
1078   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079     pdfdir=$ac_optarg ;;
1080
1081   -psdir | --psdir | --psdi | --psd | --ps)
1082     ac_prev=psdir ;;
1083   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084     psdir=$ac_optarg ;;
1085
1086   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087   | -silent | --silent | --silen | --sile | --sil)
1088     silent=yes ;;
1089
1090   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091     ac_prev=sbindir ;;
1092   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093   | --sbi=* | --sb=*)
1094     sbindir=$ac_optarg ;;
1095
1096   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098   | --sharedst | --shareds | --shared | --share | --shar \
1099   | --sha | --sh)
1100     ac_prev=sharedstatedir ;;
1101   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104   | --sha=* | --sh=*)
1105     sharedstatedir=$ac_optarg ;;
1106
1107   -site | --site | --sit)
1108     ac_prev=site ;;
1109   -site=* | --site=* | --sit=*)
1110     site=$ac_optarg ;;
1111
1112   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113     ac_prev=srcdir ;;
1114   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115     srcdir=$ac_optarg ;;
1116
1117   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118   | --syscon | --sysco | --sysc | --sys | --sy)
1119     ac_prev=sysconfdir ;;
1120   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122     sysconfdir=$ac_optarg ;;
1123
1124   -target | --target | --targe | --targ | --tar | --ta | --t)
1125     ac_prev=target_alias ;;
1126   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127     target_alias=$ac_optarg ;;
1128
1129   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130     verbose=yes ;;
1131
1132   -version | --version | --versio | --versi | --vers | -V)
1133     ac_init_version=: ;;
1134
1135   -with-* | --with-*)
1136     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139       { echo "$as_me: error: invalid package name: $ac_package" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_package=`echo $ac_package| sed 's/-/_/g'`
1142     eval with_$ac_package=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148       { echo "$as_me: error: invalid package name: $ac_package" >&2
1149    { (exit 1); exit 1; }; }
1150     ac_package=`echo $ac_package | sed 's/-/_/g'`
1151     eval with_$ac_package=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173    { (exit 1); exit 1; }; }
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181    { (exit 1); exit 1; }; }
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   { echo "$as_me: error: missing argument to $ac_option" >&2
1199    { (exit 1); exit 1; }; }
1200 fi
1201
1202 # Be sure to have absolute directory names.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   case $ac_val in
1210     [\\/$]* | ?:[\\/]* )  continue;;
1211     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212   esac
1213   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214    { (exit 1); exit 1; }; }
1215 done
1216
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1223
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226   if test "x$build_alias" = x; then
1227     cross_compiling=maybe
1228     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229     If a cross compiler is detected then cross compile mode will be used." >&2
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   { echo "$as_me: error: Working directory cannot be determined" >&2
1245    { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   { echo "$as_me: error: pwd does not report name of working directory" >&2
1248    { (exit 1); exit 1; }; }
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$0" : 'X\(//\)[^/]' \| \
1258          X"$0" : 'X\(//\)$' \| \
1259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 echo X"$0" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288    { (exit 1); exit 1; }; }
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293    { (exit 1); exit 1; }; }
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR           user executables [EPREFIX/bin]
1354   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR       program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR           object code libraries [EPREFIX/lib]
1360   --includedir=DIR       C header files [PREFIX/include]
1361   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR          info documentation [DATAROOTDIR/info]
1365   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR           man documentation [DATAROOTDIR/man]
1367   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1368   --htmldir=DIR          html documentation [DOCDIR]
1369   --dvidir=DIR           dvi documentation [DOCDIR]
1370   --pdfdir=DIR           pdf documentation [DOCDIR]
1371   --psdir=DIR            ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379   --target=TARGET   configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of llvm 3.1svn:";;
1386    esac
1387   cat <<\_ACEOF
1388
1389 Optional Features:
1390   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392   --enable-polly          Use polly if available (default is YES)
1393   --enable-optimized      Compile with optimizations enabled (default is NO)
1394   --enable-profiling      Compile with profiling enabled (default is NO)
1395   --enable-assertions     Compile with assertion checks enabled (default is
1396                           YES)
1397   --enable-expensive-checks
1398                           Compile with expensive debug checks enabled (default
1399                           is NO)
1400   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1401                           NO)
1402   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1403                           optimization is on and YES if it's off)
1404   --enable-jit            Enable Just In Time Compiling (default is YES)
1405   --enable-docs           Build documents (default is YES)
1406   --enable-doxygen        Build doxygen documentation (default is NO)
1407   --enable-threads        Use threads if available (default is YES)
1408   --enable-pthreads       Use pthreads if available (default is YES)
1409   --enable-pic            Build LLVM with Position Independent Code (default
1410                           is YES)
1411   --enable-shared         Build a shared library and link tools against it
1412                           (default is NO)
1413   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1414                           Win32 DLL (default is NO)
1415   --enable-timestamps     Enable embedding timestamp information in build
1416                           (default is YES)
1417   --enable-targets        Build specific host targets: all or
1418                           target1,target2,... Valid targets are: host, x86,
1419                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1420                           xcore, msp430, ptx, cbe, and cpp (default=all)
1421   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1422                           %a (default is YES)
1423   --enable-bindings       Build specific language bindings:
1424                           all,auto,none,{binding-name} (default=auto)
1425   --enable-libffi         Check for the presence of libffi (default is NO)
1426   --enable-ltdl-install   install libltdl
1427
1428 Optional Packages:
1429   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431   --with-optimize-option  Select the compiler options to use for optimized
1432                           builds
1433   --with-extra-options    Specify additional options to compile LLVM with
1434   --with-extra-ld-options Specify additional options to link LLVM with
1435   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1436                           is stdlib)
1437   --with-clang-srcdir     Directory to the out-of-tree Clang source
1438   --with-clang-resource-dir
1439                           Relative directory from the Clang binary for
1440                           resource files
1441   --with-c-include-dirs   Colon separated list of directories clang will
1442                           search for headers
1443   --with-cxx-include-root Directory with the libstdc++ headers.
1444   --with-cxx-include-arch Architecture of the libstdc++ headers.
1445   --with-cxx-include-32bit-dir
1446                           32 bit multilib dir.
1447   --with-cxx-include-64bit-dir
1448                           64 bit multilib directory.
1449   --with-binutils-include Specify path to binutils/include/ containing
1450                           plugin-api.h file for gold plugin.
1451   --with-bug-report-url   Specify the URL where bug reports should be
1452                           submitted (default=http://llvm.org/bugs/)
1453   --with-tclinclude       directory where tcl headers are
1454   --with-udis86=<path>    Use udis86 external x86 disassembler library
1455   --with-oprofile=<prefix>
1456                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1457
1458 Some influential environment variables:
1459   CC          C compiler command
1460   CFLAGS      C compiler flags
1461   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462               nonstandard directory <lib dir>
1463   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464               you have headers in a nonstandard directory <include dir>
1465   CXX         C++ compiler command
1466   CXXFLAGS    C++ compiler flags
1467   CPP         C preprocessor
1468
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1471
1472 Report bugs to <llvmbugs@cs.uiuc.edu>.
1473 _ACEOF
1474 ac_status=$?
1475 fi
1476
1477 if test "$ac_init_help" = "recursive"; then
1478   # If there are subdirs, report their specific --help.
1479   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480     test -d "$ac_dir" || continue
1481     ac_builddir=.
1482
1483 case "$ac_dir" in
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *)
1486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487   # A ".." for each directory in $ac_dir_suffix.
1488   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489   case $ac_top_builddir_sub in
1490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492   esac ;;
1493 esac
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1498
1499 case $srcdir in
1500   .)  # We are building in place.
1501     ac_srcdir=.
1502     ac_top_srcdir=$ac_top_builddir_sub
1503     ac_abs_top_srcdir=$ac_pwd ;;
1504   [\\/]* | ?:[\\/]* )  # Absolute name.
1505     ac_srcdir=$srcdir$ac_dir_suffix;
1506     ac_top_srcdir=$srcdir
1507     ac_abs_top_srcdir=$srcdir ;;
1508   *) # Relative name.
1509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510     ac_top_srcdir=$ac_top_build_prefix$srcdir
1511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 esac
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515     cd "$ac_dir" || { ac_status=$?; continue; }
1516     # Check for guested configure.
1517     if test -f "$ac_srcdir/configure.gnu"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520     elif test -f "$ac_srcdir/configure"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure" --help=recursive
1523     else
1524       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525     fi || ac_status=$?
1526     cd "$ac_pwd" || { ac_status=$?; break; }
1527   done
1528 fi
1529
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532   cat <<\_ACEOF
1533 llvm configure 3.1svn
1534 generated by GNU Autoconf 2.60
1535
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540
1541 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1542 _ACEOF
1543   exit
1544 fi
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1548
1549 It was created by llvm $as_me 3.1svn, which was
1550 generated by GNU Autoconf 2.60.  Invocation command line was
1551
1552   $ $0 $@
1553
1554 _ACEOF
1555 exec 5>>config.log
1556 {
1557 cat <<_ASUNAME
1558 ## --------- ##
1559 ## Platform. ##
1560 ## --------- ##
1561
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1570
1571 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1572 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1575 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1576 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1577 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1578
1579 _ASUNAME
1580
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584   IFS=$as_save_IFS
1585   test -z "$as_dir" && as_dir=.
1586   echo "PATH: $as_dir"
1587 done
1588 IFS=$as_save_IFS
1589
1590 } >&5
1591
1592 cat >&5 <<_ACEOF
1593
1594
1595 ## ----------- ##
1596 ## Core tests. ##
1597 ## ----------- ##
1598
1599 _ACEOF
1600
1601
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1607 ac_configure_args=
1608 ac_configure_args0=
1609 ac_configure_args1=
1610 ac_must_keep_next=false
1611 for ac_pass in 1 2
1612 do
1613   for ac_arg
1614   do
1615     case $ac_arg in
1616     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618     | -silent | --silent | --silen | --sile | --sil)
1619       continue ;;
1620     *\'*)
1621       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622     esac
1623     case $ac_pass in
1624     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625     2)
1626       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627       if test $ac_must_keep_next = true; then
1628         ac_must_keep_next=false # Got value, back to normal.
1629       else
1630         case $ac_arg in
1631           *=* | --config-cache | -C | -disable-* | --disable-* \
1632           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634           | -with-* | --with-* | -without-* | --without-* | --x)
1635             case "$ac_configure_args0 " in
1636               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637             esac
1638             ;;
1639           -* ) ac_must_keep_next=true ;;
1640         esac
1641       fi
1642       ac_configure_args="$ac_configure_args '$ac_arg'"
1643       ;;
1644     esac
1645   done
1646 done
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log.  We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656   # Save into config.log some information that might help in debugging.
1657   {
1658     echo
1659
1660     cat <<\_ASBOX
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1664 _ASBOX
1665     echo
1666     # The following way of writing the cache mishandles newlines in values,
1667 (
1668   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669     eval ac_val=\$$ac_var
1670     case $ac_val in #(
1671     *${as_nl}*)
1672       case $ac_var in #(
1673       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675       esac
1676       case $ac_var in #(
1677       _ | IFS | as_nl) ;; #(
1678       *) $as_unset $ac_var ;;
1679       esac ;;
1680     esac
1681   done
1682   (set) 2>&1 |
1683     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684     *${as_nl}ac_space=\ *)
1685       sed -n \
1686         "s/'\''/'\''\\\\'\'''\''/g;
1687           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688       ;; #(
1689     *)
1690       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1691       ;;
1692     esac |
1693     sort
1694 )
1695     echo
1696
1697     cat <<\_ASBOX
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1701 _ASBOX
1702     echo
1703     for ac_var in $ac_subst_vars
1704     do
1705       eval ac_val=\$$ac_var
1706       case $ac_val in
1707       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708       esac
1709       echo "$ac_var='\''$ac_val'\''"
1710     done | sort
1711     echo
1712
1713     if test -n "$ac_subst_files"; then
1714       cat <<\_ASBOX
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1718 _ASBOX
1719       echo
1720       for ac_var in $ac_subst_files
1721       do
1722         eval ac_val=\$$ac_var
1723         case $ac_val in
1724         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725         esac
1726         echo "$ac_var='\''$ac_val'\''"
1727       done | sort
1728       echo
1729     fi
1730
1731     if test -s confdefs.h; then
1732       cat <<\_ASBOX
1733 ## ----------- ##
1734 ## confdefs.h. ##
1735 ## ----------- ##
1736 _ASBOX
1737       echo
1738       cat confdefs.h
1739       echo
1740     fi
1741     test "$ac_signal" != 0 &&
1742       echo "$as_me: caught signal $ac_signal"
1743     echo "$as_me: exit $exit_status"
1744   } >&5
1745   rm -f core *.core core.conftest.* &&
1746     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747     exit $exit_status
1748 ' 0
1749 for ac_signal in 1 2 13 15; do
1750   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1751 done
1752 ac_signal=0
1753
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1756
1757 # Predefined preprocessor variables.
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1761 _ACEOF
1762
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766 _ACEOF
1767
1768
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1771 _ACEOF
1772
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1776 _ACEOF
1777
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781 _ACEOF
1782
1783
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787   set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 else
1791   set x "$ac_default_prefix/share/config.site" \
1792         "$ac_default_prefix/etc/config.site"
1793 fi
1794 shift
1795 for ac_site_file
1796 do
1797   if test -r "$ac_site_file"; then
1798     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800     sed 's/^/| /' "$ac_site_file" >&5
1801     . "$ac_site_file"
1802   fi
1803 done
1804
1805 if test -r "$cache_file"; then
1806   # Some versions of bash will fail to source /dev/null (special
1807   # files actually), so we avoid doing that.
1808   if test -f "$cache_file"; then
1809     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1811     case $cache_file in
1812       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813       *)                      . "./$cache_file";;
1814     esac
1815   fi
1816 else
1817   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1819   >$cache_file
1820 fi
1821
1822 # Check that the precious variables saved in the cache have kept the same
1823 # value.
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827   eval ac_new_set=\$ac_env_${ac_var}_set
1828   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829   eval ac_new_val=\$ac_env_${ac_var}_value
1830   case $ac_old_set,$ac_new_set in
1831     set,)
1832       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834       ac_cache_corrupted=: ;;
1835     ,set)
1836       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838       ac_cache_corrupted=: ;;
1839     ,);;
1840     *)
1841       if test "x$ac_old_val" != "x$ac_new_val"; then
1842         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1845 echo "$as_me:   former value:  $ac_old_val" >&2;}
1846         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1847 echo "$as_me:   current value: $ac_new_val" >&2;}
1848         ac_cache_corrupted=:
1849       fi;;
1850   esac
1851   # Pass precious variables to config.status.
1852   if test "$ac_new_set" = set; then
1853     case $ac_new_val in
1854     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855     *) ac_arg=$ac_var=$ac_new_val ;;
1856     esac
1857     case " $ac_configure_args " in
1858       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1859       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860     esac
1861   fi
1862 done
1863 if $ac_cache_corrupted; then
1864   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868    { (exit 1); exit 1; }; }
1869 fi
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895 ac_ext=c
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
1903 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1904
1905
1906
1907
1908
1909
1910
1911 ac_aux_dir=
1912 for ac_dir in autoconf "$srcdir"/autoconf; do
1913   if test -f "$ac_dir/install-sh"; then
1914     ac_aux_dir=$ac_dir
1915     ac_install_sh="$ac_aux_dir/install-sh -c"
1916     break
1917   elif test -f "$ac_dir/install.sh"; then
1918     ac_aux_dir=$ac_dir
1919     ac_install_sh="$ac_aux_dir/install.sh -c"
1920     break
1921   elif test -f "$ac_dir/shtool"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/shtool install -c"
1924     break
1925   fi
1926 done
1927 if test -z "$ac_aux_dir"; then
1928   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930    { (exit 1); exit 1; }; }
1931 fi
1932
1933 # These three variables are undocumented and unsupported,
1934 # and are intended to be withdrawn in a future Autoconf release.
1935 # They can cause serious problems if a builder's source tree is in a directory
1936 # whose full name contains unusual characters.
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1939 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1940
1941
1942
1943 if test ${srcdir} != "." ; then
1944   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1945     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947    { (exit 1); exit 1; }; }
1948   fi
1949 fi
1950
1951 ac_ext=c
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957   for ac_prog in clang llvm-gcc gcc
1958   do
1959     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964   echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966   if test -n "$CC"; then
1967   ac_cv_prog_CC="$CC" # Let the user override the test.
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972   IFS=$as_save_IFS
1973   test -z "$as_dir" && as_dir=.
1974   for ac_exec_ext in '' $ac_executable_extensions; do
1975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1976     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978     break 2
1979   fi
1980 done
1981 done
1982 IFS=$as_save_IFS
1983
1984 fi
1985 fi
1986 CC=$ac_cv_prog_CC
1987 if test -n "$CC"; then
1988   { echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6; }
1990 else
1991   { echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6; }
1993 fi
1994
1995
1996     test -n "$CC" && break
1997   done
1998 fi
1999 if test -z "$CC"; then
2000   ac_ct_CC=$CC
2001   for ac_prog in clang llvm-gcc gcc
2002 do
2003   # Extract the first word of "$ac_prog", so it can be a program name with args.
2004 set dummy $ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$ac_ct_CC"; then
2011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020     ac_cv_prog_ac_ct_CC="$ac_prog"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026 IFS=$as_save_IFS
2027
2028 fi
2029 fi
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6; }
2034 else
2035   { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2037 fi
2038
2039
2040   test -n "$ac_ct_CC" && break
2041 done
2042
2043   if test "x$ac_ct_CC" = x; then
2044     CC=""
2045   else
2046     case $cross_compiling:$ac_tool_warned in
2047 yes:)
2048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049 whose name does not start with the host triplet.  If you think this
2050 configuration is useful to you, please write to autoconf@gnu.org." >&5
2051 echo "$as_me: 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." >&2;}
2054 ac_tool_warned=yes ;;
2055 esac
2056     CC=$ac_ct_CC
2057   fi
2058 fi
2059
2060
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065    { (exit 1); exit 1; }; }
2066
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO: checking for C compiler version" >&5
2069 ac_compiler=`set X $ac_compile; echo $2`
2070 { (ac_try="$ac_compiler --version >&5"
2071 case "(($ac_try" in
2072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073   *) ac_try_echo=$ac_try;;
2074 esac
2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076   (eval "$ac_compiler --version >&5") 2>&5
2077   ac_status=$?
2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079   (exit $ac_status); }
2080 { (ac_try="$ac_compiler -v >&5"
2081 case "(($ac_try" in
2082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083   *) ac_try_echo=$ac_try;;
2084 esac
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086   (eval "$ac_compiler -v >&5") 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }
2090 { (ac_try="$ac_compiler -V >&5"
2091 case "(($ac_try" in
2092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093   *) ac_try_echo=$ac_try;;
2094 esac
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096   (eval "$ac_compiler -V >&5") 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }
2100
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h.  */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h.  */
2107
2108 int
2109 main ()
2110 {
2111
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2120 # of exeext.
2121 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 #
2125 # List of possible output files, starting from the most likely.
2126 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127 # only as a last resort.  b.out is created by i960 compilers.
2128 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2129 #
2130 # The IRIX 6 linker writes into existing files which may not be
2131 # executable, retaining their permissions.  Remove them first so a
2132 # subsequent execution test works.
2133 ac_rmfiles=
2134 for ac_file in $ac_files
2135 do
2136   case $ac_file in
2137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2138     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2139   esac
2140 done
2141 rm -f $ac_rmfiles
2142
2143 if { (ac_try="$ac_link_default"
2144 case "(($ac_try" in
2145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146   *) ac_try_echo=$ac_try;;
2147 esac
2148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149   (eval "$ac_link_default") 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; then
2153   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2156 # so that the user can short-circuit this test for compilers unknown to
2157 # Autoconf.
2158 for ac_file in $ac_files
2159 do
2160   test -f "$ac_file" || continue
2161   case $ac_file in
2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2163         ;;
2164     [ab].out )
2165         # We found the default executable, but exeext='' is most
2166         # certainly right.
2167         break;;
2168     *.* )
2169         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2170         then :; else
2171            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172         fi
2173         # We set ac_cv_exeext here because the later test for it is not
2174         # safe: cross compilers may not add the suffix if given an `-o'
2175         # argument, so we may need to know it at that point already.
2176         # Even if this section looks crufty: it has the advantage of
2177         # actually working.
2178         break;;
2179     * )
2180         break;;
2181   esac
2182 done
2183 test "$ac_cv_exeext" = no && ac_cv_exeext=
2184
2185 else
2186   echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193    { (exit 77); exit 77; }; }
2194 fi
2195
2196 ac_exeext=$ac_cv_exeext
2197 { echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6; }
2199
2200 # Check that the compiler produces executables we can run.  If not, either
2201 # the compiler is broken, or we cross compile.
2202 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207   if { ac_try='./$ac_file'
2208   { (case "(($ac_try" in
2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210   *) ac_try_echo=$ac_try;;
2211 esac
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213   (eval "$ac_try") 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; }; then
2217     cross_compiling=no
2218   else
2219     if test "$cross_compiling" = maybe; then
2220         cross_compiling=yes
2221     else
2222         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228    { (exit 1); exit 1; }; }
2229     fi
2230   fi
2231 fi
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2234
2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236 ac_clean_files=$ac_clean_files_save
2237 # Check that the compiler produces executables we can run.  If not, either
2238 # the compiler is broken, or we cross compile.
2239 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6; }
2243
2244 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246 if { (ac_try="$ac_link"
2247 case "(($ac_try" in
2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249   *) ac_try_echo=$ac_try;;
2250 esac
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252   (eval "$ac_link") 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; then
2256   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 # `rm'.
2260 for ac_file in conftest.exe conftest conftest.*; do
2261   test -f "$ac_file" || continue
2262   case $ac_file in
2263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265           break;;
2266     * ) break;;
2267   esac
2268 done
2269 else
2270   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277 rm -f conftest$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2280
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286 if test "${ac_cv_objext+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.o conftest.obj
2305 if { (ac_try="$ac_compile"
2306 case "(($ac_try" in
2307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308   *) ac_try_echo=$ac_try;;
2309 esac
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311   (eval "$ac_compile") 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; then
2315   for ac_file in conftest.o conftest.obj conftest.*; do
2316   test -f "$ac_file" || continue;
2317   case $ac_file in
2318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2319     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320        break;;
2321   esac
2322 done
2323 else
2324   echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331    { (exit 1); exit 1; }; }
2332 fi
2333
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335 fi
2336 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6; }
2338 OBJEXT=$ac_cv_objext
2339 ac_objext=$OBJEXT
2340 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351
2352 int
2353 main ()
2354 {
2355 #ifndef __GNUC__
2356        choke me
2357 #endif
2358
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 rm -f conftest.$ac_objext
2364 if { (ac_try="$ac_compile"
2365 case "(($ac_try" in
2366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367   *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370   (eval "$ac_compile") 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378   { (case "(($ac_try" in
2379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380   *) ac_try_echo=$ac_try;;
2381 esac
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383   (eval "$ac_try") 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; } &&
2387          { ac_try='test -s conftest.$ac_objext'
2388   { (case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393   (eval "$ac_try") 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   ac_compiler_gnu=yes
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402         ac_compiler_gnu=no
2403 fi
2404
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2407
2408 fi
2409 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   ac_save_c_werror_flag=$ac_c_werror_flag
2420    ac_c_werror_flag=yes
2421    ac_cv_prog_cc_g=no
2422    CFLAGS="-g"
2423    cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h.  */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h.  */
2429
2430 int
2431 main ()
2432 {
2433
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2440 case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445   (eval "$ac_compile") 2>conftest.er1
2446   ac_status=$?
2447   grep -v '^ *+' conftest.er1 >conftest.err
2448   rm -f conftest.er1
2449   cat conftest.err >&5
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); } &&
2452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453   { (case "(($ac_try" in
2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455   *) ac_try_echo=$ac_try;;
2456 esac
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458   (eval "$ac_try") 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }; } &&
2462          { ac_try='test -s conftest.$ac_objext'
2463   { (case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468   (eval "$ac_try") 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }; }; then
2472   ac_cv_prog_cc_g=yes
2473 else
2474   echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477         CFLAGS=""
2478       cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (ac_try="$ac_compile"
2495 case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_compile") 2>conftest.er1
2501   ac_status=$?
2502   grep -v '^ *+' conftest.er1 >conftest.err
2503   rm -f conftest.er1
2504   cat conftest.err >&5
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508   { (case "(($ac_try" in
2509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510   *) ac_try_echo=$ac_try;;
2511 esac
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513   (eval "$ac_try") 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; } &&
2517          { ac_try='test -s conftest.$ac_objext'
2518   { (case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_try") 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; }; then
2527   :
2528 else
2529   echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2531
2532         ac_c_werror_flag=$ac_save_c_werror_flag
2533          CFLAGS="-g"
2534          cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h.  */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h.  */
2540
2541 int
2542 main ()
2543 {
2544
2545   ;
2546   return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (ac_try="$ac_compile"
2551 case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556   (eval "$ac_compile") 2>conftest.er1
2557   ac_status=$?
2558   grep -v '^ *+' conftest.er1 >conftest.err
2559   rm -f conftest.er1
2560   cat conftest.err >&5
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } &&
2563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564   { (case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569   (eval "$ac_try") 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; } &&
2573          { ac_try='test -s conftest.$ac_objext'
2574   { (case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_try") 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   ac_cv_prog_cc_g=yes
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588
2589 fi
2590
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
2599 fi
2600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2602 if test "$ac_test_CFLAGS" = set; then
2603   CFLAGS=$ac_save_CFLAGS
2604 elif test $ac_cv_prog_cc_g = yes; then
2605   if test "$GCC" = yes; then
2606     CFLAGS="-g -O2"
2607   else
2608     CFLAGS="-g"
2609   fi
2610 else
2611   if test "$GCC" = yes; then
2612     CFLAGS="-O2"
2613   else
2614     CFLAGS=
2615   fi
2616 fi
2617 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_cc_c89+set}" = set; then
2620   echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622   ac_cv_prog_cc_c89=no
2623 ac_save_CC=$CC
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h.  */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h.  */
2630 #include <stdarg.h>
2631 #include <stdio.h>
2632 #include <sys/types.h>
2633 #include <sys/stat.h>
2634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2635 struct buf { int x; };
2636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637 static char *e (p, i)
2638      char **p;
2639      int i;
2640 {
2641   return p[i];
2642 }
2643 static char *f (char * (*g) (char **, int), char **p, ...)
2644 {
2645   char *s;
2646   va_list v;
2647   va_start (v,p);
2648   s = g (p, va_arg (v,int));
2649   va_end (v);
2650   return s;
2651 }
2652
2653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2654    function prototypes and stuff, but not '\xHH' hex character constants.
2655    These don't provoke an error unfortunately, instead are silently treated
2656    as 'x'.  The following induces an error, until -std is added to get
2657    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2658    array size at least.  It's necessary to write '\x00'==0 to get something
2659    that's true only with -std.  */
2660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661
2662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663    inside strings and character constants.  */
2664 #define FOO(x) 'x'
2665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2666
2667 int test (int i, double x);
2668 struct s1 {int (*f) (int a);};
2669 struct s2 {int (*f) (double a);};
2670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2671 int argc;
2672 char **argv;
2673 int
2674 main ()
2675 {
2676 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2683 do
2684   CC="$ac_save_CC $ac_arg"
2685   rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2687 case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692   (eval "$ac_compile") 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700   { (case "(($ac_try" in
2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702   *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705   (eval "$ac_try") 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; } &&
2709          { ac_try='test -s conftest.$ac_objext'
2710   { (case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_try") 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; }; then
2719   ac_cv_prog_cc_c89=$ac_arg
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724
2725 fi
2726
2727 rm -f core conftest.err conftest.$ac_objext
2728   test "x$ac_cv_prog_cc_c89" != "xno" && break
2729 done
2730 rm -f conftest.$ac_ext
2731 CC=$ac_save_CC
2732
2733 fi
2734 # AC_CACHE_VAL
2735 case "x$ac_cv_prog_cc_c89" in
2736   x)
2737     { echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6; } ;;
2739   xno)
2740     { echo "$as_me:$LINENO: result: unsupported" >&5
2741 echo "${ECHO_T}unsupported" >&6; } ;;
2742   *)
2743     CC="$CC $ac_cv_prog_cc_c89"
2744     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2746 esac
2747
2748
2749 ac_ext=c
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754
2755 ac_ext=cpp
2756 ac_cpp='$CXXCPP $CPPFLAGS'
2757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760 if test -z "$CXX"; then
2761   if test -n "$CCC"; then
2762     CXX=$CCC
2763   else
2764     if test -n "$ac_tool_prefix"; then
2765   for ac_prog in clang++ llvm-g++ g++
2766   do
2767     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CXX+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   if test -n "$CXX"; then
2775   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782   for ac_exec_ext in '' $ac_executable_extensions; do
2783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786     break 2
2787   fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 CXX=$ac_cv_prog_CXX
2795 if test -n "$CXX"; then
2796   { echo "$as_me:$LINENO: result: $CXX" >&5
2797 echo "${ECHO_T}$CXX" >&6; }
2798 else
2799   { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2801 fi
2802
2803
2804     test -n "$CXX" && break
2805   done
2806 fi
2807 if test -z "$CXX"; then
2808   ac_ct_CXX=$CXX
2809   for ac_prog in clang++ llvm-g++ g++
2810 do
2811   # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -n "$ac_ct_CXX"; then
2819   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_ac_ct_CXX="$ac_prog"
2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839 if test -n "$ac_ct_CXX"; then
2840   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2842 else
2843   { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2846
2847
2848   test -n "$ac_ct_CXX" && break
2849 done
2850
2851   if test "x$ac_ct_CXX" = x; then
2852     CXX="g++"
2853   else
2854     case $cross_compiling:$ac_tool_warned in
2855 yes:)
2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet.  If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&5
2859 echo "$as_me: 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." >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864     CXX=$ac_ct_CXX
2865   fi
2866 fi
2867
2868   fi
2869 fi
2870 # Provide some information about the compiler.
2871 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872 ac_compiler=`set X $ac_compile; echo $2`
2873 { (ac_try="$ac_compiler --version >&5"
2874 case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879   (eval "$ac_compiler --version >&5") 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2884 case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889   (eval "$ac_compiler -v >&5") 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&5"
2894 case "(($ac_try" in
2895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896   *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899   (eval "$ac_compiler -V >&5") 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }
2903
2904 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909   cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915
2916 int
2917 main ()
2918 {
2919 #ifndef __GNUC__
2920        choke me
2921 #endif
2922
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_compile") 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } &&
2941          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942   { (case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_try") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; } &&
2951          { ac_try='test -s conftest.$ac_objext'
2952   { (case "(($ac_try" in
2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954   *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957   (eval "$ac_try") 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; }; then
2961   ac_compiler_gnu=yes
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966         ac_compiler_gnu=no
2967 fi
2968
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2971
2972 fi
2973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975 GXX=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CXXFLAGS=${CXXFLAGS+set}
2977 ac_save_CXXFLAGS=$CXXFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cxx_g+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984    ac_cxx_werror_flag=yes
2985    ac_cv_prog_cxx_g=no
2986    CXXFLAGS="-g"
2987    cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h.  */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h.  */
2993
2994 int
2995 main ()
2996 {
2997
2998   ;
2999   return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_compile") 2>conftest.er1
3010   ac_status=$?
3011   grep -v '^ *+' conftest.er1 >conftest.err
3012   rm -f conftest.er1
3013   cat conftest.err >&5
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); } &&
3016          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017   { (case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022   (eval "$ac_try") 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; } &&
3026          { ac_try='test -s conftest.$ac_objext'
3027   { (case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_try") 2>&5
3033   ac_status=$?
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; }; then
3036   ac_cv_prog_cxx_g=yes
3037 else
3038   echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
3041         CXXFLAGS=""
3042       cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048
3049 int
3050 main ()
3051 {
3052
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3059 case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_compile") 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } &&
3071          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072   { (case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077   (eval "$ac_try") 2>&5
3078   ac_status=$?
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); }; } &&
3081          { ac_try='test -s conftest.$ac_objext'
3082   { (case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_try") 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }; }; then
3091   :
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3097          CXXFLAGS="-g"
3098          cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_compile") 2>conftest.er1
3121   ac_status=$?
3122   grep -v '^ *+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } &&
3127          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128   { (case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_try") 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; } &&
3137          { ac_try='test -s conftest.$ac_objext'
3138   { (case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_try") 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   ac_cv_prog_cxx_g=yes
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153 fi
3154
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3163 fi
3164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166 if test "$ac_test_CXXFLAGS" = set; then
3167   CXXFLAGS=$ac_save_CXXFLAGS
3168 elif test $ac_cv_prog_cxx_g = yes; then
3169   if test "$GXX" = yes; then
3170     CXXFLAGS="-g -O2"
3171   else
3172     CXXFLAGS="-g"
3173   fi
3174 else
3175   if test "$GXX" = yes; then
3176     CXXFLAGS="-O2"
3177   else
3178     CXXFLAGS=
3179   fi
3180 fi
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3194 # On Suns, sometimes $CPP names a directory.
3195 if test -n "$CPP" && test -d "$CPP"; then
3196   CPP=
3197 fi
3198 if test -z "$CPP"; then
3199   if test "${ac_cv_prog_CPP+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202       # Double quotes because CPP needs to be expanded
3203     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3204     do
3205       ac_preproc_ok=false
3206 for ac_c_preproc_warn_flag in '' yes
3207 do
3208   # Use a header file that comes with gcc, so configuring glibc
3209   # with a fresh cross-compiler works.
3210   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211   # <limits.h> exists even on freestanding compilers.
3212   # On the NeXT, cc -E runs the code through the compiler's parser,
3213   # not just through cpp. "Syntax error" is here to catch this case.
3214   cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220 #ifdef __STDC__
3221 # include <limits.h>
3222 #else
3223 # include <assert.h>
3224 #endif
3225                      Syntax error
3226 _ACEOF
3227 if { (ac_try="$ac_cpp conftest.$ac_ext"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } >/dev/null; then
3240   if test -s conftest.err; then
3241     ac_cpp_err=$ac_c_preproc_warn_flag
3242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243   else
3244     ac_cpp_err=
3245   fi
3246 else
3247   ac_cpp_err=yes
3248 fi
3249 if test -z "$ac_cpp_err"; then
3250   :
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255   # Broken: fails on valid input.
3256 continue
3257 fi
3258
3259 rm -f conftest.err conftest.$ac_ext
3260
3261   # OK, works on sane cases.  Now check whether nonexistent headers
3262   # can be detected and how.
3263   cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269 #include <ac_nonexistent.h>
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } >/dev/null; then
3284   if test -s conftest.err; then
3285     ac_cpp_err=$ac_c_preproc_warn_flag
3286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287   else
3288     ac_cpp_err=
3289   fi
3290 else
3291   ac_cpp_err=yes
3292 fi
3293 if test -z "$ac_cpp_err"; then
3294   # Broken: success on invalid input.
3295 continue
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300   # Passes both tests.
3301 ac_preproc_ok=:
3302 break
3303 fi
3304
3305 rm -f conftest.err conftest.$ac_ext
3306
3307 done
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3311   break
3312 fi
3313
3314     done
3315     ac_cv_prog_CPP=$CPP
3316
3317 fi
3318   CPP=$ac_cv_prog_CPP
3319 else
3320   ac_cv_prog_CPP=$CPP
3321 fi
3322 { echo "$as_me:$LINENO: result: $CPP" >&5
3323 echo "${ECHO_T}$CPP" >&6; }
3324 ac_preproc_ok=false
3325 for ac_c_preproc_warn_flag in '' yes
3326 do
3327   # Use a header file that comes with gcc, so configuring glibc
3328   # with a fresh cross-compiler works.
3329   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330   # <limits.h> exists even on freestanding compilers.
3331   # On the NeXT, cc -E runs the code through the compiler's parser,
3332   # not just through cpp. "Syntax error" is here to catch this case.
3333   cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339 #ifdef __STDC__
3340 # include <limits.h>
3341 #else
3342 # include <assert.h>
3343 #endif
3344                      Syntax error
3345 _ACEOF
3346 if { (ac_try="$ac_cpp conftest.$ac_ext"
3347 case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } >/dev/null; then
3359   if test -s conftest.err; then
3360     ac_cpp_err=$ac_c_preproc_warn_flag
3361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362   else
3363     ac_cpp_err=
3364   fi
3365 else
3366   ac_cpp_err=yes
3367 fi
3368 if test -z "$ac_cpp_err"; then
3369   :
3370 else
3371   echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374   # Broken: fails on valid input.
3375 continue
3376 fi
3377
3378 rm -f conftest.err conftest.$ac_ext
3379
3380   # OK, works on sane cases.  Now check whether nonexistent headers
3381   # can be detected and how.
3382   cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #include <ac_nonexistent.h>
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } >/dev/null; then
3403   if test -s conftest.err; then
3404     ac_cpp_err=$ac_c_preproc_warn_flag
3405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406   else
3407     ac_cpp_err=
3408   fi
3409 else
3410   ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413   # Broken: success on invalid input.
3414 continue
3415 else
3416   echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419   # Passes both tests.
3420 ac_preproc_ok=:
3421 break
3422 fi
3423
3424 rm -f conftest.err conftest.$ac_ext
3425
3426 done
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3430   :
3431 else
3432   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436    { (exit 1); exit 1; }; }
3437 fi
3438
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445
3446
3447
3448 if test -d ${srcdir}/projects/llvm-gcc ; then
3449   subdirs="$subdirs projects/llvm-gcc"
3450
3451 fi
3452
3453 if test -d ${srcdir}/projects/test-suite ; then
3454   subdirs="$subdirs projects/test-suite"
3455
3456 fi
3457
3458 if test -d ${srcdir}/projects/llvm-test ; then
3459   subdirs="$subdirs projects/llvm-test"
3460
3461 fi
3462
3463 if test -d ${srcdir}/projects/poolalloc ; then
3464   subdirs="$subdirs projects/poolalloc"
3465
3466 fi
3467
3468 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469   subdirs="$subdirs projects/llvm-poolalloc"
3470
3471 fi
3472
3473 for i in `ls ${srcdir}/projects`
3474 do
3475   if test -d ${srcdir}/projects/${i} ; then
3476     case ${i} in
3477       sample)       subdirs="$subdirs projects/sample"
3478     ;;
3479       privbracket)  subdirs="$subdirs projects/privbracket"
3480  ;;
3481       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3482  ;;
3483       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3484 ;;
3485       llvm-java)    subdirs="$subdirs projects/llvm-java"
3486  ;;
3487       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3488    ;;
3489       safecode)     subdirs="$subdirs projects/safecode"
3490  ;;
3491       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3492  ;;
3493       llvm-gcc)       ;;
3494       test-suite)     ;;
3495       llvm-test)      ;;
3496       poolalloc)      ;;
3497       llvm-poolalloc) ;;
3498       *)
3499         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3501         ;;
3502     esac
3503   fi
3504 done
3505
3506 # Check whether --enable-polly was given.
3507 if test "${enable_polly+set}" = set; then
3508   enableval=$enable_polly;
3509 else
3510   enableval=default
3511 fi
3512
3513 case "$enableval" in
3514   yes) ENABLE_POLLY=1
3515  ;;
3516   no)  ENABLE_POLLY=0
3517  ;;
3518   default) ENABLE_POLLY=1
3519  ;;
3520   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522    { (exit 1); exit 1; }; } ;;
3523 esac
3524
3525
3526 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3527   LLVM_HAS_POLLY=1
3528
3529   subdirs="$subdirs tools/polly"
3530
3531 fi
3532
3533
3534 # Make sure we can run config.sub.
3535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538    { (exit 1); exit 1; }; }
3539
3540 { echo "$as_me:$LINENO: checking build system type" >&5
3541 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_build+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   ac_build_alias=$build_alias
3546 test "x$ac_build_alias" = x &&
3547   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548 test "x$ac_build_alias" = x &&
3549   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551    { (exit 1); exit 1; }; }
3552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555    { (exit 1); exit 1; }; }
3556
3557 fi
3558 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559 echo "${ECHO_T}$ac_cv_build" >&6; }
3560 case $ac_cv_build in
3561 *-*-*) ;;
3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563 echo "$as_me: error: invalid value of canonical build" >&2;}
3564    { (exit 1); exit 1; }; };;
3565 esac
3566 build=$ac_cv_build
3567 ac_save_IFS=$IFS; IFS='-'
3568 set x $ac_cv_build
3569 shift
3570 build_cpu=$1
3571 build_vendor=$2
3572 shift; shift
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3575 build_os=$*
3576 IFS=$ac_save_IFS
3577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3578
3579
3580 { echo "$as_me:$LINENO: checking host system type" >&5
3581 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582 if test "${ac_cv_host+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   if test "x$host_alias" = x; then
3586   ac_cv_host=$ac_cv_build
3587 else
3588   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591    { (exit 1); exit 1; }; }
3592 fi
3593
3594 fi
3595 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596 echo "${ECHO_T}$ac_cv_host" >&6; }
3597 case $ac_cv_host in
3598 *-*-*) ;;
3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600 echo "$as_me: error: invalid value of canonical host" >&2;}
3601    { (exit 1); exit 1; }; };;
3602 esac
3603 host=$ac_cv_host
3604 ac_save_IFS=$IFS; IFS='-'
3605 set x $ac_cv_host
3606 shift
3607 host_cpu=$1
3608 host_vendor=$2
3609 shift; shift
3610 # Remember, the first character of IFS is used to create $*,
3611 # except with old shells:
3612 host_os=$*
3613 IFS=$ac_save_IFS
3614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3615
3616
3617 { echo "$as_me:$LINENO: checking target system type" >&5
3618 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619 if test "${ac_cv_target+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   if test "x$target_alias" = x; then
3623   ac_cv_target=$ac_cv_host
3624 else
3625   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628    { (exit 1); exit 1; }; }
3629 fi
3630
3631 fi
3632 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633 echo "${ECHO_T}$ac_cv_target" >&6; }
3634 case $ac_cv_target in
3635 *-*-*) ;;
3636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637 echo "$as_me: error: invalid value of canonical target" >&2;}
3638    { (exit 1); exit 1; }; };;
3639 esac
3640 target=$ac_cv_target
3641 ac_save_IFS=$IFS; IFS='-'
3642 set x $ac_cv_target
3643 shift
3644 target_cpu=$1
3645 target_vendor=$2
3646 shift; shift
3647 # Remember, the first character of IFS is used to create $*,
3648 # except with old shells:
3649 target_os=$*
3650 IFS=$ac_save_IFS
3651 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652
3653
3654 # The aliases save the names the user supplied, while $host etc.
3655 # will get canonicalized.
3656 test -n "$target_alias" &&
3657   test "$program_prefix$program_suffix$program_transform_name" = \
3658     NONENONEs,x,x, &&
3659   program_prefix=${target_alias}-
3660
3661 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663 if test "${llvm_cv_os_type+set}" = set; then
3664   echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666   case $host in
3667   *-*-aix*)
3668     llvm_cv_link_all_option="-Wl,--whole-archive"
3669     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670     llvm_cv_os_type="AIX"
3671     llvm_cv_platform_type="Unix" ;;
3672   *-*-irix*)
3673     llvm_cv_link_all_option="-Wl,--whole-archive"
3674     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675     llvm_cv_os_type="IRIX"
3676     llvm_cv_platform_type="Unix" ;;
3677   *-*-cygwin*)
3678     llvm_cv_link_all_option="-Wl,--whole-archive"
3679     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680     llvm_cv_os_type="Cygwin"
3681     llvm_cv_platform_type="Unix" ;;
3682   *-*-darwin*)
3683     llvm_cv_link_all_option="-Wl,-all_load"
3684     llvm_cv_no_link_all_option="-Wl,-noall_load"
3685     llvm_cv_os_type="Darwin"
3686     llvm_cv_platform_type="Unix" ;;
3687   *-*-minix*)
3688     llvm_cv_link_all_option="-Wl,-all_load"
3689     llvm_cv_no_link_all_option="-Wl,-noall_load"
3690     llvm_cv_os_type="Minix"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-freebsd*)
3693     llvm_cv_link_all_option="-Wl,--whole-archive"
3694     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695     llvm_cv_os_type="FreeBSD"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-openbsd*)
3698     llvm_cv_link_all_option="-Wl,--whole-archive"
3699     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700     llvm_cv_os_type="OpenBSD"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-netbsd*)
3703     llvm_cv_link_all_option="-Wl,--whole-archive"
3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705     llvm_cv_os_type="NetBSD"
3706     llvm_cv_platform_type="Unix" ;;
3707   *-*-dragonfly*)
3708     llvm_cv_link_all_option="-Wl,--whole-archive"
3709     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710     llvm_cv_os_type="DragonFly"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-*-hpux*)
3713     llvm_cv_link_all_option="-Wl,--whole-archive"
3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715     llvm_cv_os_type="HP-UX"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-*-interix*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="Interix"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-*-linux*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="Linux"
3726     llvm_cv_platform_type="Unix" ;;
3727   *-*-solaris*)
3728     llvm_cv_link_all_option="-Wl,-z,allextract"
3729     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730     llvm_cv_os_type="SunOS"
3731     llvm_cv_platform_type="Unix" ;;
3732   *-*-auroraux*)
3733     llvm_cv_link_all_option="-Wl,-z,allextract"
3734     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735     llvm_cv_os_type="AuroraUX"
3736     llvm_cv_platform_type="Unix" ;;
3737   *-*-win32*)
3738     llvm_cv_link_all_option="-Wl,--whole-archive"
3739     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740     llvm_cv_os_type="Win32"
3741     llvm_cv_platform_type="Win32" ;;
3742   *-*-mingw*)
3743     llvm_cv_link_all_option="-Wl,--whole-archive"
3744     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745     llvm_cv_os_type="MingW"
3746     llvm_cv_platform_type="Win32" ;;
3747   *-*-haiku*)
3748     llvm_cv_link_all_option="-Wl,--whole-archive"
3749     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750     llvm_cv_os_type="Haiku"
3751     llvm_cv_platform_type="Unix" ;;
3752   *-unknown-eabi*)
3753     llvm_cv_link_all_option="-Wl,--whole-archive"
3754     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755     llvm_cv_os_type="Freestanding"
3756     llvm_cv_platform_type="Unix" ;;
3757   *-unknown-elf*)
3758     llvm_cv_link_all_option="-Wl,--whole-archive"
3759     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760     llvm_cv_os_type="Freestanding"
3761     llvm_cv_platform_type="Unix" ;;
3762   *)
3763     llvm_cv_link_all_option=""
3764     llvm_cv_no_link_all_option=""
3765     llvm_cv_os_type="Unknown"
3766     llvm_cv_platform_type="Unknown" ;;
3767 esac
3768 fi
3769 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3771
3772 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774 if test "${llvm_cv_target_os_type+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   case $target in
3778   *-*-aix*)
3779     llvm_cv_target_os_type="AIX" ;;
3780   *-*-irix*)
3781     llvm_cv_target_os_type="IRIX" ;;
3782   *-*-cygwin*)
3783     llvm_cv_target_os_type="Cygwin" ;;
3784   *-*-darwin*)
3785     llvm_cv_target_os_type="Darwin" ;;
3786   *-*-minix*)
3787     llvm_cv_target_os_type="Minix" ;;
3788   *-*-freebsd*)
3789     llvm_cv_target_os_type="FreeBSD" ;;
3790   *-*-openbsd*)
3791     llvm_cv_target_os_type="OpenBSD" ;;
3792   *-*-netbsd*)
3793     llvm_cv_target_os_type="NetBSD" ;;
3794   *-*-dragonfly*)
3795     llvm_cv_target_os_type="DragonFly" ;;
3796   *-*-hpux*)
3797     llvm_cv_target_os_type="HP-UX" ;;
3798   *-*-interix*)
3799     llvm_cv_target_os_type="Interix" ;;
3800   *-*-linux*)
3801     llvm_cv_target_os_type="Linux" ;;
3802   *-*-solaris*)
3803     llvm_cv_target_os_type="SunOS" ;;
3804   *-*-auroraux*)
3805     llvm_cv_target_os_type="AuroraUX" ;;
3806   *-*-win32*)
3807     llvm_cv_target_os_type="Win32" ;;
3808   *-*-mingw*)
3809     llvm_cv_target_os_type="MingW" ;;
3810   *-*-haiku*)
3811     llvm_cv_target_os_type="Haiku" ;;
3812   *-*-rtems*)
3813     llvm_cv_target_os_type="RTEMS" ;;
3814   *-*-nacl*)
3815     llvm_cv_target_os_type="NativeClient" ;;
3816   *-unknown-eabi*)
3817     llvm_cv_target_os_type="Freestanding" ;;
3818   *)
3819     llvm_cv_target_os_type="Unknown" ;;
3820 esac
3821 fi
3822 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3824
3825 if test "$llvm_cv_os_type" = "Unknown" ; then
3826   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828    { (exit 1); exit 1; }; }
3829 fi
3830
3831 OS=$llvm_cv_os_type
3832
3833 HOST_OS=$llvm_cv_os_type
3834
3835 TARGET_OS=$llvm_cv_target_os_type
3836
3837
3838 LINKALL=$llvm_cv_link_all_option
3839
3840 NOLINKALL=$llvm_cv_no_link_all_option
3841
3842
3843 case $llvm_cv_platform_type in
3844   Unix)
3845
3846 cat >>confdefs.h <<\_ACEOF
3847 #define LLVM_ON_UNIX 1
3848 _ACEOF
3849
3850     LLVM_ON_UNIX=1
3851
3852     LLVM_ON_WIN32=0
3853
3854     ;;
3855   Win32)
3856
3857 cat >>confdefs.h <<\_ACEOF
3858 #define LLVM_ON_WIN32 1
3859 _ACEOF
3860
3861     LLVM_ON_UNIX=0
3862
3863     LLVM_ON_WIN32=1
3864
3865     ;;
3866 esac
3867
3868 { echo "$as_me:$LINENO: checking target architecture" >&5
3869 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870 if test "${llvm_cv_target_arch+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   case $target in
3874   i?86-*)                 llvm_cv_target_arch="x86" ;;
3875   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3876   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3877   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3878   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
3879   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3880   mips-*)                 llvm_cv_target_arch="Mips" ;;
3881   xcore-*)                llvm_cv_target_arch="XCore" ;;
3882   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3883   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3884   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3885   *)                      llvm_cv_target_arch="Unknown" ;;
3886 esac
3887 fi
3888 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3890
3891 if test "$llvm_cv_target_arch" = "Unknown" ; then
3892   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3894 fi
3895
3896 # Determine the LLVM native architecture for the target
3897 case "$llvm_cv_target_arch" in
3898     x86)     LLVM_NATIVE_ARCH="X86" ;;
3899     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3900     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3901 esac
3902
3903 ARCH=$llvm_cv_target_arch
3904
3905
3906
3907
3908 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   # Extract the first word of "grep ggrep" to use in msg output
3914 if test -z "$GREP"; then
3915 set dummy grep ggrep; ac_prog_name=$2
3916 if test "${ac_cv_path_GREP+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   ac_path_GREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_prog in grep ggrep; do
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930     # Check for GNU ac_path_GREP and select it if it is found.
3931   # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3933 *GNU*)
3934   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935 *)
3936   ac_count=0
3937   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3938   while :
3939   do
3940     cat "conftest.in" "conftest.in" >"conftest.tmp"
3941     mv "conftest.tmp" "conftest.in"
3942     cp "conftest.in" "conftest.nl"
3943     echo 'GREP' >> "conftest.nl"
3944     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946     ac_count=`expr $ac_count + 1`
3947     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948       # Best one so far, save it but keep looking for a better one
3949       ac_cv_path_GREP="$ac_path_GREP"
3950       ac_path_GREP_max=$ac_count
3951     fi
3952     # 10*(2^10) chars as input seems more than enough
3953     test $ac_count -gt 10 && break
3954   done
3955   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956 esac
3957
3958
3959     $ac_path_GREP_found && break 3
3960   done
3961 done
3962
3963 done
3964 IFS=$as_save_IFS
3965
3966
3967 fi
3968
3969 GREP="$ac_cv_path_GREP"
3970 if test -z "$GREP"; then
3971   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973    { (exit 1); exit 1; }; }
3974 fi
3975
3976 else
3977   ac_cv_path_GREP=$GREP
3978 fi
3979
3980
3981 fi
3982 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3984  GREP="$ac_cv_path_GREP"
3985
3986
3987 { echo "$as_me:$LINENO: checking for egrep" >&5
3988 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993    then ac_cv_path_EGREP="$GREP -E"
3994    else
3995      # Extract the first word of "egrep" to use in msg output
3996 if test -z "$EGREP"; then
3997 set dummy egrep; ac_prog_name=$2
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999   echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001   ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008   for ac_prog in egrep; do
4009   for ac_exec_ext in '' $ac_executable_extensions; do
4010     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012     # Check for GNU ac_path_EGREP and select it if it is found.
4013   # Check for GNU $ac_path_EGREP
4014 case `"$ac_path_EGREP" --version 2>&1` in
4015 *GNU*)
4016   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017 *)
4018   ac_count=0
4019   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4020   while :
4021   do
4022     cat "conftest.in" "conftest.in" >"conftest.tmp"
4023     mv "conftest.tmp" "conftest.in"
4024     cp "conftest.in" "conftest.nl"
4025     echo 'EGREP' >> "conftest.nl"
4026     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028     ac_count=`expr $ac_count + 1`
4029     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030       # Best one so far, save it but keep looking for a better one
4031       ac_cv_path_EGREP="$ac_path_EGREP"
4032       ac_path_EGREP_max=$ac_count
4033     fi
4034     # 10*(2^10) chars as input seems more than enough
4035     test $ac_count -gt 10 && break
4036   done
4037   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038 esac
4039
4040
4041     $ac_path_EGREP_found && break 3
4042   done
4043 done
4044
4045 done
4046 IFS=$as_save_IFS
4047
4048
4049 fi
4050
4051 EGREP="$ac_cv_path_EGREP"
4052 if test -z "$EGREP"; then
4053   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055    { (exit 1); exit 1; }; }
4056 fi
4057
4058 else
4059   ac_cv_path_EGREP=$EGREP
4060 fi
4061
4062
4063    fi
4064 fi
4065 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4067  EGREP="$ac_cv_path_EGREP"
4068
4069
4070 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072 if test "${ac_cv_header_stdc+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081 #include <stdlib.h>
4082 #include <stdarg.h>
4083 #include <string.h>
4084 #include <float.h>
4085
4086 int
4087 main ()
4088 {
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4096 case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101   (eval "$ac_compile") 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } &&
4108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109   { (case "(($ac_try" in
4110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111   *) ac_try_echo=$ac_try;;
4112 esac
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114   (eval "$ac_try") 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_try") 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   ac_cv_header_stdc=yes
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133         ac_cv_header_stdc=no
4134 fi
4135
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137
4138 if test $ac_cv_header_stdc = yes; then
4139   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <string.h>
4147
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150   $EGREP "memchr" >/dev/null 2>&1; then
4151   :
4152 else
4153   ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest*
4156
4157 fi
4158
4159 if test $ac_cv_header_stdc = yes; then
4160   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <stdlib.h>
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "free" >/dev/null 2>&1; then
4172   :
4173 else
4174   ac_cv_header_stdc=no
4175 fi
4176 rm -f conftest*
4177
4178 fi
4179
4180 if test $ac_cv_header_stdc = yes; then
4181   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182   if test "$cross_compiling" = yes; then
4183   :
4184 else
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #include <ctype.h>
4192 #include <stdlib.h>
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196 #else
4197 # define ISLOWER(c) \
4198                    (('a' <= (c) && (c) <= 'i') \
4199                      || ('j' <= (c) && (c) <= 'r') \
4200                      || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202 #endif
4203
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205 int
4206 main ()
4207 {
4208   int i;
4209   for (i = 0; i < 256; i++)
4210     if (XOR (islower (i), ISLOWER (i))
4211         || toupper (i) != TOUPPER (i))
4212       return 2;
4213   return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4218 case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223   (eval "$ac_link") 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227   { (case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_try") 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236   :
4237 else
4238   echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ( exit $ac_status )
4243 ac_cv_header_stdc=no
4244 fi
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4246 fi
4247
4248
4249 fi
4250 fi
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4254
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4257 _ACEOF
4258
4259 fi
4260
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272                   inttypes.h stdint.h unistd.h
4273 do
4274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286 $ac_includes_default
4287
4288 #include <$ac_header>
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4292 case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297   (eval "$ac_compile") 2>conftest.er1
4298   ac_status=$?
4299   grep -v '^ *+' conftest.er1 >conftest.err
4300   rm -f conftest.er1
4301   cat conftest.err >&5
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); } &&
4304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305   { (case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_try") 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }; } &&
4314          { ac_try='test -s conftest.$ac_objext'
4315   { (case "(($ac_try" in
4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317   *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320   (eval "$ac_try") 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324   eval "$as_ac_Header=yes"
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329         eval "$as_ac_Header=no"
4330 fi
4331
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 fi
4334 ac_res=`eval echo '${'$as_ac_Header'}'`
4335                { echo "$as_me:$LINENO: result: $ac_res" >&5
4336 echo "${ECHO_T}$ac_res" >&6; }
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338   cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340 _ACEOF
4341
4342 fi
4343
4344 done
4345
4346
4347 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_bigendian+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   # See if sys/param.h defines the BYTE_ORDER macro.
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #include <sys/types.h>
4360 #include <sys/param.h>
4361
4362 int
4363 main ()
4364 {
4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4366  bogus endian macros
4367 #endif
4368
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380   (eval "$ac_compile") 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388   { (case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393   (eval "$ac_try") 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; } &&
4397          { ac_try='test -s conftest.$ac_objext'
4398   { (case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   # It does; now see whether it defined to BIG_ENDIAN or not.
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414 #include <sys/types.h>
4415 #include <sys/param.h>
4416
4417 int
4418 main ()
4419 {
4420 #if BYTE_ORDER != BIG_ENDIAN
4421  not big endian
4422 #endif
4423
4424   ;
4425   return 0;
4426 }
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4430 case "(($ac_try" in
4431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432   *) ac_try_echo=$ac_try;;
4433 esac
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435   (eval "$ac_compile") 2>conftest.er1
4436   ac_status=$?
4437   grep -v '^ *+' conftest.er1 >conftest.err
4438   rm -f conftest.er1
4439   cat conftest.err >&5
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); } &&
4442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443   { (case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448   (eval "$ac_try") 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; } &&
4452          { ac_try='test -s conftest.$ac_objext'
4453   { (case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458   (eval "$ac_try") 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; }; then
4462   ac_cv_c_bigendian=yes
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467         ac_cv_c_bigendian=no
4468 fi
4469
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 else
4472   echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475         # It does not; compile a test program.
4476 if test "$cross_compiling" = yes; then
4477   # try to guess the endianness by grepping values into an object file
4478   ac_cv_c_bigendian=unknown
4479   cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4491 int
4492 main ()
4493 {
4494  _ascii (); _ebcdic ();
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 rm -f conftest.$ac_objext
4500 if { (ac_try="$ac_compile"
4501 case "(($ac_try" in
4502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503   *) ac_try_echo=$ac_try;;
4504 esac
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506   (eval "$ac_compile") 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } &&
4513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514   { (case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519   (eval "$ac_try") 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; } &&
4523          { ac_try='test -s conftest.$ac_objext'
4524   { (case "(($ac_try" in
4525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526   *) ac_try_echo=$ac_try;;
4527 esac
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529   (eval "$ac_try") 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; }; then
4533   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4534   ac_cv_c_bigendian=yes
4535 fi
4536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537   if test "$ac_cv_c_bigendian" = unknown; then
4538     ac_cv_c_bigendian=no
4539   else
4540     # finding both strings is unlikely to happen, but who knows?
4541     ac_cv_c_bigendian=unknown
4542   fi
4543 fi
4544 else
4545   echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548
4549 fi
4550
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 else
4553   cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h.  */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h.  */
4559 $ac_includes_default
4560 int
4561 main ()
4562 {
4563
4564   /* Are we little or big endian?  From Harbison&Steele.  */
4565   union
4566   {
4567     long int l;
4568     char c[sizeof (long int)];
4569   } u;
4570   u.l = 1;
4571   return u.c[sizeof (long int) - 1] == 1;
4572
4573   ;
4574   return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584   (eval "$ac_link") 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588   { (case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   ac_cv_c_bigendian=no
4598 else
4599   echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603 ( exit $ac_status )
4604 ac_cv_c_bigendian=yes
4605 fi
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4607 fi
4608
4609
4610 fi
4611
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616 case $ac_cv_c_bigendian in
4617   yes)
4618     ENDIAN=big
4619  ;;
4620   no)
4621     ENDIAN=little
4622  ;;
4623   *)
4624     { { echo "$as_me:$LINENO: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626 echo "$as_me: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628    { (exit 1); exit 1; }; } ;;
4629 esac
4630
4631
4632 if test "$cross_compiling" = yes; then
4633   LLVM_CROSS_COMPILING=1
4634
4635
4636 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638 if test "${ac_cv_build_exeext+set}" = set; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642   ac_cv_build_exeext=.exe
4643 else
4644   ac_build_prefix=${build_alias}-
4645
4646   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647 set dummy ${ac_build_prefix}gcc; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   if test -n "$BUILD_CC"; then
4654   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661   for ac_exec_ext in '' $ac_executable_extensions; do
4662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665     break 2
4666   fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 BUILD_CC=$ac_cv_prog_BUILD_CC
4674 if test -n "$BUILD_CC"; then
4675   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676 echo "${ECHO_T}$BUILD_CC" >&6; }
4677 else
4678   { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680 fi
4681
4682
4683   if test -z "$BUILD_CC"; then
4684      # Extract the first word of "gcc", so it can be a program name with args.
4685 set dummy gcc; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   if test -n "$BUILD_CC"; then
4692   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699   for ac_exec_ext in '' $ac_executable_extensions; do
4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4701     ac_cv_prog_BUILD_CC="gcc"
4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 BUILD_CC=$ac_cv_prog_BUILD_CC
4712 if test -n "$BUILD_CC"; then
4713   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714 echo "${ECHO_T}$BUILD_CC" >&6; }
4715 else
4716   { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4718 fi
4719
4720
4721      if test -z "$BUILD_CC"; then
4722        # Extract the first word of "cc", so it can be a program name with args.
4723 set dummy cc; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   if test -n "$BUILD_CC"; then
4730   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4731 else
4732   ac_prog_rejected=no
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738   for ac_exec_ext in '' $ac_executable_extensions; do
4739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741        ac_prog_rejected=yes
4742        continue
4743      fi
4744     ac_cv_prog_BUILD_CC="cc"
4745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752 if test $ac_prog_rejected = yes; then
4753   # We found a bogon in the path, so make sure we never use it.
4754   set dummy $ac_cv_prog_BUILD_CC
4755   shift
4756   if test $# != 0; then
4757     # We chose a different compiler from the bogus one.
4758     # However, it has the same basename, so the bogon will be chosen
4759     # first if we set BUILD_CC to just the basename; use the full file name.
4760     shift
4761     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4762   fi
4763 fi
4764 fi
4765 fi
4766 BUILD_CC=$ac_cv_prog_BUILD_CC
4767 if test -n "$BUILD_CC"; then
4768   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769 echo "${ECHO_T}$BUILD_CC" >&6; }
4770 else
4771   { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4773 fi
4774
4775
4776      fi
4777   fi
4778   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780    { (exit 1); exit 1; }; }
4781   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782   rm -f conftest*
4783   echo 'int main () { return 0; }' > conftest.$ac_ext
4784   ac_cv_build_exeext=
4785   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4786   (eval $ac_build_link) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; then
4790     for file in conftest.*; do
4791       case $file in
4792       *.c | *.o | *.obj | *.dSYM) ;;
4793       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4794       esac
4795     done
4796   else
4797     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799    { (exit 1); exit 1; }; }
4800   fi
4801   rm -f conftest*
4802   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4803 fi
4804 fi
4805
4806 BUILD_EXEEXT=""
4807 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4808 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4810 ac_build_exeext=$BUILD_EXEEXT
4811
4812   ac_build_prefix=${build_alias}-
4813   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}g++; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   if test -n "$BUILD_CXX"; then
4821   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828   for ac_exec_ext in '' $ac_executable_extensions; do
4829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841 if test -n "$BUILD_CXX"; then
4842   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843 echo "${ECHO_T}$BUILD_CXX" >&6; }
4844 else
4845   { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4847 fi
4848
4849
4850   if test -z "$BUILD_CXX"; then
4851      # Extract the first word of "g++", so it can be a program name with args.
4852 set dummy g++; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   if test -n "$BUILD_CXX"; then
4859   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_BUILD_CXX="g++"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879 if test -n "$BUILD_CXX"; then
4880   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881 echo "${ECHO_T}$BUILD_CXX" >&6; }
4882 else
4883   { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4885 fi
4886
4887
4888      if test -z "$BUILD_CXX"; then
4889        # Extract the first word of "c++", so it can be a program name with args.
4890 set dummy c++; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   if test -n "$BUILD_CXX"; then
4897   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4898 else
4899   ac_prog_rejected=no
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_exec_ext in '' $ac_executable_extensions; do
4906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908        ac_prog_rejected=yes
4909        continue
4910      fi
4911     ac_cv_prog_BUILD_CXX="c++"
4912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916 done
4917 IFS=$as_save_IFS
4918
4919 if test $ac_prog_rejected = yes; then
4920   # We found a bogon in the path, so make sure we never use it.
4921   set dummy $ac_cv_prog_BUILD_CXX
4922   shift
4923   if test $# != 0; then
4924     # We chose a different compiler from the bogus one.
4925     # However, it has the same basename, so the bogon will be chosen
4926     # first if we set BUILD_CXX to just the basename; use the full file name.
4927     shift
4928     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4929   fi
4930 fi
4931 fi
4932 fi
4933 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934 if test -n "$BUILD_CXX"; then
4935   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936 echo "${ECHO_T}$BUILD_CXX" >&6; }
4937 else
4938   { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4940 fi
4941
4942
4943      fi
4944   fi
4945 else
4946   LLVM_CROSS_COMPILING=0
4947
4948 fi
4949
4950 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4951   cvsbuild="yes"
4952   optimize="no"
4953   CVSBUILD=CVSBUILD=1
4954
4955 else
4956   cvsbuild="no"
4957   optimize="yes"
4958 fi
4959
4960
4961 # Check whether --enable-optimized was given.
4962 if test "${enable_optimized+set}" = set; then
4963   enableval=$enable_optimized;
4964 else
4965   enableval=$optimize
4966 fi
4967
4968 if test ${enableval} = "no" ; then
4969   ENABLE_OPTIMIZED=
4970
4971 else
4972   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4973
4974 fi
4975
4976 # Check whether --enable-profiling was given.
4977 if test "${enable_profiling+set}" = set; then
4978   enableval=$enable_profiling;
4979 else
4980   enableval="no"
4981 fi
4982
4983 if test ${enableval} = "no" ; then
4984   ENABLE_PROFILING=
4985
4986 else
4987   ENABLE_PROFILING=ENABLE_PROFILING=1
4988
4989 fi
4990
4991 # Check whether --enable-assertions was given.
4992 if test "${enable_assertions+set}" = set; then
4993   enableval=$enable_assertions;
4994 else
4995   enableval="yes"
4996 fi
4997
4998 if test ${enableval} = "yes" ; then
4999   DISABLE_ASSERTIONS=
5000
5001 else
5002   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5003
5004 fi
5005
5006 # Check whether --enable-expensive-checks was given.
5007 if test "${enable_expensive_checks+set}" = set; then
5008   enableval=$enable_expensive_checks;
5009 else
5010   enableval="no"
5011 fi
5012
5013 if test ${enableval} = "yes" ; then
5014   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5015
5016   EXPENSIVE_CHECKS=yes
5017
5018 else
5019   ENABLE_EXPENSIVE_CHECKS=
5020
5021   EXPENSIVE_CHECKS=no
5022
5023 fi
5024
5025 # Check whether --enable-debug-runtime was given.
5026 if test "${enable_debug_runtime+set}" = set; then
5027   enableval=$enable_debug_runtime;
5028 else
5029   enableval=no
5030 fi
5031
5032 if test ${enableval} = "no" ; then
5033   DEBUG_RUNTIME=
5034
5035 else
5036   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5037
5038 fi
5039
5040 # Check whether --enable-debug-symbols was given.
5041 if test "${enable_debug_symbols+set}" = set; then
5042   enableval=$enable_debug_symbols;
5043 else
5044   enableval=no
5045 fi
5046
5047 if test ${enableval} = "no" ; then
5048   DEBUG_SYMBOLS=
5049
5050 else
5051   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5052
5053 fi
5054
5055 # Check whether --enable-jit was given.
5056 if test "${enable_jit+set}" = set; then
5057   enableval=$enable_jit;
5058 else
5059   enableval=default
5060 fi
5061
5062 if test ${enableval} = "no"
5063 then
5064   JIT=
5065
5066 else
5067   case "$llvm_cv_target_arch" in
5068     x86)         TARGET_HAS_JIT=1
5069  ;;
5070     Sparc)       TARGET_HAS_JIT=0
5071  ;;
5072     PowerPC)     TARGET_HAS_JIT=1
5073  ;;
5074     x86_64)      TARGET_HAS_JIT=1
5075  ;;
5076     Alpha)       TARGET_HAS_JIT=0
5077  ;;
5078     ARM)         TARGET_HAS_JIT=1
5079  ;;
5080     Mips)        TARGET_HAS_JIT=1
5081  ;;
5082     XCore)       TARGET_HAS_JIT=0
5083  ;;
5084     MSP430)      TARGET_HAS_JIT=0
5085  ;;
5086     MBlaze)      TARGET_HAS_JIT=0
5087  ;;
5088     PTX)         TARGET_HAS_JIT=0
5089  ;;
5090     *)           TARGET_HAS_JIT=0
5091  ;;
5092   esac
5093 fi
5094
5095 # Check whether --enable-docs was given.
5096 if test "${enable_docs+set}" = set; then
5097   enableval=$enable_docs;
5098 else
5099   enableval=default
5100 fi
5101
5102 case "$enableval" in
5103   yes) ENABLE_DOCS=1
5104  ;;
5105   no)  ENABLE_DOCS=0
5106  ;;
5107   default) ENABLE_DOCS=1
5108  ;;
5109   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5110 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5111    { (exit 1); exit 1; }; } ;;
5112 esac
5113
5114 # Check whether --enable-doxygen was given.
5115 if test "${enable_doxygen+set}" = set; then
5116   enableval=$enable_doxygen;
5117 else
5118   enableval=default
5119 fi
5120
5121 case "$enableval" in
5122   yes) ENABLE_DOXYGEN=1
5123  ;;
5124   no)  ENABLE_DOXYGEN=0
5125  ;;
5126   default) ENABLE_DOXYGEN=0
5127  ;;
5128   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5130    { (exit 1); exit 1; }; } ;;
5131 esac
5132
5133 # Check whether --enable-threads was given.
5134 if test "${enable_threads+set}" = set; then
5135   enableval=$enable_threads;
5136 else
5137   enableval=default
5138 fi
5139
5140 case "$enableval" in
5141   yes) ENABLE_THREADS=1
5142  ;;
5143   no)  ENABLE_THREADS=0
5144  ;;
5145   default) ENABLE_THREADS=1
5146  ;;
5147   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5148 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5149    { (exit 1); exit 1; }; } ;;
5150 esac
5151
5152 cat >>confdefs.h <<_ACEOF
5153 #define ENABLE_THREADS $ENABLE_THREADS
5154 _ACEOF
5155
5156
5157 # Check whether --enable-pthreads was given.
5158 if test "${enable_pthreads+set}" = set; then
5159   enableval=$enable_pthreads;
5160 else
5161   enableval=default
5162 fi
5163
5164 case "$enableval" in
5165   yes) ENABLE_PTHREADS=1
5166  ;;
5167   no)  ENABLE_PTHREADS=0
5168  ;;
5169   default) ENABLE_PTHREADS=1
5170  ;;
5171   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5172 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5173    { (exit 1); exit 1; }; } ;;
5174 esac
5175
5176 # Check whether --enable-pic was given.
5177 if test "${enable_pic+set}" = set; then
5178   enableval=$enable_pic;
5179 else
5180   enableval=default
5181 fi
5182
5183 case "$enableval" in
5184   yes) ENABLE_PIC=1
5185  ;;
5186   no)  ENABLE_PIC=0
5187  ;;
5188   default) ENABLE_PIC=1
5189  ;;
5190   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5191 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5192    { (exit 1); exit 1; }; } ;;
5193 esac
5194
5195 cat >>confdefs.h <<_ACEOF
5196 #define ENABLE_PIC $ENABLE_PIC
5197 _ACEOF
5198
5199
5200 # Check whether --enable-shared was given.
5201 if test "${enable_shared+set}" = set; then
5202   enableval=$enable_shared;
5203 else
5204   enableval=default
5205 fi
5206
5207 case "$enableval" in
5208   yes) ENABLE_SHARED=1
5209  ;;
5210   no)  ENABLE_SHARED=0
5211  ;;
5212   default) ENABLE_SHARED=0
5213  ;;
5214   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5215 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5216    { (exit 1); exit 1; }; } ;;
5217 esac
5218
5219 # Check whether --enable-embed-stdcxx was given.
5220 if test "${enable_embed_stdcxx+set}" = set; then
5221   enableval=$enable_embed_stdcxx;
5222 else
5223   enableval=default
5224 fi
5225
5226 case "$enableval" in
5227   yes) ENABLE_EMBED_STDCXX=1
5228  ;;
5229   no)  ENABLE_EMBED_STDCXX=0
5230  ;;
5231   default) ENABLE_EMBED_STDCXX=0
5232  ;;
5233   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5234 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5235    { (exit 1); exit 1; }; } ;;
5236 esac
5237
5238 # Check whether --enable-timestamps was given.
5239 if test "${enable_timestamps+set}" = set; then
5240   enableval=$enable_timestamps;
5241 else
5242   enableval=default
5243 fi
5244
5245 case "$enableval" in
5246   yes) ENABLE_TIMESTAMPS=1
5247  ;;
5248   no)  ENABLE_TIMESTAMPS=0
5249  ;;
5250   default) ENABLE_TIMESTAMPS=1
5251  ;;
5252   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5253 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5254    { (exit 1); exit 1; }; } ;;
5255 esac
5256
5257 cat >>confdefs.h <<_ACEOF
5258 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5259 _ACEOF
5260
5261
5262 TARGETS_TO_BUILD=""
5263 # Check whether --enable-targets was given.
5264 if test "${enable_targets+set}" = set; then
5265   enableval=$enable_targets;
5266 else
5267   enableval=all
5268 fi
5269
5270 if test "$enableval" = host-only ; then
5271   enableval=host
5272 fi
5273 case "$enableval" in
5274   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5275   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5276       case "$a_target" in
5277         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5279         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5280         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5281         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5282         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5283         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5284         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5285         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5287         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5288         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5289         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5290         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5291         host) case "$llvm_cv_target_arch" in
5292             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5294             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5295             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5296             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5297             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5298             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5299             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5300             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5301             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5302             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5303             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5304             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5305 echo "$as_me: error: Can not set target to build" >&2;}
5306    { (exit 1); exit 1; }; } ;;
5307           esac ;;
5308         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5309 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5310    { (exit 1); exit 1; }; } ;;
5311       esac
5312   done
5313   ;;
5314 esac
5315 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5316
5317
5318 # Determine whether we are building LLVM support for the native architecture.
5319 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5320 for a_target in $TARGETS_TO_BUILD; do
5321   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5322
5323 cat >>confdefs.h <<_ACEOF
5324 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5325 _ACEOF
5326
5327     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5328     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5329     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5330     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5331     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5332       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5333     fi
5334
5335 cat >>confdefs.h <<_ACEOF
5336 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5337 _ACEOF
5338
5339
5340 cat >>confdefs.h <<_ACEOF
5341 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5342 _ACEOF
5343
5344
5345 cat >>confdefs.h <<_ACEOF
5346 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5347 _ACEOF
5348
5349
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5352 _ACEOF
5353
5354     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5355
5356 cat >>confdefs.h <<_ACEOF
5357 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5358 _ACEOF
5359
5360     fi
5361   fi
5362 done
5363
5364 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5365 # target feature def files.
5366 LLVM_ENUM_TARGETS=""
5367 LLVM_ENUM_ASM_PRINTERS=""
5368 LLVM_ENUM_ASM_PARSERS=""
5369 LLVM_ENUM_DISASSEMBLERS=""
5370 for target_to_build in $TARGETS_TO_BUILD; do
5371   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5372   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5373     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5374   fi
5375   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5376     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5377   fi
5378   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5379     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5380   fi
5381 done
5382
5383
5384
5385
5386
5387 # Check whether --enable-cbe-printf-a was given.
5388 if test "${enable_cbe_printf_a+set}" = set; then
5389   enableval=$enable_cbe_printf_a;
5390 else
5391   enableval=default
5392 fi
5393
5394 case "$enableval" in
5395   yes) ENABLE_CBE_PRINTF_A=1
5396  ;;
5397   no)  ENABLE_CBE_PRINTF_A=0
5398  ;;
5399   default)  ENABLE_CBE_PRINTF_A=1
5400  ;;
5401   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5402 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5403    { (exit 1); exit 1; }; } ;;
5404 esac
5405
5406 cat >>confdefs.h <<_ACEOF
5407 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5408 _ACEOF
5409
5410
5411
5412 # Check whether --with-optimize-option was given.
5413 if test "${with_optimize_option+set}" = set; then
5414   withval=$with_optimize_option;
5415 else
5416   withval=default
5417 fi
5418
5419 { echo "$as_me:$LINENO: checking optimization flags" >&5
5420 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5421 case "$withval" in
5422   default)
5423     case "$llvm_cv_os_type" in
5424     FreeBSD) optimize_option=-O2 ;;
5425     MingW) optimize_option=-O2 ;;
5426     *)     optimize_option=-O3 ;;
5427     esac ;;
5428   *) optimize_option="$withval" ;;
5429 esac
5430 OPTIMIZE_OPTION=$optimize_option
5431
5432 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5433 echo "${ECHO_T}$optimize_option" >&6; }
5434
5435
5436 # Check whether --with-extra-options was given.
5437 if test "${with_extra_options+set}" = set; then
5438   withval=$with_extra_options;
5439 else
5440   withval=default
5441 fi
5442
5443 case "$withval" in
5444   default) EXTRA_OPTIONS= ;;
5445   *) EXTRA_OPTIONS=$withval ;;
5446 esac
5447 EXTRA_OPTIONS=$EXTRA_OPTIONS
5448
5449
5450
5451 # Check whether --with-extra-ld-options was given.
5452 if test "${with_extra_ld_options+set}" = set; then
5453   withval=$with_extra_ld_options;
5454 else
5455   withval=default
5456 fi
5457
5458 case "$withval" in
5459   default) EXTRA_LD_OPTIONS= ;;
5460   *) EXTRA_LD_OPTIONS=$withval ;;
5461 esac
5462 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5463
5464
5465 # Check whether --enable-bindings was given.
5466 if test "${enable_bindings+set}" = set; then
5467   enableval=$enable_bindings;
5468 else
5469   enableval=default
5470 fi
5471
5472 BINDINGS_TO_BUILD=""
5473 case "$enableval" in
5474   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5475   all ) BINDINGS_TO_BUILD="ocaml" ;;
5476   none | no) BINDINGS_TO_BUILD="" ;;
5477   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5478       case "$a_binding" in
5479         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5480         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5481 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5482    { (exit 1); exit 1; }; } ;;
5483       esac
5484   done
5485   ;;
5486 esac
5487
5488
5489 # Check whether --with-ocaml-libdir was given.
5490 if test "${with_ocaml_libdir+set}" = set; then
5491   withval=$with_ocaml_libdir;
5492 else
5493   withval=auto
5494 fi
5495
5496 case "$withval" in
5497   auto) with_ocaml_libdir="$withval" ;;
5498   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5499   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5500 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5501    { (exit 1); exit 1; }; } ;;
5502 esac
5503
5504
5505 # Check whether --with-clang-srcdir was given.
5506 if test "${with_clang_srcdir+set}" = set; then
5507   withval=$with_clang_srcdir;
5508 else
5509   withval="-"
5510 fi
5511
5512 case "$withval" in
5513   -) clang_src_root="" ;;
5514   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5515   *) clang_src_root="$ac_pwd/$withval" ;;
5516 esac
5517 CLANG_SRC_ROOT=$clang_src_root
5518
5519
5520
5521 # Check whether --with-clang-resource-dir was given.
5522 if test "${with_clang_resource_dir+set}" = set; then
5523   withval=$with_clang_resource_dir;
5524 else
5525   withval=""
5526 fi
5527
5528
5529 cat >>confdefs.h <<_ACEOF
5530 #define CLANG_RESOURCE_DIR "$withval"
5531 _ACEOF
5532
5533
5534
5535 # Check whether --with-c-include-dirs was given.
5536 if test "${with_c_include_dirs+set}" = set; then
5537   withval=$with_c_include_dirs;
5538 else
5539   withval=""
5540 fi
5541
5542
5543 cat >>confdefs.h <<_ACEOF
5544 #define C_INCLUDE_DIRS "$withval"
5545 _ACEOF
5546
5547
5548
5549 # Check whether --with-cxx-include-root was given.
5550 if test "${with_cxx_include_root+set}" = set; then
5551   withval=$with_cxx_include_root;
5552 else
5553   withval=""
5554 fi
5555
5556
5557 cat >>confdefs.h <<_ACEOF
5558 #define CXX_INCLUDE_ROOT "$withval"
5559 _ACEOF
5560
5561
5562
5563 # Check whether --with-cxx-include-arch was given.
5564 if test "${with_cxx_include_arch+set}" = set; then
5565   withval=$with_cxx_include_arch;
5566 else
5567   withval=""
5568 fi
5569
5570
5571 cat >>confdefs.h <<_ACEOF
5572 #define CXX_INCLUDE_ARCH "$withval"
5573 _ACEOF
5574
5575
5576
5577 # Check whether --with-cxx-include-32bit-dir was given.
5578 if test "${with_cxx_include_32bit_dir+set}" = set; then
5579   withval=$with_cxx_include_32bit_dir;
5580 else
5581   withval=""
5582 fi
5583
5584
5585 cat >>confdefs.h <<_ACEOF
5586 #define CXX_INCLUDE_32BIT_DIR "$withval"
5587 _ACEOF
5588
5589
5590
5591 # Check whether --with-cxx-include-64bit-dir was given.
5592 if test "${with_cxx_include_64bit_dir+set}" = set; then
5593   withval=$with_cxx_include_64bit_dir;
5594 else
5595   withval=""
5596 fi
5597
5598
5599 cat >>confdefs.h <<_ACEOF
5600 #define CXX_INCLUDE_64BIT_DIR "$withval"
5601 _ACEOF
5602
5603
5604
5605 # Check whether --with-binutils-include was given.
5606 if test "${with_binutils_include+set}" = set; then
5607   withval=$with_binutils_include;
5608 else
5609   withval=default
5610 fi
5611
5612 case "$withval" in
5613   default) WITH_BINUTILS_INCDIR=default ;;
5614   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5615   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5616 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5617    { (exit 1); exit 1; }; } ;;
5618 esac
5619 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5620   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5621
5622   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5623      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5624      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5625 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5626    { (exit 1); exit 1; }; };
5627   fi
5628 fi
5629
5630
5631 # Check whether --with-bug-report-url was given.
5632 if test "${with_bug_report_url+set}" = set; then
5633   withval=$with_bug_report_url;
5634 else
5635   withval="http://llvm.org/bugs/"
5636 fi
5637
5638
5639 cat >>confdefs.h <<_ACEOF
5640 #define BUG_REPORT_URL "$withval"
5641 _ACEOF
5642
5643
5644 # Check whether --enable-libffi was given.
5645 if test "${enable_libffi+set}" = set; then
5646   enableval=$enable_libffi; case "$enableval" in
5647     yes) llvm_cv_enable_libffi="yes" ;;
5648     no)  llvm_cv_enable_libffi="no"  ;;
5649     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5650 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5651    { (exit 1); exit 1; }; } ;;
5652   esac
5653 else
5654   llvm_cv_enable_libffi=no
5655 fi
5656
5657
5658
5659 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5660 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5661 if test "${lt_cv_path_NM+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   if test -n "$NM"; then
5665   # Let the user override the test.
5666   lt_cv_path_NM="$NM"
5667 else
5668   lt_nm_to_check="${ac_tool_prefix}nm"
5669   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5670     lt_nm_to_check="$lt_nm_to_check nm"
5671   fi
5672   for lt_tmp_nm in $lt_nm_to_check; do
5673     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5674     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5675       IFS="$lt_save_ifs"
5676       test -z "$ac_dir" && ac_dir=.
5677       tmp_nm="$ac_dir/$lt_tmp_nm"
5678       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5679         # Check to see if the nm accepts a BSD-compat flag.
5680         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5681         #   nm: unknown option "B" ignored
5682         # Tru64's nm complains that /dev/null is an invalid object file
5683         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5684         */dev/null* | *'Invalid file or object type'*)
5685           lt_cv_path_NM="$tmp_nm -B"
5686           break
5687           ;;
5688         *)
5689           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5690           */dev/null*)
5691             lt_cv_path_NM="$tmp_nm -p"
5692             break
5693             ;;
5694           *)
5695             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696             continue # so that we can try to find one that supports BSD flags
5697             ;;
5698           esac
5699           ;;
5700         esac
5701       fi
5702     done
5703     IFS="$lt_save_ifs"
5704   done
5705   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5706 fi
5707 fi
5708 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5709 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5710 NM="$lt_cv_path_NM"
5711
5712
5713
5714 { echo "$as_me:$LINENO: checking for GNU make" >&5
5715 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5716 if test "${llvm_cv_gnu_make_command+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   llvm_cv_gnu_make_command=''
5720  for a in "$MAKE" make gmake gnumake ; do
5721   if test -z "$a" ; then continue ; fi ;
5722   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5723   then
5724    llvm_cv_gnu_make_command=$a ;
5725    break;
5726   fi
5727  done
5728 fi
5729 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5730 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5731  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5732    ifGNUmake='' ;
5733  else
5734    ifGNUmake='#' ;
5735    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5736 echo "${ECHO_T}\"Not found\"" >&6; };
5737  fi
5738
5739
5740 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5741 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5742 LN_S=$as_ln_s
5743 if test "$LN_S" = "ln -s"; then
5744   { echo "$as_me:$LINENO: result: yes" >&5
5745 echo "${ECHO_T}yes" >&6; }
5746 else
5747   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5748 echo "${ECHO_T}no, using $LN_S" >&6; }
5749 fi
5750
5751 # Extract the first word of "cmp", so it can be a program name with args.
5752 set dummy cmp; ac_word=$2
5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755 if test "${ac_cv_path_CMP+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   case $CMP in
5759   [\\/]* | ?:[\\/]*)
5760   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5761   ;;
5762   *)
5763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768   for ac_exec_ext in '' $ac_executable_extensions; do
5769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5779   ;;
5780 esac
5781 fi
5782 CMP=$ac_cv_path_CMP
5783 if test -n "$CMP"; then
5784   { echo "$as_me:$LINENO: result: $CMP" >&5
5785 echo "${ECHO_T}$CMP" >&6; }
5786 else
5787   { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5789 fi
5790
5791
5792 # Extract the first word of "cp", so it can be a program name with args.
5793 set dummy cp; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_path_CP+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   case $CP in
5800   [\\/]* | ?:[\\/]*)
5801   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5802   ;;
5803   *)
5804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5820   ;;
5821 esac
5822 fi
5823 CP=$ac_cv_path_CP
5824 if test -n "$CP"; then
5825   { echo "$as_me:$LINENO: result: $CP" >&5
5826 echo "${ECHO_T}$CP" >&6; }
5827 else
5828   { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5830 fi
5831
5832
5833 # Extract the first word of "date", so it can be a program name with args.
5834 set dummy date; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_path_DATE+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   case $DATE in
5841   [\\/]* | ?:[\\/]*)
5842   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5843   ;;
5844   *)
5845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850   for ac_exec_ext in '' $ac_executable_extensions; do
5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857 done
5858 IFS=$as_save_IFS
5859
5860   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5861   ;;
5862 esac
5863 fi
5864 DATE=$ac_cv_path_DATE
5865 if test -n "$DATE"; then
5866   { echo "$as_me:$LINENO: result: $DATE" >&5
5867 echo "${ECHO_T}$DATE" >&6; }
5868 else
5869   { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5871 fi
5872
5873
5874 # Extract the first word of "find", so it can be a program name with args.
5875 set dummy find; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_path_FIND+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   case $FIND in
5882   [\\/]* | ?:[\\/]*)
5883   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5884   ;;
5885   *)
5886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889   IFS=$as_save_IFS
5890   test -z "$as_dir" && as_dir=.
5891   for ac_exec_ext in '' $ac_executable_extensions; do
5892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895     break 2
5896   fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5902   ;;
5903 esac
5904 fi
5905 FIND=$ac_cv_path_FIND
5906 if test -n "$FIND"; then
5907   { echo "$as_me:$LINENO: result: $FIND" >&5
5908 echo "${ECHO_T}$FIND" >&6; }
5909 else
5910   { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5912 fi
5913
5914
5915 # Extract the first word of "grep", so it can be a program name with args.
5916 set dummy grep; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_GREP+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   case $GREP in
5923   [\\/]* | ?:[\\/]*)
5924   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5925   ;;
5926   *)
5927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   for ac_exec_ext in '' $ac_executable_extensions; do
5933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5943   ;;
5944 esac
5945 fi
5946 GREP=$ac_cv_path_GREP
5947 if test -n "$GREP"; then
5948   { echo "$as_me:$LINENO: result: $GREP" >&5
5949 echo "${ECHO_T}$GREP" >&6; }
5950 else
5951   { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5953 fi
5954
5955
5956 # Extract the first word of "mkdir", so it can be a program name with args.
5957 set dummy mkdir; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_path_MKDIR+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   case $MKDIR in
5964   [\\/]* | ?:[\\/]*)
5965   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5966   ;;
5967   *)
5968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5984   ;;
5985 esac
5986 fi
5987 MKDIR=$ac_cv_path_MKDIR
5988 if test -n "$MKDIR"; then
5989   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5990 echo "${ECHO_T}$MKDIR" >&6; }
5991 else
5992   { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5994 fi
5995
5996
5997 # Extract the first word of "mv", so it can be a program name with args.
5998 set dummy mv; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_path_MV+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   case $MV in
6005   [\\/]* | ?:[\\/]*)
6006   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6007   ;;
6008   *)
6009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6016     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6025   ;;
6026 esac
6027 fi
6028 MV=$ac_cv_path_MV
6029 if test -n "$MV"; then
6030   { echo "$as_me:$LINENO: result: $MV" >&5
6031 echo "${ECHO_T}$MV" >&6; }
6032 else
6033   { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6035 fi
6036
6037
6038 if test -n "$ac_tool_prefix"; then
6039   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_RANLIB+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   if test -n "$RANLIB"; then
6047   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054   for ac_exec_ext in '' $ac_executable_extensions; do
6055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6056     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058     break 2
6059   fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 RANLIB=$ac_cv_prog_RANLIB
6067 if test -n "$RANLIB"; then
6068   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6069 echo "${ECHO_T}$RANLIB" >&6; }
6070 else
6071   { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6073 fi
6074
6075
6076 fi
6077 if test -z "$ac_cv_prog_RANLIB"; then
6078   ac_ct_RANLIB=$RANLIB
6079   # Extract the first word of "ranlib", so it can be a program name with args.
6080 set dummy ranlib; ac_word=$2
6081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   if test -n "$ac_ct_RANLIB"; then
6087   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094   for ac_exec_ext in '' $ac_executable_extensions; do
6095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096     ac_cv_prog_ac_ct_RANLIB="ranlib"
6097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098     break 2
6099   fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6107 if test -n "$ac_ct_RANLIB"; then
6108   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6109 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6110 else
6111   { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6113 fi
6114
6115   if test "x$ac_ct_RANLIB" = x; then
6116     RANLIB=":"
6117   else
6118     case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet.  If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&5
6123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet.  If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126 ac_tool_warned=yes ;;
6127 esac
6128     RANLIB=$ac_ct_RANLIB
6129   fi
6130 else
6131   RANLIB="$ac_cv_prog_RANLIB"
6132 fi
6133
6134 if test -n "$ac_tool_prefix"; then
6135   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}ar; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_prog_AR+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   if test -n "$AR"; then
6143   ac_cv_prog_AR="$AR" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150   for ac_exec_ext in '' $ac_executable_extensions; do
6151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152     ac_cv_prog_AR="${ac_tool_prefix}ar"
6153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 AR=$ac_cv_prog_AR
6163 if test -n "$AR"; then
6164   { echo "$as_me:$LINENO: result: $AR" >&5
6165 echo "${ECHO_T}$AR" >&6; }
6166 else
6167   { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6169 fi
6170
6171
6172 fi
6173 if test -z "$ac_cv_prog_AR"; then
6174   ac_ct_AR=$AR
6175   # Extract the first word of "ar", so it can be a program name with args.
6176 set dummy ar; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   if test -n "$ac_ct_AR"; then
6183   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190   for ac_exec_ext in '' $ac_executable_extensions; do
6191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192     ac_cv_prog_ac_ct_AR="ar"
6193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197 done
6198 IFS=$as_save_IFS
6199
6200 fi
6201 fi
6202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6203 if test -n "$ac_ct_AR"; then
6204   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6205 echo "${ECHO_T}$ac_ct_AR" >&6; }
6206 else
6207   { echo "$as_me:$LINENO: result: no" >&5
6208 echo "${ECHO_T}no" >&6; }
6209 fi
6210
6211   if test "x$ac_ct_AR" = x; then
6212     AR="false"
6213   else
6214     case $cross_compiling:$ac_tool_warned in
6215 yes:)
6216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet.  If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&5
6219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet.  If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222 ac_tool_warned=yes ;;
6223 esac
6224     AR=$ac_ct_AR
6225   fi
6226 else
6227   AR="$ac_cv_prog_AR"
6228 fi
6229
6230 if test -n "$ac_tool_prefix"; then
6231   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}strip; ac_word=$2
6233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235 if test "${ac_cv_prog_STRIP+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   if test -n "$STRIP"; then
6239   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246   for ac_exec_ext in '' $ac_executable_extensions; do
6247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 STRIP=$ac_cv_prog_STRIP
6259 if test -n "$STRIP"; then
6260   { echo "$as_me:$LINENO: result: $STRIP" >&5
6261 echo "${ECHO_T}$STRIP" >&6; }
6262 else
6263   { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6265 fi
6266
6267
6268 fi
6269 if test -z "$ac_cv_prog_STRIP"; then
6270   ac_ct_STRIP=$STRIP
6271   # Extract the first word of "strip", so it can be a program name with args.
6272 set dummy strip; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   if test -n "$ac_ct_STRIP"; then
6279   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286   for ac_exec_ext in '' $ac_executable_extensions; do
6287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288     ac_cv_prog_ac_ct_STRIP="strip"
6289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
6298 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6299 if test -n "$ac_ct_STRIP"; then
6300   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6301 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6302 else
6303   { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6305 fi
6306
6307   if test "x$ac_ct_STRIP" = x; then
6308     STRIP="false"
6309   else
6310     case $cross_compiling:$ac_tool_warned in
6311 yes:)
6312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6313 whose name does not start with the host triplet.  If you think this
6314 configuration is useful to you, please write to autoconf@gnu.org." >&5
6315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6316 whose name does not start with the host triplet.  If you think this
6317 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6318 ac_tool_warned=yes ;;
6319 esac
6320     STRIP=$ac_ct_STRIP
6321   fi
6322 else
6323   STRIP="$ac_cv_prog_STRIP"
6324 fi
6325
6326 # Extract the first word of "rm", so it can be a program name with args.
6327 set dummy rm; ac_word=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_path_RM+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   case $RM in
6334   [\\/]* | ?:[\\/]*)
6335   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6336   ;;
6337   *)
6338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343   for ac_exec_ext in '' $ac_executable_extensions; do
6344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6354   ;;
6355 esac
6356 fi
6357 RM=$ac_cv_path_RM
6358 if test -n "$RM"; then
6359   { echo "$as_me:$LINENO: result: $RM" >&5
6360 echo "${ECHO_T}$RM" >&6; }
6361 else
6362   { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6364 fi
6365
6366
6367 # Extract the first word of "sed", so it can be a program name with args.
6368 set dummy sed; ac_word=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_path_SED+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   case $SED in
6375   [\\/]* | ?:[\\/]*)
6376   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6377   ;;
6378   *)
6379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384   for ac_exec_ext in '' $ac_executable_extensions; do
6385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6395   ;;
6396 esac
6397 fi
6398 SED=$ac_cv_path_SED
6399 if test -n "$SED"; then
6400   { echo "$as_me:$LINENO: result: $SED" >&5
6401 echo "${ECHO_T}$SED" >&6; }
6402 else
6403   { echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6; }
6405 fi
6406
6407
6408 # Extract the first word of "tar", so it can be a program name with args.
6409 set dummy tar; ac_word=$2
6410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6412 if test "${ac_cv_path_TAR+set}" = set; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415   case $TAR in
6416   [\\/]* | ?:[\\/]*)
6417   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6418   ;;
6419   *)
6420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425   for ac_exec_ext in '' $ac_executable_extensions; do
6426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6427     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432 done
6433 IFS=$as_save_IFS
6434
6435   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6436   ;;
6437 esac
6438 fi
6439 TAR=$ac_cv_path_TAR
6440 if test -n "$TAR"; then
6441   { echo "$as_me:$LINENO: result: $TAR" >&5
6442 echo "${ECHO_T}$TAR" >&6; }
6443 else
6444   { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6446 fi
6447
6448
6449 # Extract the first word of "pwd", so it can be a program name with args.
6450 set dummy pwd; ac_word=$2
6451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6453 if test "${ac_cv_path_BINPWD+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456   case $BINPWD in
6457   [\\/]* | ?:[\\/]*)
6458   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6459   ;;
6460   *)
6461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464   IFS=$as_save_IFS
6465   test -z "$as_dir" && as_dir=.
6466   for ac_exec_ext in '' $ac_executable_extensions; do
6467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6468     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470     break 2
6471   fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6477   ;;
6478 esac
6479 fi
6480 BINPWD=$ac_cv_path_BINPWD
6481 if test -n "$BINPWD"; then
6482   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6483 echo "${ECHO_T}$BINPWD" >&6; }
6484 else
6485   { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
6487 fi
6488
6489
6490
6491 # Extract the first word of "Graphviz", so it can be a program name with args.
6492 set dummy Graphviz; ac_word=$2
6493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6495 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6496   echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498   case $GRAPHVIZ in
6499   [\\/]* | ?:[\\/]*)
6500   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6501   ;;
6502   *)
6503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6505 do
6506   IFS=$as_save_IFS
6507   test -z "$as_dir" && as_dir=.
6508   for ac_exec_ext in '' $ac_executable_extensions; do
6509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6510     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512     break 2
6513   fi
6514 done
6515 done
6516 IFS=$as_save_IFS
6517
6518   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6519   ;;
6520 esac
6521 fi
6522 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6523 if test -n "$GRAPHVIZ"; then
6524   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6525 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6526 else
6527   { echo "$as_me:$LINENO: result: no" >&5
6528 echo "${ECHO_T}no" >&6; }
6529 fi
6530
6531
6532 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6533
6534 cat >>confdefs.h <<\_ACEOF
6535 #define HAVE_GRAPHVIZ 1
6536 _ACEOF
6537
6538     if test "$llvm_cv_os_type" = "MingW" ; then
6539     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6540   fi
6541
6542 cat >>confdefs.h <<_ACEOF
6543 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6544 _ACEOF
6545
6546 fi
6547 # Extract the first word of "dot", so it can be a program name with args.
6548 set dummy dot; ac_word=$2
6549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551 if test "${ac_cv_path_DOT+set}" = set; then
6552   echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554   case $DOT in
6555   [\\/]* | ?:[\\/]*)
6556   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6557   ;;
6558   *)
6559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564   for ac_exec_ext in '' $ac_executable_extensions; do
6565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6566     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6575   ;;
6576 esac
6577 fi
6578 DOT=$ac_cv_path_DOT
6579 if test -n "$DOT"; then
6580   { echo "$as_me:$LINENO: result: $DOT" >&5
6581 echo "${ECHO_T}$DOT" >&6; }
6582 else
6583   { echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6; }
6585 fi
6586
6587
6588 if test "$DOT" != "echo dot" ; then
6589
6590 cat >>confdefs.h <<\_ACEOF
6591 #define HAVE_DOT 1
6592 _ACEOF
6593
6594     if test "$llvm_cv_os_type" = "MingW" ; then
6595     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6596   fi
6597
6598 cat >>confdefs.h <<_ACEOF
6599 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6600 _ACEOF
6601
6602 fi
6603 # Extract the first word of "fdp", so it can be a program name with args.
6604 set dummy fdp; ac_word=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_path_FDP+set}" = set; then
6608   echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610   case $FDP in
6611   [\\/]* | ?:[\\/]*)
6612   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6613   ;;
6614   *)
6615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618   IFS=$as_save_IFS
6619   test -z "$as_dir" && as_dir=.
6620   for ac_exec_ext in '' $ac_executable_extensions; do
6621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6622     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624     break 2
6625   fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6631   ;;
6632 esac
6633 fi
6634 FDP=$ac_cv_path_FDP
6635 if test -n "$FDP"; then
6636   { echo "$as_me:$LINENO: result: $FDP" >&5
6637 echo "${ECHO_T}$FDP" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643
6644 if test "$FDP" != "echo fdp" ; then
6645
6646 cat >>confdefs.h <<\_ACEOF
6647 #define HAVE_FDP 1
6648 _ACEOF
6649
6650     if test "$llvm_cv_os_type" = "MingW" ; then
6651     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6652   fi
6653
6654 cat >>confdefs.h <<_ACEOF
6655 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6656 _ACEOF
6657
6658 fi
6659 # Extract the first word of "neato", so it can be a program name with args.
6660 set dummy neato; ac_word=$2
6661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6663 if test "${ac_cv_path_NEATO+set}" = set; then
6664   echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666   case $NEATO in
6667   [\\/]* | ?:[\\/]*)
6668   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6669   ;;
6670   *)
6671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   test -z "$as_dir" && as_dir=.
6676   for ac_exec_ext in '' $ac_executable_extensions; do
6677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6678     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680     break 2
6681   fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6687   ;;
6688 esac
6689 fi
6690 NEATO=$ac_cv_path_NEATO
6691 if test -n "$NEATO"; then
6692   { echo "$as_me:$LINENO: result: $NEATO" >&5
6693 echo "${ECHO_T}$NEATO" >&6; }
6694 else
6695   { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6697 fi
6698
6699
6700 if test "$NEATO" != "echo neato" ; then
6701
6702 cat >>confdefs.h <<\_ACEOF
6703 #define HAVE_NEATO 1
6704 _ACEOF
6705
6706     if test "$llvm_cv_os_type" = "MingW" ; then
6707     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6708   fi
6709
6710 cat >>confdefs.h <<_ACEOF
6711 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6712 _ACEOF
6713
6714 fi
6715 # Extract the first word of "twopi", so it can be a program name with args.
6716 set dummy twopi; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_path_TWOPI+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   case $TWOPI in
6723   [\\/]* | ?:[\\/]*)
6724   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6725   ;;
6726   *)
6727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730   IFS=$as_save_IFS
6731   test -z "$as_dir" && as_dir=.
6732   for ac_exec_ext in '' $ac_executable_extensions; do
6733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6734     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736     break 2
6737   fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6743   ;;
6744 esac
6745 fi
6746 TWOPI=$ac_cv_path_TWOPI
6747 if test -n "$TWOPI"; then
6748   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6749 echo "${ECHO_T}$TWOPI" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755
6756 if test "$TWOPI" != "echo twopi" ; then
6757
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_TWOPI 1
6760 _ACEOF
6761
6762     if test "$llvm_cv_os_type" = "MingW" ; then
6763     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6764   fi
6765
6766 cat >>confdefs.h <<_ACEOF
6767 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6768 _ACEOF
6769
6770 fi
6771 # Extract the first word of "circo", so it can be a program name with args.
6772 set dummy circo; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_CIRCO+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   case $CIRCO in
6779   [\\/]* | ?:[\\/]*)
6780   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6781   ;;
6782   *)
6783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788   for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6799   ;;
6800 esac
6801 fi
6802 CIRCO=$ac_cv_path_CIRCO
6803 if test -n "$CIRCO"; then
6804   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6805 echo "${ECHO_T}$CIRCO" >&6; }
6806 else
6807   { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6809 fi
6810
6811
6812 if test "$CIRCO" != "echo circo" ; then
6813
6814 cat >>confdefs.h <<\_ACEOF
6815 #define HAVE_CIRCO 1
6816 _ACEOF
6817
6818     if test "$llvm_cv_os_type" = "MingW" ; then
6819     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6820   fi
6821
6822 cat >>confdefs.h <<_ACEOF
6823 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6824 _ACEOF
6825
6826 fi
6827 for ac_prog in gv gsview32
6828 do
6829   # Extract the first word of "$ac_prog", so it can be a program name with args.
6830 set dummy $ac_prog; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_GV+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   case $GV in
6837   [\\/]* | ?:[\\/]*)
6838   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6839   ;;
6840   *)
6841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846   for ac_exec_ext in '' $ac_executable_extensions; do
6847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856   ;;
6857 esac
6858 fi
6859 GV=$ac_cv_path_GV
6860 if test -n "$GV"; then
6861   { echo "$as_me:$LINENO: result: $GV" >&5
6862 echo "${ECHO_T}$GV" >&6; }
6863 else
6864   { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6866 fi
6867
6868
6869   test -n "$GV" && break
6870 done
6871 test -n "$GV" || GV="echo gv"
6872
6873 if test "$GV" != "echo gv" ; then
6874
6875 cat >>confdefs.h <<\_ACEOF
6876 #define HAVE_GV 1
6877 _ACEOF
6878
6879     if test "$llvm_cv_os_type" = "MingW" ; then
6880     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6881   fi
6882
6883 cat >>confdefs.h <<_ACEOF
6884 #define LLVM_PATH_GV "$GV${EXEEXT}"
6885 _ACEOF
6886
6887 fi
6888 # Extract the first word of "dotty", so it can be a program name with args.
6889 set dummy dotty; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_DOTTY+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   case $DOTTY in
6896   [\\/]* | ?:[\\/]*)
6897   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6898   ;;
6899   *)
6900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905   for ac_exec_ext in '' $ac_executable_extensions; do
6906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6916   ;;
6917 esac
6918 fi
6919 DOTTY=$ac_cv_path_DOTTY
6920 if test -n "$DOTTY"; then
6921   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6922 echo "${ECHO_T}$DOTTY" >&6; }
6923 else
6924   { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6926 fi
6927
6928
6929 if test "$DOTTY" != "echo dotty" ; then
6930
6931 cat >>confdefs.h <<\_ACEOF
6932 #define HAVE_DOTTY 1
6933 _ACEOF
6934
6935     if test "$llvm_cv_os_type" = "MingW" ; then
6936     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6937   fi
6938
6939 cat >>confdefs.h <<_ACEOF
6940 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6941 _ACEOF
6942
6943 fi
6944 # Extract the first word of "xdot.py", so it can be a program name with args.
6945 set dummy xdot.py; ac_word=$2
6946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   case $XDOT_PY in
6952   [\\/]* | ?:[\\/]*)
6953   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6954   ;;
6955   *)
6956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959   IFS=$as_save_IFS
6960   test -z "$as_dir" && as_dir=.
6961   for ac_exec_ext in '' $ac_executable_extensions; do
6962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6963     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965     break 2
6966   fi
6967 done
6968 done
6969 IFS=$as_save_IFS
6970
6971   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6972   ;;
6973 esac
6974 fi
6975 XDOT_PY=$ac_cv_path_XDOT_PY
6976 if test -n "$XDOT_PY"; then
6977   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6978 echo "${ECHO_T}$XDOT_PY" >&6; }
6979 else
6980   { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6982 fi
6983
6984
6985 if test "$XDOT_PY" != "echo xdot.py" ; then
6986
6987 cat >>confdefs.h <<\_ACEOF
6988 #define HAVE_XDOT_PY 1
6989 _ACEOF
6990
6991     if test "$llvm_cv_os_type" = "MingW" ; then
6992     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6993   fi
6994
6995 cat >>confdefs.h <<_ACEOF
6996 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6997 _ACEOF
6998
6999 fi
7000
7001
7002 # Extract the first word of "perl", so it can be a program name with args.
7003 set dummy perl; ac_word=$2
7004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006 if test "${ac_cv_path_PERL+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   case $PERL in
7010   [\\/]* | ?:[\\/]*)
7011   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7012   ;;
7013   *)
7014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019   for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7030   ;;
7031 esac
7032 fi
7033 PERL=$ac_cv_path_PERL
7034 if test -n "$PERL"; then
7035   { echo "$as_me:$LINENO: result: $PERL" >&5
7036 echo "${ECHO_T}$PERL" >&6; }
7037 else
7038   { echo "$as_me:$LINENO: result: no" >&5
7039 echo "${ECHO_T}no" >&6; }
7040 fi
7041
7042
7043 if test "$PERL" != "none"; then
7044   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7045 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7046   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7047     { echo "$as_me:$LINENO: result: yes" >&5
7048 echo "${ECHO_T}yes" >&6; }
7049   else
7050     PERL=none
7051     { echo "$as_me:$LINENO: result: not found" >&5
7052 echo "${ECHO_T}not found" >&6; }
7053   fi
7054 fi
7055
7056
7057 if test x"$PERL" = xnone; then
7058    HAVE_PERL=0
7059
7060    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7061 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7062    { (exit 1); exit 1; }; }
7063 else
7064    HAVE_PERL=1
7065
7066 fi
7067
7068 # Find a good install program.  We prefer a C program (faster),
7069 # so one script is as good as another.  But avoid the broken or
7070 # incompatible versions:
7071 # SysV /etc/install, /usr/sbin/install
7072 # SunOS /usr/etc/install
7073 # IRIX /sbin/install
7074 # AIX /bin/install
7075 # AmigaOS /C/install, which installs bootblocks on floppy discs
7076 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7077 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7078 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7079 # OS/2's system install, which has a completely different semantic
7080 # ./install, which can be erroneously created by make from ./install.sh.
7081 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7082 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7083 if test -z "$INSTALL"; then
7084 if test "${ac_cv_path_install+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092   # Account for people who put trailing slashes in PATH elements.
7093 case $as_dir/ in
7094   ./ | .// | /cC/* | \
7095   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7096   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7097   /usr/ucb/* ) ;;
7098   *)
7099     # OSF1 and SCO ODT 3.0 have their own names for install.
7100     # Don't use installbsd from OSF since it installs stuff as root
7101     # by default.
7102     for ac_prog in ginstall scoinst install; do
7103       for ac_exec_ext in '' $ac_executable_extensions; do
7104         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7105           if test $ac_prog = install &&
7106             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7107             # AIX install.  It has an incompatible calling convention.
7108             :
7109           elif test $ac_prog = install &&
7110             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7111             # program-specific install script used by HP pwplus--don't use.
7112             :
7113           else
7114             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7115             break 3
7116           fi
7117         fi
7118       done
7119     done
7120     ;;
7121 esac
7122 done
7123 IFS=$as_save_IFS
7124
7125
7126 fi
7127   if test "${ac_cv_path_install+set}" = set; then
7128     INSTALL=$ac_cv_path_install
7129   else
7130     # As a last resort, use the slow shell script.  Don't cache a
7131     # value for INSTALL within a source directory, because that will
7132     # break other packages using the cache if that directory is
7133     # removed, or if the value is a relative name.
7134     INSTALL=$ac_install_sh
7135   fi
7136 fi
7137 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7138 echo "${ECHO_T}$INSTALL" >&6; }
7139
7140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7141 # It thinks the first close brace ends the variable substitution.
7142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7143
7144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7145
7146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7147
7148 case "$INSTALL" in
7149  [\\/$]* | ?:[\\/]* ) ;;
7150  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7151 esac
7152
7153 # Extract the first word of "bzip2", so it can be a program name with args.
7154 set dummy bzip2; ac_word=$2
7155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7157 if test "${ac_cv_path_BZIP2+set}" = set; then
7158   echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160   case $BZIP2 in
7161   [\\/]* | ?:[\\/]*)
7162   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7163   ;;
7164   *)
7165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170   for ac_exec_ext in '' $ac_executable_extensions; do
7171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7172     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174     break 2
7175   fi
7176 done
7177 done
7178 IFS=$as_save_IFS
7179
7180   ;;
7181 esac
7182 fi
7183 BZIP2=$ac_cv_path_BZIP2
7184 if test -n "$BZIP2"; then
7185   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7186 echo "${ECHO_T}$BZIP2" >&6; }
7187 else
7188   { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7190 fi
7191
7192
7193 # Extract the first word of "cat", so it can be a program name with args.
7194 set dummy cat; ac_word=$2
7195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7197 if test "${ac_cv_path_CAT+set}" = set; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200   case $CAT in
7201   [\\/]* | ?:[\\/]*)
7202   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7203   ;;
7204   *)
7205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210   for ac_exec_ext in '' $ac_executable_extensions; do
7211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7212     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220   ;;
7221 esac
7222 fi
7223 CAT=$ac_cv_path_CAT
7224 if test -n "$CAT"; then
7225   { echo "$as_me:$LINENO: result: $CAT" >&5
7226 echo "${ECHO_T}$CAT" >&6; }
7227 else
7228   { echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6; }
7230 fi
7231
7232
7233 # Extract the first word of "doxygen", so it can be a program name with args.
7234 set dummy doxygen; ac_word=$2
7235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7237 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240   case $DOXYGEN in
7241   [\\/]* | ?:[\\/]*)
7242   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7243   ;;
7244   *)
7245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248   IFS=$as_save_IFS
7249   test -z "$as_dir" && as_dir=.
7250   for ac_exec_ext in '' $ac_executable_extensions; do
7251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7252     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254     break 2
7255   fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260   ;;
7261 esac
7262 fi
7263 DOXYGEN=$ac_cv_path_DOXYGEN
7264 if test -n "$DOXYGEN"; then
7265   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7266 echo "${ECHO_T}$DOXYGEN" >&6; }
7267 else
7268   { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7270 fi
7271
7272
7273 # Extract the first word of "groff", so it can be a program name with args.
7274 set dummy groff; ac_word=$2
7275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7277 if test "${ac_cv_path_GROFF+set}" = set; then
7278   echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280   case $GROFF in
7281   [\\/]* | ?:[\\/]*)
7282   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7283   ;;
7284   *)
7285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288   IFS=$as_save_IFS
7289   test -z "$as_dir" && as_dir=.
7290   for ac_exec_ext in '' $ac_executable_extensions; do
7291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7292     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294     break 2
7295   fi
7296 done
7297 done
7298 IFS=$as_save_IFS
7299
7300   ;;
7301 esac
7302 fi
7303 GROFF=$ac_cv_path_GROFF
7304 if test -n "$GROFF"; then
7305   { echo "$as_me:$LINENO: result: $GROFF" >&5
7306 echo "${ECHO_T}$GROFF" >&6; }
7307 else
7308   { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7310 fi
7311
7312
7313 # Extract the first word of "gzip", so it can be a program name with args.
7314 set dummy gzip; ac_word=$2
7315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7318   echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320   case $GZIPBIN in
7321   [\\/]* | ?:[\\/]*)
7322   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7323   ;;
7324   *)
7325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330   for ac_exec_ext in '' $ac_executable_extensions; do
7331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7332     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340   ;;
7341 esac
7342 fi
7343 GZIPBIN=$ac_cv_path_GZIPBIN
7344 if test -n "$GZIPBIN"; then
7345   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7346 echo "${ECHO_T}$GZIPBIN" >&6; }
7347 else
7348   { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7350 fi
7351
7352
7353 # Extract the first word of "pod2html", so it can be a program name with args.
7354 set dummy pod2html; ac_word=$2
7355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357 if test "${ac_cv_path_POD2HTML+set}" = set; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360   case $POD2HTML in
7361   [\\/]* | ?:[\\/]*)
7362   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7363   ;;
7364   *)
7365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370   for ac_exec_ext in '' $ac_executable_extensions; do
7371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7372     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380   ;;
7381 esac
7382 fi
7383 POD2HTML=$ac_cv_path_POD2HTML
7384 if test -n "$POD2HTML"; then
7385   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7386 echo "${ECHO_T}$POD2HTML" >&6; }
7387 else
7388   { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7390 fi
7391
7392
7393 # Extract the first word of "pod2man", so it can be a program name with args.
7394 set dummy pod2man; ac_word=$2
7395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397 if test "${ac_cv_path_POD2MAN+set}" = set; then
7398   echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400   case $POD2MAN in
7401   [\\/]* | ?:[\\/]*)
7402   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7403   ;;
7404   *)
7405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408   IFS=$as_save_IFS
7409   test -z "$as_dir" && as_dir=.
7410   for ac_exec_ext in '' $ac_executable_extensions; do
7411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7412     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414     break 2
7415   fi
7416 done
7417 done
7418 IFS=$as_save_IFS
7419
7420   ;;
7421 esac
7422 fi
7423 POD2MAN=$ac_cv_path_POD2MAN
7424 if test -n "$POD2MAN"; then
7425   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7426 echo "${ECHO_T}$POD2MAN" >&6; }
7427 else
7428   { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7430 fi
7431
7432
7433 # Extract the first word of "pdfroff", so it can be a program name with args.
7434 set dummy pdfroff; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_PDFROFF+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   case $PDFROFF in
7441   [\\/]* | ?:[\\/]*)
7442   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7443   ;;
7444   *)
7445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450   for ac_exec_ext in '' $ac_executable_extensions; do
7451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454     break 2
7455   fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460   ;;
7461 esac
7462 fi
7463 PDFROFF=$ac_cv_path_PDFROFF
7464 if test -n "$PDFROFF"; then
7465   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7466 echo "${ECHO_T}$PDFROFF" >&6; }
7467 else
7468   { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7470 fi
7471
7472
7473 # Extract the first word of "runtest", so it can be a program name with args.
7474 set dummy runtest; ac_word=$2
7475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7477 if test "${ac_cv_path_RUNTEST+set}" = set; then
7478   echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480   case $RUNTEST in
7481   [\\/]* | ?:[\\/]*)
7482   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7483   ;;
7484   *)
7485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488   IFS=$as_save_IFS
7489   test -z "$as_dir" && as_dir=.
7490   for ac_exec_ext in '' $ac_executable_extensions; do
7491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7492     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494     break 2
7495   fi
7496 done
7497 done
7498 IFS=$as_save_IFS
7499
7500   ;;
7501 esac
7502 fi
7503 RUNTEST=$ac_cv_path_RUNTEST
7504 if test -n "$RUNTEST"; then
7505   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7506 echo "${ECHO_T}$RUNTEST" >&6; }
7507 else
7508   { echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6; }
7510 fi
7511
7512
7513
7514 no_itcl=true
7515 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7516 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7517
7518 # Check whether --with-tclinclude was given.
7519 if test "${with_tclinclude+set}" = set; then
7520   withval=$with_tclinclude; with_tclinclude=${withval}
7521 else
7522   with_tclinclude=''
7523 fi
7524
7525 if test "${ac_cv_path_tclsh+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528
7529 if test x"${with_tclinclude}" != x ; then
7530   if test -f ${with_tclinclude}/tclsh ; then
7531     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7532   elif test -f ${with_tclinclude}/src/tclsh ; then
7533     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7534   else
7535     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7536 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7537    { (exit 1); exit 1; }; }
7538   fi
7539 fi
7540 fi
7541
7542
7543 if test x"${ac_cv_path_tclsh}" = x ; then
7544   { echo "$as_me:$LINENO: result: none" >&5
7545 echo "${ECHO_T}none" >&6; }
7546   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
7547 do
7548   # Extract the first word of "$ac_prog", so it can be a program name with args.
7549 set dummy $ac_prog; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_TCLSH+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   case $TCLSH in
7556   [\\/]* | ?:[\\/]*)
7557   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7558   ;;
7559   *)
7560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565   for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575   ;;
7576 esac
7577 fi
7578 TCLSH=$ac_cv_path_TCLSH
7579 if test -n "$TCLSH"; then
7580   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7581 echo "${ECHO_T}$TCLSH" >&6; }
7582 else
7583   { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7585 fi
7586
7587
7588   test -n "$TCLSH" && break
7589 done
7590
7591   if test x"${TCLSH}" = x ; then
7592     ac_cv_path_tclsh='';
7593   else
7594     ac_cv_path_tclsh="${TCLSH}";
7595   fi
7596 else
7597   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7598 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7599   TCLSH="${ac_cv_path_tclsh}"
7600
7601 fi
7602
7603 # Extract the first word of "zip", so it can be a program name with args.
7604 set dummy zip; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_ZIP+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   case $ZIP in
7611   [\\/]* | ?:[\\/]*)
7612   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7613   ;;
7614   *)
7615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618   IFS=$as_save_IFS
7619   test -z "$as_dir" && as_dir=.
7620   for ac_exec_ext in '' $ac_executable_extensions; do
7621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624     break 2
7625   fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630   ;;
7631 esac
7632 fi
7633 ZIP=$ac_cv_path_ZIP
7634 if test -n "$ZIP"; then
7635   { echo "$as_me:$LINENO: result: $ZIP" >&5
7636 echo "${ECHO_T}$ZIP" >&6; }
7637 else
7638   { echo "$as_me:$LINENO: result: no" >&5
7639 echo "${ECHO_T}no" >&6; }
7640 fi
7641
7642
7643 for ac_prog in ocamlc
7644 do
7645   # Extract the first word of "$ac_prog", so it can be a program name with args.
7646 set dummy $ac_prog; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_path_OCAMLC+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   case $OCAMLC in
7653   [\\/]* | ?:[\\/]*)
7654   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7655   ;;
7656   *)
7657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660   IFS=$as_save_IFS
7661   test -z "$as_dir" && as_dir=.
7662   for ac_exec_ext in '' $ac_executable_extensions; do
7663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7664     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666     break 2
7667   fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672   ;;
7673 esac
7674 fi
7675 OCAMLC=$ac_cv_path_OCAMLC
7676 if test -n "$OCAMLC"; then
7677   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7678 echo "${ECHO_T}$OCAMLC" >&6; }
7679 else
7680   { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7682 fi
7683
7684
7685   test -n "$OCAMLC" && break
7686 done
7687
7688 for ac_prog in ocamlopt
7689 do
7690   # Extract the first word of "$ac_prog", so it can be a program name with args.
7691 set dummy $ac_prog; ac_word=$2
7692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7695   echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697   case $OCAMLOPT in
7698   [\\/]* | ?:[\\/]*)
7699   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7700   ;;
7701   *)
7702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707   for ac_exec_ext in '' $ac_executable_extensions; do
7708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717   ;;
7718 esac
7719 fi
7720 OCAMLOPT=$ac_cv_path_OCAMLOPT
7721 if test -n "$OCAMLOPT"; then
7722   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7723 echo "${ECHO_T}$OCAMLOPT" >&6; }
7724 else
7725   { echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6; }
7727 fi
7728
7729
7730   test -n "$OCAMLOPT" && break
7731 done
7732
7733 for ac_prog in ocamldep
7734 do
7735   # Extract the first word of "$ac_prog", so it can be a program name with args.
7736 set dummy $ac_prog; ac_word=$2
7737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   case $OCAMLDEP in
7743   [\\/]* | ?:[\\/]*)
7744   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7745   ;;
7746   *)
7747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752   for ac_exec_ext in '' $ac_executable_extensions; do
7753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7754     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762   ;;
7763 esac
7764 fi
7765 OCAMLDEP=$ac_cv_path_OCAMLDEP
7766 if test -n "$OCAMLDEP"; then
7767   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7768 echo "${ECHO_T}$OCAMLDEP" >&6; }
7769 else
7770   { echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6; }
7772 fi
7773
7774
7775   test -n "$OCAMLDEP" && break
7776 done
7777
7778 for ac_prog in ocamldoc
7779 do
7780   # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy $ac_prog; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   case $OCAMLDOC in
7788   [\\/]* | ?:[\\/]*)
7789   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7790   ;;
7791   *)
7792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795   IFS=$as_save_IFS
7796   test -z "$as_dir" && as_dir=.
7797   for ac_exec_ext in '' $ac_executable_extensions; do
7798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7799     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801     break 2
7802   fi
7803 done
7804 done
7805 IFS=$as_save_IFS
7806
7807   ;;
7808 esac
7809 fi
7810 OCAMLDOC=$ac_cv_path_OCAMLDOC
7811 if test -n "$OCAMLDOC"; then
7812   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7813 echo "${ECHO_T}$OCAMLDOC" >&6; }
7814 else
7815   { echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6; }
7817 fi
7818
7819
7820   test -n "$OCAMLDOC" && break
7821 done
7822
7823 for ac_prog in gas as
7824 do
7825   # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829 if test "${ac_cv_path_GAS+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   case $GAS in
7833   [\\/]* | ?:[\\/]*)
7834   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7835   ;;
7836   *)
7837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840   IFS=$as_save_IFS
7841   test -z "$as_dir" && as_dir=.
7842   for ac_exec_ext in '' $ac_executable_extensions; do
7843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7844     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7846     break 2
7847   fi
7848 done
7849 done
7850 IFS=$as_save_IFS
7851
7852   ;;
7853 esac
7854 fi
7855 GAS=$ac_cv_path_GAS
7856 if test -n "$GAS"; then
7857   { echo "$as_me:$LINENO: result: $GAS" >&5
7858 echo "${ECHO_T}$GAS" >&6; }
7859 else
7860   { echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6; }
7862 fi
7863
7864
7865   test -n "$GAS" && break
7866 done
7867
7868
7869 { echo "$as_me:$LINENO: checking for linker version" >&5
7870 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7871 if test "${llvm_cv_link_version+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874
7875    version_string="$(ld -v 2>&1 | head -1)"
7876
7877    # Check for ld64.
7878    if (echo "$version_string" | grep -q "ld64"); then
7879      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7880    else
7881      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7882    fi
7883
7884 fi
7885 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7886 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7887
7888 cat >>confdefs.h <<_ACEOF
7889 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7890 _ACEOF
7891
7892
7893
7894 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7895 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7896 if test "${llvm_cv_link_use_r+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
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   oldcflags="$CFLAGS"
7906   CFLAGS="$CFLAGS -Wl,-R."
7907   cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h.  */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h.  */
7913
7914 int
7915 main ()
7916 {
7917
7918   ;
7919   return 0;
7920 }
7921 _ACEOF
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923 if { (ac_try="$ac_link"
7924 case "(($ac_try" in
7925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926   *) ac_try_echo=$ac_try;;
7927 esac
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929   (eval "$ac_link") 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } &&
7936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7937   { (case "(($ac_try" in
7938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939   *) ac_try_echo=$ac_try;;
7940 esac
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942   (eval "$ac_try") 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; } &&
7946          { ac_try='test -s conftest$ac_exeext'
7947   { (case "(($ac_try" in
7948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949   *) ac_try_echo=$ac_try;;
7950 esac
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952   (eval "$ac_try") 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); }; }; then
7956   llvm_cv_link_use_r=yes
7957 else
7958   echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7960
7961         llvm_cv_link_use_r=no
7962 fi
7963
7964 rm -f core conftest.err conftest.$ac_objext \
7965       conftest$ac_exeext conftest.$ac_ext
7966   CFLAGS="$oldcflags"
7967   ac_ext=c
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972
7973
7974 fi
7975 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7976 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7977 if test "$llvm_cv_link_use_r" = yes ; then
7978
7979 cat >>confdefs.h <<\_ACEOF
7980 #define HAVE_LINK_R 1
7981 _ACEOF
7982
7983   fi
7984
7985
7986 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7987 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7988 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7989   echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
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   oldcflags="$CFLAGS"
7998   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7999   cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005
8006 int
8007 main ()
8008 {
8009
8010   ;
8011   return 0;
8012 }
8013 _ACEOF
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (ac_try="$ac_link"
8016 case "(($ac_try" in
8017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018   *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021   (eval "$ac_link") 2>conftest.er1
8022   ac_status=$?
8023   grep -v '^ *+' conftest.er1 >conftest.err
8024   rm -f conftest.er1
8025   cat conftest.err >&5
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); } &&
8028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8029   { (case "(($ac_try" in
8030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031   *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034   (eval "$ac_try") 2>&5
8035   ac_status=$?
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); }; } &&
8038          { ac_try='test -s conftest$ac_exeext'
8039   { (case "(($ac_try" in
8040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041   *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044   (eval "$ac_try") 2>&5
8045   ac_status=$?
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); }; }; then
8048   llvm_cv_link_use_export_dynamic=yes
8049 else
8050   echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053         llvm_cv_link_use_export_dynamic=no
8054 fi
8055
8056 rm -f core conftest.err conftest.$ac_objext \
8057       conftest$ac_exeext conftest.$ac_ext
8058   CFLAGS="$oldcflags"
8059   ac_ext=c
8060 ac_cpp='$CPP $CPPFLAGS'
8061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8064
8065
8066 fi
8067 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8068 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8069 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8070
8071 cat >>confdefs.h <<\_ACEOF
8072 #define HAVE_LINK_EXPORT_DYNAMIC 1
8073 _ACEOF
8074
8075   fi
8076
8077
8078 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8079 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8080 if test "${llvm_cv_link_use_version_script+set}" = set; then
8081   echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083    ac_ext=c
8084 ac_cpp='$CPP $CPPFLAGS'
8085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8088
8089   oldcflags="$CFLAGS"
8090
8091   # The following code is from the autoconf manual,
8092   # "11.13: Limitations of Usual Tools".
8093   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8094   # Use mktemp if possible; otherwise fall back on mkdir,
8095   # with $RANDOM to make collisions less likely.
8096   : ${TMPDIR=/tmp}
8097   {
8098     tmp=`
8099       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8100     ` &&
8101     test -n "$tmp" && test -d "$tmp"
8102   } || {
8103     tmp=$TMPDIR/foo$$-$RANDOM
8104     (umask 077 && mkdir "$tmp")
8105   } || exit $?
8106
8107   echo "{" > "$tmp/export.map"
8108   echo "  global: main;" >> "$tmp/export.map"
8109   echo "  local: *;" >> "$tmp/export.map"
8110   echo "};" >> "$tmp/export.map"
8111
8112   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8113   cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119
8120 int
8121 main ()
8122 {
8123
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (ac_try="$ac_link"
8130 case "(($ac_try" in
8131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132   *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135   (eval "$ac_link") 2>conftest.er1
8136   ac_status=$?
8137   grep -v '^ *+' conftest.er1 >conftest.err
8138   rm -f conftest.er1
8139   cat conftest.err >&5
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); } &&
8142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8143   { (case "(($ac_try" in
8144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145   *) ac_try_echo=$ac_try;;
8146 esac
8147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148   (eval "$ac_try") 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; } &&
8152          { ac_try='test -s conftest$ac_exeext'
8153   { (case "(($ac_try" in
8154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155   *) ac_try_echo=$ac_try;;
8156 esac
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158   (eval "$ac_try") 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); }; }; then
8162   llvm_cv_link_use_version_script=yes
8163 else
8164   echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8166
8167         llvm_cv_link_use_version_script=no
8168 fi
8169
8170 rm -f core conftest.err conftest.$ac_objext \
8171       conftest$ac_exeext conftest.$ac_ext
8172   rm "$tmp/export.map"
8173   rmdir "$tmp"
8174   CFLAGS="$oldcflags"
8175   ac_ext=c
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181
8182 fi
8183 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8184 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8185 if test "$llvm_cv_link_use_version_script" = yes ; then
8186   HAVE_LINK_VERSION_SCRIPT=1
8187
8188   fi
8189
8190
8191
8192
8193 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8194 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8195 if test "${ac_cv_c_const+set}" = set; then
8196   echo $ECHO_N "(cached) $ECHO_C" >&6
8197 else
8198   cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h.  */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h.  */
8204
8205 int
8206 main ()
8207 {
8208 /* FIXME: Include the comments suggested by Paul. */
8209 #ifndef __cplusplus
8210   /* Ultrix mips cc rejects this.  */
8211   typedef int charset[2];
8212   const charset x;
8213   /* SunOS 4.1.1 cc rejects this.  */
8214   char const *const *ccp;
8215   char **p;
8216   /* NEC SVR4.0.2 mips cc rejects this.  */
8217   struct point {int x, y;};
8218   static struct point const zero = {0,0};
8219   /* AIX XL C 1.02.0.0 rejects this.
8220      It does not let you subtract one const X* pointer from another in
8221      an arm of an if-expression whose if-part is not a constant
8222      expression */
8223   const char *g = "string";
8224   ccp = &g + (g ? g-g : 0);
8225   /* HPUX 7.0 cc rejects these. */
8226   ++ccp;
8227   p = (char**) ccp;
8228   ccp = (char const *const *) p;
8229   { /* SCO 3.2v4 cc rejects this.  */
8230     char *t;
8231     char const *s = 0 ? (char *) 0 : (char const *) 0;
8232
8233     *t++ = 0;
8234     if (s) return 0;
8235   }
8236   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8237     int x[] = {25, 17};
8238     const int *foo = &x[0];
8239     ++foo;
8240   }
8241   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8242     typedef const int *iptr;
8243     iptr p = 0;
8244     ++p;
8245   }
8246   { /* AIX XL C 1.02.0.0 rejects this saying
8247        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8248     struct s { int j; const int *ap[3]; };
8249     struct s *b; b->j = 5;
8250   }
8251   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8252     const int foo = 10;
8253     if (!foo) return 0;
8254   }
8255   return !x[0] && !zero.x;
8256 #endif
8257
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8264 case "(($ac_try" in
8265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266   *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269   (eval "$ac_compile") 2>conftest.er1
8270   ac_status=$?
8271   grep -v '^ *+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } &&
8276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8277   { (case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_try") 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); }; } &&
8286          { ac_try='test -s conftest.$ac_objext'
8287   { (case "(($ac_try" in
8288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289   *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292   (eval "$ac_try") 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); }; }; then
8296   ac_cv_c_const=yes
8297 else
8298   echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301         ac_cv_c_const=no
8302 fi
8303
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 fi
8306 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8307 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8308 if test $ac_cv_c_const = no; then
8309
8310 cat >>confdefs.h <<\_ACEOF
8311 #define const
8312 _ACEOF
8313
8314 fi
8315
8316
8317
8318
8319
8320
8321 ac_header_dirent=no
8322 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8323   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8324 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8325 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8327   echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329   cat >conftest.$ac_ext <<_ACEOF
8330 /* confdefs.h.  */
8331 _ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h.  */
8335 #include <sys/types.h>
8336 #include <$ac_hdr>
8337
8338 int
8339 main ()
8340 {
8341 if ((DIR *) 0)
8342 return 0;
8343   ;
8344   return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8349 case "(($ac_try" in
8350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351   *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354   (eval "$ac_compile") 2>conftest.er1
8355   ac_status=$?
8356   grep -v '^ *+' conftest.er1 >conftest.err
8357   rm -f conftest.er1
8358   cat conftest.err >&5
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } &&
8361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362   { (case "(($ac_try" in
8363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364   *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367   (eval "$ac_try") 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; } &&
8371          { ac_try='test -s conftest.$ac_objext'
8372   { (case "(($ac_try" in
8373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374   *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377   (eval "$ac_try") 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); }; }; then
8381   eval "$as_ac_Header=yes"
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386         eval "$as_ac_Header=no"
8387 fi
8388
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 fi
8391 ac_res=`eval echo '${'$as_ac_Header'}'`
8392                { echo "$as_me:$LINENO: result: $ac_res" >&5
8393 echo "${ECHO_T}$ac_res" >&6; }
8394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8395   cat >>confdefs.h <<_ACEOF
8396 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8397 _ACEOF
8398
8399 ac_header_dirent=$ac_hdr; break
8400 fi
8401
8402 done
8403 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8404 if test $ac_header_dirent = dirent.h; then
8405   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8406 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8407 if test "${ac_cv_search_opendir+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   ac_func_search_save_LIBS=$LIBS
8411 cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h.  */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h.  */
8417
8418 /* Override any GCC internal prototype to avoid an error.
8419    Use char because int might match the return type of a GCC
8420    builtin and then its argument prototype would still apply.  */
8421 #ifdef __cplusplus
8422 extern "C"
8423 #endif
8424 char opendir ();
8425 int
8426 main ()
8427 {
8428 return opendir ();
8429   ;
8430   return 0;
8431 }
8432 _ACEOF
8433 for ac_lib in '' dir; do
8434   if test -z "$ac_lib"; then
8435     ac_res="none required"
8436   else
8437     ac_res=-l$ac_lib
8438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8439   fi
8440   rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8442 case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_link") 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } &&
8454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455   { (case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460   (eval "$ac_try") 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; } &&
8464          { ac_try='test -s conftest$ac_exeext'
8465   { (case "(($ac_try" in
8466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467   *) ac_try_echo=$ac_try;;
8468 esac
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470   (eval "$ac_try") 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; }; then
8474   ac_cv_search_opendir=$ac_res
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext \
8483       conftest$ac_exeext
8484   if test "${ac_cv_search_opendir+set}" = set; then
8485   break
8486 fi
8487 done
8488 if test "${ac_cv_search_opendir+set}" = set; then
8489   :
8490 else
8491   ac_cv_search_opendir=no
8492 fi
8493 rm conftest.$ac_ext
8494 LIBS=$ac_func_search_save_LIBS
8495 fi
8496 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8497 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8498 ac_res=$ac_cv_search_opendir
8499 if test "$ac_res" != no; then
8500   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8501
8502 fi
8503
8504 else
8505   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8506 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8507 if test "${ac_cv_search_opendir+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   ac_func_search_save_LIBS=$LIBS
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h.  */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h.  */
8517
8518 /* Override any GCC internal prototype to avoid an error.
8519    Use char because int might match the return type of a GCC
8520    builtin and then its argument prototype would still apply.  */
8521 #ifdef __cplusplus
8522 extern "C"
8523 #endif
8524 char opendir ();
8525 int
8526 main ()
8527 {
8528 return opendir ();
8529   ;
8530   return 0;
8531 }
8532 _ACEOF
8533 for ac_lib in '' x; do
8534   if test -z "$ac_lib"; then
8535     ac_res="none required"
8536   else
8537     ac_res=-l$ac_lib
8538     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8539   fi
8540   rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (ac_try="$ac_link"
8542 case "(($ac_try" in
8543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544   *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547   (eval "$ac_link") 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } &&
8554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555   { (case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_try") 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; } &&
8564          { ac_try='test -s conftest$ac_exeext'
8565   { (case "(($ac_try" in
8566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567   *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570   (eval "$ac_try") 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; }; then
8574   ac_cv_search_opendir=$ac_res
8575 else
8576   echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8578
8579
8580 fi
8581
8582 rm -f core conftest.err conftest.$ac_objext \
8583       conftest$ac_exeext
8584   if test "${ac_cv_search_opendir+set}" = set; then
8585   break
8586 fi
8587 done
8588 if test "${ac_cv_search_opendir+set}" = set; then
8589   :
8590 else
8591   ac_cv_search_opendir=no
8592 fi
8593 rm conftest.$ac_ext
8594 LIBS=$ac_func_search_save_LIBS
8595 fi
8596 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8597 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8598 ac_res=$ac_cv_search_opendir
8599 if test "$ac_res" != no; then
8600   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8601
8602 fi
8603
8604 fi
8605
8606
8607 for ac_header in dlfcn.h
8608 do
8609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8611   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 fi
8616 ac_res=`eval echo '${'$as_ac_Header'}'`
8617                { echo "$as_me:$LINENO: result: $ac_res" >&5
8618 echo "${ECHO_T}$ac_res" >&6; }
8619 else
8620   # Is the header compilable?
8621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h.  */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h.  */
8629 $ac_includes_default
8630 #include <$ac_header>
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8634 case "(($ac_try" in
8635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636   *) ac_try_echo=$ac_try;;
8637 esac
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639   (eval "$ac_compile") 2>conftest.er1
8640   ac_status=$?
8641   grep -v '^ *+' conftest.er1 >conftest.err
8642   rm -f conftest.er1
8643   cat conftest.err >&5
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); } &&
8646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8647   { (case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_try") 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; } &&
8656          { ac_try='test -s conftest.$ac_objext'
8657   { (case "(($ac_try" in
8658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659   *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662   (eval "$ac_try") 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   ac_header_compiler=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671         ac_header_compiler=no
8672 fi
8673
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8676 echo "${ECHO_T}$ac_header_compiler" >&6; }
8677
8678 # Is the header present?
8679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h.  */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h.  */
8687 #include <$ac_header>
8688 _ACEOF
8689 if { (ac_try="$ac_cpp conftest.$ac_ext"
8690 case "(($ac_try" in
8691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692   *) ac_try_echo=$ac_try;;
8693 esac
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8696   ac_status=$?
8697   grep -v '^ *+' conftest.er1 >conftest.err
8698   rm -f conftest.er1
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } >/dev/null; then
8702   if test -s conftest.err; then
8703     ac_cpp_err=$ac_c_preproc_warn_flag
8704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8705   else
8706     ac_cpp_err=
8707   fi
8708 else
8709   ac_cpp_err=yes
8710 fi
8711 if test -z "$ac_cpp_err"; then
8712   ac_header_preproc=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717   ac_header_preproc=no
8718 fi
8719
8720 rm -f conftest.err conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8722 echo "${ECHO_T}$ac_header_preproc" >&6; }
8723
8724 # So?  What about this header?
8725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8726   yes:no: )
8727     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8731     ac_header_preproc=yes
8732     ;;
8733   no:yes:* )
8734     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8736     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8737 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8738     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8740     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8741 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8744     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8746     ( cat <<\_ASBOX
8747 ## ----------------------------------- ##
8748 ## Report this to llvmbugs@cs.uiuc.edu ##
8749 ## ----------------------------------- ##
8750 _ASBOX
8751      ) | sed "s/^/$as_me: WARNING:     /" >&2
8752     ;;
8753 esac
8754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8757   echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759   eval "$as_ac_Header=\$ac_header_preproc"
8760 fi
8761 ac_res=`eval echo '${'$as_ac_Header'}'`
8762                { echo "$as_me:$LINENO: result: $ac_res" >&5
8763 echo "${ECHO_T}$ac_res" >&6; }
8764
8765 fi
8766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8767   cat >>confdefs.h <<_ACEOF
8768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8769 _ACEOF
8770
8771 fi
8772
8773 done
8774
8775 # Check whether --enable-ltdl-install was given.
8776 if test "${enable_ltdl_install+set}" = set; then
8777   enableval=$enable_ltdl_install;
8778 fi
8779
8780
8781
8782
8783 if test x"${enable_ltdl_install-no}" != xno; then
8784   INSTALL_LTDL_TRUE=
8785   INSTALL_LTDL_FALSE='#'
8786 else
8787   INSTALL_LTDL_TRUE='#'
8788   INSTALL_LTDL_FALSE=
8789 fi
8790
8791
8792
8793 if test x"${enable_ltdl_convenience-no}" != xno; then
8794   CONVENIENCE_LTDL_TRUE=
8795   CONVENIENCE_LTDL_FALSE='#'
8796 else
8797   CONVENIENCE_LTDL_TRUE='#'
8798   CONVENIENCE_LTDL_FALSE=
8799 fi
8800
8801
8802 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8803 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8804 library_names_spec=
8805 libname_spec='lib$name'
8806 soname_spec=
8807 shrext_cmds=".so"
8808 postinstall_cmds=
8809 postuninstall_cmds=
8810 finish_cmds=
8811 finish_eval=
8812 shlibpath_var=
8813 shlibpath_overrides_runpath=unknown
8814 version_type=none
8815 dynamic_linker="$host_os ld.so"
8816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8817 if test "$GCC" = yes; then
8818   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8819   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8820     # if the path contains ";" then we assume it to be the separator
8821     # otherwise default to the standard path separator (i.e. ":") - it is
8822     # assumed that no part of a normal pathname contains ";" but that should
8823     # okay in the real world where ";" in dirpaths is itself problematic.
8824     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8825   else
8826     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8827   fi
8828 else
8829   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8830 fi
8831 need_lib_prefix=unknown
8832 hardcode_into_libs=no
8833
8834 # when you set need_version to no, make sure it does not cause -set_version
8835 # flags to be left without arguments
8836 need_version=unknown
8837
8838 case $host_os in
8839 aix3*)
8840   version_type=linux
8841   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8842   shlibpath_var=LIBPATH
8843
8844   # AIX 3 has no versioning support, so we append a major version to the name.
8845   soname_spec='${libname}${release}${shared_ext}$major'
8846   ;;
8847
8848 aix4* | aix5*)
8849   version_type=linux
8850   need_lib_prefix=no
8851   need_version=no
8852   hardcode_into_libs=yes
8853   if test "$host_cpu" = ia64; then
8854     # AIX 5 supports IA64
8855     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8856     shlibpath_var=LD_LIBRARY_PATH
8857   else
8858     # With GCC up to 2.95.x, collect2 would create an import file
8859     # for dependence libraries.  The import file would start with
8860     # the line `#! .'.  This would cause the generated library to
8861     # depend on `.', always an invalid library.  This was fixed in
8862     # development snapshots of GCC prior to 3.0.
8863     case $host_os in
8864       aix4 | aix4.[01] | aix4.[01].*)
8865       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8866            echo ' yes '
8867            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8868         :
8869       else
8870         can_build_shared=no
8871       fi
8872       ;;
8873     esac
8874     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8875     # soname into executable. Probably we can add versioning support to
8876     # collect2, so additional links can be useful in future.
8877     if test "$aix_use_runtimelinking" = yes; then
8878       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8879       # instead of lib<name>.a to let people know that these are not
8880       # typical AIX shared libraries.
8881       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882     else
8883       # We preserve .a as extension for shared libraries through AIX4.2
8884       # and later when we are not doing run time linking.
8885       library_names_spec='${libname}${release}.a $libname.a'
8886       soname_spec='${libname}${release}${shared_ext}$major'
8887     fi
8888     shlibpath_var=LIBPATH
8889   fi
8890   ;;
8891
8892 amigaos*)
8893   library_names_spec='$libname.ixlibrary $libname.a'
8894   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8895   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'
8896   ;;
8897
8898 beos*)
8899   library_names_spec='${libname}${shared_ext}'
8900   dynamic_linker="$host_os ld.so"
8901   shlibpath_var=LIBRARY_PATH
8902   ;;
8903
8904 bsdi[45]*)
8905   version_type=linux
8906   need_version=no
8907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908   soname_spec='${libname}${release}${shared_ext}$major'
8909   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8910   shlibpath_var=LD_LIBRARY_PATH
8911   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8912   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8913   # the default ld.so.conf also contains /usr/contrib/lib and
8914   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8915   # libtool to hard-code these into programs
8916   ;;
8917
8918 cygwin* | mingw* | pw32*)
8919   version_type=windows
8920   shrext_cmds=".dll"
8921   need_version=no
8922   need_lib_prefix=no
8923
8924   case $GCC,$host_os in
8925   yes,cygwin* | yes,mingw* | yes,pw32*)
8926     library_names_spec='$libname.dll.a'
8927     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8928     postinstall_cmds='base_file=`basename \${file}`~
8929       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8930       dldir=$destdir/`dirname \$dlpath`~
8931       test -d \$dldir || mkdir -p \$dldir~
8932       $install_prog $dir/$dlname \$dldir/$dlname~
8933       chmod a+x \$dldir/$dlname'
8934     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8935       dlpath=$dir/\$dldll~
8936        $rm \$dlpath'
8937     shlibpath_overrides_runpath=yes
8938
8939     case $host_os in
8940     cygwin*)
8941       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8942       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8943       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8944       ;;
8945     mingw*)
8946       # MinGW DLLs use traditional 'lib' prefix
8947       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8948       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8949       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8950         # It is most probably a Windows format PATH printed by
8951         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8952         # path with ; separators, and with drive letters. We can handle the
8953         # drive letters (cygwin fileutils understands them), so leave them,
8954         # especially as we might pass files found there to a mingw objdump,
8955         # which wouldn't understand a cygwinified path. Ahh.
8956         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8957       else
8958         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8959       fi
8960       ;;
8961     pw32*)
8962       # pw32 DLLs use 'pw' prefix rather than 'lib'
8963       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8964       ;;
8965     esac
8966     ;;
8967
8968   *)
8969     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8970     ;;
8971   esac
8972   dynamic_linker='Win32 ld.exe'
8973   # FIXME: first we should search . and the directory the executable is in
8974   shlibpath_var=PATH
8975   ;;
8976
8977 darwin* | rhapsody*)
8978   dynamic_linker="$host_os dyld"
8979   version_type=darwin
8980   need_lib_prefix=no
8981   need_version=no
8982   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8983   soname_spec='${libname}${release}${major}$shared_ext'
8984   shlibpath_overrides_runpath=yes
8985   shlibpath_var=DYLD_LIBRARY_PATH
8986   shrext_cmds='.dylib'
8987   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8988   if test "$GCC" = yes; then
8989     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"`
8990   else
8991     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8992   fi
8993   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8994   ;;
8995
8996 dgux*)
8997   version_type=linux
8998   need_lib_prefix=no
8999   need_version=no
9000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9001   soname_spec='${libname}${release}${shared_ext}$major'
9002   shlibpath_var=LD_LIBRARY_PATH
9003   ;;
9004
9005 freebsd1.*)
9006   dynamic_linker=no
9007   ;;
9008
9009 kfreebsd*-gnu)
9010   version_type=linux
9011   need_lib_prefix=no
9012   need_version=no
9013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9014   soname_spec='${libname}${release}${shared_ext}$major'
9015   shlibpath_var=LD_LIBRARY_PATH
9016   shlibpath_overrides_runpath=no
9017   hardcode_into_libs=yes
9018   dynamic_linker='GNU ld.so'
9019   ;;
9020
9021 freebsd* | dragonfly*)
9022   # DragonFly does not have aout.  When/if they implement a new
9023   # versioning mechanism, adjust this.
9024   if test -x /usr/bin/objformat; then
9025     objformat=`/usr/bin/objformat`
9026   else
9027     case $host_os in
9028     freebsd[123].*) objformat=aout ;;
9029     *) objformat=elf ;;
9030     esac
9031   fi
9032   version_type=freebsd-$objformat
9033   case $version_type in
9034     freebsd-elf*)
9035       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9036       need_version=no
9037       need_lib_prefix=no
9038       ;;
9039     freebsd-*)
9040       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9041       need_version=yes
9042       ;;
9043   esac
9044   shlibpath_var=LD_LIBRARY_PATH
9045   case $host_os in
9046   freebsd2.*)
9047     shlibpath_overrides_runpath=yes
9048     ;;
9049   freebsd3.[01]* | freebsdelf3.[01]*)
9050     shlibpath_overrides_runpath=yes
9051     hardcode_into_libs=yes
9052     ;;
9053   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9054   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9055     shlibpath_overrides_runpath=no
9056     hardcode_into_libs=yes
9057     ;;
9058   freebsd*) # from 4.6 on
9059     shlibpath_overrides_runpath=yes
9060     hardcode_into_libs=yes
9061     ;;
9062   esac
9063   ;;
9064
9065 gnu*)
9066   version_type=linux
9067   need_lib_prefix=no
9068   need_version=no
9069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9070   soname_spec='${libname}${release}${shared_ext}$major'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   hardcode_into_libs=yes
9073   ;;
9074
9075 hpux9* | hpux10* | hpux11*)
9076   # Give a soname corresponding to the major version so that dld.sl refuses to
9077   # link against other versions.
9078   version_type=sunos
9079   need_lib_prefix=no
9080   need_version=no
9081   case $host_cpu in
9082   ia64*)
9083     shrext_cmds='.so'
9084     hardcode_into_libs=yes
9085     dynamic_linker="$host_os dld.so"
9086     shlibpath_var=LD_LIBRARY_PATH
9087     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089     soname_spec='${libname}${release}${shared_ext}$major'
9090     if test "X$HPUX_IA64_MODE" = X32; then
9091       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9092     else
9093       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9094     fi
9095     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9096     ;;
9097    hppa*64*)
9098      shrext_cmds='.sl'
9099      hardcode_into_libs=yes
9100      dynamic_linker="$host_os dld.sl"
9101      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9102      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9103      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104      soname_spec='${libname}${release}${shared_ext}$major'
9105      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9106      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9107      ;;
9108    *)
9109     shrext_cmds='.sl'
9110     dynamic_linker="$host_os dld.sl"
9111     shlibpath_var=SHLIB_PATH
9112     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114     soname_spec='${libname}${release}${shared_ext}$major'
9115     ;;
9116   esac
9117   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9118   postinstall_cmds='chmod 555 $lib'
9119   ;;
9120
9121 interix3*)
9122   version_type=linux
9123   need_lib_prefix=no
9124   need_version=no
9125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9126   soname_spec='${libname}${release}${shared_ext}$major'
9127   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9128   shlibpath_var=LD_LIBRARY_PATH
9129   shlibpath_overrides_runpath=no
9130   hardcode_into_libs=yes
9131   ;;
9132
9133 irix5* | irix6* | nonstopux*)
9134   case $host_os in
9135     nonstopux*) version_type=nonstopux ;;
9136     *)
9137         if test "$lt_cv_prog_gnu_ld" = yes; then
9138                 version_type=linux
9139         else
9140                 version_type=irix
9141         fi ;;
9142   esac
9143   need_lib_prefix=no
9144   need_version=no
9145   soname_spec='${libname}${release}${shared_ext}$major'
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9147   case $host_os in
9148   irix5* | nonstopux*)
9149     libsuff= shlibsuff=
9150     ;;
9151   *)
9152     case $LD in # libtool.m4 will add one of these switches to LD
9153     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9154       libsuff= shlibsuff= libmagic=32-bit;;
9155     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9156       libsuff=32 shlibsuff=N32 libmagic=N32;;
9157     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9158       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9159     *) libsuff= shlibsuff= libmagic=never-match;;
9160     esac
9161     ;;
9162   esac
9163   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9164   shlibpath_overrides_runpath=no
9165   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9166   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9167   hardcode_into_libs=yes
9168   ;;
9169
9170 # No shared lib support for Linux oldld, aout, or coff.
9171 linux*oldld* | linux*aout* | linux*coff*)
9172   dynamic_linker=no
9173   ;;
9174
9175 # This must be Linux ELF.
9176 linux*)
9177   version_type=linux
9178   need_lib_prefix=no
9179   need_version=no
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181   soname_spec='${libname}${release}${shared_ext}$major'
9182   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9183   shlibpath_var=LD_LIBRARY_PATH
9184   shlibpath_overrides_runpath=no
9185   # This implies no fast_install, which is unacceptable.
9186   # Some rework will be needed to allow for fast_install
9187   # before this can be enabled.
9188   hardcode_into_libs=yes
9189
9190   # Append ld.so.conf contents to the search path
9191   if test -f /etc/ld.so.conf; then
9192     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' ' '`
9193     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9194   fi
9195
9196   # We used to test for /lib/ld.so.1 and disable shared libraries on
9197   # powerpc, because MkLinux only supported shared libraries with the
9198   # GNU dynamic linker.  Since this was broken with cross compilers,
9199   # most powerpc-linux boxes support dynamic linking these days and
9200   # people can always --disable-shared, the test was removed, and we
9201   # assume the GNU/Linux dynamic linker is in use.
9202   dynamic_linker='GNU/Linux ld.so'
9203   ;;
9204
9205 knetbsd*-gnu)
9206   version_type=linux
9207   need_lib_prefix=no
9208   need_version=no
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   shlibpath_overrides_runpath=no
9213   hardcode_into_libs=yes
9214   dynamic_linker='GNU ld.so'
9215   ;;
9216
9217 netbsd*)
9218   version_type=sunos
9219   need_lib_prefix=no
9220   need_version=no
9221   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9223     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9224     dynamic_linker='NetBSD (a.out) ld.so'
9225   else
9226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9227     soname_spec='${libname}${release}${shared_ext}$major'
9228     dynamic_linker='NetBSD ld.elf_so'
9229   fi
9230   shlibpath_var=LD_LIBRARY_PATH
9231   shlibpath_overrides_runpath=yes
9232   hardcode_into_libs=yes
9233   ;;
9234
9235 newsos6)
9236   version_type=linux
9237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238   shlibpath_var=LD_LIBRARY_PATH
9239   shlibpath_overrides_runpath=yes
9240   ;;
9241
9242 nto-qnx*)
9243   version_type=linux
9244   need_lib_prefix=no
9245   need_version=no
9246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247   soname_spec='${libname}${release}${shared_ext}$major'
9248   shlibpath_var=LD_LIBRARY_PATH
9249   shlibpath_overrides_runpath=yes
9250   ;;
9251
9252 openbsd*)
9253   version_type=sunos
9254   sys_lib_dlsearch_path_spec="/usr/lib"
9255   need_lib_prefix=no
9256   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9257   case $host_os in
9258     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9259     *)                         need_version=no  ;;
9260   esac
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9262   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9263   shlibpath_var=LD_LIBRARY_PATH
9264   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9265     case $host_os in
9266       openbsd2.[89] | openbsd2.[89].*)
9267         shlibpath_overrides_runpath=no
9268         ;;
9269       *)
9270         shlibpath_overrides_runpath=yes
9271         ;;
9272       esac
9273   else
9274     shlibpath_overrides_runpath=yes
9275   fi
9276   ;;
9277
9278 os2*)
9279   libname_spec='$name'
9280   shrext_cmds=".dll"
9281   need_lib_prefix=no
9282   library_names_spec='$libname${shared_ext} $libname.a'
9283   dynamic_linker='OS/2 ld.exe'
9284   shlibpath_var=LIBPATH
9285   ;;
9286
9287 osf3* | osf4* | osf5*)
9288   version_type=osf
9289   need_lib_prefix=no
9290   need_version=no
9291   soname_spec='${libname}${release}${shared_ext}$major'
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293   shlibpath_var=LD_LIBRARY_PATH
9294   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9295   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9296   ;;
9297
9298 solaris*)
9299   version_type=linux
9300   need_lib_prefix=no
9301   need_version=no
9302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303   soname_spec='${libname}${release}${shared_ext}$major'
9304   shlibpath_var=LD_LIBRARY_PATH
9305   shlibpath_overrides_runpath=yes
9306   hardcode_into_libs=yes
9307   # ldd complains unless libraries are executable
9308   postinstall_cmds='chmod +x $lib'
9309   ;;
9310
9311 sunos4*)
9312   version_type=sunos
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9314   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9315   shlibpath_var=LD_LIBRARY_PATH
9316   shlibpath_overrides_runpath=yes
9317   if test "$with_gnu_ld" = yes; then
9318     need_lib_prefix=no
9319   fi
9320   need_version=yes
9321   ;;
9322
9323 sysv4 | sysv4.3*)
9324   version_type=linux
9325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326   soname_spec='${libname}${release}${shared_ext}$major'
9327   shlibpath_var=LD_LIBRARY_PATH
9328   case $host_vendor in
9329     sni)
9330       shlibpath_overrides_runpath=no
9331       need_lib_prefix=no
9332       export_dynamic_flag_spec='${wl}-Blargedynsym'
9333       runpath_var=LD_RUN_PATH
9334       ;;
9335     siemens)
9336       need_lib_prefix=no
9337       ;;
9338     motorola)
9339       need_lib_prefix=no
9340       need_version=no
9341       shlibpath_overrides_runpath=no
9342       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9343       ;;
9344   esac
9345   ;;
9346
9347 sysv4*MP*)
9348   if test -d /usr/nec ;then
9349     version_type=linux
9350     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9351     soname_spec='$libname${shared_ext}.$major'
9352     shlibpath_var=LD_LIBRARY_PATH
9353   fi
9354   ;;
9355
9356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9357   version_type=freebsd-elf
9358   need_lib_prefix=no
9359   need_version=no
9360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9361   soname_spec='${libname}${release}${shared_ext}$major'
9362   shlibpath_var=LD_LIBRARY_PATH
9363   hardcode_into_libs=yes
9364   if test "$with_gnu_ld" = yes; then
9365     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9366     shlibpath_overrides_runpath=no
9367   else
9368     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9369     shlibpath_overrides_runpath=yes
9370     case $host_os in
9371       sco3.2v5*)
9372         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9373         ;;
9374     esac
9375   fi
9376   sys_lib_dlsearch_path_spec='/usr/lib'
9377   ;;
9378
9379 uts4*)
9380   version_type=linux
9381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382   soname_spec='${libname}${release}${shared_ext}$major'
9383   shlibpath_var=LD_LIBRARY_PATH
9384   ;;
9385
9386 *)
9387   dynamic_linker=no
9388   ;;
9389 esac
9390 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9391 echo "${ECHO_T}$dynamic_linker" >&6; }
9392 test "$dynamic_linker" = no && can_build_shared=no
9393
9394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9395 if test "$GCC" = yes; then
9396   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9397 fi
9398
9399
9400 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9401 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9402 if test "${libltdl_cv_shlibext+set}" = set; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405
9406 module=yes
9407 eval libltdl_cv_shlibext=$shrext_cmds
9408
9409 fi
9410 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9411 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9412 if test -n "$libltdl_cv_shlibext"; then
9413
9414 cat >>confdefs.h <<_ACEOF
9415 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9416 _ACEOF
9417
9418 fi
9419
9420
9421 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9422 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9423 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   libltdl_cv_shlibpath_var="$shlibpath_var"
9427 fi
9428 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9429 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9430 if test -n "$libltdl_cv_shlibpath_var"; then
9431
9432 cat >>confdefs.h <<_ACEOF
9433 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9434 _ACEOF
9435
9436 fi
9437
9438
9439 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9440 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9441 if test "${libltdl_cv_sys_search_path+set}" = set; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9445 fi
9446 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9447 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9448 if test -n "$libltdl_cv_sys_search_path"; then
9449   sys_search_path=
9450   for dir in $libltdl_cv_sys_search_path; do
9451     if test -z "$sys_search_path"; then
9452       sys_search_path="$dir"
9453     else
9454       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9455     fi
9456   done
9457
9458 cat >>confdefs.h <<_ACEOF
9459 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9460 _ACEOF
9461
9462 fi
9463
9464 { echo "$as_me:$LINENO: checking for objdir" >&5
9465 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9466 if test "${libltdl_cv_objdir+set}" = set; then
9467   echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469   libltdl_cv_objdir="$objdir"
9470   if test -n "$objdir"; then
9471     :
9472   else
9473     rm -f .libs 2>/dev/null
9474     mkdir .libs 2>/dev/null
9475     if test -d .libs; then
9476       libltdl_cv_objdir=.libs
9477     else
9478       # MS-DOS does not allow filenames that begin with a dot.
9479       libltdl_cv_objdir=_libs
9480     fi
9481   rmdir .libs 2>/dev/null
9482   fi
9483
9484 fi
9485 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9486 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9487
9488 cat >>confdefs.h <<_ACEOF
9489 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9490 _ACEOF
9491
9492
9493
9494
9495
9496
9497 # Check for command to grab the raw symbol name followed by C symbol from nm.
9498 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9499 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9500 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9501   echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503
9504 # These are sane defaults that work on at least a few old systems.
9505 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9506
9507 # Character class describing NM global symbol codes.
9508 symcode='[BCDEGRST]'
9509
9510 # Regexp to match symbols that can be accessed directly from C.
9511 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9512
9513 # Transform an extracted symbol line into a proper C declaration
9514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9515
9516 # Transform an extracted symbol line into symbol name and symbol address
9517 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'"
9518
9519 # Define system-specific variables.
9520 case $host_os in
9521 aix*)
9522   symcode='[BCDT]'
9523   ;;
9524 cygwin* | mingw* | pw32*)
9525   symcode='[ABCDGISTW]'
9526   ;;
9527 hpux*) # Its linker distinguishes data from code symbols
9528   if test "$host_cpu" = ia64; then
9529     symcode='[ABCDEGRST]'
9530   fi
9531   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9532   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'"
9533   ;;
9534 linux*)
9535   if test "$host_cpu" = ia64; then
9536     symcode='[ABCDGIRSTW]'
9537     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9538     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'"
9539   fi
9540   ;;
9541 irix* | nonstopux*)
9542   symcode='[BCDEGRST]'
9543   ;;
9544 osf*)
9545   symcode='[BCDEGQRST]'
9546   ;;
9547 solaris*)
9548   symcode='[BDRT]'
9549   ;;
9550 sco3.2v5*)
9551   symcode='[DT]'
9552   ;;
9553 sysv4.2uw2*)
9554   symcode='[DT]'
9555   ;;
9556 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9557   symcode='[ABDT]'
9558   ;;
9559 sysv4)
9560   symcode='[DFNSTU]'
9561   ;;
9562 esac
9563
9564 # Handle CRLF in mingw tool chain
9565 opt_cr=
9566 case $build_os in
9567 mingw*)
9568   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9569   ;;
9570 esac
9571
9572 # If we're using GNU nm, then use its standard symbol codes.
9573 case `$NM -V 2>&1` in
9574 *GNU* | *'with BFD'*)
9575   symcode='[ABCDGIRSTW]' ;;
9576 esac
9577
9578 # Try without a prefix undercore, then with it.
9579 for ac_symprfx in "" "_"; do
9580
9581   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9582   symxfrm="\\1 $ac_symprfx\\2 \\2"
9583
9584   # Write the raw and C identifiers.
9585   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9586
9587   # Check to see that the pipe works correctly.
9588   pipe_works=no
9589
9590   rm -f conftest*
9591   cat > conftest.$ac_ext <<EOF
9592 #ifdef __cplusplus
9593 extern "C" {
9594 #endif
9595 char nm_test_var;
9596 void nm_test_func(){}
9597 #ifdef __cplusplus
9598 }
9599 #endif
9600 int main(){nm_test_var='a';nm_test_func();return(0);}
9601 EOF
9602
9603   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9604   (eval $ac_compile) 2>&5
9605   ac_status=$?
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); }; then
9608     # Now try to grab the symbols.
9609     nlist=conftest.nm
9610     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9611   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9612   ac_status=$?
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } && test -s "$nlist"; then
9615       # Try sorting and uniquifying the output.
9616       if sort "$nlist" | uniq > "$nlist"T; then
9617         mv -f "$nlist"T "$nlist"
9618       else
9619         rm -f "$nlist"T
9620       fi
9621
9622       # Make sure that we snagged all the symbols we need.
9623       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9624         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9625           cat <<EOF > conftest.$ac_ext
9626 #ifdef __cplusplus
9627 extern "C" {
9628 #endif
9629
9630 EOF
9631           # Now generate the symbol file.
9632           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9633
9634           cat <<EOF >> conftest.$ac_ext
9635 #if defined (__STDC__) && __STDC__
9636 # define lt_ptr_t void *
9637 #else
9638 # define lt_ptr_t char *
9639 # define const
9640 #endif
9641
9642 /* The mapping between symbol names and symbols. */
9643 const struct {
9644   const char *name;
9645   lt_ptr_t address;
9646 }
9647 lt_preloaded_symbols[] =
9648 {
9649 EOF
9650           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9651           cat <<\EOF >> conftest.$ac_ext
9652   {0, (lt_ptr_t) 0}
9653 };
9654
9655 #ifdef __cplusplus
9656 }
9657 #endif
9658 EOF
9659           # Now try linking the two files.
9660           mv conftest.$ac_objext conftstm.$ac_objext
9661           lt_save_LIBS="$LIBS"
9662           lt_save_CFLAGS="$CFLAGS"
9663           LIBS="conftstm.$ac_objext"
9664           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9665           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666   (eval $ac_link) 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9670             pipe_works=yes
9671           fi
9672           LIBS="$lt_save_LIBS"
9673           CFLAGS="$lt_save_CFLAGS"
9674         else
9675           echo "cannot find nm_test_func in $nlist" >&5
9676         fi
9677       else
9678         echo "cannot find nm_test_var in $nlist" >&5
9679       fi
9680     else
9681       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9682     fi
9683   else
9684     echo "$progname: failed program was:" >&5
9685     cat conftest.$ac_ext >&5
9686   fi
9687   rm -f conftest* conftst*
9688
9689   # Do not use the global_symbol_pipe unless it works.
9690   if test "$pipe_works" = yes; then
9691     break
9692   else
9693     lt_cv_sys_global_symbol_pipe=
9694   fi
9695 done
9696
9697 fi
9698
9699 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9700   lt_cv_sys_global_symbol_to_cdecl=
9701 fi
9702 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9703   { echo "$as_me:$LINENO: result: failed" >&5
9704 echo "${ECHO_T}failed" >&6; }
9705 else
9706   { echo "$as_me:$LINENO: result: ok" >&5
9707 echo "${ECHO_T}ok" >&6; }
9708 fi
9709
9710
9711 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9712 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9713 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9717     libltdl_cv_preloaded_symbols=yes
9718   else
9719     libltdl_cv_preloaded_symbols=no
9720   fi
9721
9722 fi
9723 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9724 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9725 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9726
9727 cat >>confdefs.h <<\_ACEOF
9728 #define HAVE_PRELOADED_SYMBOLS 1
9729 _ACEOF
9730
9731 fi
9732
9733 LIBADD_DL=
9734
9735 ac_ext=c
9736 ac_cpp='$CPP $CPPFLAGS'
9737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9740
9741
9742 { echo "$as_me:$LINENO: checking for shl_load" >&5
9743 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9744 if test "${ac_cv_func_shl_load+set}" = set; then
9745   echo $ECHO_N "(cached) $ECHO_C" >&6
9746 else
9747   cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9755 #define shl_load innocuous_shl_load
9756
9757 /* System header to define __stub macros and hopefully few prototypes,
9758     which can conflict with char shl_load (); below.
9759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9760     <limits.h> exists even on freestanding compilers.  */
9761
9762 #ifdef __STDC__
9763 # include <limits.h>
9764 #else
9765 # include <assert.h>
9766 #endif
9767
9768 #undef shl_load
9769
9770 /* Override any GCC internal prototype to avoid an error.
9771    Use char because int might match the return type of a GCC
9772    builtin and then its argument prototype would still apply.  */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 char shl_load ();
9777 /* The GNU C library defines this for functions which it implements
9778     to always fail with ENOSYS.  Some functions are actually named
9779     something starting with __ and the normal name is an alias.  */
9780 #if defined __stub_shl_load || defined __stub___shl_load
9781 choke me
9782 #endif
9783
9784 int
9785 main ()
9786 {
9787 return shl_load ();
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (ac_try="$ac_link"
9794 case "(($ac_try" in
9795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796   *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799   (eval "$ac_link") 2>conftest.er1
9800   ac_status=$?
9801   grep -v '^ *+' conftest.er1 >conftest.err
9802   rm -f conftest.er1
9803   cat conftest.err >&5
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); } &&
9806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9807   { (case "(($ac_try" in
9808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809   *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812   (eval "$ac_try") 2>&5
9813   ac_status=$?
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); }; } &&
9816          { ac_try='test -s conftest$ac_exeext'
9817   { (case "(($ac_try" in
9818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819   *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822   (eval "$ac_try") 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; }; then
9826   ac_cv_func_shl_load=yes
9827 else
9828   echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9830
9831         ac_cv_func_shl_load=no
9832 fi
9833
9834 rm -f core conftest.err conftest.$ac_objext \
9835       conftest$ac_exeext conftest.$ac_ext
9836 fi
9837 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9838 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9839 if test $ac_cv_func_shl_load = yes; then
9840
9841 cat >>confdefs.h <<\_ACEOF
9842 #define HAVE_SHL_LOAD 1
9843 _ACEOF
9844
9845 else
9846   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9847 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9848 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9849   echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851   ac_check_lib_save_LIBS=$LIBS
9852 LIBS="-ldld  $LIBS"
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h.  */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h.  */
9859
9860 /* Override any GCC internal prototype to avoid an error.
9861    Use char because int might match the return type of a GCC
9862    builtin and then its argument prototype would still apply.  */
9863 #ifdef __cplusplus
9864 extern "C"
9865 #endif
9866 char shl_load ();
9867 int
9868 main ()
9869 {
9870 return shl_load ();
9871   ;
9872   return 0;
9873 }
9874 _ACEOF
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9877 case "(($ac_try" in
9878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879   *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882   (eval "$ac_link") 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } &&
9889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9890   { (case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895   (eval "$ac_try") 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; } &&
9899          { ac_try='test -s conftest$ac_exeext'
9900   { (case "(($ac_try" in
9901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902   *) ac_try_echo=$ac_try;;
9903 esac
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905   (eval "$ac_try") 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); }; }; then
9909   ac_cv_lib_dld_shl_load=yes
9910 else
9911   echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914         ac_cv_lib_dld_shl_load=no
9915 fi
9916
9917 rm -f core conftest.err conftest.$ac_objext \
9918       conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9920 fi
9921 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9922 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9923 if test $ac_cv_lib_dld_shl_load = yes; then
9924
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_SHL_LOAD 1
9927 _ACEOF
9928
9929         LIBADD_DL="$LIBADD_DL -ldld"
9930 else
9931   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9932 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9933 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936   ac_check_lib_save_LIBS=$LIBS
9937 LIBS="-ldl  $LIBS"
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h.  */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h.  */
9944
9945 /* Override any GCC internal prototype to avoid an error.
9946    Use char because int might match the return type of a GCC
9947    builtin and then its argument prototype would still apply.  */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 char dlopen ();
9952 int
9953 main ()
9954 {
9955 return dlopen ();
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9962 case "(($ac_try" in
9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964   *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967   (eval "$ac_link") 2>conftest.er1
9968   ac_status=$?
9969   grep -v '^ *+' conftest.er1 >conftest.err
9970   rm -f conftest.er1
9971   cat conftest.err >&5
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } &&
9974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9975   { (case "(($ac_try" in
9976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977   *) ac_try_echo=$ac_try;;
9978 esac
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980   (eval "$ac_try") 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); }; } &&
9984          { ac_try='test -s conftest$ac_exeext'
9985   { (case "(($ac_try" in
9986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987   *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990   (eval "$ac_try") 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; }; then
9994   ac_cv_lib_dl_dlopen=yes
9995 else
9996   echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9998
9999         ac_cv_lib_dl_dlopen=no
10000 fi
10001
10002 rm -f core conftest.err conftest.$ac_objext \
10003       conftest$ac_exeext conftest.$ac_ext
10004 LIBS=$ac_check_lib_save_LIBS
10005 fi
10006 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10007 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10008 if test $ac_cv_lib_dl_dlopen = yes; then
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define HAVE_LIBDL 1
10012 _ACEOF
10013
10014                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10015 else
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 #if HAVE_DLFCN_H
10023 #  include <dlfcn.h>
10024 #endif
10025
10026 int
10027 main ()
10028 {
10029 dlopen(0, 0);
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038   *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041   (eval "$ac_link") 2>conftest.er1
10042   ac_status=$?
10043   grep -v '^ *+' conftest.er1 >conftest.err
10044   rm -f conftest.er1
10045   cat conftest.err >&5
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); } &&
10048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10049   { (case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_try") 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_try") 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; }; then
10068
10069 cat >>confdefs.h <<\_ACEOF
10070 #define HAVE_LIBDL 1
10071 _ACEOF
10072  libltdl_cv_func_dlopen="yes"
10073 else
10074   echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10078 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10079 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-lsvld  $LIBS"
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h.  */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h.  */
10090
10091 /* Override any GCC internal prototype to avoid an error.
10092    Use char because int might match the return type of a GCC
10093    builtin and then its argument prototype would still apply.  */
10094 #ifdef __cplusplus
10095 extern "C"
10096 #endif
10097 char dlopen ();
10098 int
10099 main ()
10100 {
10101 return dlopen ();
10102   ;
10103   return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110   *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113   (eval "$ac_link") 2>conftest.er1
10114   ac_status=$?
10115   grep -v '^ *+' conftest.er1 >conftest.err
10116   rm -f conftest.er1
10117   cat conftest.err >&5
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } &&
10120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121   { (case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_try") 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); }; } &&
10130          { ac_try='test -s conftest$ac_exeext'
10131   { (case "(($ac_try" in
10132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133   *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136   (eval "$ac_try") 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); }; }; then
10140   ac_cv_lib_svld_dlopen=yes
10141 else
10142   echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145         ac_cv_lib_svld_dlopen=no
10146 fi
10147
10148 rm -f core conftest.err conftest.$ac_objext \
10149       conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10151 fi
10152 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10153 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10154 if test $ac_cv_lib_svld_dlopen = yes; then
10155
10156 cat >>confdefs.h <<\_ACEOF
10157 #define HAVE_LIBDL 1
10158 _ACEOF
10159
10160                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10161 else
10162   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10163 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10164 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10165   echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167   ac_check_lib_save_LIBS=$LIBS
10168 LIBS="-ldld  $LIBS"
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h.  */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h.  */
10175
10176 /* Override any GCC internal prototype to avoid an error.
10177    Use char because int might match the return type of a GCC
10178    builtin and then its argument prototype would still apply.  */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 char dld_link ();
10183 int
10184 main ()
10185 {
10186 return dld_link ();
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195   *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198   (eval "$ac_link") 2>conftest.er1
10199   ac_status=$?
10200   grep -v '^ *+' conftest.er1 >conftest.err
10201   rm -f conftest.er1
10202   cat conftest.err >&5
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } &&
10205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206   { (case "(($ac_try" in
10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208   *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211   (eval "$ac_try") 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; } &&
10215          { ac_try='test -s conftest$ac_exeext'
10216   { (case "(($ac_try" in
10217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218   *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221   (eval "$ac_try") 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; }; then
10225   ac_cv_lib_dld_dld_link=yes
10226 else
10227   echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230         ac_cv_lib_dld_dld_link=no
10231 fi
10232
10233 rm -f core conftest.err conftest.$ac_objext \
10234       conftest$ac_exeext conftest.$ac_ext
10235 LIBS=$ac_check_lib_save_LIBS
10236 fi
10237 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10238 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10239 if test $ac_cv_lib_dld_dld_link = yes; then
10240
10241 cat >>confdefs.h <<\_ACEOF
10242 #define HAVE_DLD 1
10243 _ACEOF
10244
10245                 LIBADD_DL="$LIBADD_DL -ldld"
10246 else
10247   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10248 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10249 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10250   echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252   cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10260 #define _dyld_func_lookup innocuous__dyld_func_lookup
10261
10262 /* System header to define __stub macros and hopefully few prototypes,
10263     which can conflict with char _dyld_func_lookup (); below.
10264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10265     <limits.h> exists even on freestanding compilers.  */
10266
10267 #ifdef __STDC__
10268 # include <limits.h>
10269 #else
10270 # include <assert.h>
10271 #endif
10272
10273 #undef _dyld_func_lookup
10274
10275 /* Override any GCC internal prototype to avoid an error.
10276    Use char because int might match the return type of a GCC
10277    builtin and then its argument prototype would still apply.  */
10278 #ifdef __cplusplus
10279 extern "C"
10280 #endif
10281 char _dyld_func_lookup ();
10282 /* The GNU C library defines this for functions which it implements
10283     to always fail with ENOSYS.  Some functions are actually named
10284     something starting with __ and the normal name is an alias.  */
10285 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10286 choke me
10287 #endif
10288
10289 int
10290 main ()
10291 {
10292 return _dyld_func_lookup ();
10293   ;
10294   return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (ac_try="$ac_link"
10299 case "(($ac_try" in
10300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301   *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304   (eval "$ac_link") 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10312   { (case "(($ac_try" in
10313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314   *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317   (eval "$ac_try") 2>&5
10318   ac_status=$?
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); }; } &&
10321          { ac_try='test -s conftest$ac_exeext'
10322   { (case "(($ac_try" in
10323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324   *) ac_try_echo=$ac_try;;
10325 esac
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327   (eval "$ac_try") 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   ac_cv_func__dyld_func_lookup=yes
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336         ac_cv_func__dyld_func_lookup=no
10337 fi
10338
10339 rm -f core conftest.err conftest.$ac_objext \
10340       conftest$ac_exeext conftest.$ac_ext
10341 fi
10342 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10343 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10344 if test $ac_cv_func__dyld_func_lookup = yes; then
10345
10346 cat >>confdefs.h <<\_ACEOF
10347 #define HAVE_DYLD 1
10348 _ACEOF
10349
10350 fi
10351
10352
10353 fi
10354
10355
10356 fi
10357
10358
10359 fi
10360
10361 rm -f core conftest.err conftest.$ac_objext \
10362       conftest$ac_exeext conftest.$ac_ext
10363
10364 fi
10365
10366
10367 fi
10368
10369
10370 fi
10371
10372
10373 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10374 then
10375   lt_save_LIBS="$LIBS"
10376   LIBS="$LIBS $LIBADD_DL"
10377
10378 for ac_func in dlerror
10379 do
10380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10384   echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386   cat >conftest.$ac_ext <<_ACEOF
10387 /* confdefs.h.  */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h.  */
10392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10394 #define $ac_func innocuous_$ac_func
10395
10396 /* System header to define __stub macros and hopefully few prototypes,
10397     which can conflict with char $ac_func (); below.
10398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10399     <limits.h> exists even on freestanding compilers.  */
10400
10401 #ifdef __STDC__
10402 # include <limits.h>
10403 #else
10404 # include <assert.h>
10405 #endif
10406
10407 #undef $ac_func
10408
10409 /* Override any GCC internal prototype to avoid an error.
10410    Use char because int might match the return type of a GCC
10411    builtin and then its argument prototype would still apply.  */
10412 #ifdef __cplusplus
10413 extern "C"
10414 #endif
10415 char $ac_func ();
10416 /* The GNU C library defines this for functions which it implements
10417     to always fail with ENOSYS.  Some functions are actually named
10418     something starting with __ and the normal name is an alias.  */
10419 #if defined __stub_$ac_func || defined __stub___$ac_func
10420 choke me
10421 #endif
10422
10423 int
10424 main ()
10425 {
10426 return $ac_func ();
10427   ;
10428   return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435   *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438   (eval "$ac_link") 2>conftest.er1
10439   ac_status=$?
10440   grep -v '^ *+' conftest.er1 >conftest.err
10441   rm -f conftest.er1
10442   cat conftest.err >&5
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); } &&
10445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446   { (case "(($ac_try" in
10447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448   *) ac_try_echo=$ac_try;;
10449 esac
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451   (eval "$ac_try") 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); }; } &&
10455          { ac_try='test -s conftest$ac_exeext'
10456   { (case "(($ac_try" in
10457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458   *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461   (eval "$ac_try") 2>&5
10462   ac_status=$?
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); }; }; then
10465   eval "$as_ac_var=yes"
10466 else
10467   echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470         eval "$as_ac_var=no"
10471 fi
10472
10473 rm -f core conftest.err conftest.$ac_objext \
10474       conftest$ac_exeext conftest.$ac_ext
10475 fi
10476 ac_res=`eval echo '${'$as_ac_var'}'`
10477                { echo "$as_me:$LINENO: result: $ac_res" >&5
10478 echo "${ECHO_T}$ac_res" >&6; }
10479 if test `eval echo '${'$as_ac_var'}'` = yes; then
10480   cat >>confdefs.h <<_ACEOF
10481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10482 _ACEOF
10483
10484 fi
10485 done
10486
10487   LIBS="$lt_save_LIBS"
10488 fi
10489 ac_ext=c
10490 ac_cpp='$CPP $CPPFLAGS'
10491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10494
10495
10496
10497 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10498 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10499 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   ac_cv_sys_symbol_underscore=no
10503   cat > conftest.$ac_ext <<EOF
10504 void nm_test_func(){}
10505 int main(){nm_test_func;return 0;}
10506 EOF
10507   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10508   (eval $ac_compile) 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); }; then
10512     # Now try to grab the symbols.
10513     ac_nlist=conftest.nm
10514     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10515   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); } && test -s "$ac_nlist"; then
10519       # See whether the symbols have a leading underscore.
10520       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10521         ac_cv_sys_symbol_underscore=yes
10522       else
10523         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10524           :
10525         else
10526           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10527         fi
10528       fi
10529     else
10530       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10531     fi
10532   else
10533     echo "configure: failed program was:" >&5
10534     cat conftest.c >&5
10535   fi
10536   rm -rf conftest*
10537
10538 fi
10539 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10540 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10541
10542
10543 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10544   if test x"$libltdl_cv_func_dlopen" = xyes ||
10545      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10546         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10547 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10548 if test "${libltdl_cv_need_uscore+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   libltdl_cv_need_uscore=unknown
10552           save_LIBS="$LIBS"
10553           LIBS="$LIBS $LIBADD_DL"
10554           if test "$cross_compiling" = yes; then :
10555   libltdl_cv_need_uscore=cross
10556 else
10557   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10558   lt_status=$lt_dlunknown
10559   cat > conftest.$ac_ext <<EOF
10560 #line 10560 "configure"
10561 #include "confdefs.h"
10562
10563 #if HAVE_DLFCN_H
10564 #include <dlfcn.h>
10565 #endif
10566
10567 #include <stdio.h>
10568
10569 #ifdef RTLD_GLOBAL
10570 #  define LT_DLGLOBAL           RTLD_GLOBAL
10571 #else
10572 #  ifdef DL_GLOBAL
10573 #    define LT_DLGLOBAL         DL_GLOBAL
10574 #  else
10575 #    define LT_DLGLOBAL         0
10576 #  endif
10577 #endif
10578
10579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10580    find out it does not work in some platform. */
10581 #ifndef LT_DLLAZY_OR_NOW
10582 #  ifdef RTLD_LAZY
10583 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10584 #  else
10585 #    ifdef DL_LAZY
10586 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10587 #    else
10588 #      ifdef RTLD_NOW
10589 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10590 #      else
10591 #        ifdef DL_NOW
10592 #          define LT_DLLAZY_OR_NOW      DL_NOW
10593 #        else
10594 #          define LT_DLLAZY_OR_NOW      0
10595 #        endif
10596 #      endif
10597 #    endif
10598 #  endif
10599 #endif
10600
10601 #ifdef __cplusplus
10602 extern "C" void exit (int);
10603 #endif
10604
10605 void fnord() { int i=42;}
10606 int main ()
10607 {
10608   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10609   int status = $lt_dlunknown;
10610
10611   if (self)
10612     {
10613       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10614       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10615       /* dlclose (self); */
10616     }
10617   else
10618     puts (dlerror ());
10619
10620     exit (status);
10621 }
10622 EOF
10623   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10624   (eval $ac_link) 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10628     (./conftest; exit; ) >&5 2>/dev/null
10629     lt_status=$?
10630     case x$lt_status in
10631       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10632       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10633       x$lt_dlunknown|x*)  ;;
10634     esac
10635   else :
10636     # compilation failed
10637
10638   fi
10639 fi
10640 rm -fr conftest*
10641
10642           LIBS="$save_LIBS"
10643
10644 fi
10645 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10646 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10647   fi
10648 fi
10649
10650 if test x"$libltdl_cv_need_uscore" = xyes; then
10651
10652 cat >>confdefs.h <<\_ACEOF
10653 #define NEED_USCORE 1
10654 _ACEOF
10655
10656 fi
10657
10658
10659 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10660 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10661 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10662   echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664   # PORTME does your system automatically load deplibs for dlopen?
10665   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10666   # For now, we just catch OSes we know something about -- in the
10667   # future, we'll try test this programmatically.
10668   libltdl_cv_sys_dlopen_deplibs=unknown
10669   case "$host_os" in
10670   aix3*|aix4.1.*|aix4.2.*)
10671     # Unknown whether this is true for these versions of AIX, but
10672     # we want this `case' here to explicitly catch those versions.
10673     libltdl_cv_sys_dlopen_deplibs=unknown
10674     ;;
10675   aix[45]*)
10676     libltdl_cv_sys_dlopen_deplibs=yes
10677     ;;
10678   darwin*)
10679     # Assuming the user has installed a libdl from somewhere, this is true
10680     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10681     libltdl_cv_sys_dlopen_deplibs=yes
10682     ;;
10683   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10684     # GNU and its variants, using gnu ld.so (Glibc)
10685     libltdl_cv_sys_dlopen_deplibs=yes
10686     ;;
10687   hpux10*|hpux11*)
10688     libltdl_cv_sys_dlopen_deplibs=yes
10689     ;;
10690   interix*)
10691     libltdl_cv_sys_dlopen_deplibs=yes
10692     ;;
10693   irix[12345]*|irix6.[01]*)
10694     # Catch all versions of IRIX before 6.2, and indicate that we don't
10695     # know how it worked for any of those versions.
10696     libltdl_cv_sys_dlopen_deplibs=unknown
10697     ;;
10698   irix*)
10699     # The case above catches anything before 6.2, and it's known that
10700     # at 6.2 and later dlopen does load deplibs.
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   netbsd*)
10704     libltdl_cv_sys_dlopen_deplibs=yes
10705     ;;
10706   openbsd*)
10707     libltdl_cv_sys_dlopen_deplibs=yes
10708     ;;
10709   osf[1234]*)
10710     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10711     # it did *not* use an RPATH in a shared library to find objects the
10712     # library depends on, so we explicitly say `no'.
10713     libltdl_cv_sys_dlopen_deplibs=no
10714     ;;
10715   osf5.0|osf5.0a|osf5.1)
10716     # dlopen *does* load deplibs and with the right loader patch applied
10717     # it even uses RPATH in a shared library to search for shared objects
10718     # that the library depends on, but there's no easy way to know if that
10719     # patch is installed.  Since this is the case, all we can really
10720     # say is unknown -- it depends on the patch being installed.  If
10721     # it is, this changes to `yes'.  Without it, it would be `no'.
10722     libltdl_cv_sys_dlopen_deplibs=unknown
10723     ;;
10724   osf*)
10725     # the two cases above should catch all versions of osf <= 5.1.  Read
10726     # the comments above for what we know about them.
10727     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10728     # is used to find them so we can finally say `yes'.
10729     libltdl_cv_sys_dlopen_deplibs=yes
10730     ;;
10731   solaris*)
10732     libltdl_cv_sys_dlopen_deplibs=yes
10733     ;;
10734   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10735     libltdl_cv_sys_dlopen_deplibs=yes
10736     ;;
10737   esac
10738
10739 fi
10740 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10741 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10742 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10743
10744 cat >>confdefs.h <<\_ACEOF
10745 #define LTDL_DLOPEN_DEPLIBS 1
10746 _ACEOF
10747
10748 fi
10749
10750
10751 for ac_header in argz.h
10752 do
10753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10755   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10758   echo $ECHO_N "(cached) $ECHO_C" >&6
10759 fi
10760 ac_res=`eval echo '${'$as_ac_Header'}'`
10761                { echo "$as_me:$LINENO: result: $ac_res" >&5
10762 echo "${ECHO_T}$ac_res" >&6; }
10763 else
10764   # Is the header compilable?
10765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10767 cat >conftest.$ac_ext <<_ACEOF
10768 /* confdefs.h.  */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h.  */
10773 $ac_includes_default
10774 #include <$ac_header>
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783   (eval "$ac_compile") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } &&
10790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791   { (case "(($ac_try" in
10792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793   *) ac_try_echo=$ac_try;;
10794 esac
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796   (eval "$ac_try") 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; } &&
10800          { ac_try='test -s conftest.$ac_objext'
10801   { (case "(($ac_try" in
10802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803   *) ac_try_echo=$ac_try;;
10804 esac
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806   (eval "$ac_try") 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; }; then
10810   ac_header_compiler=yes
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815         ac_header_compiler=no
10816 fi
10817
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10820 echo "${ECHO_T}$ac_header_compiler" >&6; }
10821
10822 # Is the header present?
10823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h.  */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h.  */
10831 #include <$ac_header>
10832 _ACEOF
10833 if { (ac_try="$ac_cpp conftest.$ac_ext"
10834 case "(($ac_try" in
10835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836   *) ac_try_echo=$ac_try;;
10837 esac
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10840   ac_status=$?
10841   grep -v '^ *+' conftest.er1 >conftest.err
10842   rm -f conftest.er1
10843   cat conftest.err >&5
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); } >/dev/null; then
10846   if test -s conftest.err; then
10847     ac_cpp_err=$ac_c_preproc_warn_flag
10848     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10849   else
10850     ac_cpp_err=
10851   fi
10852 else
10853   ac_cpp_err=yes
10854 fi
10855 if test -z "$ac_cpp_err"; then
10856   ac_header_preproc=yes
10857 else
10858   echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10860
10861   ac_header_preproc=no
10862 fi
10863
10864 rm -f conftest.err conftest.$ac_ext
10865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10866 echo "${ECHO_T}$ac_header_preproc" >&6; }
10867
10868 # So?  What about this header?
10869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10870   yes:no: )
10871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10875     ac_header_preproc=yes
10876     ;;
10877   no:yes:* )
10878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10880     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10881 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10882     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10884     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10885 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10888     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10890     ( cat <<\_ASBOX
10891 ## ----------------------------------- ##
10892 ## Report this to llvmbugs@cs.uiuc.edu ##
10893 ## ----------------------------------- ##
10894 _ASBOX
10895      ) | sed "s/^/$as_me: WARNING:     /" >&2
10896     ;;
10897 esac
10898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901   echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903   eval "$as_ac_Header=\$ac_header_preproc"
10904 fi
10905 ac_res=`eval echo '${'$as_ac_Header'}'`
10906                { echo "$as_me:$LINENO: result: $ac_res" >&5
10907 echo "${ECHO_T}$ac_res" >&6; }
10908
10909 fi
10910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10911   cat >>confdefs.h <<_ACEOF
10912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10913 _ACEOF
10914
10915 fi
10916
10917 done
10918
10919
10920 { echo "$as_me:$LINENO: checking for error_t" >&5
10921 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10922 if test "${ac_cv_type_error_t+set}" = set; then
10923   echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925   cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h.  */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h.  */
10931 #if HAVE_ARGZ_H
10932 #  include <argz.h>
10933 #endif
10934
10935 typedef error_t ac__type_new_;
10936 int
10937 main ()
10938 {
10939 if ((ac__type_new_ *) 0)
10940   return 0;
10941 if (sizeof (ac__type_new_))
10942   return 0;
10943   ;
10944   return 0;
10945 }
10946 _ACEOF
10947 rm -f conftest.$ac_objext
10948 if { (ac_try="$ac_compile"
10949 case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_compile") 2>conftest.er1
10955   ac_status=$?
10956   grep -v '^ *+' conftest.er1 >conftest.err
10957   rm -f conftest.er1
10958   cat conftest.err >&5
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } &&
10961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10962   { (case "(($ac_try" in
10963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964   *) ac_try_echo=$ac_try;;
10965 esac
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967   (eval "$ac_try") 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); }; } &&
10971          { ac_try='test -s conftest.$ac_objext'
10972   { (case "(($ac_try" in
10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974   *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977   (eval "$ac_try") 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); }; }; then
10981   ac_cv_type_error_t=yes
10982 else
10983   echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10985
10986         ac_cv_type_error_t=no
10987 fi
10988
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 fi
10991 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10992 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10993 if test $ac_cv_type_error_t = yes; then
10994
10995 cat >>confdefs.h <<_ACEOF
10996 #define HAVE_ERROR_T 1
10997 _ACEOF
10998
10999
11000 else
11001
11002 cat >>confdefs.h <<\_ACEOF
11003 #define error_t int
11004 _ACEOF
11005
11006 fi
11007
11008
11009
11010
11011
11012
11013
11014 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11015 do
11016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11020   echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022   cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h.  */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h.  */
11028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11030 #define $ac_func innocuous_$ac_func
11031
11032 /* System header to define __stub macros and hopefully few prototypes,
11033     which can conflict with char $ac_func (); below.
11034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035     <limits.h> exists even on freestanding compilers.  */
11036
11037 #ifdef __STDC__
11038 # include <limits.h>
11039 #else
11040 # include <assert.h>
11041 #endif
11042
11043 #undef $ac_func
11044
11045 /* Override any GCC internal prototype to avoid an error.
11046    Use char because int might match the return type of a GCC
11047    builtin and then its argument prototype would still apply.  */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char $ac_func ();
11052 /* The GNU C library defines this for functions which it implements
11053     to always fail with ENOSYS.  Some functions are actually named
11054     something starting with __ and the normal name is an alias.  */
11055 #if defined __stub_$ac_func || defined __stub___$ac_func
11056 choke me
11057 #endif
11058
11059 int
11060 main ()
11061 {
11062 return $ac_func ();
11063   ;
11064   return 0;
11065 }
11066 _ACEOF
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (ac_try="$ac_link"
11069 case "(($ac_try" in
11070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071   *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074   (eval "$ac_link") 2>conftest.er1
11075   ac_status=$?
11076   grep -v '^ *+' conftest.er1 >conftest.err
11077   rm -f conftest.er1
11078   cat conftest.err >&5
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); } &&
11081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11082   { (case "(($ac_try" in
11083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084   *) ac_try_echo=$ac_try;;
11085 esac
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087   (eval "$ac_try") 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; } &&
11091          { ac_try='test -s conftest$ac_exeext'
11092   { (case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_try") 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); }; }; then
11101   eval "$as_ac_var=yes"
11102 else
11103   echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11105
11106         eval "$as_ac_var=no"
11107 fi
11108
11109 rm -f core conftest.err conftest.$ac_objext \
11110       conftest$ac_exeext conftest.$ac_ext
11111 fi
11112 ac_res=`eval echo '${'$as_ac_var'}'`
11113                { echo "$as_me:$LINENO: result: $ac_res" >&5
11114 echo "${ECHO_T}$ac_res" >&6; }
11115 if test `eval echo '${'$as_ac_var'}'` = yes; then
11116   cat >>confdefs.h <<_ACEOF
11117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11118 _ACEOF
11119
11120 fi
11121 done
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11151                   stdio.h unistd.h
11152 do
11153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11158   echo $ECHO_N "(cached) $ECHO_C" >&6
11159 fi
11160 ac_res=`eval echo '${'$as_ac_Header'}'`
11161                { echo "$as_me:$LINENO: result: $ac_res" >&5
11162 echo "${ECHO_T}$ac_res" >&6; }
11163 else
11164   # Is the header compilable?
11165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h.  */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h.  */
11173 $ac_includes_default
11174 #include <$ac_header>
11175 _ACEOF
11176 rm -f conftest.$ac_objext
11177 if { (ac_try="$ac_compile"
11178 case "(($ac_try" in
11179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180   *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183   (eval "$ac_compile") 2>conftest.er1
11184   ac_status=$?
11185   grep -v '^ *+' conftest.er1 >conftest.err
11186   rm -f conftest.er1
11187   cat conftest.err >&5
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); } &&
11190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11191   { (case "(($ac_try" in
11192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193   *) ac_try_echo=$ac_try;;
11194 esac
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196   (eval "$ac_try") 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; } &&
11200          { ac_try='test -s conftest.$ac_objext'
11201   { (case "(($ac_try" in
11202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203   *) ac_try_echo=$ac_try;;
11204 esac
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206   (eval "$ac_try") 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); }; }; then
11210   ac_header_compiler=yes
11211 else
11212   echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215         ac_header_compiler=no
11216 fi
11217
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220 echo "${ECHO_T}$ac_header_compiler" >&6; }
11221
11222 # Is the header present?
11223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11225 cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h.  */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h.  */
11231 #include <$ac_header>
11232 _ACEOF
11233 if { (ac_try="$ac_cpp conftest.$ac_ext"
11234 case "(($ac_try" in
11235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236   *) ac_try_echo=$ac_try;;
11237 esac
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11240   ac_status=$?
11241   grep -v '^ *+' conftest.er1 >conftest.err
11242   rm -f conftest.er1
11243   cat conftest.err >&5
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); } >/dev/null; then
11246   if test -s conftest.err; then
11247     ac_cpp_err=$ac_c_preproc_warn_flag
11248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11249   else
11250     ac_cpp_err=
11251   fi
11252 else
11253   ac_cpp_err=yes
11254 fi
11255 if test -z "$ac_cpp_err"; then
11256   ac_header_preproc=yes
11257 else
11258   echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11260
11261   ac_header_preproc=no
11262 fi
11263
11264 rm -f conftest.err conftest.$ac_ext
11265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266 echo "${ECHO_T}$ac_header_preproc" >&6; }
11267
11268 # So?  What about this header?
11269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11270   yes:no: )
11271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275     ac_header_preproc=yes
11276     ;;
11277   no:yes:* )
11278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11290     ( cat <<\_ASBOX
11291 ## ----------------------------------- ##
11292 ## Report this to llvmbugs@cs.uiuc.edu ##
11293 ## ----------------------------------- ##
11294 _ASBOX
11295      ) | sed "s/^/$as_me: WARNING:     /" >&2
11296     ;;
11297 esac
11298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303   eval "$as_ac_Header=\$ac_header_preproc"
11304 fi
11305 ac_res=`eval echo '${'$as_ac_Header'}'`
11306                { echo "$as_me:$LINENO: result: $ac_res" >&5
11307 echo "${ECHO_T}$ac_res" >&6; }
11308
11309 fi
11310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11311   cat >>confdefs.h <<_ACEOF
11312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11313 _ACEOF
11314
11315 fi
11316
11317 done
11318
11319
11320
11321
11322
11323 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11324 do
11325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11327   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330   echo $ECHO_N "(cached) $ECHO_C" >&6
11331 fi
11332 ac_res=`eval echo '${'$as_ac_Header'}'`
11333                { echo "$as_me:$LINENO: result: $ac_res" >&5
11334 echo "${ECHO_T}$ac_res" >&6; }
11335 else
11336   # Is the header compilable?
11337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h.  */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h.  */
11345 $ac_includes_default
11346 #include <$ac_header>
11347 _ACEOF
11348 rm -f conftest.$ac_objext
11349 if { (ac_try="$ac_compile"
11350 case "(($ac_try" in
11351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352   *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355   (eval "$ac_compile") 2>conftest.er1
11356   ac_status=$?
11357   grep -v '^ *+' conftest.er1 >conftest.err
11358   rm -f conftest.er1
11359   cat conftest.err >&5
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); } &&
11362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11363   { (case "(($ac_try" in
11364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365   *) ac_try_echo=$ac_try;;
11366 esac
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368   (eval "$ac_try") 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); }; } &&
11372          { ac_try='test -s conftest.$ac_objext'
11373   { (case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_try") 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); }; }; then
11382   ac_header_compiler=yes
11383 else
11384   echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11386
11387         ac_header_compiler=no
11388 fi
11389
11390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11392 echo "${ECHO_T}$ac_header_compiler" >&6; }
11393
11394 # Is the header present?
11395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11397 cat >conftest.$ac_ext <<_ACEOF
11398 /* confdefs.h.  */
11399 _ACEOF
11400 cat confdefs.h >>conftest.$ac_ext
11401 cat >>conftest.$ac_ext <<_ACEOF
11402 /* end confdefs.h.  */
11403 #include <$ac_header>
11404 _ACEOF
11405 if { (ac_try="$ac_cpp conftest.$ac_ext"
11406 case "(($ac_try" in
11407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408   *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11412   ac_status=$?
11413   grep -v '^ *+' conftest.er1 >conftest.err
11414   rm -f conftest.er1
11415   cat conftest.err >&5
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); } >/dev/null; then
11418   if test -s conftest.err; then
11419     ac_cpp_err=$ac_c_preproc_warn_flag
11420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11421   else
11422     ac_cpp_err=
11423   fi
11424 else
11425   ac_cpp_err=yes
11426 fi
11427 if test -z "$ac_cpp_err"; then
11428   ac_header_preproc=yes
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433   ac_header_preproc=no
11434 fi
11435
11436 rm -f conftest.err conftest.$ac_ext
11437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438 echo "${ECHO_T}$ac_header_preproc" >&6; }
11439
11440 # So?  What about this header?
11441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442   yes:no: )
11443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11447     ac_header_preproc=yes
11448     ;;
11449   no:yes:* )
11450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11462     ( cat <<\_ASBOX
11463 ## ----------------------------------- ##
11464 ## Report this to llvmbugs@cs.uiuc.edu ##
11465 ## ----------------------------------- ##
11466 _ASBOX
11467      ) | sed "s/^/$as_me: WARNING:     /" >&2
11468     ;;
11469 esac
11470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475   eval "$as_ac_Header=\$ac_header_preproc"
11476 fi
11477 ac_res=`eval echo '${'$as_ac_Header'}'`
11478                { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480
11481 fi
11482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11483   cat >>confdefs.h <<_ACEOF
11484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11485 _ACEOF
11486
11487 fi
11488
11489 done
11490
11491
11492
11493 for ac_header in string.h strings.h
11494 do
11495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500   echo $ECHO_N "(cached) $ECHO_C" >&6
11501 fi
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503                { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11505 else
11506   # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515 $ac_includes_default
11516 #include <$ac_header>
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522   *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525   (eval "$ac_compile") 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533   { (case "(($ac_try" in
11534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535   *) ac_try_echo=$ac_try;;
11536 esac
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538   (eval "$ac_try") 2>&5
11539   ac_status=$?
11540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541   (exit $ac_status); }; } &&
11542          { ac_try='test -s conftest.$ac_objext'
11543   { (case "(($ac_try" in
11544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545   *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548   (eval "$ac_try") 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); }; }; then
11552   ac_header_compiler=yes
11553 else
11554   echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11556
11557         ac_header_compiler=no
11558 fi
11559
11560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11562 echo "${ECHO_T}$ac_header_compiler" >&6; }
11563
11564 # Is the header present?
11565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h.  */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h.  */
11573 #include <$ac_header>
11574 _ACEOF
11575 if { (ac_try="$ac_cpp conftest.$ac_ext"
11576 case "(($ac_try" in
11577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578   *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11582   ac_status=$?
11583   grep -v '^ *+' conftest.er1 >conftest.err
11584   rm -f conftest.er1
11585   cat conftest.err >&5
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); } >/dev/null; then
11588   if test -s conftest.err; then
11589     ac_cpp_err=$ac_c_preproc_warn_flag
11590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11591   else
11592     ac_cpp_err=
11593   fi
11594 else
11595   ac_cpp_err=yes
11596 fi
11597 if test -z "$ac_cpp_err"; then
11598   ac_header_preproc=yes
11599 else
11600   echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11602
11603   ac_header_preproc=no
11604 fi
11605
11606 rm -f conftest.err conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608 echo "${ECHO_T}$ac_header_preproc" >&6; }
11609
11610 # So?  What about this header?
11611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612   yes:no: )
11613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617     ac_header_preproc=yes
11618     ;;
11619   no:yes:* )
11620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11623 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11624     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11627 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11632     ( cat <<\_ASBOX
11633 ## ----------------------------------- ##
11634 ## Report this to llvmbugs@cs.uiuc.edu ##
11635 ## ----------------------------------- ##
11636 _ASBOX
11637      ) | sed "s/^/$as_me: WARNING:     /" >&2
11638     ;;
11639 esac
11640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11643   echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645   eval "$as_ac_Header=\$ac_header_preproc"
11646 fi
11647 ac_res=`eval echo '${'$as_ac_Header'}'`
11648                { echo "$as_me:$LINENO: result: $ac_res" >&5
11649 echo "${ECHO_T}$ac_res" >&6; }
11650
11651 fi
11652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653   cat >>confdefs.h <<_ACEOF
11654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655 _ACEOF
11656  break
11657 fi
11658
11659 done
11660
11661
11662
11663
11664 for ac_func in strchr index
11665 do
11666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h.  */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h.  */
11678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11680 #define $ac_func innocuous_$ac_func
11681
11682 /* System header to define __stub macros and hopefully few prototypes,
11683     which can conflict with char $ac_func (); below.
11684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11685     <limits.h> exists even on freestanding compilers.  */
11686
11687 #ifdef __STDC__
11688 # include <limits.h>
11689 #else
11690 # include <assert.h>
11691 #endif
11692
11693 #undef $ac_func
11694
11695 /* Override any GCC internal prototype to avoid an error.
11696    Use char because int might match the return type of a GCC
11697    builtin and then its argument prototype would still apply.  */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 char $ac_func ();
11702 /* The GNU C library defines this for functions which it implements
11703     to always fail with ENOSYS.  Some functions are actually named
11704     something starting with __ and the normal name is an alias.  */
11705 #if defined __stub_$ac_func || defined __stub___$ac_func
11706 choke me
11707 #endif
11708
11709 int
11710 main ()
11711 {
11712 return $ac_func ();
11713   ;
11714   return 0;
11715 }
11716 _ACEOF
11717 rm -f conftest.$ac_objext conftest$ac_exeext
11718 if { (ac_try="$ac_link"
11719 case "(($ac_try" in
11720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721   *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724   (eval "$ac_link") 2>conftest.er1
11725   ac_status=$?
11726   grep -v '^ *+' conftest.er1 >conftest.err
11727   rm -f conftest.er1
11728   cat conftest.err >&5
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); } &&
11731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11732   { (case "(($ac_try" in
11733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734   *) ac_try_echo=$ac_try;;
11735 esac
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737   (eval "$ac_try") 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); }; } &&
11741          { ac_try='test -s conftest$ac_exeext'
11742   { (case "(($ac_try" in
11743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744   *) ac_try_echo=$ac_try;;
11745 esac
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747   (eval "$ac_try") 2>&5
11748   ac_status=$?
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; }; then
11751   eval "$as_ac_var=yes"
11752 else
11753   echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756         eval "$as_ac_var=no"
11757 fi
11758
11759 rm -f core conftest.err conftest.$ac_objext \
11760       conftest$ac_exeext conftest.$ac_ext
11761 fi
11762 ac_res=`eval echo '${'$as_ac_var'}'`
11763                { echo "$as_me:$LINENO: result: $ac_res" >&5
11764 echo "${ECHO_T}$ac_res" >&6; }
11765 if test `eval echo '${'$as_ac_var'}'` = yes; then
11766   cat >>confdefs.h <<_ACEOF
11767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11768 _ACEOF
11769  break
11770 fi
11771 done
11772
11773
11774
11775 for ac_func in strrchr rindex
11776 do
11777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11781   echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783   cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h.  */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h.  */
11789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11791 #define $ac_func innocuous_$ac_func
11792
11793 /* System header to define __stub macros and hopefully few prototypes,
11794     which can conflict with char $ac_func (); below.
11795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11796     <limits.h> exists even on freestanding compilers.  */
11797
11798 #ifdef __STDC__
11799 # include <limits.h>
11800 #else
11801 # include <assert.h>
11802 #endif
11803
11804 #undef $ac_func
11805
11806 /* Override any GCC internal prototype to avoid an error.
11807    Use char because int might match the return type of a GCC
11808    builtin and then its argument prototype would still apply.  */
11809 #ifdef __cplusplus
11810 extern "C"
11811 #endif
11812 char $ac_func ();
11813 /* The GNU C library defines this for functions which it implements
11814     to always fail with ENOSYS.  Some functions are actually named
11815     something starting with __ and the normal name is an alias.  */
11816 #if defined __stub_$ac_func || defined __stub___$ac_func
11817 choke me
11818 #endif
11819
11820 int
11821 main ()
11822 {
11823 return $ac_func ();
11824   ;
11825   return 0;
11826 }
11827 _ACEOF
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (ac_try="$ac_link"
11830 case "(($ac_try" in
11831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832   *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835   (eval "$ac_link") 2>conftest.er1
11836   ac_status=$?
11837   grep -v '^ *+' conftest.er1 >conftest.err
11838   rm -f conftest.er1
11839   cat conftest.err >&5
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); } &&
11842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11843   { (case "(($ac_try" in
11844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845   *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848   (eval "$ac_try") 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; } &&
11852          { ac_try='test -s conftest$ac_exeext'
11853   { (case "(($ac_try" in
11854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855   *) ac_try_echo=$ac_try;;
11856 esac
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858   (eval "$ac_try") 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); }; }; then
11862   eval "$as_ac_var=yes"
11863 else
11864   echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11866
11867         eval "$as_ac_var=no"
11868 fi
11869
11870 rm -f core conftest.err conftest.$ac_objext \
11871       conftest$ac_exeext conftest.$ac_ext
11872 fi
11873 ac_res=`eval echo '${'$as_ac_var'}'`
11874                { echo "$as_me:$LINENO: result: $ac_res" >&5
11875 echo "${ECHO_T}$ac_res" >&6; }
11876 if test `eval echo '${'$as_ac_var'}'` = yes; then
11877   cat >>confdefs.h <<_ACEOF
11878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11879 _ACEOF
11880  break
11881 fi
11882 done
11883
11884
11885
11886 for ac_func in memcpy bcopy
11887 do
11888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h.  */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h.  */
11900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11902 #define $ac_func innocuous_$ac_func
11903
11904 /* System header to define __stub macros and hopefully few prototypes,
11905     which can conflict with char $ac_func (); below.
11906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11907     <limits.h> exists even on freestanding compilers.  */
11908
11909 #ifdef __STDC__
11910 # include <limits.h>
11911 #else
11912 # include <assert.h>
11913 #endif
11914
11915 #undef $ac_func
11916
11917 /* Override any GCC internal prototype to avoid an error.
11918    Use char because int might match the return type of a GCC
11919    builtin and then its argument prototype would still apply.  */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 char $ac_func ();
11924 /* The GNU C library defines this for functions which it implements
11925     to always fail with ENOSYS.  Some functions are actually named
11926     something starting with __ and the normal name is an alias.  */
11927 #if defined __stub_$ac_func || defined __stub___$ac_func
11928 choke me
11929 #endif
11930
11931 int
11932 main ()
11933 {
11934 return $ac_func ();
11935   ;
11936   return 0;
11937 }
11938 _ACEOF
11939 rm -f conftest.$ac_objext conftest$ac_exeext
11940 if { (ac_try="$ac_link"
11941 case "(($ac_try" in
11942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943   *) ac_try_echo=$ac_try;;
11944 esac
11945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946   (eval "$ac_link") 2>conftest.er1
11947   ac_status=$?
11948   grep -v '^ *+' conftest.er1 >conftest.err
11949   rm -f conftest.er1
11950   cat conftest.err >&5
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); } &&
11953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11954   { (case "(($ac_try" in
11955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956   *) ac_try_echo=$ac_try;;
11957 esac
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959   (eval "$ac_try") 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); }; } &&
11963          { ac_try='test -s conftest$ac_exeext'
11964   { (case "(($ac_try" in
11965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966   *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969   (eval "$ac_try") 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; }; then
11973   eval "$as_ac_var=yes"
11974 else
11975   echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11977
11978         eval "$as_ac_var=no"
11979 fi
11980
11981 rm -f core conftest.err conftest.$ac_objext \
11982       conftest$ac_exeext conftest.$ac_ext
11983 fi
11984 ac_res=`eval echo '${'$as_ac_var'}'`
11985                { echo "$as_me:$LINENO: result: $ac_res" >&5
11986 echo "${ECHO_T}$ac_res" >&6; }
11987 if test `eval echo '${'$as_ac_var'}'` = yes; then
11988   cat >>confdefs.h <<_ACEOF
11989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11990 _ACEOF
11991  break
11992 fi
11993 done
11994
11995
11996
11997 for ac_func in memmove strcmp
11998 do
11999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12003   echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005   cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h.  */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h.  */
12011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12013 #define $ac_func innocuous_$ac_func
12014
12015 /* System header to define __stub macros and hopefully few prototypes,
12016     which can conflict with char $ac_func (); below.
12017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12018     <limits.h> exists even on freestanding compilers.  */
12019
12020 #ifdef __STDC__
12021 # include <limits.h>
12022 #else
12023 # include <assert.h>
12024 #endif
12025
12026 #undef $ac_func
12027
12028 /* Override any GCC internal prototype to avoid an error.
12029    Use char because int might match the return type of a GCC
12030    builtin and then its argument prototype would still apply.  */
12031 #ifdef __cplusplus
12032 extern "C"
12033 #endif
12034 char $ac_func ();
12035 /* The GNU C library defines this for functions which it implements
12036     to always fail with ENOSYS.  Some functions are actually named
12037     something starting with __ and the normal name is an alias.  */
12038 #if defined __stub_$ac_func || defined __stub___$ac_func
12039 choke me
12040 #endif
12041
12042 int
12043 main ()
12044 {
12045 return $ac_func ();
12046   ;
12047   return 0;
12048 }
12049 _ACEOF
12050 rm -f conftest.$ac_objext conftest$ac_exeext
12051 if { (ac_try="$ac_link"
12052 case "(($ac_try" in
12053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054   *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057   (eval "$ac_link") 2>conftest.er1
12058   ac_status=$?
12059   grep -v '^ *+' conftest.er1 >conftest.err
12060   rm -f conftest.er1
12061   cat conftest.err >&5
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); } &&
12064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12065   { (case "(($ac_try" in
12066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067   *) ac_try_echo=$ac_try;;
12068 esac
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070   (eval "$ac_try") 2>&5
12071   ac_status=$?
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); }; } &&
12074          { ac_try='test -s conftest$ac_exeext'
12075   { (case "(($ac_try" in
12076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077   *) ac_try_echo=$ac_try;;
12078 esac
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080   (eval "$ac_try") 2>&5
12081   ac_status=$?
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); }; }; then
12084   eval "$as_ac_var=yes"
12085 else
12086   echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089         eval "$as_ac_var=no"
12090 fi
12091
12092 rm -f core conftest.err conftest.$ac_objext \
12093       conftest$ac_exeext conftest.$ac_ext
12094 fi
12095 ac_res=`eval echo '${'$as_ac_var'}'`
12096                { echo "$as_me:$LINENO: result: $ac_res" >&5
12097 echo "${ECHO_T}$ac_res" >&6; }
12098 if test `eval echo '${'$as_ac_var'}'` = yes; then
12099   cat >>confdefs.h <<_ACEOF
12100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12101 _ACEOF
12102
12103 fi
12104 done
12105
12106
12107
12108
12109 for ac_func in closedir opendir readdir
12110 do
12111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117   cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h.  */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h.  */
12123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12125 #define $ac_func innocuous_$ac_func
12126
12127 /* System header to define __stub macros and hopefully few prototypes,
12128     which can conflict with char $ac_func (); below.
12129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12130     <limits.h> exists even on freestanding compilers.  */
12131
12132 #ifdef __STDC__
12133 # include <limits.h>
12134 #else
12135 # include <assert.h>
12136 #endif
12137
12138 #undef $ac_func
12139
12140 /* Override any GCC internal prototype to avoid an error.
12141    Use char because int might match the return type of a GCC
12142    builtin and then its argument prototype would still apply.  */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char $ac_func ();
12147 /* The GNU C library defines this for functions which it implements
12148     to always fail with ENOSYS.  Some functions are actually named
12149     something starting with __ and the normal name is an alias.  */
12150 #if defined __stub_$ac_func || defined __stub___$ac_func
12151 choke me
12152 #endif
12153
12154 int
12155 main ()
12156 {
12157 return $ac_func ();
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (ac_try="$ac_link"
12164 case "(($ac_try" in
12165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166   *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169   (eval "$ac_link") 2>conftest.er1
12170   ac_status=$?
12171   grep -v '^ *+' conftest.er1 >conftest.err
12172   rm -f conftest.er1
12173   cat conftest.err >&5
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); } &&
12176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12177   { (case "(($ac_try" in
12178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179   *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182   (eval "$ac_try") 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; } &&
12186          { ac_try='test -s conftest$ac_exeext'
12187   { (case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192   (eval "$ac_try") 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; }; then
12196   eval "$as_ac_var=yes"
12197 else
12198   echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201         eval "$as_ac_var=no"
12202 fi
12203
12204 rm -f core conftest.err conftest.$ac_objext \
12205       conftest$ac_exeext conftest.$ac_ext
12206 fi
12207 ac_res=`eval echo '${'$as_ac_var'}'`
12208                { echo "$as_me:$LINENO: result: $ac_res" >&5
12209 echo "${ECHO_T}$ac_res" >&6; }
12210 if test `eval echo '${'$as_ac_var'}'` = yes; then
12211   cat >>confdefs.h <<_ACEOF
12212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12213 _ACEOF
12214
12215 fi
12216 done
12217
12218
12219
12220 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12221 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12222
12223 ICC=no
12224 IXX=no
12225 case $CC in
12226   icc*|icpc*)
12227     ICC=yes
12228     IXX=yes
12229     ;;
12230    *)
12231     ;;
12232 esac
12233
12234 if test "$GCC" != "yes" && test "$ICC" != "yes"
12235 then
12236   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12237 echo "$as_me: error: gcc|icc required but not found" >&2;}
12238    { (exit 1); exit 1; }; }
12239 fi
12240
12241 if test "$GXX" != "yes" && test "$IXX" != "yes"
12242 then
12243   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12244 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12245    { (exit 1); exit 1; }; }
12246 fi
12247
12248 if test "$GCC" = "yes"
12249 then
12250   cat >conftest.$ac_ext <<_ACEOF
12251 #if !defined(__GNUC__) || __GNUC__ < 3
12252 #error Unsupported GCC version
12253 #endif
12254
12255 _ACEOF
12256 rm -f conftest.$ac_objext
12257 if { (ac_try="$ac_compile"
12258 case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_compile") 2>conftest.er1
12264   ac_status=$?
12265   grep -v '^ *+' conftest.er1 >conftest.err
12266   rm -f conftest.er1
12267   cat conftest.err >&5
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); } &&
12270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12271   { (case "(($ac_try" in
12272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273   *) ac_try_echo=$ac_try;;
12274 esac
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276   (eval "$ac_try") 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; } &&
12280          { ac_try='test -s conftest.$ac_objext'
12281   { (case "(($ac_try" in
12282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283   *) ac_try_echo=$ac_try;;
12284 esac
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286   (eval "$ac_try") 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; }; then
12290   :
12291 else
12292   echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12296 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12297    { (exit 1); exit 1; }; }
12298 fi
12299
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 fi
12302
12303 if test -z "$llvm_cv_gnu_make_command"
12304 then
12305   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12306 echo "$as_me: error: GNU Make required but not found" >&2;}
12307    { (exit 1); exit 1; }; }
12308 fi
12309
12310 { echo "$as_me:$LINENO: result: ok" >&5
12311 echo "${ECHO_T}ok" >&6; }
12312
12313 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12314 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12315 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12316
12317 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12318
12319 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12320 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12321
12322
12323
12324 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12325 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12326 if test "${ac_cv_lib_m_sin+set}" = set; then
12327   echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329   ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-lm  $LIBS"
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h.  */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h.  */
12337
12338 /* Override any GCC internal prototype to avoid an error.
12339    Use char because int might match the return type of a GCC
12340    builtin and then its argument prototype would still apply.  */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 char sin ();
12345 int
12346 main ()
12347 {
12348 return sin ();
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext conftest$ac_exeext
12354 if { (ac_try="$ac_link"
12355 case "(($ac_try" in
12356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357   *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360   (eval "$ac_link") 2>conftest.er1
12361   ac_status=$?
12362   grep -v '^ *+' conftest.er1 >conftest.err
12363   rm -f conftest.er1
12364   cat conftest.err >&5
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } &&
12367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12368   { (case "(($ac_try" in
12369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370   *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373   (eval "$ac_try") 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; } &&
12377          { ac_try='test -s conftest$ac_exeext'
12378   { (case "(($ac_try" in
12379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380   *) ac_try_echo=$ac_try;;
12381 esac
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383   (eval "$ac_try") 2>&5
12384   ac_status=$?
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); }; }; then
12387   ac_cv_lib_m_sin=yes
12388 else
12389   echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12391
12392         ac_cv_lib_m_sin=no
12393 fi
12394
12395 rm -f core conftest.err conftest.$ac_objext \
12396       conftest$ac_exeext conftest.$ac_ext
12397 LIBS=$ac_check_lib_save_LIBS
12398 fi
12399 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12400 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12401 if test $ac_cv_lib_m_sin = yes; then
12402   cat >>confdefs.h <<_ACEOF
12403 #define HAVE_LIBM 1
12404 _ACEOF
12405
12406   LIBS="-lm $LIBS"
12407
12408 fi
12409
12410 if test "$llvm_cv_os_type" = "MingW" ; then
12411
12412 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12413 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12414 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417   ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-limagehlp  $LIBS"
12419 cat >conftest.$ac_ext <<_ACEOF
12420 /* confdefs.h.  */
12421 _ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h.  */
12425
12426
12427 int
12428 main ()
12429 {
12430 return main ();
12431   ;
12432   return 0;
12433 }
12434 _ACEOF
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (ac_try="$ac_link"
12437 case "(($ac_try" in
12438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439   *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442   (eval "$ac_link") 2>conftest.er1
12443   ac_status=$?
12444   grep -v '^ *+' conftest.er1 >conftest.err
12445   rm -f conftest.er1
12446   cat conftest.err >&5
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } &&
12449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; } &&
12459          { ac_try='test -s conftest$ac_exeext'
12460   { (case "(($ac_try" in
12461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462   *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465   (eval "$ac_try") 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; }; then
12469   ac_cv_lib_imagehlp_main=yes
12470 else
12471   echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474         ac_cv_lib_imagehlp_main=no
12475 fi
12476
12477 rm -f core conftest.err conftest.$ac_objext \
12478       conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12480 fi
12481 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12482 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12483 if test $ac_cv_lib_imagehlp_main = yes; then
12484   cat >>confdefs.h <<_ACEOF
12485 #define HAVE_LIBIMAGEHLP 1
12486 _ACEOF
12487
12488   LIBS="-limagehlp $LIBS"
12489
12490 fi
12491
12492
12493 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12494 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12495 if test "${ac_cv_lib_psapi_main+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   ac_check_lib_save_LIBS=$LIBS
12499 LIBS="-lpsapi  $LIBS"
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h.  */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h.  */
12506
12507
12508 int
12509 main ()
12510 {
12511 return main ();
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_link") 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531   { (case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_try") 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest$ac_exeext'
12541   { (case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_try") 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   ac_cv_lib_psapi_main=yes
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555         ac_cv_lib_psapi_main=no
12556 fi
12557
12558 rm -f core conftest.err conftest.$ac_objext \
12559       conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_check_lib_save_LIBS
12561 fi
12562 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12563 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12564 if test $ac_cv_lib_psapi_main = yes; then
12565   cat >>confdefs.h <<_ACEOF
12566 #define HAVE_LIBPSAPI 1
12567 _ACEOF
12568
12569   LIBS="-lpsapi $LIBS"
12570
12571 fi
12572
12573 fi
12574
12575 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12576 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12577 if test "${ac_cv_search_dlopen+set}" = set; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   ac_func_search_save_LIBS=$LIBS
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h.  */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h.  */
12587
12588 /* Override any GCC internal prototype to avoid an error.
12589    Use char because int might match the return type of a GCC
12590    builtin and then its argument prototype would still apply.  */
12591 #ifdef __cplusplus
12592 extern "C"
12593 #endif
12594 char dlopen ();
12595 int
12596 main ()
12597 {
12598 return dlopen ();
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 for ac_lib in '' dl; do
12604   if test -z "$ac_lib"; then
12605     ac_res="none required"
12606   else
12607     ac_res=-l$ac_lib
12608     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12609   fi
12610   rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614   *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617   (eval "$ac_link") 2>conftest.er1
12618   ac_status=$?
12619   grep -v '^ *+' conftest.er1 >conftest.err
12620   rm -f conftest.er1
12621   cat conftest.err >&5
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } &&
12624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12625   { (case "(($ac_try" in
12626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627   *) ac_try_echo=$ac_try;;
12628 esac
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630   (eval "$ac_try") 2>&5
12631   ac_status=$?
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); }; } &&
12634          { ac_try='test -s conftest$ac_exeext'
12635   { (case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640   (eval "$ac_try") 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); }; }; then
12644   ac_cv_search_dlopen=$ac_res
12645 else
12646   echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649
12650 fi
12651
12652 rm -f core conftest.err conftest.$ac_objext \
12653       conftest$ac_exeext
12654   if test "${ac_cv_search_dlopen+set}" = set; then
12655   break
12656 fi
12657 done
12658 if test "${ac_cv_search_dlopen+set}" = set; then
12659   :
12660 else
12661   ac_cv_search_dlopen=no
12662 fi
12663 rm conftest.$ac_ext
12664 LIBS=$ac_func_search_save_LIBS
12665 fi
12666 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12667 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12668 ac_res=$ac_cv_search_dlopen
12669 if test "$ac_res" != no; then
12670   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12671
12672 cat >>confdefs.h <<\_ACEOF
12673 #define HAVE_DLOPEN 1
12674 _ACEOF
12675
12676 else
12677   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12678 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12679 fi
12680
12681
12682 if test "$llvm_cv_enable_libffi" = "yes" ; then
12683   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12684 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12685 if test "${ac_cv_search_ffi_call+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   ac_func_search_save_LIBS=$LIBS
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h.  */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h.  */
12695
12696 /* Override any GCC internal prototype to avoid an error.
12697    Use char because int might match the return type of a GCC
12698    builtin and then its argument prototype would still apply.  */
12699 #ifdef __cplusplus
12700 extern "C"
12701 #endif
12702 char ffi_call ();
12703 int
12704 main ()
12705 {
12706 return ffi_call ();
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 for ac_lib in '' ffi; do
12712   if test -z "$ac_lib"; then
12713     ac_res="none required"
12714   else
12715     ac_res=-l$ac_lib
12716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12717   fi
12718   rm -f conftest.$ac_objext conftest$ac_exeext
12719 if { (ac_try="$ac_link"
12720 case "(($ac_try" in
12721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722   *) ac_try_echo=$ac_try;;
12723 esac
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725   (eval "$ac_link") 2>conftest.er1
12726   ac_status=$?
12727   grep -v '^ *+' conftest.er1 >conftest.err
12728   rm -f conftest.er1
12729   cat conftest.err >&5
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); } &&
12732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12733   { (case "(($ac_try" in
12734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735   *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738   (eval "$ac_try") 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; } &&
12742          { ac_try='test -s conftest$ac_exeext'
12743   { (case "(($ac_try" in
12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745   *) ac_try_echo=$ac_try;;
12746 esac
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748   (eval "$ac_try") 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); }; }; then
12752   ac_cv_search_ffi_call=$ac_res
12753 else
12754   echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12756
12757
12758 fi
12759
12760 rm -f core conftest.err conftest.$ac_objext \
12761       conftest$ac_exeext
12762   if test "${ac_cv_search_ffi_call+set}" = set; then
12763   break
12764 fi
12765 done
12766 if test "${ac_cv_search_ffi_call+set}" = set; then
12767   :
12768 else
12769   ac_cv_search_ffi_call=no
12770 fi
12771 rm conftest.$ac_ext
12772 LIBS=$ac_func_search_save_LIBS
12773 fi
12774 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12775 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12776 ac_res=$ac_cv_search_ffi_call
12777 if test "$ac_res" != no; then
12778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12779
12780 cat >>confdefs.h <<\_ACEOF
12781 #define HAVE_FFI_CALL 1
12782 _ACEOF
12783
12784 else
12785   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12786 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12787    { (exit 1); exit 1; }; }
12788 fi
12789
12790 fi
12791
12792 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12793 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12794 if test "${ac_cv_search_mallinfo+set}" = set; then
12795   echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
12797   ac_func_search_save_LIBS=$LIBS
12798 cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h.  */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h.  */
12804
12805 /* Override any GCC internal prototype to avoid an error.
12806    Use char because int might match the return type of a GCC
12807    builtin and then its argument prototype would still apply.  */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char mallinfo ();
12812 int
12813 main ()
12814 {
12815 return mallinfo ();
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 for ac_lib in '' malloc; do
12821   if test -z "$ac_lib"; then
12822     ac_res="none required"
12823   else
12824     ac_res=-l$ac_lib
12825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12826   fi
12827   rm -f conftest.$ac_objext conftest$ac_exeext
12828 if { (ac_try="$ac_link"
12829 case "(($ac_try" in
12830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831   *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834   (eval "$ac_link") 2>conftest.er1
12835   ac_status=$?
12836   grep -v '^ *+' conftest.er1 >conftest.err
12837   rm -f conftest.er1
12838   cat conftest.err >&5
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } &&
12841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842   { (case "(($ac_try" in
12843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844   *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847   (eval "$ac_try") 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; } &&
12851          { ac_try='test -s conftest$ac_exeext'
12852   { (case "(($ac_try" in
12853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854   *) ac_try_echo=$ac_try;;
12855 esac
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857   (eval "$ac_try") 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; }; then
12861   ac_cv_search_mallinfo=$ac_res
12862 else
12863   echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866
12867 fi
12868
12869 rm -f core conftest.err conftest.$ac_objext \
12870       conftest$ac_exeext
12871   if test "${ac_cv_search_mallinfo+set}" = set; then
12872   break
12873 fi
12874 done
12875 if test "${ac_cv_search_mallinfo+set}" = set; then
12876   :
12877 else
12878   ac_cv_search_mallinfo=no
12879 fi
12880 rm conftest.$ac_ext
12881 LIBS=$ac_func_search_save_LIBS
12882 fi
12883 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12884 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12885 ac_res=$ac_cv_search_mallinfo
12886 if test "$ac_res" != no; then
12887   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12888
12889 cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_MALLINFO 1
12891 _ACEOF
12892
12893 fi
12894
12895
12896 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12897
12898 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12899 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12900 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12901   echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903   ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lpthread  $LIBS"
12905 cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h.  */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h.  */
12911
12912 /* Override any GCC internal prototype to avoid an error.
12913    Use char because int might match the return type of a GCC
12914    builtin and then its argument prototype would still apply.  */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char pthread_mutex_init ();
12919 int
12920 main ()
12921 {
12922 return pthread_mutex_init ();
12923   ;
12924   return 0;
12925 }
12926 _ACEOF
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (ac_try="$ac_link"
12929 case "(($ac_try" in
12930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931   *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934   (eval "$ac_link") 2>conftest.er1
12935   ac_status=$?
12936   grep -v '^ *+' conftest.er1 >conftest.err
12937   rm -f conftest.er1
12938   cat conftest.err >&5
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } &&
12941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12942   { (case "(($ac_try" in
12943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944   *) ac_try_echo=$ac_try;;
12945 esac
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947   (eval "$ac_try") 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); }; } &&
12951          { ac_try='test -s conftest$ac_exeext'
12952   { (case "(($ac_try" in
12953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954   *) ac_try_echo=$ac_try;;
12955 esac
12956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957   (eval "$ac_try") 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); }; }; then
12961   ac_cv_lib_pthread_pthread_mutex_init=yes
12962 else
12963   echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966         ac_cv_lib_pthread_pthread_mutex_init=no
12967 fi
12968
12969 rm -f core conftest.err conftest.$ac_objext \
12970       conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12972 fi
12973 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12974 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12975 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12976   cat >>confdefs.h <<_ACEOF
12977 #define HAVE_LIBPTHREAD 1
12978 _ACEOF
12979
12980   LIBS="-lpthread $LIBS"
12981
12982 fi
12983
12984   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12985 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12986 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12987   echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989   ac_func_search_save_LIBS=$LIBS
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h.  */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h.  */
12996
12997 /* Override any GCC internal prototype to avoid an error.
12998    Use char because int might match the return type of a GCC
12999    builtin and then its argument prototype would still apply.  */
13000 #ifdef __cplusplus
13001 extern "C"
13002 #endif
13003 char pthread_mutex_lock ();
13004 int
13005 main ()
13006 {
13007 return pthread_mutex_lock ();
13008   ;
13009   return 0;
13010 }
13011 _ACEOF
13012 for ac_lib in '' pthread; do
13013   if test -z "$ac_lib"; then
13014     ac_res="none required"
13015   else
13016     ac_res=-l$ac_lib
13017     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13018   fi
13019   rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (ac_try="$ac_link"
13021 case "(($ac_try" in
13022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023   *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026   (eval "$ac_link") 2>conftest.er1
13027   ac_status=$?
13028   grep -v '^ *+' conftest.er1 >conftest.err
13029   rm -f conftest.er1
13030   cat conftest.err >&5
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); } &&
13033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13034   { (case "(($ac_try" in
13035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036   *) ac_try_echo=$ac_try;;
13037 esac
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039   (eval "$ac_try") 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); }; } &&
13043          { ac_try='test -s conftest$ac_exeext'
13044   { (case "(($ac_try" in
13045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046   *) ac_try_echo=$ac_try;;
13047 esac
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049   (eval "$ac_try") 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); }; }; then
13053   ac_cv_search_pthread_mutex_lock=$ac_res
13054 else
13055   echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13057
13058
13059 fi
13060
13061 rm -f core conftest.err conftest.$ac_objext \
13062       conftest$ac_exeext
13063   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13064   break
13065 fi
13066 done
13067 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13068   :
13069 else
13070   ac_cv_search_pthread_mutex_lock=no
13071 fi
13072 rm conftest.$ac_ext
13073 LIBS=$ac_func_search_save_LIBS
13074 fi
13075 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13076 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13077 ac_res=$ac_cv_search_pthread_mutex_lock
13078 if test "$ac_res" != no; then
13079   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13080
13081 cat >>confdefs.h <<\_ACEOF
13082 #define HAVE_PTHREAD_MUTEX_LOCK 1
13083 _ACEOF
13084
13085 fi
13086
13087   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13088 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13089 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13090   echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092   ac_func_search_save_LIBS=$LIBS
13093 cat >conftest.$ac_ext <<_ACEOF
13094 /* confdefs.h.  */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h.  */
13099
13100 /* Override any GCC internal prototype to avoid an error.
13101    Use char because int might match the return type of a GCC
13102    builtin and then its argument prototype would still apply.  */
13103 #ifdef __cplusplus
13104 extern "C"
13105 #endif
13106 char pthread_rwlock_init ();
13107 int
13108 main ()
13109 {
13110 return pthread_rwlock_init ();
13111   ;
13112   return 0;
13113 }
13114 _ACEOF
13115 for ac_lib in '' pthread; do
13116   if test -z "$ac_lib"; then
13117     ac_res="none required"
13118   else
13119     ac_res=-l$ac_lib
13120     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13121   fi
13122   rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126   *) ac_try_echo=$ac_try;;
13127 esac
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129   (eval "$ac_link") 2>conftest.er1
13130   ac_status=$?
13131   grep -v '^ *+' conftest.er1 >conftest.err
13132   rm -f conftest.er1
13133   cat conftest.err >&5
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); } &&
13136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137   { (case "(($ac_try" in
13138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139   *) ac_try_echo=$ac_try;;
13140 esac
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142   (eval "$ac_try") 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); }; } &&
13146          { ac_try='test -s conftest$ac_exeext'
13147   { (case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152   (eval "$ac_try") 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; }; then
13156   ac_cv_search_pthread_rwlock_init=$ac_res
13157 else
13158   echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13160
13161
13162 fi
13163
13164 rm -f core conftest.err conftest.$ac_objext \
13165       conftest$ac_exeext
13166   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13167   break
13168 fi
13169 done
13170 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13171   :
13172 else
13173   ac_cv_search_pthread_rwlock_init=no
13174 fi
13175 rm conftest.$ac_ext
13176 LIBS=$ac_func_search_save_LIBS
13177 fi
13178 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13179 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13180 ac_res=$ac_cv_search_pthread_rwlock_init
13181 if test "$ac_res" != no; then
13182   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13183
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_PTHREAD_RWLOCK_INIT 1
13186 _ACEOF
13187
13188 fi
13189
13190   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13191 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13192 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13193   echo $ECHO_N "(cached) $ECHO_C" >&6
13194 else
13195   ac_func_search_save_LIBS=$LIBS
13196 cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h.  */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h.  */
13202
13203 /* Override any GCC internal prototype to avoid an error.
13204    Use char because int might match the return type of a GCC
13205    builtin and then its argument prototype would still apply.  */
13206 #ifdef __cplusplus
13207 extern "C"
13208 #endif
13209 char pthread_getspecific ();
13210 int
13211 main ()
13212 {
13213 return pthread_getspecific ();
13214   ;
13215   return 0;
13216 }
13217 _ACEOF
13218 for ac_lib in '' pthread; do
13219   if test -z "$ac_lib"; then
13220     ac_res="none required"
13221   else
13222     ac_res=-l$ac_lib
13223     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13224   fi
13225   rm -f conftest.$ac_objext conftest$ac_exeext
13226 if { (ac_try="$ac_link"
13227 case "(($ac_try" in
13228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229   *) ac_try_echo=$ac_try;;
13230 esac
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232   (eval "$ac_link") 2>conftest.er1
13233   ac_status=$?
13234   grep -v '^ *+' conftest.er1 >conftest.err
13235   rm -f conftest.er1
13236   cat conftest.err >&5
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); } &&
13239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13240   { (case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_try") 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; } &&
13249          { ac_try='test -s conftest$ac_exeext'
13250   { (case "(($ac_try" in
13251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252   *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255   (eval "$ac_try") 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; }; then
13259   ac_cv_search_pthread_getspecific=$ac_res
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264
13265 fi
13266
13267 rm -f core conftest.err conftest.$ac_objext \
13268       conftest$ac_exeext
13269   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13270   break
13271 fi
13272 done
13273 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13274   :
13275 else
13276   ac_cv_search_pthread_getspecific=no
13277 fi
13278 rm conftest.$ac_ext
13279 LIBS=$ac_func_search_save_LIBS
13280 fi
13281 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13282 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13283 ac_res=$ac_cv_search_pthread_getspecific
13284 if test "$ac_res" != no; then
13285   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13286
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_PTHREAD_GETSPECIFIC 1
13289 _ACEOF
13290
13291 fi
13292
13293 fi
13294
13295
13296 # Check whether --with-udis86 was given.
13297 if test "${with_udis86+set}" = set; then
13298   withval=$with_udis86;
13299       USE_UDIS86=1
13300
13301       case "$withval" in
13302         /usr/lib|yes) ;;
13303         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13304       esac
13305
13306 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13307 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13308 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13309   echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311   ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-ludis86  $LIBS"
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h.  */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h.  */
13319
13320 /* Override any GCC internal prototype to avoid an error.
13321    Use char because int might match the return type of a GCC
13322    builtin and then its argument prototype would still apply.  */
13323 #ifdef __cplusplus
13324 extern "C"
13325 #endif
13326 char ud_init ();
13327 int
13328 main ()
13329 {
13330 return ud_init ();
13331   ;
13332   return 0;
13333 }
13334 _ACEOF
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (ac_try="$ac_link"
13337 case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_link") 2>conftest.er1
13343   ac_status=$?
13344   grep -v '^ *+' conftest.er1 >conftest.err
13345   rm -f conftest.er1
13346   cat conftest.err >&5
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } &&
13349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13350   { (case "(($ac_try" in
13351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352   *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355   (eval "$ac_try") 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); }; } &&
13359          { ac_try='test -s conftest$ac_exeext'
13360   { (case "(($ac_try" in
13361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362   *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365   (eval "$ac_try") 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); }; }; then
13369   ac_cv_lib_udis86_ud_init=yes
13370 else
13371   echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13373
13374         ac_cv_lib_udis86_ud_init=no
13375 fi
13376
13377 rm -f core conftest.err conftest.$ac_objext \
13378       conftest$ac_exeext conftest.$ac_ext
13379 LIBS=$ac_check_lib_save_LIBS
13380 fi
13381 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13382 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13383 if test $ac_cv_lib_udis86_ud_init = yes; then
13384   cat >>confdefs.h <<_ACEOF
13385 #define HAVE_LIBUDIS86 1
13386 _ACEOF
13387
13388   LIBS="-ludis86 $LIBS"
13389
13390 else
13391
13392         echo "Error! You need to have libudis86 around."
13393         exit -1
13394
13395 fi
13396
13397
13398 else
13399   USE_UDIS86=0
13400
13401 fi
13402
13403
13404 cat >>confdefs.h <<_ACEOF
13405 #define USE_UDIS86 $USE_UDIS86
13406 _ACEOF
13407
13408
13409
13410 # Check whether --with-oprofile was given.
13411 if test "${with_oprofile+set}" = set; then
13412   withval=$with_oprofile;
13413       USE_OPROFILE=1
13414
13415       case "$withval" in
13416         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13417         no) llvm_cv_oppath=
13418             USE_OPROFILE=0
13419  ;;
13420         *) llvm_cv_oppath="${withval}/lib/oprofile"
13421            CPPFLAGS="-I${withval}/include";;
13422       esac
13423       if test -n "$llvm_cv_oppath" ; then
13424         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13425                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13426 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13427 if test "${ac_cv_search_bfd_init+set}" = set; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430   ac_func_search_save_LIBS=$LIBS
13431 cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h.  */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h.  */
13437
13438 /* Override any GCC internal prototype to avoid an error.
13439    Use char because int might match the return type of a GCC
13440    builtin and then its argument prototype would still apply.  */
13441 #ifdef __cplusplus
13442 extern "C"
13443 #endif
13444 char bfd_init ();
13445 int
13446 main ()
13447 {
13448 return bfd_init ();
13449   ;
13450   return 0;
13451 }
13452 _ACEOF
13453 for ac_lib in '' bfd; do
13454   if test -z "$ac_lib"; then
13455     ac_res="none required"
13456   else
13457     ac_res=-l$ac_lib
13458     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13459   fi
13460   rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (ac_try="$ac_link"
13462 case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_link") 2>conftest.er1
13468   ac_status=$?
13469   grep -v '^ *+' conftest.er1 >conftest.err
13470   rm -f conftest.er1
13471   cat conftest.err >&5
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); } &&
13474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13475   { (case "(($ac_try" in
13476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477   *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480   (eval "$ac_try") 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); }; } &&
13484          { ac_try='test -s conftest$ac_exeext'
13485   { (case "(($ac_try" in
13486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487   *) ac_try_echo=$ac_try;;
13488 esac
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490   (eval "$ac_try") 2>&5
13491   ac_status=$?
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); }; }; then
13494   ac_cv_search_bfd_init=$ac_res
13495 else
13496   echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499
13500 fi
13501
13502 rm -f core conftest.err conftest.$ac_objext \
13503       conftest$ac_exeext
13504   if test "${ac_cv_search_bfd_init+set}" = set; then
13505   break
13506 fi
13507 done
13508 if test "${ac_cv_search_bfd_init+set}" = set; then
13509   :
13510 else
13511   ac_cv_search_bfd_init=no
13512 fi
13513 rm conftest.$ac_ext
13514 LIBS=$ac_func_search_save_LIBS
13515 fi
13516 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13517 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13518 ac_res=$ac_cv_search_bfd_init
13519 if test "$ac_res" != no; then
13520   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13521
13522 fi
13523
13524         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13525 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13526 if test "${ac_cv_search_op_open_agent+set}" = set; then
13527   echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529   ac_func_search_save_LIBS=$LIBS
13530 cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h.  */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h.  */
13536
13537 /* Override any GCC internal prototype to avoid an error.
13538    Use char because int might match the return type of a GCC
13539    builtin and then its argument prototype would still apply.  */
13540 #ifdef __cplusplus
13541 extern "C"
13542 #endif
13543 char op_open_agent ();
13544 int
13545 main ()
13546 {
13547 return op_open_agent ();
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 for ac_lib in '' opagent; do
13553   if test -z "$ac_lib"; then
13554     ac_res="none required"
13555   else
13556     ac_res=-l$ac_lib
13557     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13558   fi
13559   rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (ac_try="$ac_link"
13561 case "(($ac_try" in
13562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563   *) ac_try_echo=$ac_try;;
13564 esac
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566   (eval "$ac_link") 2>conftest.er1
13567   ac_status=$?
13568   grep -v '^ *+' conftest.er1 >conftest.err
13569   rm -f conftest.er1
13570   cat conftest.err >&5
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } &&
13573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13574   { (case "(($ac_try" in
13575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576   *) ac_try_echo=$ac_try;;
13577 esac
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579   (eval "$ac_try") 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; } &&
13583          { ac_try='test -s conftest$ac_exeext'
13584   { (case "(($ac_try" in
13585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586   *) ac_try_echo=$ac_try;;
13587 esac
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589   (eval "$ac_try") 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); }; }; then
13593   ac_cv_search_op_open_agent=$ac_res
13594 else
13595   echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13597
13598
13599 fi
13600
13601 rm -f core conftest.err conftest.$ac_objext \
13602       conftest$ac_exeext
13603   if test "${ac_cv_search_op_open_agent+set}" = set; then
13604   break
13605 fi
13606 done
13607 if test "${ac_cv_search_op_open_agent+set}" = set; then
13608   :
13609 else
13610   ac_cv_search_op_open_agent=no
13611 fi
13612 rm conftest.$ac_ext
13613 LIBS=$ac_func_search_save_LIBS
13614 fi
13615 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13616 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13617 ac_res=$ac_cv_search_op_open_agent
13618 if test "$ac_res" != no; then
13619   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13620
13621 else
13622
13623           echo "Error! You need to have libopagent around."
13624           exit -1
13625
13626 fi
13627
13628         if test "${ac_cv_header_opagent_h+set}" = set; then
13629   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13630 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13631 if test "${ac_cv_header_opagent_h+set}" = set; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 fi
13634 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13635 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13636 else
13637   # Is the header compilable?
13638 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13639 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13640 cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h.  */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h.  */
13646 $ac_includes_default
13647 #include <opagent.h>
13648 _ACEOF
13649 rm -f conftest.$ac_objext
13650 if { (ac_try="$ac_compile"
13651 case "(($ac_try" in
13652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653   *) ac_try_echo=$ac_try;;
13654 esac
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656   (eval "$ac_compile") 2>conftest.er1
13657   ac_status=$?
13658   grep -v '^ *+' conftest.er1 >conftest.err
13659   rm -f conftest.er1
13660   cat conftest.err >&5
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); } &&
13663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13664   { (case "(($ac_try" in
13665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666   *) ac_try_echo=$ac_try;;
13667 esac
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669   (eval "$ac_try") 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); }; } &&
13673          { ac_try='test -s conftest.$ac_objext'
13674   { (case "(($ac_try" in
13675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676   *) ac_try_echo=$ac_try;;
13677 esac
13678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679   (eval "$ac_try") 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; }; then
13683   ac_header_compiler=yes
13684 else
13685   echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13687
13688         ac_header_compiler=no
13689 fi
13690
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13693 echo "${ECHO_T}$ac_header_compiler" >&6; }
13694
13695 # Is the header present?
13696 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13697 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13698 cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h.  */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h.  */
13704 #include <opagent.h>
13705 _ACEOF
13706 if { (ac_try="$ac_cpp conftest.$ac_ext"
13707 case "(($ac_try" in
13708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709   *) ac_try_echo=$ac_try;;
13710 esac
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13713   ac_status=$?
13714   grep -v '^ *+' conftest.er1 >conftest.err
13715   rm -f conftest.er1
13716   cat conftest.err >&5
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); } >/dev/null; then
13719   if test -s conftest.err; then
13720     ac_cpp_err=$ac_c_preproc_warn_flag
13721     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13722   else
13723     ac_cpp_err=
13724   fi
13725 else
13726   ac_cpp_err=yes
13727 fi
13728 if test -z "$ac_cpp_err"; then
13729   ac_header_preproc=yes
13730 else
13731   echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13733
13734   ac_header_preproc=no
13735 fi
13736
13737 rm -f conftest.err conftest.$ac_ext
13738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739 echo "${ECHO_T}$ac_header_preproc" >&6; }
13740
13741 # So?  What about this header?
13742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13743   yes:no: )
13744     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13745 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13747 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13748     ac_header_preproc=yes
13749     ;;
13750   no:yes:* )
13751     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13752 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13753     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13754 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13755     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13756 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13757     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13758 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13759     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13760 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13761     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13762 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13763     ( cat <<\_ASBOX
13764 ## ----------------------------------- ##
13765 ## Report this to llvmbugs@cs.uiuc.edu ##
13766 ## ----------------------------------- ##
13767 _ASBOX
13768      ) | sed "s/^/$as_me: WARNING:     /" >&2
13769     ;;
13770 esac
13771 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13772 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13773 if test "${ac_cv_header_opagent_h+set}" = set; then
13774   echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776   ac_cv_header_opagent_h=$ac_header_preproc
13777 fi
13778 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13779 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13780
13781 fi
13782 if test $ac_cv_header_opagent_h = yes; then
13783   :
13784 else
13785
13786           echo "Error! You need to have opagent.h around."
13787           exit -1
13788
13789 fi
13790
13791
13792       fi
13793
13794 else
13795
13796       USE_OPROFILE=0
13797
13798
13799 fi
13800
13801
13802 cat >>confdefs.h <<_ACEOF
13803 #define USE_OPROFILE $USE_OPROFILE
13804 _ACEOF
13805
13806
13807
13808
13809
13810
13811
13812
13813 ac_header_dirent=no
13814 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13815   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13816 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13817 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819   echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821   cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h.  */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h.  */
13827 #include <sys/types.h>
13828 #include <$ac_hdr>
13829
13830 int
13831 main ()
13832 {
13833 if ((DIR *) 0)
13834 return 0;
13835   ;
13836   return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843   *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846   (eval "$ac_compile") 2>conftest.er1
13847   ac_status=$?
13848   grep -v '^ *+' conftest.er1 >conftest.err
13849   rm -f conftest.er1
13850   cat conftest.err >&5
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854   { (case "(($ac_try" in
13855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856   *) ac_try_echo=$ac_try;;
13857 esac
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859   (eval "$ac_try") 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; } &&
13863          { ac_try='test -s conftest.$ac_objext'
13864   { (case "(($ac_try" in
13865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866   *) ac_try_echo=$ac_try;;
13867 esac
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869   (eval "$ac_try") 2>&5
13870   ac_status=$?
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); }; }; then
13873   eval "$as_ac_Header=yes"
13874 else
13875   echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878         eval "$as_ac_Header=no"
13879 fi
13880
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882 fi
13883 ac_res=`eval echo '${'$as_ac_Header'}'`
13884                { echo "$as_me:$LINENO: result: $ac_res" >&5
13885 echo "${ECHO_T}$ac_res" >&6; }
13886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13887   cat >>confdefs.h <<_ACEOF
13888 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13889 _ACEOF
13890
13891 ac_header_dirent=$ac_hdr; break
13892 fi
13893
13894 done
13895 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13896 if test $ac_header_dirent = dirent.h; then
13897   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13899 if test "${ac_cv_search_opendir+set}" = set; then
13900   echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902   ac_func_search_save_LIBS=$LIBS
13903 cat >conftest.$ac_ext <<_ACEOF
13904 /* confdefs.h.  */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h.  */
13909
13910 /* Override any GCC internal prototype to avoid an error.
13911    Use char because int might match the return type of a GCC
13912    builtin and then its argument prototype would still apply.  */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 char opendir ();
13917 int
13918 main ()
13919 {
13920 return opendir ();
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 for ac_lib in '' dir; do
13926   if test -z "$ac_lib"; then
13927     ac_res="none required"
13928   else
13929     ac_res=-l$ac_lib
13930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13931   fi
13932   rm -f conftest.$ac_objext conftest$ac_exeext
13933 if { (ac_try="$ac_link"
13934 case "(($ac_try" in
13935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936   *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939   (eval "$ac_link") 2>conftest.er1
13940   ac_status=$?
13941   grep -v '^ *+' conftest.er1 >conftest.err
13942   rm -f conftest.er1
13943   cat conftest.err >&5
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); } &&
13946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947   { (case "(($ac_try" in
13948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949   *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952   (eval "$ac_try") 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); }; } &&
13956          { ac_try='test -s conftest$ac_exeext'
13957   { (case "(($ac_try" in
13958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959   *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962   (eval "$ac_try") 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; }; then
13966   ac_cv_search_opendir=$ac_res
13967 else
13968   echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13970
13971
13972 fi
13973
13974 rm -f core conftest.err conftest.$ac_objext \
13975       conftest$ac_exeext
13976   if test "${ac_cv_search_opendir+set}" = set; then
13977   break
13978 fi
13979 done
13980 if test "${ac_cv_search_opendir+set}" = set; then
13981   :
13982 else
13983   ac_cv_search_opendir=no
13984 fi
13985 rm conftest.$ac_ext
13986 LIBS=$ac_func_search_save_LIBS
13987 fi
13988 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13989 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13990 ac_res=$ac_cv_search_opendir
13991 if test "$ac_res" != no; then
13992   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13993
13994 fi
13995
13996 else
13997   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13998 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13999 if test "${ac_cv_search_opendir+set}" = set; then
14000   echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002   ac_func_search_save_LIBS=$LIBS
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h.  */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h.  */
14009
14010 /* Override any GCC internal prototype to avoid an error.
14011    Use char because int might match the return type of a GCC
14012    builtin and then its argument prototype would still apply.  */
14013 #ifdef __cplusplus
14014 extern "C"
14015 #endif
14016 char opendir ();
14017 int
14018 main ()
14019 {
14020 return opendir ();
14021   ;
14022   return 0;
14023 }
14024 _ACEOF
14025 for ac_lib in '' x; do
14026   if test -z "$ac_lib"; then
14027     ac_res="none required"
14028   else
14029     ac_res=-l$ac_lib
14030     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14031   fi
14032   rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (ac_try="$ac_link"
14034 case "(($ac_try" in
14035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036   *) ac_try_echo=$ac_try;;
14037 esac
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039   (eval "$ac_link") 2>conftest.er1
14040   ac_status=$?
14041   grep -v '^ *+' conftest.er1 >conftest.err
14042   rm -f conftest.er1
14043   cat conftest.err >&5
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } &&
14046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047   { (case "(($ac_try" in
14048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049   *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052   (eval "$ac_try") 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; } &&
14056          { ac_try='test -s conftest$ac_exeext'
14057   { (case "(($ac_try" in
14058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059   *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062   (eval "$ac_try") 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; }; then
14066   ac_cv_search_opendir=$ac_res
14067 else
14068   echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071
14072 fi
14073
14074 rm -f core conftest.err conftest.$ac_objext \
14075       conftest$ac_exeext
14076   if test "${ac_cv_search_opendir+set}" = set; then
14077   break
14078 fi
14079 done
14080 if test "${ac_cv_search_opendir+set}" = set; then
14081   :
14082 else
14083   ac_cv_search_opendir=no
14084 fi
14085 rm conftest.$ac_ext
14086 LIBS=$ac_func_search_save_LIBS
14087 fi
14088 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14089 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14090 ac_res=$ac_cv_search_opendir
14091 if test "$ac_res" != no; then
14092   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14093
14094 fi
14095
14096 fi
14097
14098 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14099 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14100 if test "${ac_cv_header_mmap_anon+set}" = set; then
14101   echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103    ac_ext=c
14104 ac_cpp='$CPP $CPPFLAGS'
14105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14108
14109   cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h.  */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h.  */
14115 #include <sys/mman.h>
14116 #include <unistd.h>
14117 #include <fcntl.h>
14118 int
14119 main ()
14120 {
14121 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14122   ;
14123   return 0;
14124 }
14125 _ACEOF
14126 rm -f conftest.$ac_objext
14127 if { (ac_try="$ac_compile"
14128 case "(($ac_try" in
14129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130   *) ac_try_echo=$ac_try;;
14131 esac
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133   (eval "$ac_compile") 2>conftest.er1
14134   ac_status=$?
14135   grep -v '^ *+' conftest.er1 >conftest.err
14136   rm -f conftest.er1
14137   cat conftest.err >&5
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); } &&
14140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14141   { (case "(($ac_try" in
14142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143   *) ac_try_echo=$ac_try;;
14144 esac
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146   (eval "$ac_try") 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; } &&
14150          { ac_try='test -s conftest.$ac_objext'
14151   { (case "(($ac_try" in
14152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153   *) ac_try_echo=$ac_try;;
14154 esac
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156   (eval "$ac_try") 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; }; then
14160   ac_cv_header_mmap_anon=yes
14161 else
14162   echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14164
14165         ac_cv_header_mmap_anon=no
14166 fi
14167
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169   ac_ext=c
14170 ac_cpp='$CPP $CPPFLAGS'
14171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14174
14175
14176 fi
14177 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14178 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14179 if test "$ac_cv_header_mmap_anon" = yes; then
14180
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_MMAP_ANONYMOUS 1
14183 _ACEOF
14184
14185 fi
14186
14187 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14188 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14189 if test "${ac_cv_header_stat_broken+set}" = set; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   cat >conftest.$ac_ext <<_ACEOF
14193 /* confdefs.h.  */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h.  */
14198 #include <sys/types.h>
14199 #include <sys/stat.h>
14200
14201 #if defined S_ISBLK && defined S_IFDIR
14202 # if S_ISBLK (S_IFDIR)
14203 You lose.
14204 # endif
14205 #endif
14206
14207 #if defined S_ISBLK && defined S_IFCHR
14208 # if S_ISBLK (S_IFCHR)
14209 You lose.
14210 # endif
14211 #endif
14212
14213 #if defined S_ISLNK && defined S_IFREG
14214 # if S_ISLNK (S_IFREG)
14215 You lose.
14216 # endif
14217 #endif
14218
14219 #if defined S_ISSOCK && defined S_IFREG
14220 # if S_ISSOCK (S_IFREG)
14221 You lose.
14222 # endif
14223 #endif
14224
14225 _ACEOF
14226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14227   $EGREP "You lose" >/dev/null 2>&1; then
14228   ac_cv_header_stat_broken=yes
14229 else
14230   ac_cv_header_stat_broken=no
14231 fi
14232 rm -f conftest*
14233
14234 fi
14235 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14236 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14237 if test $ac_cv_header_stat_broken = yes; then
14238
14239 cat >>confdefs.h <<\_ACEOF
14240 #define STAT_MACROS_BROKEN 1
14241 _ACEOF
14242
14243 fi
14244
14245 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14246 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14247 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14248   echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250   cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256 #include <sys/types.h>
14257 #include <sys/wait.h>
14258 #ifndef WEXITSTATUS
14259 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14260 #endif
14261 #ifndef WIFEXITED
14262 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14263 #endif
14264
14265 int
14266 main ()
14267 {
14268   int s;
14269   wait (&s);
14270   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14271   ;
14272   return 0;
14273 }
14274 _ACEOF
14275 rm -f conftest.$ac_objext
14276 if { (ac_try="$ac_compile"
14277 case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282   (eval "$ac_compile") 2>conftest.er1
14283   ac_status=$?
14284   grep -v '^ *+' conftest.er1 >conftest.err
14285   rm -f conftest.er1
14286   cat conftest.err >&5
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } &&
14289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290   { (case "(($ac_try" in
14291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292   *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295   (eval "$ac_try") 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; } &&
14299          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14309   ac_cv_header_sys_wait_h=yes
14310 else
14311   echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314         ac_cv_header_sys_wait_h=no
14315 fi
14316
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14318 fi
14319 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14320 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14321 if test $ac_cv_header_sys_wait_h = yes; then
14322
14323 cat >>confdefs.h <<\_ACEOF
14324 #define HAVE_SYS_WAIT_H 1
14325 _ACEOF
14326
14327 fi
14328
14329 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14330 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14331 if test "${ac_cv_header_time+set}" = set; then
14332   echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334   cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h.  */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h.  */
14340 #include <sys/types.h>
14341 #include <sys/time.h>
14342 #include <time.h>
14343
14344 int
14345 main ()
14346 {
14347 if ((struct tm *) 0)
14348 return 0;
14349   ;
14350   return 0;
14351 }
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357   *) ac_try_echo=$ac_try;;
14358 esac
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360   (eval "$ac_compile") 2>conftest.er1
14361   ac_status=$?
14362   grep -v '^ *+' conftest.er1 >conftest.err
14363   rm -f conftest.er1
14364   cat conftest.err >&5
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); } &&
14367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368   { (case "(($ac_try" in
14369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370   *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373   (eval "$ac_try") 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; } &&
14377          { ac_try='test -s conftest.$ac_objext'
14378   { (case "(($ac_try" in
14379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380   *) ac_try_echo=$ac_try;;
14381 esac
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383   (eval "$ac_try") 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; }; then
14387   ac_cv_header_time=yes
14388 else
14389   echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392         ac_cv_header_time=no
14393 fi
14394
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396 fi
14397 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14398 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14399 if test $ac_cv_header_time = yes; then
14400
14401 cat >>confdefs.h <<\_ACEOF
14402 #define TIME_WITH_SYS_TIME 1
14403 _ACEOF
14404
14405 fi
14406
14407
14408
14409
14410
14411
14412
14413
14414 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14415 do
14416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14418   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14421   echo $ECHO_N "(cached) $ECHO_C" >&6
14422 fi
14423 ac_res=`eval echo '${'$as_ac_Header'}'`
14424                { echo "$as_me:$LINENO: result: $ac_res" >&5
14425 echo "${ECHO_T}$ac_res" >&6; }
14426 else
14427   # Is the header compilable?
14428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h.  */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h.  */
14436 $ac_includes_default
14437 #include <$ac_header>
14438 _ACEOF
14439 rm -f conftest.$ac_objext
14440 if { (ac_try="$ac_compile"
14441 case "(($ac_try" in
14442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443   *) ac_try_echo=$ac_try;;
14444 esac
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446   (eval "$ac_compile") 2>conftest.er1
14447   ac_status=$?
14448   grep -v '^ *+' conftest.er1 >conftest.err
14449   rm -f conftest.er1
14450   cat conftest.err >&5
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); } &&
14453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14454   { (case "(($ac_try" in
14455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456   *) ac_try_echo=$ac_try;;
14457 esac
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459   (eval "$ac_try") 2>&5
14460   ac_status=$?
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); }; } &&
14463          { ac_try='test -s conftest.$ac_objext'
14464   { (case "(($ac_try" in
14465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466   *) ac_try_echo=$ac_try;;
14467 esac
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469   (eval "$ac_try") 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }; }; then
14473   ac_header_compiler=yes
14474 else
14475   echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478         ac_header_compiler=no
14479 fi
14480
14481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14483 echo "${ECHO_T}$ac_header_compiler" >&6; }
14484
14485 # Is the header present?
14486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14488 cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h.  */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h.  */
14494 #include <$ac_header>
14495 _ACEOF
14496 if { (ac_try="$ac_cpp conftest.$ac_ext"
14497 case "(($ac_try" in
14498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499   *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14503   ac_status=$?
14504   grep -v '^ *+' conftest.er1 >conftest.err
14505   rm -f conftest.er1
14506   cat conftest.err >&5
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); } >/dev/null; then
14509   if test -s conftest.err; then
14510     ac_cpp_err=$ac_c_preproc_warn_flag
14511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14512   else
14513     ac_cpp_err=
14514   fi
14515 else
14516   ac_cpp_err=yes
14517 fi
14518 if test -z "$ac_cpp_err"; then
14519   ac_header_preproc=yes
14520 else
14521   echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14523
14524   ac_header_preproc=no
14525 fi
14526
14527 rm -f conftest.err conftest.$ac_ext
14528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14529 echo "${ECHO_T}$ac_header_preproc" >&6; }
14530
14531 # So?  What about this header?
14532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14533   yes:no: )
14534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14538     ac_header_preproc=yes
14539     ;;
14540   no:yes:* )
14541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14543     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14544 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14545     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14547     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14548 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14551     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14553     ( cat <<\_ASBOX
14554 ## ----------------------------------- ##
14555 ## Report this to llvmbugs@cs.uiuc.edu ##
14556 ## ----------------------------------- ##
14557 _ASBOX
14558      ) | sed "s/^/$as_me: WARNING:     /" >&2
14559     ;;
14560 esac
14561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14564   echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566   eval "$as_ac_Header=\$ac_header_preproc"
14567 fi
14568 ac_res=`eval echo '${'$as_ac_Header'}'`
14569                { echo "$as_me:$LINENO: result: $ac_res" >&5
14570 echo "${ECHO_T}$ac_res" >&6; }
14571
14572 fi
14573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14574   cat >>confdefs.h <<_ACEOF
14575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14576 _ACEOF
14577
14578 fi
14579
14580 done
14581
14582
14583
14584
14585
14586
14587
14588 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14589 do
14590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14592   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14595   echo $ECHO_N "(cached) $ECHO_C" >&6
14596 fi
14597 ac_res=`eval echo '${'$as_ac_Header'}'`
14598                { echo "$as_me:$LINENO: result: $ac_res" >&5
14599 echo "${ECHO_T}$ac_res" >&6; }
14600 else
14601   # Is the header compilable?
14602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14604 cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610 $ac_includes_default
14611 #include <$ac_header>
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617   *) ac_try_echo=$ac_try;;
14618 esac
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620   (eval "$ac_compile") 2>conftest.er1
14621   ac_status=$?
14622   grep -v '^ *+' conftest.er1 >conftest.err
14623   rm -f conftest.er1
14624   cat conftest.err >&5
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } &&
14627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14628   { (case "(($ac_try" in
14629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630   *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633   (eval "$ac_try") 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; } &&
14637          { ac_try='test -s conftest.$ac_objext'
14638   { (case "(($ac_try" in
14639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640   *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643   (eval "$ac_try") 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; }; then
14647   ac_header_compiler=yes
14648 else
14649   echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14651
14652         ac_header_compiler=no
14653 fi
14654
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657 echo "${ECHO_T}$ac_header_compiler" >&6; }
14658
14659 # Is the header present?
14660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h.  */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h.  */
14668 #include <$ac_header>
14669 _ACEOF
14670 if { (ac_try="$ac_cpp conftest.$ac_ext"
14671 case "(($ac_try" in
14672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673   *) ac_try_echo=$ac_try;;
14674 esac
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14677   ac_status=$?
14678   grep -v '^ *+' conftest.er1 >conftest.err
14679   rm -f conftest.er1
14680   cat conftest.err >&5
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); } >/dev/null; then
14683   if test -s conftest.err; then
14684     ac_cpp_err=$ac_c_preproc_warn_flag
14685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14686   else
14687     ac_cpp_err=
14688   fi
14689 else
14690   ac_cpp_err=yes
14691 fi
14692 if test -z "$ac_cpp_err"; then
14693   ac_header_preproc=yes
14694 else
14695   echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698   ac_header_preproc=no
14699 fi
14700
14701 rm -f conftest.err conftest.$ac_ext
14702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14703 echo "${ECHO_T}$ac_header_preproc" >&6; }
14704
14705 # So?  What about this header?
14706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14707   yes:no: )
14708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14712     ac_header_preproc=yes
14713     ;;
14714   no:yes:* )
14715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14717     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14718 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14719     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14721     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14722 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14725     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14727     ( cat <<\_ASBOX
14728 ## ----------------------------------- ##
14729 ## Report this to llvmbugs@cs.uiuc.edu ##
14730 ## ----------------------------------- ##
14731 _ASBOX
14732      ) | sed "s/^/$as_me: WARNING:     /" >&2
14733     ;;
14734 esac
14735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14738   echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740   eval "$as_ac_Header=\$ac_header_preproc"
14741 fi
14742 ac_res=`eval echo '${'$as_ac_Header'}'`
14743                { echo "$as_me:$LINENO: result: $ac_res" >&5
14744 echo "${ECHO_T}$ac_res" >&6; }
14745
14746 fi
14747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14748   cat >>confdefs.h <<_ACEOF
14749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14750 _ACEOF
14751
14752 fi
14753
14754 done
14755
14756
14757
14758 for ac_header in utime.h windows.h
14759 do
14760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14762   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 fi
14767 ac_res=`eval echo '${'$as_ac_Header'}'`
14768                { echo "$as_me:$LINENO: result: $ac_res" >&5
14769 echo "${ECHO_T}$ac_res" >&6; }
14770 else
14771   # Is the header compilable?
14772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14774 cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h.  */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h.  */
14780 $ac_includes_default
14781 #include <$ac_header>
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (ac_try="$ac_compile"
14785 case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790   (eval "$ac_compile") 2>conftest.er1
14791   ac_status=$?
14792   grep -v '^ *+' conftest.er1 >conftest.err
14793   rm -f conftest.er1
14794   cat conftest.err >&5
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14798   { (case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803   (eval "$ac_try") 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; } &&
14807          { ac_try='test -s conftest.$ac_objext'
14808   { (case "(($ac_try" in
14809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810   *) ac_try_echo=$ac_try;;
14811 esac
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813   (eval "$ac_try") 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); }; }; then
14817   ac_header_compiler=yes
14818 else
14819   echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14821
14822         ac_header_compiler=no
14823 fi
14824
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14827 echo "${ECHO_T}$ac_header_compiler" >&6; }
14828
14829 # Is the header present?
14830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14832 cat >conftest.$ac_ext <<_ACEOF
14833 /* confdefs.h.  */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h.  */
14838 #include <$ac_header>
14839 _ACEOF
14840 if { (ac_try="$ac_cpp conftest.$ac_ext"
14841 case "(($ac_try" in
14842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843   *) ac_try_echo=$ac_try;;
14844 esac
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14847   ac_status=$?
14848   grep -v '^ *+' conftest.er1 >conftest.err
14849   rm -f conftest.er1
14850   cat conftest.err >&5
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); } >/dev/null; then
14853   if test -s conftest.err; then
14854     ac_cpp_err=$ac_c_preproc_warn_flag
14855     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14856   else
14857     ac_cpp_err=
14858   fi
14859 else
14860   ac_cpp_err=yes
14861 fi
14862 if test -z "$ac_cpp_err"; then
14863   ac_header_preproc=yes
14864 else
14865   echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14867
14868   ac_header_preproc=no
14869 fi
14870
14871 rm -f conftest.err conftest.$ac_ext
14872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14873 echo "${ECHO_T}$ac_header_preproc" >&6; }
14874
14875 # So?  What about this header?
14876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14877   yes:no: )
14878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14882     ac_header_preproc=yes
14883     ;;
14884   no:yes:* )
14885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14897     ( cat <<\_ASBOX
14898 ## ----------------------------------- ##
14899 ## Report this to llvmbugs@cs.uiuc.edu ##
14900 ## ----------------------------------- ##
14901 _ASBOX
14902      ) | sed "s/^/$as_me: WARNING:     /" >&2
14903     ;;
14904 esac
14905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14908   echo $ECHO_N "(cached) $ECHO_C" >&6
14909 else
14910   eval "$as_ac_Header=\$ac_header_preproc"
14911 fi
14912 ac_res=`eval echo '${'$as_ac_Header'}'`
14913                { echo "$as_me:$LINENO: result: $ac_res" >&5
14914 echo "${ECHO_T}$ac_res" >&6; }
14915
14916 fi
14917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14918   cat >>confdefs.h <<_ACEOF
14919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14920 _ACEOF
14921
14922 fi
14923
14924 done
14925
14926
14927
14928
14929
14930
14931 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14932 do
14933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14935   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14938   echo $ECHO_N "(cached) $ECHO_C" >&6
14939 fi
14940 ac_res=`eval echo '${'$as_ac_Header'}'`
14941                { echo "$as_me:$LINENO: result: $ac_res" >&5
14942 echo "${ECHO_T}$ac_res" >&6; }
14943 else
14944   # Is the header compilable?
14945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h.  */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h.  */
14953 $ac_includes_default
14954 #include <$ac_header>
14955 _ACEOF
14956 rm -f conftest.$ac_objext
14957 if { (ac_try="$ac_compile"
14958 case "(($ac_try" in
14959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960   *) ac_try_echo=$ac_try;;
14961 esac
14962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963   (eval "$ac_compile") 2>conftest.er1
14964   ac_status=$?
14965   grep -v '^ *+' conftest.er1 >conftest.err
14966   rm -f conftest.er1
14967   cat conftest.err >&5
14968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); } &&
14970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14971   { (case "(($ac_try" in
14972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973   *) ac_try_echo=$ac_try;;
14974 esac
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976   (eval "$ac_try") 2>&5
14977   ac_status=$?
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); }; } &&
14980          { ac_try='test -s conftest.$ac_objext'
14981   { (case "(($ac_try" in
14982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983   *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986   (eval "$ac_try") 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; }; then
14990   ac_header_compiler=yes
14991 else
14992   echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14994
14995         ac_header_compiler=no
14996 fi
14997
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15000 echo "${ECHO_T}$ac_header_compiler" >&6; }
15001
15002 # Is the header present?
15003 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h.  */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h.  */
15011 #include <$ac_header>
15012 _ACEOF
15013 if { (ac_try="$ac_cpp conftest.$ac_ext"
15014 case "(($ac_try" in
15015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016   *) ac_try_echo=$ac_try;;
15017 esac
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15020   ac_status=$?
15021   grep -v '^ *+' conftest.er1 >conftest.err
15022   rm -f conftest.er1
15023   cat conftest.err >&5
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); } >/dev/null; then
15026   if test -s conftest.err; then
15027     ac_cpp_err=$ac_c_preproc_warn_flag
15028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15029   else
15030     ac_cpp_err=
15031   fi
15032 else
15033   ac_cpp_err=yes
15034 fi
15035 if test -z "$ac_cpp_err"; then
15036   ac_header_preproc=yes
15037 else
15038   echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15040
15041   ac_header_preproc=no
15042 fi
15043
15044 rm -f conftest.err conftest.$ac_ext
15045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15046 echo "${ECHO_T}$ac_header_preproc" >&6; }
15047
15048 # So?  What about this header?
15049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15050   yes:no: )
15051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15055     ac_header_preproc=yes
15056     ;;
15057   no:yes:* )
15058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15070     ( cat <<\_ASBOX
15071 ## ----------------------------------- ##
15072 ## Report this to llvmbugs@cs.uiuc.edu ##
15073 ## ----------------------------------- ##
15074 _ASBOX
15075      ) | sed "s/^/$as_me: WARNING:     /" >&2
15076     ;;
15077 esac
15078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15081   echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083   eval "$as_ac_Header=\$ac_header_preproc"
15084 fi
15085 ac_res=`eval echo '${'$as_ac_Header'}'`
15086                { echo "$as_me:$LINENO: result: $ac_res" >&5
15087 echo "${ECHO_T}$ac_res" >&6; }
15088
15089 fi
15090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15091   cat >>confdefs.h <<_ACEOF
15092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15093 _ACEOF
15094
15095 fi
15096
15097 done
15098
15099
15100
15101
15102
15103 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15104 do
15105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15107   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110   echo $ECHO_N "(cached) $ECHO_C" >&6
15111 fi
15112 ac_res=`eval echo '${'$as_ac_Header'}'`
15113                { echo "$as_me:$LINENO: result: $ac_res" >&5
15114 echo "${ECHO_T}$ac_res" >&6; }
15115 else
15116   # Is the header compilable?
15117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h.  */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h.  */
15125 $ac_includes_default
15126 #include <$ac_header>
15127 _ACEOF
15128 rm -f conftest.$ac_objext
15129 if { (ac_try="$ac_compile"
15130 case "(($ac_try" in
15131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132   *) ac_try_echo=$ac_try;;
15133 esac
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135   (eval "$ac_compile") 2>conftest.er1
15136   ac_status=$?
15137   grep -v '^ *+' conftest.er1 >conftest.err
15138   rm -f conftest.er1
15139   cat conftest.err >&5
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); } &&
15142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15143   { (case "(($ac_try" in
15144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145   *) ac_try_echo=$ac_try;;
15146 esac
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148   (eval "$ac_try") 2>&5
15149   ac_status=$?
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); }; } &&
15152          { ac_try='test -s conftest.$ac_objext'
15153   { (case "(($ac_try" in
15154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155   *) ac_try_echo=$ac_try;;
15156 esac
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158   (eval "$ac_try") 2>&5
15159   ac_status=$?
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); }; }; then
15162   ac_header_compiler=yes
15163 else
15164   echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15166
15167         ac_header_compiler=no
15168 fi
15169
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15172 echo "${ECHO_T}$ac_header_compiler" >&6; }
15173
15174 # Is the header present?
15175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183 #include <$ac_header>
15184 _ACEOF
15185 if { (ac_try="$ac_cpp conftest.$ac_ext"
15186 case "(($ac_try" in
15187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188   *) ac_try_echo=$ac_try;;
15189 esac
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15192   ac_status=$?
15193   grep -v '^ *+' conftest.er1 >conftest.err
15194   rm -f conftest.er1
15195   cat conftest.err >&5
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); } >/dev/null; then
15198   if test -s conftest.err; then
15199     ac_cpp_err=$ac_c_preproc_warn_flag
15200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15201   else
15202     ac_cpp_err=
15203   fi
15204 else
15205   ac_cpp_err=yes
15206 fi
15207 if test -z "$ac_cpp_err"; then
15208   ac_header_preproc=yes
15209 else
15210   echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15212
15213   ac_header_preproc=no
15214 fi
15215
15216 rm -f conftest.err conftest.$ac_ext
15217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15218 echo "${ECHO_T}$ac_header_preproc" >&6; }
15219
15220 # So?  What about this header?
15221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15222   yes:no: )
15223     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15227     ac_header_preproc=yes
15228     ;;
15229   no:yes:* )
15230     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15232     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15233 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15236     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15237 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15240     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15242     ( cat <<\_ASBOX
15243 ## ----------------------------------- ##
15244 ## Report this to llvmbugs@cs.uiuc.edu ##
15245 ## ----------------------------------- ##
15246 _ASBOX
15247      ) | sed "s/^/$as_me: WARNING:     /" >&2
15248     ;;
15249 esac
15250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253   echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15255   eval "$as_ac_Header=\$ac_header_preproc"
15256 fi
15257 ac_res=`eval echo '${'$as_ac_Header'}'`
15258                { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15260
15261 fi
15262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15263   cat >>confdefs.h <<_ACEOF
15264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15265 _ACEOF
15266
15267 fi
15268
15269 done
15270
15271
15272 for ac_header in valgrind/valgrind.h
15273 do
15274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15276   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279   echo $ECHO_N "(cached) $ECHO_C" >&6
15280 fi
15281 ac_res=`eval echo '${'$as_ac_Header'}'`
15282                { echo "$as_me:$LINENO: result: $ac_res" >&5
15283 echo "${ECHO_T}$ac_res" >&6; }
15284 else
15285   # Is the header compilable?
15286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15288 cat >conftest.$ac_ext <<_ACEOF
15289 /* confdefs.h.  */
15290 _ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h.  */
15294 $ac_includes_default
15295 #include <$ac_header>
15296 _ACEOF
15297 rm -f conftest.$ac_objext
15298 if { (ac_try="$ac_compile"
15299 case "(($ac_try" in
15300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301   *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304   (eval "$ac_compile") 2>conftest.er1
15305   ac_status=$?
15306   grep -v '^ *+' conftest.er1 >conftest.err
15307   rm -f conftest.er1
15308   cat conftest.err >&5
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); } &&
15311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312   { (case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317   (eval "$ac_try") 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); }; } &&
15321          { ac_try='test -s conftest.$ac_objext'
15322   { (case "(($ac_try" in
15323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324   *) ac_try_echo=$ac_try;;
15325 esac
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327   (eval "$ac_try") 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; }; then
15331   ac_header_compiler=yes
15332 else
15333   echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15335
15336         ac_header_compiler=no
15337 fi
15338
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15341 echo "${ECHO_T}$ac_header_compiler" >&6; }
15342
15343 # Is the header present?
15344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15346 cat >conftest.$ac_ext <<_ACEOF
15347 /* confdefs.h.  */
15348 _ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h.  */
15352 #include <$ac_header>
15353 _ACEOF
15354 if { (ac_try="$ac_cpp conftest.$ac_ext"
15355 case "(($ac_try" in
15356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357   *) ac_try_echo=$ac_try;;
15358 esac
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15361   ac_status=$?
15362   grep -v '^ *+' conftest.er1 >conftest.err
15363   rm -f conftest.er1
15364   cat conftest.err >&5
15365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366   (exit $ac_status); } >/dev/null; then
15367   if test -s conftest.err; then
15368     ac_cpp_err=$ac_c_preproc_warn_flag
15369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15370   else
15371     ac_cpp_err=
15372   fi
15373 else
15374   ac_cpp_err=yes
15375 fi
15376 if test -z "$ac_cpp_err"; then
15377   ac_header_preproc=yes
15378 else
15379   echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15381
15382   ac_header_preproc=no
15383 fi
15384
15385 rm -f conftest.err conftest.$ac_ext
15386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15387 echo "${ECHO_T}$ac_header_preproc" >&6; }
15388
15389 # So?  What about this header?
15390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15391   yes:no: )
15392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15396     ac_header_preproc=yes
15397     ;;
15398   no:yes:* )
15399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15411     ( cat <<\_ASBOX
15412 ## ----------------------------------- ##
15413 ## Report this to llvmbugs@cs.uiuc.edu ##
15414 ## ----------------------------------- ##
15415 _ASBOX
15416      ) | sed "s/^/$as_me: WARNING:     /" >&2
15417     ;;
15418 esac
15419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15422   echo $ECHO_N "(cached) $ECHO_C" >&6
15423 else
15424   eval "$as_ac_Header=\$ac_header_preproc"
15425 fi
15426 ac_res=`eval echo '${'$as_ac_Header'}'`
15427                { echo "$as_me:$LINENO: result: $ac_res" >&5
15428 echo "${ECHO_T}$ac_res" >&6; }
15429
15430 fi
15431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15432   cat >>confdefs.h <<_ACEOF
15433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15434 _ACEOF
15435
15436 fi
15437
15438 done
15439
15440
15441 for ac_header in fenv.h
15442 do
15443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15445   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448   echo $ECHO_N "(cached) $ECHO_C" >&6
15449 fi
15450 ac_res=`eval echo '${'$as_ac_Header'}'`
15451                { echo "$as_me:$LINENO: result: $ac_res" >&5
15452 echo "${ECHO_T}$ac_res" >&6; }
15453 else
15454   # Is the header compilable?
15455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15457 cat >conftest.$ac_ext <<_ACEOF
15458 /* confdefs.h.  */
15459 _ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h.  */
15463 $ac_includes_default
15464 #include <$ac_header>
15465 _ACEOF
15466 rm -f conftest.$ac_objext
15467 if { (ac_try="$ac_compile"
15468 case "(($ac_try" in
15469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470   *) ac_try_echo=$ac_try;;
15471 esac
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473   (eval "$ac_compile") 2>conftest.er1
15474   ac_status=$?
15475   grep -v '^ *+' conftest.er1 >conftest.err
15476   rm -f conftest.er1
15477   cat conftest.err >&5
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); } &&
15480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15481   { (case "(($ac_try" in
15482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483   *) ac_try_echo=$ac_try;;
15484 esac
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486   (eval "$ac_try") 2>&5
15487   ac_status=$?
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); }; } &&
15490          { ac_try='test -s conftest.$ac_objext'
15491   { (case "(($ac_try" in
15492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493   *) ac_try_echo=$ac_try;;
15494 esac
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496   (eval "$ac_try") 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; }; then
15500   ac_header_compiler=yes
15501 else
15502   echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505         ac_header_compiler=no
15506 fi
15507
15508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15510 echo "${ECHO_T}$ac_header_compiler" >&6; }
15511
15512 # Is the header present?
15513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15515 cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h.  */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h.  */
15521 #include <$ac_header>
15522 _ACEOF
15523 if { (ac_try="$ac_cpp conftest.$ac_ext"
15524 case "(($ac_try" in
15525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526   *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15530   ac_status=$?
15531   grep -v '^ *+' conftest.er1 >conftest.err
15532   rm -f conftest.er1
15533   cat conftest.err >&5
15534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); } >/dev/null; then
15536   if test -s conftest.err; then
15537     ac_cpp_err=$ac_c_preproc_warn_flag
15538     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15539   else
15540     ac_cpp_err=
15541   fi
15542 else
15543   ac_cpp_err=yes
15544 fi
15545 if test -z "$ac_cpp_err"; then
15546   ac_header_preproc=yes
15547 else
15548   echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15550
15551   ac_header_preproc=no
15552 fi
15553
15554 rm -f conftest.err conftest.$ac_ext
15555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15556 echo "${ECHO_T}$ac_header_preproc" >&6; }
15557
15558 # So?  What about this header?
15559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15560   yes:no: )
15561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15565     ac_header_preproc=yes
15566     ;;
15567   no:yes:* )
15568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15570     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15571 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15572     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15575 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15580     ( cat <<\_ASBOX
15581 ## ----------------------------------- ##
15582 ## Report this to llvmbugs@cs.uiuc.edu ##
15583 ## ----------------------------------- ##
15584 _ASBOX
15585      ) | sed "s/^/$as_me: WARNING:     /" >&2
15586     ;;
15587 esac
15588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15591   echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593   eval "$as_ac_Header=\$ac_header_preproc"
15594 fi
15595 ac_res=`eval echo '${'$as_ac_Header'}'`
15596                { echo "$as_me:$LINENO: result: $ac_res" >&5
15597 echo "${ECHO_T}$ac_res" >&6; }
15598
15599 fi
15600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15601   cat >>confdefs.h <<_ACEOF
15602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15603 _ACEOF
15604
15605 fi
15606
15607 done
15608
15609 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15610
15611 for ac_header in pthread.h
15612 do
15613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15615   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15618   echo $ECHO_N "(cached) $ECHO_C" >&6
15619 fi
15620 ac_res=`eval echo '${'$as_ac_Header'}'`
15621                { echo "$as_me:$LINENO: result: $ac_res" >&5
15622 echo "${ECHO_T}$ac_res" >&6; }
15623 else
15624   # Is the header compilable?
15625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15627 cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h.  */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h.  */
15633 $ac_includes_default
15634 #include <$ac_header>
15635 _ACEOF
15636 rm -f conftest.$ac_objext
15637 if { (ac_try="$ac_compile"
15638 case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_compile") 2>conftest.er1
15644   ac_status=$?
15645   grep -v '^ *+' conftest.er1 >conftest.err
15646   rm -f conftest.er1
15647   cat conftest.err >&5
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } &&
15650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15651   { (case "(($ac_try" in
15652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653   *) ac_try_echo=$ac_try;;
15654 esac
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656   (eval "$ac_try") 2>&5
15657   ac_status=$?
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); }; } &&
15660          { ac_try='test -s conftest.$ac_objext'
15661   { (case "(($ac_try" in
15662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663   *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666   (eval "$ac_try") 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); }; }; then
15670   ac_header_compiler=yes
15671 else
15672   echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675         ac_header_compiler=no
15676 fi
15677
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15680 echo "${ECHO_T}$ac_header_compiler" >&6; }
15681
15682 # Is the header present?
15683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15685 cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h.  */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h.  */
15691 #include <$ac_header>
15692 _ACEOF
15693 if { (ac_try="$ac_cpp conftest.$ac_ext"
15694 case "(($ac_try" in
15695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696   *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15700   ac_status=$?
15701   grep -v '^ *+' conftest.er1 >conftest.err
15702   rm -f conftest.er1
15703   cat conftest.err >&5
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); } >/dev/null; then
15706   if test -s conftest.err; then
15707     ac_cpp_err=$ac_c_preproc_warn_flag
15708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15709   else
15710     ac_cpp_err=
15711   fi
15712 else
15713   ac_cpp_err=yes
15714 fi
15715 if test -z "$ac_cpp_err"; then
15716   ac_header_preproc=yes
15717 else
15718   echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15720
15721   ac_header_preproc=no
15722 fi
15723
15724 rm -f conftest.err conftest.$ac_ext
15725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15726 echo "${ECHO_T}$ac_header_preproc" >&6; }
15727
15728 # So?  What about this header?
15729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15730   yes:no: )
15731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15735     ac_header_preproc=yes
15736     ;;
15737   no:yes:* )
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15750     ( cat <<\_ASBOX
15751 ## ----------------------------------- ##
15752 ## Report this to llvmbugs@cs.uiuc.edu ##
15753 ## ----------------------------------- ##
15754 _ASBOX
15755      ) | sed "s/^/$as_me: WARNING:     /" >&2
15756     ;;
15757 esac
15758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15761   echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763   eval "$as_ac_Header=\$ac_header_preproc"
15764 fi
15765 ac_res=`eval echo '${'$as_ac_Header'}'`
15766                { echo "$as_me:$LINENO: result: $ac_res" >&5
15767 echo "${ECHO_T}$ac_res" >&6; }
15768
15769 fi
15770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15771   cat >>confdefs.h <<_ACEOF
15772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15773 _ACEOF
15774  HAVE_PTHREAD=1
15775
15776 else
15777   HAVE_PTHREAD=0
15778
15779 fi
15780
15781 done
15782
15783 else
15784   HAVE_PTHREAD=0
15785
15786 fi
15787
15788 if test "$llvm_cv_enable_libffi" = "yes" ; then
15789
15790
15791 for ac_header in ffi.h ffi/ffi.h
15792 do
15793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15798   echo $ECHO_N "(cached) $ECHO_C" >&6
15799 fi
15800 ac_res=`eval echo '${'$as_ac_Header'}'`
15801                { echo "$as_me:$LINENO: result: $ac_res" >&5
15802 echo "${ECHO_T}$ac_res" >&6; }
15803 else
15804   # Is the header compilable?
15805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15807 cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h.  */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h.  */
15813 $ac_includes_default
15814 #include <$ac_header>
15815 _ACEOF
15816 rm -f conftest.$ac_objext
15817 if { (ac_try="$ac_compile"
15818 case "(($ac_try" in
15819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820   *) ac_try_echo=$ac_try;;
15821 esac
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823   (eval "$ac_compile") 2>conftest.er1
15824   ac_status=$?
15825   grep -v '^ *+' conftest.er1 >conftest.err
15826   rm -f conftest.er1
15827   cat conftest.err >&5
15828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829   (exit $ac_status); } &&
15830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15831   { (case "(($ac_try" in
15832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833   *) ac_try_echo=$ac_try;;
15834 esac
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836   (eval "$ac_try") 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; } &&
15840          { ac_try='test -s conftest.$ac_objext'
15841   { (case "(($ac_try" in
15842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843   *) ac_try_echo=$ac_try;;
15844 esac
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846   (eval "$ac_try") 2>&5
15847   ac_status=$?
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); }; }; then
15850   ac_header_compiler=yes
15851 else
15852   echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15854
15855         ac_header_compiler=no
15856 fi
15857
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15860 echo "${ECHO_T}$ac_header_compiler" >&6; }
15861
15862 # Is the header present?
15863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15865 cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h.  */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h.  */
15871 #include <$ac_header>
15872 _ACEOF
15873 if { (ac_try="$ac_cpp conftest.$ac_ext"
15874 case "(($ac_try" in
15875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876   *) ac_try_echo=$ac_try;;
15877 esac
15878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15880   ac_status=$?
15881   grep -v '^ *+' conftest.er1 >conftest.err
15882   rm -f conftest.er1
15883   cat conftest.err >&5
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); } >/dev/null; then
15886   if test -s conftest.err; then
15887     ac_cpp_err=$ac_c_preproc_warn_flag
15888     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15889   else
15890     ac_cpp_err=
15891   fi
15892 else
15893   ac_cpp_err=yes
15894 fi
15895 if test -z "$ac_cpp_err"; then
15896   ac_header_preproc=yes
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
15901   ac_header_preproc=no
15902 fi
15903
15904 rm -f conftest.err conftest.$ac_ext
15905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15906 echo "${ECHO_T}$ac_header_preproc" >&6; }
15907
15908 # So?  What about this header?
15909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15910   yes:no: )
15911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15915     ac_header_preproc=yes
15916     ;;
15917   no:yes:* )
15918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15930     ( cat <<\_ASBOX
15931 ## ----------------------------------- ##
15932 ## Report this to llvmbugs@cs.uiuc.edu ##
15933 ## ----------------------------------- ##
15934 _ASBOX
15935      ) | sed "s/^/$as_me: WARNING:     /" >&2
15936     ;;
15937 esac
15938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15941   echo $ECHO_N "(cached) $ECHO_C" >&6
15942 else
15943   eval "$as_ac_Header=\$ac_header_preproc"
15944 fi
15945 ac_res=`eval echo '${'$as_ac_Header'}'`
15946                { echo "$as_me:$LINENO: result: $ac_res" >&5
15947 echo "${ECHO_T}$ac_res" >&6; }
15948
15949 fi
15950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15951   cat >>confdefs.h <<_ACEOF
15952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15953 _ACEOF
15954
15955 fi
15956
15957 done
15958
15959 fi
15960
15961
15962 for ac_header in CrashReporterClient.h
15963 do
15964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15969   echo $ECHO_N "(cached) $ECHO_C" >&6
15970 fi
15971 ac_res=`eval echo '${'$as_ac_Header'}'`
15972                { echo "$as_me:$LINENO: result: $ac_res" >&5
15973 echo "${ECHO_T}$ac_res" >&6; }
15974 else
15975   # Is the header compilable?
15976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15978 cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h.  */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h.  */
15984 $ac_includes_default
15985 #include <$ac_header>
15986 _ACEOF
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991   *) ac_try_echo=$ac_try;;
15992 esac
15993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15994   (eval "$ac_compile") 2>conftest.er1
15995   ac_status=$?
15996   grep -v '^ *+' conftest.er1 >conftest.err
15997   rm -f conftest.er1
15998   cat conftest.err >&5
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); } &&
16001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16002   { (case "(($ac_try" in
16003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004   *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007   (eval "$ac_try") 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; } &&
16011          { ac_try='test -s conftest.$ac_objext'
16012   { (case "(($ac_try" in
16013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014   *) ac_try_echo=$ac_try;;
16015 esac
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017   (eval "$ac_try") 2>&5
16018   ac_status=$?
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   (exit $ac_status); }; }; then
16021   ac_header_compiler=yes
16022 else
16023   echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16025
16026         ac_header_compiler=no
16027 fi
16028
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16031 echo "${ECHO_T}$ac_header_compiler" >&6; }
16032
16033 # Is the header present?
16034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042 #include <$ac_header>
16043 _ACEOF
16044 if { (ac_try="$ac_cpp conftest.$ac_ext"
16045 case "(($ac_try" in
16046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047   *) ac_try_echo=$ac_try;;
16048 esac
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16051   ac_status=$?
16052   grep -v '^ *+' conftest.er1 >conftest.err
16053   rm -f conftest.er1
16054   cat conftest.err >&5
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); } >/dev/null; then
16057   if test -s conftest.err; then
16058     ac_cpp_err=$ac_c_preproc_warn_flag
16059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16060   else
16061     ac_cpp_err=
16062   fi
16063 else
16064   ac_cpp_err=yes
16065 fi
16066 if test -z "$ac_cpp_err"; then
16067   ac_header_preproc=yes
16068 else
16069   echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16071
16072   ac_header_preproc=no
16073 fi
16074
16075 rm -f conftest.err conftest.$ac_ext
16076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16077 echo "${ECHO_T}$ac_header_preproc" >&6; }
16078
16079 # So?  What about this header?
16080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16081   yes:no: )
16082     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16086     ac_header_preproc=yes
16087     ;;
16088   no:yes:* )
16089     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16091     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16092 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16093     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16095     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16096 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16099     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16101     ( cat <<\_ASBOX
16102 ## ----------------------------------- ##
16103 ## Report this to llvmbugs@cs.uiuc.edu ##
16104 ## ----------------------------------- ##
16105 _ASBOX
16106      ) | sed "s/^/$as_me: WARNING:     /" >&2
16107     ;;
16108 esac
16109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16112   echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114   eval "$as_ac_Header=\$ac_header_preproc"
16115 fi
16116 ac_res=`eval echo '${'$as_ac_Header'}'`
16117                { echo "$as_me:$LINENO: result: $ac_res" >&5
16118 echo "${ECHO_T}$ac_res" >&6; }
16119
16120 fi
16121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16122   cat >>confdefs.h <<_ACEOF
16123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16124 _ACEOF
16125
16126 fi
16127
16128 done
16129
16130
16131 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16132 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16133 cat >conftest.$ac_ext <<_ACEOF
16134 /* confdefs.h.  */
16135 _ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h.  */
16139 extern const char *__crashreporter_info__;
16140       int main() {
16141         __crashreporter_info__ = "test";
16142         return 0;
16143       }
16144
16145 _ACEOF
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (ac_try="$ac_link"
16148 case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153   (eval "$ac_link") 2>conftest.er1
16154   ac_status=$?
16155   grep -v '^ *+' conftest.er1 >conftest.err
16156   rm -f conftest.er1
16157   cat conftest.err >&5
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } &&
16160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16161   { (case "(($ac_try" in
16162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163   *) ac_try_echo=$ac_try;;
16164 esac
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166   (eval "$ac_try") 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); }; } &&
16170          { ac_try='test -s conftest$ac_exeext'
16171   { (case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_try") 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); }; }; then
16180   { echo "$as_me:$LINENO: result: yes" >&5
16181 echo "${ECHO_T}yes" >&6; }
16182
16183 cat >>confdefs.h <<\_ACEOF
16184 #define HAVE_CRASHREPORTER_INFO 1
16185 _ACEOF
16186
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191         { echo "$as_me:$LINENO: result: no" >&5
16192 echo "${ECHO_T}no" >&6; }
16193
16194 cat >>confdefs.h <<\_ACEOF
16195 #define HAVE_CRASHREPORTER_INFO 0
16196 _ACEOF
16197
16198 fi
16199
16200 rm -f core conftest.err conftest.$ac_objext \
16201       conftest$ac_exeext conftest.$ac_ext
16202
16203
16204
16205
16206   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16207 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16208 if test "${ac_cv_huge_val_sanity+set}" = set; then
16209   echo $ECHO_N "(cached) $ECHO_C" >&6
16210 else
16211
16212     ac_ext=cpp
16213 ac_cpp='$CXXCPP $CPPFLAGS'
16214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16217
16218     ac_save_CXXFLAGS=$CXXFLAGS
16219     CXXFLAGS=-pedantic
16220     if test "$cross_compiling" = yes; then
16221   ac_cv_huge_val_sanity=yes
16222 else
16223   cat >conftest.$ac_ext <<_ACEOF
16224 /* confdefs.h.  */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h.  */
16229 #include <math.h>
16230 int
16231 main ()
16232 {
16233 double x = HUGE_VAL; return x != x;
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest$ac_exeext
16239 if { (ac_try="$ac_link"
16240 case "(($ac_try" in
16241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242   *) ac_try_echo=$ac_try;;
16243 esac
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245   (eval "$ac_link") 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16249   { (case "(($ac_try" in
16250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251   *) ac_try_echo=$ac_try;;
16252 esac
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254   (eval "$ac_try") 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); }; }; then
16258   ac_cv_huge_val_sanity=yes
16259 else
16260   echo "$as_me: program exited with status $ac_status" >&5
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 ( exit $ac_status )
16265 ac_cv_huge_val_sanity=no
16266 fi
16267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16268 fi
16269
16270
16271     CXXFLAGS=$ac_save_CXXFLAGS
16272     ac_ext=c
16273 ac_cpp='$CPP $CPPFLAGS'
16274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16277
16278
16279 fi
16280 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16281 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16282   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16283
16284
16285 { echo "$as_me:$LINENO: checking for pid_t" >&5
16286 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16287 if test "${ac_cv_type_pid_t+set}" = set; then
16288   echo $ECHO_N "(cached) $ECHO_C" >&6
16289 else
16290   cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296 $ac_includes_default
16297 typedef pid_t ac__type_new_;
16298 int
16299 main ()
16300 {
16301 if ((ac__type_new_ *) 0)
16302   return 0;
16303 if (sizeof (ac__type_new_))
16304   return 0;
16305   ;
16306   return 0;
16307 }
16308 _ACEOF
16309 rm -f conftest.$ac_objext
16310 if { (ac_try="$ac_compile"
16311 case "(($ac_try" in
16312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313   *) ac_try_echo=$ac_try;;
16314 esac
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316   (eval "$ac_compile") 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } &&
16323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16324   { (case "(($ac_try" in
16325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326   *) ac_try_echo=$ac_try;;
16327 esac
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329   (eval "$ac_try") 2>&5
16330   ac_status=$?
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); }; } &&
16333          { ac_try='test -s conftest.$ac_objext'
16334   { (case "(($ac_try" in
16335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336   *) ac_try_echo=$ac_try;;
16337 esac
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339   (eval "$ac_try") 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); }; }; then
16343   ac_cv_type_pid_t=yes
16344 else
16345   echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348         ac_cv_type_pid_t=no
16349 fi
16350
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352 fi
16353 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16354 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16355 if test $ac_cv_type_pid_t = yes; then
16356   :
16357 else
16358
16359 cat >>confdefs.h <<_ACEOF
16360 #define pid_t int
16361 _ACEOF
16362
16363 fi
16364
16365 { echo "$as_me:$LINENO: checking for size_t" >&5
16366 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16367 if test "${ac_cv_type_size_t+set}" = set; then
16368   echo $ECHO_N "(cached) $ECHO_C" >&6
16369 else
16370   cat >conftest.$ac_ext <<_ACEOF
16371 /* confdefs.h.  */
16372 _ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h.  */
16376 $ac_includes_default
16377 typedef size_t ac__type_new_;
16378 int
16379 main ()
16380 {
16381 if ((ac__type_new_ *) 0)
16382   return 0;
16383 if (sizeof (ac__type_new_))
16384   return 0;
16385   ;
16386   return 0;
16387 }
16388 _ACEOF
16389 rm -f conftest.$ac_objext
16390 if { (ac_try="$ac_compile"
16391 case "(($ac_try" in
16392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393   *) ac_try_echo=$ac_try;;
16394 esac
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396   (eval "$ac_compile") 2>conftest.er1
16397   ac_status=$?
16398   grep -v '^ *+' conftest.er1 >conftest.err
16399   rm -f conftest.er1
16400   cat conftest.err >&5
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); } &&
16403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16404   { (case "(($ac_try" in
16405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406   *) ac_try_echo=$ac_try;;
16407 esac
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409   (eval "$ac_try") 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }; } &&
16413          { ac_try='test -s conftest.$ac_objext'
16414   { (case "(($ac_try" in
16415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416   *) ac_try_echo=$ac_try;;
16417 esac
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419   (eval "$ac_try") 2>&5
16420   ac_status=$?
16421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); }; }; then
16423   ac_cv_type_size_t=yes
16424 else
16425   echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16427
16428         ac_cv_type_size_t=no
16429 fi
16430
16431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 fi
16433 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16434 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16435 if test $ac_cv_type_size_t = yes; then
16436   :
16437 else
16438
16439 cat >>confdefs.h <<_ACEOF
16440 #define size_t unsigned int
16441 _ACEOF
16442
16443 fi
16444
16445
16446 cat >>confdefs.h <<_ACEOF
16447 #define RETSIGTYPE void
16448 _ACEOF
16449
16450 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16451 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16452 if test "${ac_cv_struct_tm+set}" = set; then
16453   echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455   cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h.  */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h.  */
16461 #include <sys/types.h>
16462 #include <time.h>
16463
16464 int
16465 main ()
16466 {
16467 struct tm *tp; tp->tm_sec;
16468   ;
16469   return 0;
16470 }
16471 _ACEOF
16472 rm -f conftest.$ac_objext
16473 if { (ac_try="$ac_compile"
16474 case "(($ac_try" in
16475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476   *) ac_try_echo=$ac_try;;
16477 esac
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479   (eval "$ac_compile") 2>conftest.er1
16480   ac_status=$?
16481   grep -v '^ *+' conftest.er1 >conftest.err
16482   rm -f conftest.er1
16483   cat conftest.err >&5
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); } &&
16486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16487   { (case "(($ac_try" in
16488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489   *) ac_try_echo=$ac_try;;
16490 esac
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492   (eval "$ac_try") 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); }; } &&
16496          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16506   ac_cv_struct_tm=time.h
16507 else
16508   echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16510
16511         ac_cv_struct_tm=sys/time.h
16512 fi
16513
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515 fi
16516 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16517 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16518 if test $ac_cv_struct_tm = sys/time.h; then
16519
16520 cat >>confdefs.h <<\_ACEOF
16521 #define TM_IN_SYS_TIME 1
16522 _ACEOF
16523
16524 fi
16525
16526 { echo "$as_me:$LINENO: checking for int64_t" >&5
16527 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16528 if test "${ac_cv_type_int64_t+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h.  */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h.  */
16537 $ac_includes_default
16538 typedef int64_t ac__type_new_;
16539 int
16540 main ()
16541 {
16542 if ((ac__type_new_ *) 0)
16543   return 0;
16544 if (sizeof (ac__type_new_))
16545   return 0;
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext
16551 if { (ac_try="$ac_compile"
16552 case "(($ac_try" in
16553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554   *) ac_try_echo=$ac_try;;
16555 esac
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557   (eval "$ac_compile") 2>conftest.er1
16558   ac_status=$?
16559   grep -v '^ *+' conftest.er1 >conftest.err
16560   rm -f conftest.er1
16561   cat conftest.err >&5
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } &&
16564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16565   { (case "(($ac_try" in
16566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567   *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570   (eval "$ac_try") 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); }; } &&
16574          { ac_try='test -s conftest.$ac_objext'
16575   { (case "(($ac_try" in
16576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577   *) ac_try_echo=$ac_try;;
16578 esac
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580   (eval "$ac_try") 2>&5
16581   ac_status=$?
16582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583   (exit $ac_status); }; }; then
16584   ac_cv_type_int64_t=yes
16585 else
16586   echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16588
16589         ac_cv_type_int64_t=no
16590 fi
16591
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 fi
16594 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16595 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16596 if test $ac_cv_type_int64_t = yes; then
16597
16598 cat >>confdefs.h <<_ACEOF
16599 #define HAVE_INT64_T 1
16600 _ACEOF
16601
16602
16603 else
16604   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16605 echo "$as_me: error: Type int64_t required but not found" >&2;}
16606    { (exit 1); exit 1; }; }
16607 fi
16608
16609 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16610 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16611 if test "${ac_cv_type_uint64_t+set}" = set; then
16612   echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614   cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h.  */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h.  */
16620 $ac_includes_default
16621 typedef uint64_t ac__type_new_;
16622 int
16623 main ()
16624 {
16625 if ((ac__type_new_ *) 0)
16626   return 0;
16627 if (sizeof (ac__type_new_))
16628   return 0;
16629   ;
16630   return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_compile") 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648   { (case "(($ac_try" in
16649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650   *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653   (eval "$ac_try") 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; } &&
16657          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16667   ac_cv_type_uint64_t=yes
16668 else
16669   echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672         ac_cv_type_uint64_t=no
16673 fi
16674
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 fi
16677 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16678 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16679 if test $ac_cv_type_uint64_t = yes; then
16680
16681 cat >>confdefs.h <<_ACEOF
16682 #define HAVE_UINT64_T 1
16683 _ACEOF
16684
16685
16686 else
16687   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16688 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16689 if test "${ac_cv_type_u_int64_t+set}" = set; then
16690   echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692   cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h.  */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h.  */
16698 $ac_includes_default
16699 typedef u_int64_t ac__type_new_;
16700 int
16701 main ()
16702 {
16703 if ((ac__type_new_ *) 0)
16704   return 0;
16705 if (sizeof (ac__type_new_))
16706   return 0;
16707   ;
16708   return 0;
16709 }
16710 _ACEOF
16711 rm -f conftest.$ac_objext
16712 if { (ac_try="$ac_compile"
16713 case "(($ac_try" in
16714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715   *) ac_try_echo=$ac_try;;
16716 esac
16717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718   (eval "$ac_compile") 2>conftest.er1
16719   ac_status=$?
16720   grep -v '^ *+' conftest.er1 >conftest.err
16721   rm -f conftest.er1
16722   cat conftest.err >&5
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); } &&
16725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16726   { (case "(($ac_try" in
16727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728   *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731   (eval "$ac_try") 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; } &&
16735          { ac_try='test -s conftest.$ac_objext'
16736   { (case "(($ac_try" in
16737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738   *) ac_try_echo=$ac_try;;
16739 esac
16740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741   (eval "$ac_try") 2>&5
16742   ac_status=$?
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); }; }; then
16745   ac_cv_type_u_int64_t=yes
16746 else
16747   echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16749
16750         ac_cv_type_u_int64_t=no
16751 fi
16752
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754 fi
16755 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16756 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16757 if test $ac_cv_type_u_int64_t = yes; then
16758
16759 cat >>confdefs.h <<_ACEOF
16760 #define HAVE_U_INT64_T 1
16761 _ACEOF
16762
16763
16764 else
16765   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16766 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16767    { (exit 1); exit 1; }; }
16768 fi
16769
16770 fi
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16782 do
16783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16787   echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16789   cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16797 #define $ac_func innocuous_$ac_func
16798
16799 /* System header to define __stub macros and hopefully few prototypes,
16800     which can conflict with char $ac_func (); below.
16801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16802     <limits.h> exists even on freestanding compilers.  */
16803
16804 #ifdef __STDC__
16805 # include <limits.h>
16806 #else
16807 # include <assert.h>
16808 #endif
16809
16810 #undef $ac_func
16811
16812 /* Override any GCC internal prototype to avoid an error.
16813    Use char because int might match the return type of a GCC
16814    builtin and then its argument prototype would still apply.  */
16815 #ifdef __cplusplus
16816 extern "C"
16817 #endif
16818 char $ac_func ();
16819 /* The GNU C library defines this for functions which it implements
16820     to always fail with ENOSYS.  Some functions are actually named
16821     something starting with __ and the normal name is an alias.  */
16822 #if defined __stub_$ac_func || defined __stub___$ac_func
16823 choke me
16824 #endif
16825
16826 int
16827 main ()
16828 {
16829 return $ac_func ();
16830   ;
16831   return 0;
16832 }
16833 _ACEOF
16834 rm -f conftest.$ac_objext conftest$ac_exeext
16835 if { (ac_try="$ac_link"
16836 case "(($ac_try" in
16837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838   *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841   (eval "$ac_link") 2>conftest.er1
16842   ac_status=$?
16843   grep -v '^ *+' conftest.er1 >conftest.err
16844   rm -f conftest.er1
16845   cat conftest.err >&5
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); } &&
16848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16849   { (case "(($ac_try" in
16850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851   *) ac_try_echo=$ac_try;;
16852 esac
16853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854   (eval "$ac_try") 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; } &&
16858          { ac_try='test -s conftest$ac_exeext'
16859   { (case "(($ac_try" in
16860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861   *) ac_try_echo=$ac_try;;
16862 esac
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864   (eval "$ac_try") 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); }; }; then
16868   eval "$as_ac_var=yes"
16869 else
16870   echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873         eval "$as_ac_var=no"
16874 fi
16875
16876 rm -f core conftest.err conftest.$ac_objext \
16877       conftest$ac_exeext conftest.$ac_ext
16878 fi
16879 ac_res=`eval echo '${'$as_ac_var'}'`
16880                { echo "$as_me:$LINENO: result: $ac_res" >&5
16881 echo "${ECHO_T}$ac_res" >&6; }
16882 if test `eval echo '${'$as_ac_var'}'` = yes; then
16883   cat >>confdefs.h <<_ACEOF
16884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16885 _ACEOF
16886
16887 fi
16888 done
16889
16890
16891
16892
16893
16894 for ac_func in powf fmodf strtof round
16895 do
16896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16900   echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902   cat >conftest.$ac_ext <<_ACEOF
16903 /* confdefs.h.  */
16904 _ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h.  */
16908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16910 #define $ac_func innocuous_$ac_func
16911
16912 /* System header to define __stub macros and hopefully few prototypes,
16913     which can conflict with char $ac_func (); below.
16914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16915     <limits.h> exists even on freestanding compilers.  */
16916
16917 #ifdef __STDC__
16918 # include <limits.h>
16919 #else
16920 # include <assert.h>
16921 #endif
16922
16923 #undef $ac_func
16924
16925 /* Override any GCC internal prototype to avoid an error.
16926    Use char because int might match the return type of a GCC
16927    builtin and then its argument prototype would still apply.  */
16928 #ifdef __cplusplus
16929 extern "C"
16930 #endif
16931 char $ac_func ();
16932 /* The GNU C library defines this for functions which it implements
16933     to always fail with ENOSYS.  Some functions are actually named
16934     something starting with __ and the normal name is an alias.  */
16935 #if defined __stub_$ac_func || defined __stub___$ac_func
16936 choke me
16937 #endif
16938
16939 int
16940 main ()
16941 {
16942 return $ac_func ();
16943   ;
16944   return 0;
16945 }
16946 _ACEOF
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (ac_try="$ac_link"
16949 case "(($ac_try" in
16950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951   *) ac_try_echo=$ac_try;;
16952 esac
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954   (eval "$ac_link") 2>conftest.er1
16955   ac_status=$?
16956   grep -v '^ *+' conftest.er1 >conftest.err
16957   rm -f conftest.er1
16958   cat conftest.err >&5
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); } &&
16961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16962   { (case "(($ac_try" in
16963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964   *) ac_try_echo=$ac_try;;
16965 esac
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967   (eval "$ac_try") 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); }; } &&
16971          { ac_try='test -s conftest$ac_exeext'
16972   { (case "(($ac_try" in
16973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974   *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977   (eval "$ac_try") 2>&5
16978   ac_status=$?
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); }; }; then
16981   eval "$as_ac_var=yes"
16982 else
16983   echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16985
16986         eval "$as_ac_var=no"
16987 fi
16988
16989 rm -f core conftest.err conftest.$ac_objext \
16990       conftest$ac_exeext conftest.$ac_ext
16991 fi
16992 ac_res=`eval echo '${'$as_ac_var'}'`
16993                { echo "$as_me:$LINENO: result: $ac_res" >&5
16994 echo "${ECHO_T}$ac_res" >&6; }
16995 if test `eval echo '${'$as_ac_var'}'` = yes; then
16996   cat >>confdefs.h <<_ACEOF
16997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16998 _ACEOF
16999
17000 fi
17001 done
17002
17003
17004
17005
17006
17007
17008 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17009 do
17010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h.  */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h.  */
17022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17024 #define $ac_func innocuous_$ac_func
17025
17026 /* System header to define __stub macros and hopefully few prototypes,
17027     which can conflict with char $ac_func (); below.
17028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17029     <limits.h> exists even on freestanding compilers.  */
17030
17031 #ifdef __STDC__
17032 # include <limits.h>
17033 #else
17034 # include <assert.h>
17035 #endif
17036
17037 #undef $ac_func
17038
17039 /* Override any GCC internal prototype to avoid an error.
17040    Use char because int might match the return type of a GCC
17041    builtin and then its argument prototype would still apply.  */
17042 #ifdef __cplusplus
17043 extern "C"
17044 #endif
17045 char $ac_func ();
17046 /* The GNU C library defines this for functions which it implements
17047     to always fail with ENOSYS.  Some functions are actually named
17048     something starting with __ and the normal name is an alias.  */
17049 #if defined __stub_$ac_func || defined __stub___$ac_func
17050 choke me
17051 #endif
17052
17053 int
17054 main ()
17055 {
17056 return $ac_func ();
17057   ;
17058   return 0;
17059 }
17060 _ACEOF
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065   *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068   (eval "$ac_link") 2>conftest.er1
17069   ac_status=$?
17070   grep -v '^ *+' conftest.er1 >conftest.err
17071   rm -f conftest.er1
17072   cat conftest.err >&5
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } &&
17075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076   { (case "(($ac_try" in
17077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078   *) ac_try_echo=$ac_try;;
17079 esac
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081   (eval "$ac_try") 2>&5
17082   ac_status=$?
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); }; } &&
17085          { ac_try='test -s conftest$ac_exeext'
17086   { (case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_try") 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; }; then
17095   eval "$as_ac_var=yes"
17096 else
17097   echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17099
17100         eval "$as_ac_var=no"
17101 fi
17102
17103 rm -f core conftest.err conftest.$ac_objext \
17104       conftest$ac_exeext conftest.$ac_ext
17105 fi
17106 ac_res=`eval echo '${'$as_ac_var'}'`
17107                { echo "$as_me:$LINENO: result: $ac_res" >&5
17108 echo "${ECHO_T}$ac_res" >&6; }
17109 if test `eval echo '${'$as_ac_var'}'` = yes; then
17110   cat >>confdefs.h <<_ACEOF
17111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17112 _ACEOF
17113
17114 fi
17115 done
17116
17117
17118
17119
17120 for ac_func in isatty mkdtemp mkstemp
17121 do
17122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17126   echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128   cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h.  */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h.  */
17134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17136 #define $ac_func innocuous_$ac_func
17137
17138 /* System header to define __stub macros and hopefully few prototypes,
17139     which can conflict with char $ac_func (); below.
17140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17141     <limits.h> exists even on freestanding compilers.  */
17142
17143 #ifdef __STDC__
17144 # include <limits.h>
17145 #else
17146 # include <assert.h>
17147 #endif
17148
17149 #undef $ac_func
17150
17151 /* Override any GCC internal prototype to avoid an error.
17152    Use char because int might match the return type of a GCC
17153    builtin and then its argument prototype would still apply.  */
17154 #ifdef __cplusplus
17155 extern "C"
17156 #endif
17157 char $ac_func ();
17158 /* The GNU C library defines this for functions which it implements
17159     to always fail with ENOSYS.  Some functions are actually named
17160     something starting with __ and the normal name is an alias.  */
17161 #if defined __stub_$ac_func || defined __stub___$ac_func
17162 choke me
17163 #endif
17164
17165 int
17166 main ()
17167 {
17168 return $ac_func ();
17169   ;
17170   return 0;
17171 }
17172 _ACEOF
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (ac_try="$ac_link"
17175 case "(($ac_try" in
17176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177   *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180   (eval "$ac_link") 2>conftest.er1
17181   ac_status=$?
17182   grep -v '^ *+' conftest.er1 >conftest.err
17183   rm -f conftest.er1
17184   cat conftest.err >&5
17185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186   (exit $ac_status); } &&
17187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17188   { (case "(($ac_try" in
17189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190   *) ac_try_echo=$ac_try;;
17191 esac
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193   (eval "$ac_try") 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); }; } &&
17197          { ac_try='test -s conftest$ac_exeext'
17198   { (case "(($ac_try" in
17199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200   *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203   (eval "$ac_try") 2>&5
17204   ac_status=$?
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); }; }; then
17207   eval "$as_ac_var=yes"
17208 else
17209   echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17211
17212         eval "$as_ac_var=no"
17213 fi
17214
17215 rm -f core conftest.err conftest.$ac_objext \
17216       conftest$ac_exeext conftest.$ac_ext
17217 fi
17218 ac_res=`eval echo '${'$as_ac_var'}'`
17219                { echo "$as_me:$LINENO: result: $ac_res" >&5
17220 echo "${ECHO_T}$ac_res" >&6; }
17221 if test `eval echo '${'$as_ac_var'}'` = yes; then
17222   cat >>confdefs.h <<_ACEOF
17223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17224 _ACEOF
17225
17226 fi
17227 done
17228
17229
17230
17231
17232
17233
17234
17235 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17236 do
17237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17241   echo $ECHO_N "(cached) $ECHO_C" >&6
17242 else
17243   cat >conftest.$ac_ext <<_ACEOF
17244 /* confdefs.h.  */
17245 _ACEOF
17246 cat confdefs.h >>conftest.$ac_ext
17247 cat >>conftest.$ac_ext <<_ACEOF
17248 /* end confdefs.h.  */
17249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17251 #define $ac_func innocuous_$ac_func
17252
17253 /* System header to define __stub macros and hopefully few prototypes,
17254     which can conflict with char $ac_func (); below.
17255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17256     <limits.h> exists even on freestanding compilers.  */
17257
17258 #ifdef __STDC__
17259 # include <limits.h>
17260 #else
17261 # include <assert.h>
17262 #endif
17263
17264 #undef $ac_func
17265
17266 /* Override any GCC internal prototype to avoid an error.
17267    Use char because int might match the return type of a GCC
17268    builtin and then its argument prototype would still apply.  */
17269 #ifdef __cplusplus
17270 extern "C"
17271 #endif
17272 char $ac_func ();
17273 /* The GNU C library defines this for functions which it implements
17274     to always fail with ENOSYS.  Some functions are actually named
17275     something starting with __ and the normal name is an alias.  */
17276 #if defined __stub_$ac_func || defined __stub___$ac_func
17277 choke me
17278 #endif
17279
17280 int
17281 main ()
17282 {
17283 return $ac_func ();
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (ac_try="$ac_link"
17290 case "(($ac_try" in
17291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292   *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295   (eval "$ac_link") 2>conftest.er1
17296   ac_status=$?
17297   grep -v '^ *+' conftest.er1 >conftest.err
17298   rm -f conftest.er1
17299   cat conftest.err >&5
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); } &&
17302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17303   { (case "(($ac_try" in
17304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305   *) ac_try_echo=$ac_try;;
17306 esac
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308   (eval "$ac_try") 2>&5
17309   ac_status=$?
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); }; } &&
17312          { ac_try='test -s conftest$ac_exeext'
17313   { (case "(($ac_try" in
17314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315   *) ac_try_echo=$ac_try;;
17316 esac
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318   (eval "$ac_try") 2>&5
17319   ac_status=$?
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); }; }; then
17322   eval "$as_ac_var=yes"
17323 else
17324   echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17326
17327         eval "$as_ac_var=no"
17328 fi
17329
17330 rm -f core conftest.err conftest.$ac_objext \
17331       conftest$ac_exeext conftest.$ac_ext
17332 fi
17333 ac_res=`eval echo '${'$as_ac_var'}'`
17334                { echo "$as_me:$LINENO: result: $ac_res" >&5
17335 echo "${ECHO_T}$ac_res" >&6; }
17336 if test `eval echo '${'$as_ac_var'}'` = yes; then
17337   cat >>confdefs.h <<_ACEOF
17338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17339 _ACEOF
17340
17341 fi
17342 done
17343
17344
17345
17346
17347 for ac_func in strerror strerror_r setenv
17348 do
17349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17353   echo $ECHO_N "(cached) $ECHO_C" >&6
17354 else
17355   cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h.  */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h.  */
17361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17363 #define $ac_func innocuous_$ac_func
17364
17365 /* System header to define __stub macros and hopefully few prototypes,
17366     which can conflict with char $ac_func (); below.
17367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17368     <limits.h> exists even on freestanding compilers.  */
17369
17370 #ifdef __STDC__
17371 # include <limits.h>
17372 #else
17373 # include <assert.h>
17374 #endif
17375
17376 #undef $ac_func
17377
17378 /* Override any GCC internal prototype to avoid an error.
17379    Use char because int might match the return type of a GCC
17380    builtin and then its argument prototype would still apply.  */
17381 #ifdef __cplusplus
17382 extern "C"
17383 #endif
17384 char $ac_func ();
17385 /* The GNU C library defines this for functions which it implements
17386     to always fail with ENOSYS.  Some functions are actually named
17387     something starting with __ and the normal name is an alias.  */
17388 #if defined __stub_$ac_func || defined __stub___$ac_func
17389 choke me
17390 #endif
17391
17392 int
17393 main ()
17394 {
17395 return $ac_func ();
17396   ;
17397   return 0;
17398 }
17399 _ACEOF
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (ac_try="$ac_link"
17402 case "(($ac_try" in
17403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404   *) ac_try_echo=$ac_try;;
17405 esac
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407   (eval "$ac_link") 2>conftest.er1
17408   ac_status=$?
17409   grep -v '^ *+' conftest.er1 >conftest.err
17410   rm -f conftest.er1
17411   cat conftest.err >&5
17412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413   (exit $ac_status); } &&
17414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17415   { (case "(($ac_try" in
17416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417   *) ac_try_echo=$ac_try;;
17418 esac
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420   (eval "$ac_try") 2>&5
17421   ac_status=$?
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); }; } &&
17424          { ac_try='test -s conftest$ac_exeext'
17425   { (case "(($ac_try" in
17426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427   *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430   (eval "$ac_try") 2>&5
17431   ac_status=$?
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); }; }; then
17434   eval "$as_ac_var=yes"
17435 else
17436   echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439         eval "$as_ac_var=no"
17440 fi
17441
17442 rm -f core conftest.err conftest.$ac_objext \
17443       conftest$ac_exeext conftest.$ac_ext
17444 fi
17445 ac_res=`eval echo '${'$as_ac_var'}'`
17446                { echo "$as_me:$LINENO: result: $ac_res" >&5
17447 echo "${ECHO_T}$ac_res" >&6; }
17448 if test `eval echo '${'$as_ac_var'}'` = yes; then
17449   cat >>confdefs.h <<_ACEOF
17450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17451 _ACEOF
17452
17453 fi
17454 done
17455
17456
17457
17458
17459
17460 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17461 do
17462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17466   echo $ECHO_N "(cached) $ECHO_C" >&6
17467 else
17468   cat >conftest.$ac_ext <<_ACEOF
17469 /* confdefs.h.  */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h.  */
17474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17476 #define $ac_func innocuous_$ac_func
17477
17478 /* System header to define __stub macros and hopefully few prototypes,
17479     which can conflict with char $ac_func (); below.
17480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481     <limits.h> exists even on freestanding compilers.  */
17482
17483 #ifdef __STDC__
17484 # include <limits.h>
17485 #else
17486 # include <assert.h>
17487 #endif
17488
17489 #undef $ac_func
17490
17491 /* Override any GCC internal prototype to avoid an error.
17492    Use char because int might match the return type of a GCC
17493    builtin and then its argument prototype would still apply.  */
17494 #ifdef __cplusplus
17495 extern "C"
17496 #endif
17497 char $ac_func ();
17498 /* The GNU C library defines this for functions which it implements
17499     to always fail with ENOSYS.  Some functions are actually named
17500     something starting with __ and the normal name is an alias.  */
17501 #if defined __stub_$ac_func || defined __stub___$ac_func
17502 choke me
17503 #endif
17504
17505 int
17506 main ()
17507 {
17508 return $ac_func ();
17509   ;
17510   return 0;
17511 }
17512 _ACEOF
17513 rm -f conftest.$ac_objext conftest$ac_exeext
17514 if { (ac_try="$ac_link"
17515 case "(($ac_try" in
17516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517   *) ac_try_echo=$ac_try;;
17518 esac
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520   (eval "$ac_link") 2>conftest.er1
17521   ac_status=$?
17522   grep -v '^ *+' conftest.er1 >conftest.err
17523   rm -f conftest.er1
17524   cat conftest.err >&5
17525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526   (exit $ac_status); } &&
17527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17528   { (case "(($ac_try" in
17529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530   *) ac_try_echo=$ac_try;;
17531 esac
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533   (eval "$ac_try") 2>&5
17534   ac_status=$?
17535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536   (exit $ac_status); }; } &&
17537          { ac_try='test -s conftest$ac_exeext'
17538   { (case "(($ac_try" in
17539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540   *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543   (eval "$ac_try") 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }; }; then
17547   eval "$as_ac_var=yes"
17548 else
17549   echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17551
17552         eval "$as_ac_var=no"
17553 fi
17554
17555 rm -f core conftest.err conftest.$ac_objext \
17556       conftest$ac_exeext conftest.$ac_ext
17557 fi
17558 ac_res=`eval echo '${'$as_ac_var'}'`
17559                { echo "$as_me:$LINENO: result: $ac_res" >&5
17560 echo "${ECHO_T}$ac_res" >&6; }
17561 if test `eval echo '${'$as_ac_var'}'` = yes; then
17562   cat >>confdefs.h <<_ACEOF
17563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17564 _ACEOF
17565
17566 fi
17567 done
17568
17569
17570
17571
17572
17573
17574 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17575 do
17576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17580   echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582   cat >conftest.$ac_ext <<_ACEOF
17583 /* confdefs.h.  */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h.  */
17588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17590 #define $ac_func innocuous_$ac_func
17591
17592 /* System header to define __stub macros and hopefully few prototypes,
17593     which can conflict with char $ac_func (); below.
17594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17595     <limits.h> exists even on freestanding compilers.  */
17596
17597 #ifdef __STDC__
17598 # include <limits.h>
17599 #else
17600 # include <assert.h>
17601 #endif
17602
17603 #undef $ac_func
17604
17605 /* Override any GCC internal prototype to avoid an error.
17606    Use char because int might match the return type of a GCC
17607    builtin and then its argument prototype would still apply.  */
17608 #ifdef __cplusplus
17609 extern "C"
17610 #endif
17611 char $ac_func ();
17612 /* The GNU C library defines this for functions which it implements
17613     to always fail with ENOSYS.  Some functions are actually named
17614     something starting with __ and the normal name is an alias.  */
17615 #if defined __stub_$ac_func || defined __stub___$ac_func
17616 choke me
17617 #endif
17618
17619 int
17620 main ()
17621 {
17622 return $ac_func ();
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (ac_try="$ac_link"
17629 case "(($ac_try" in
17630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631   *) ac_try_echo=$ac_try;;
17632 esac
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634   (eval "$ac_link") 2>conftest.er1
17635   ac_status=$?
17636   grep -v '^ *+' conftest.er1 >conftest.err
17637   rm -f conftest.er1
17638   cat conftest.err >&5
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } &&
17641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17642   { (case "(($ac_try" in
17643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644   *) ac_try_echo=$ac_try;;
17645 esac
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647   (eval "$ac_try") 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; } &&
17651          { ac_try='test -s conftest$ac_exeext'
17652   { (case "(($ac_try" in
17653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654   *) ac_try_echo=$ac_try;;
17655 esac
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657   (eval "$ac_try") 2>&5
17658   ac_status=$?
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); }; }; then
17661   eval "$as_ac_var=yes"
17662 else
17663   echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17665
17666         eval "$as_ac_var=no"
17667 fi
17668
17669 rm -f core conftest.err conftest.$ac_objext \
17670       conftest$ac_exeext conftest.$ac_ext
17671 fi
17672 ac_res=`eval echo '${'$as_ac_var'}'`
17673                { echo "$as_me:$LINENO: result: $ac_res" >&5
17674 echo "${ECHO_T}$ac_res" >&6; }
17675 if test `eval echo '${'$as_ac_var'}'` = yes; then
17676   cat >>confdefs.h <<_ACEOF
17677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17678 _ACEOF
17679
17680 fi
17681 done
17682
17683 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17684 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17685 if test "${llvm_cv_c_printf_a+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   ac_ext=c
17689 ac_cpp='$CPP $CPPFLAGS'
17690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17693
17694  if test "$cross_compiling" = yes; then
17695   llvmac_cv_c_printf_a=no
17696 else
17697   cat >conftest.$ac_ext <<_ACEOF
17698
17699   /* confdefs.h.  */
17700 _ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h.  */
17704
17705 #include <stdio.h>
17706 #include <stdlib.h>
17707
17708 int
17709 main ()
17710 {
17711
17712 volatile double A, B;
17713 char Buffer[100];
17714 A = 1;
17715 A /= 10.0;
17716 sprintf(Buffer, "%a", A);
17717 B = atof(Buffer);
17718 if (A != B)
17719   return (1);
17720 if (A != 0x1.999999999999ap-4)
17721   return (1);
17722 return (0);
17723   ;
17724   return 0;
17725 }
17726 _ACEOF
17727 rm -f conftest$ac_exeext
17728 if { (ac_try="$ac_link"
17729 case "(($ac_try" in
17730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731   *) ac_try_echo=$ac_try;;
17732 esac
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734   (eval "$ac_link") 2>&5
17735   ac_status=$?
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17738   { (case "(($ac_try" in
17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740   *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743   (eval "$ac_try") 2>&5
17744   ac_status=$?
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); }; }; then
17747   llvm_cv_c_printf_a=yes
17748 else
17749   echo "$as_me: program exited with status $ac_status" >&5
17750 echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17752
17753 ( exit $ac_status )
17754 llvmac_cv_c_printf_a=no
17755 fi
17756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17757 fi
17758
17759
17760  ac_ext=c
17761 ac_cpp='$CPP $CPPFLAGS'
17762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17765
17766 fi
17767 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17768 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17769  if test "$llvm_cv_c_printf_a" = "yes"; then
17770
17771 cat >>confdefs.h <<\_ACEOF
17772 #define HAVE_PRINTF_A 1
17773 _ACEOF
17774
17775  fi
17776
17777
17778 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17779 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17780 if test "${ac_cv_func_rand48+set}" = set; then
17781   echo $ECHO_N "(cached) $ECHO_C" >&6
17782 else
17783   ac_ext=cpp
17784 ac_cpp='$CXXCPP $CPPFLAGS'
17785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17788
17789    cat >conftest.$ac_ext <<_ACEOF
17790 /* confdefs.h.  */
17791 _ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h.  */
17795 #include <stdlib.h>
17796 int
17797 main ()
17798 {
17799 srand48(0);lrand48();drand48();
17800   ;
17801   return 0;
17802 }
17803 _ACEOF
17804 rm -f conftest.$ac_objext
17805 if { (ac_try="$ac_compile"
17806 case "(($ac_try" in
17807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808   *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811   (eval "$ac_compile") 2>conftest.er1
17812   ac_status=$?
17813   grep -v '^ *+' conftest.er1 >conftest.err
17814   rm -f conftest.er1
17815   cat conftest.err >&5
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); } &&
17818          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17819   { (case "(($ac_try" in
17820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821   *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824   (eval "$ac_try") 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }; } &&
17828          { ac_try='test -s conftest.$ac_objext'
17829   { (case "(($ac_try" in
17830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831   *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834   (eval "$ac_try") 2>&5
17835   ac_status=$?
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); }; }; then
17838   ac_cv_func_rand48=yes
17839 else
17840   echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17842
17843         ac_cv_func_rand48=no
17844 fi
17845
17846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17847   ac_ext=c
17848 ac_cpp='$CPP $CPPFLAGS'
17849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17852
17853 fi
17854 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17855 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17856
17857 if test "$ac_cv_func_rand48" = "yes" ; then
17858
17859 cat >>confdefs.h <<\_ACEOF
17860 #define HAVE_RAND48 1
17861 _ACEOF
17862
17863 fi
17864
17865
17866 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17867 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17868 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17869   echo $ECHO_N "(cached) $ECHO_C" >&6
17870 else
17871   cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h.  */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h.  */
17877 $ac_includes_default
17878 int
17879 main ()
17880 {
17881 #ifndef strerror_s
17882   char *p = (char *) strerror_s;
17883   return !p;
17884 #endif
17885
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 rm -f conftest.$ac_objext
17891 if { (ac_try="$ac_compile"
17892 case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897   (eval "$ac_compile") 2>conftest.er1
17898   ac_status=$?
17899   grep -v '^ *+' conftest.er1 >conftest.err
17900   rm -f conftest.er1
17901   cat conftest.err >&5
17902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903   (exit $ac_status); } &&
17904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905   { (case "(($ac_try" in
17906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907   *) ac_try_echo=$ac_try;;
17908 esac
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910   (eval "$ac_try") 2>&5
17911   ac_status=$?
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); }; } &&
17914          { ac_try='test -s conftest.$ac_objext'
17915   { (case "(($ac_try" in
17916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917   *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920   (eval "$ac_try") 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; }; then
17924   ac_cv_have_decl_strerror_s=yes
17925 else
17926   echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929         ac_cv_have_decl_strerror_s=no
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933 fi
17934 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17935 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17936 if test $ac_cv_have_decl_strerror_s = yes; then
17937
17938 cat >>confdefs.h <<_ACEOF
17939 #define HAVE_DECL_STRERROR_S 1
17940 _ACEOF
17941
17942
17943 else
17944   cat >>confdefs.h <<_ACEOF
17945 #define HAVE_DECL_STRERROR_S 0
17946 _ACEOF
17947
17948
17949 fi
17950
17951
17952
17953 if test "$llvm_cv_os_type" = "MingW" ; then
17954   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17955 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17956 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17957   echo $ECHO_N "(cached) $ECHO_C" >&6
17958 else
17959   ac_check_lib_save_LIBS=$LIBS
17960 LIBS="-lgcc  $LIBS"
17961 cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h.  */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h.  */
17967
17968 /* Override any GCC internal prototype to avoid an error.
17969    Use char because int might match the return type of a GCC
17970    builtin and then its argument prototype would still apply.  */
17971 #ifdef __cplusplus
17972 extern "C"
17973 #endif
17974 char _alloca ();
17975 int
17976 main ()
17977 {
17978 return _alloca ();
17979   ;
17980   return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (ac_try="$ac_link"
17985 case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_link") 2>conftest.er1
17991   ac_status=$?
17992   grep -v '^ *+' conftest.er1 >conftest.err
17993   rm -f conftest.er1
17994   cat conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); } &&
17997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17998   { (case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_try") 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; } &&
18007          { ac_try='test -s conftest$ac_exeext'
18008   { (case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_try") 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; }; then
18017   ac_cv_lib_gcc__alloca=yes
18018 else
18019   echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022         ac_cv_lib_gcc__alloca=no
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext \
18026       conftest$ac_exeext conftest.$ac_ext
18027 LIBS=$ac_check_lib_save_LIBS
18028 fi
18029 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18030 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18031 if test $ac_cv_lib_gcc__alloca = yes; then
18032
18033 cat >>confdefs.h <<\_ACEOF
18034 #define HAVE__ALLOCA 1
18035 _ACEOF
18036
18037 fi
18038
18039   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18040 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18041 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18042   echo $ECHO_N "(cached) $ECHO_C" >&6
18043 else
18044   ac_check_lib_save_LIBS=$LIBS
18045 LIBS="-lgcc  $LIBS"
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h.  */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h.  */
18052
18053 /* Override any GCC internal prototype to avoid an error.
18054    Use char because int might match the return type of a GCC
18055    builtin and then its argument prototype would still apply.  */
18056 #ifdef __cplusplus
18057 extern "C"
18058 #endif
18059 char __alloca ();
18060 int
18061 main ()
18062 {
18063 return __alloca ();
18064   ;
18065   return 0;
18066 }
18067 _ACEOF
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (ac_try="$ac_link"
18070 case "(($ac_try" in
18071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072   *) ac_try_echo=$ac_try;;
18073 esac
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075   (eval "$ac_link") 2>conftest.er1
18076   ac_status=$?
18077   grep -v '^ *+' conftest.er1 >conftest.err
18078   rm -f conftest.er1
18079   cat conftest.err >&5
18080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081   (exit $ac_status); } &&
18082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18083   { (case "(($ac_try" in
18084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085   *) ac_try_echo=$ac_try;;
18086 esac
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088   (eval "$ac_try") 2>&5
18089   ac_status=$?
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); }; } &&
18092          { ac_try='test -s conftest$ac_exeext'
18093   { (case "(($ac_try" in
18094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095   *) ac_try_echo=$ac_try;;
18096 esac
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098   (eval "$ac_try") 2>&5
18099   ac_status=$?
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); }; }; then
18102   ac_cv_lib_gcc___alloca=yes
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107         ac_cv_lib_gcc___alloca=no
18108 fi
18109
18110 rm -f core conftest.err conftest.$ac_objext \
18111       conftest$ac_exeext conftest.$ac_ext
18112 LIBS=$ac_check_lib_save_LIBS
18113 fi
18114 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18115 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18116 if test $ac_cv_lib_gcc___alloca = yes; then
18117
18118 cat >>confdefs.h <<\_ACEOF
18119 #define HAVE___ALLOCA 1
18120 _ACEOF
18121
18122 fi
18123
18124   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18125 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18126 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18127   echo $ECHO_N "(cached) $ECHO_C" >&6
18128 else
18129   ac_check_lib_save_LIBS=$LIBS
18130 LIBS="-lgcc  $LIBS"
18131 cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h.  */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h.  */
18137
18138 /* Override any GCC internal prototype to avoid an error.
18139    Use char because int might match the return type of a GCC
18140    builtin and then its argument prototype would still apply.  */
18141 #ifdef __cplusplus
18142 extern "C"
18143 #endif
18144 char __chkstk ();
18145 int
18146 main ()
18147 {
18148 return __chkstk ();
18149   ;
18150   return 0;
18151 }
18152 _ACEOF
18153 rm -f conftest.$ac_objext conftest$ac_exeext
18154 if { (ac_try="$ac_link"
18155 case "(($ac_try" in
18156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157   *) ac_try_echo=$ac_try;;
18158 esac
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160   (eval "$ac_link") 2>conftest.er1
18161   ac_status=$?
18162   grep -v '^ *+' conftest.er1 >conftest.err
18163   rm -f conftest.er1
18164   cat conftest.err >&5
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } &&
18167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18168   { (case "(($ac_try" in
18169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170   *) ac_try_echo=$ac_try;;
18171 esac
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173   (eval "$ac_try") 2>&5
18174   ac_status=$?
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); }; } &&
18177          { ac_try='test -s conftest$ac_exeext'
18178   { (case "(($ac_try" in
18179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180   *) ac_try_echo=$ac_try;;
18181 esac
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183   (eval "$ac_try") 2>&5
18184   ac_status=$?
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); }; }; then
18187   ac_cv_lib_gcc___chkstk=yes
18188 else
18189   echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18191
18192         ac_cv_lib_gcc___chkstk=no
18193 fi
18194
18195 rm -f core conftest.err conftest.$ac_objext \
18196       conftest$ac_exeext conftest.$ac_ext
18197 LIBS=$ac_check_lib_save_LIBS
18198 fi
18199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18200 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18201 if test $ac_cv_lib_gcc___chkstk = yes; then
18202
18203 cat >>confdefs.h <<\_ACEOF
18204 #define HAVE___CHKSTK 1
18205 _ACEOF
18206
18207 fi
18208
18209   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18210 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18211 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18212   echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214   ac_check_lib_save_LIBS=$LIBS
18215 LIBS="-lgcc  $LIBS"
18216 cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h.  */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h.  */
18222
18223 /* Override any GCC internal prototype to avoid an error.
18224    Use char because int might match the return type of a GCC
18225    builtin and then its argument prototype would still apply.  */
18226 #ifdef __cplusplus
18227 extern "C"
18228 #endif
18229 char ___chkstk ();
18230 int
18231 main ()
18232 {
18233 return ___chkstk ();
18234   ;
18235   return 0;
18236 }
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242   *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245   (eval "$ac_link") 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } &&
18252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253   { (case "(($ac_try" in
18254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255   *) ac_try_echo=$ac_try;;
18256 esac
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258   (eval "$ac_try") 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; } &&
18262          { ac_try='test -s conftest$ac_exeext'
18263   { (case "(($ac_try" in
18264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265   *) ac_try_echo=$ac_try;;
18266 esac
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268   (eval "$ac_try") 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); }; }; then
18272   ac_cv_lib_gcc____chkstk=yes
18273 else
18274   echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18276
18277         ac_cv_lib_gcc____chkstk=no
18278 fi
18279
18280 rm -f core conftest.err conftest.$ac_objext \
18281       conftest$ac_exeext conftest.$ac_ext
18282 LIBS=$ac_check_lib_save_LIBS
18283 fi
18284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18285 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18286 if test $ac_cv_lib_gcc____chkstk = yes; then
18287
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE____CHKSTK 1
18290 _ACEOF
18291
18292 fi
18293
18294
18295   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18296 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18297 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18298   echo $ECHO_N "(cached) $ECHO_C" >&6
18299 else
18300   ac_check_lib_save_LIBS=$LIBS
18301 LIBS="-lgcc  $LIBS"
18302 cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h.  */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h.  */
18308
18309 /* Override any GCC internal prototype to avoid an error.
18310    Use char because int might match the return type of a GCC
18311    builtin and then its argument prototype would still apply.  */
18312 #ifdef __cplusplus
18313 extern "C"
18314 #endif
18315 char __ashldi3 ();
18316 int
18317 main ()
18318 {
18319 return __ashldi3 ();
18320   ;
18321   return 0;
18322 }
18323 _ACEOF
18324 rm -f conftest.$ac_objext conftest$ac_exeext
18325 if { (ac_try="$ac_link"
18326 case "(($ac_try" in
18327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328   *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331   (eval "$ac_link") 2>conftest.er1
18332   ac_status=$?
18333   grep -v '^ *+' conftest.er1 >conftest.err
18334   rm -f conftest.er1
18335   cat conftest.err >&5
18336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337   (exit $ac_status); } &&
18338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18339   { (case "(($ac_try" in
18340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341   *) ac_try_echo=$ac_try;;
18342 esac
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344   (eval "$ac_try") 2>&5
18345   ac_status=$?
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); }; } &&
18348          { ac_try='test -s conftest$ac_exeext'
18349   { (case "(($ac_try" in
18350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351   *) ac_try_echo=$ac_try;;
18352 esac
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354   (eval "$ac_try") 2>&5
18355   ac_status=$?
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); }; }; then
18358   ac_cv_lib_gcc___ashldi3=yes
18359 else
18360   echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18362
18363         ac_cv_lib_gcc___ashldi3=no
18364 fi
18365
18366 rm -f core conftest.err conftest.$ac_objext \
18367       conftest$ac_exeext conftest.$ac_ext
18368 LIBS=$ac_check_lib_save_LIBS
18369 fi
18370 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18371 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18372 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18373
18374 cat >>confdefs.h <<\_ACEOF
18375 #define HAVE___ASHLDI3 1
18376 _ACEOF
18377
18378 fi
18379
18380   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18381 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18382 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18383   echo $ECHO_N "(cached) $ECHO_C" >&6
18384 else
18385   ac_check_lib_save_LIBS=$LIBS
18386 LIBS="-lgcc  $LIBS"
18387 cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h.  */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h.  */
18393
18394 /* Override any GCC internal prototype to avoid an error.
18395    Use char because int might match the return type of a GCC
18396    builtin and then its argument prototype would still apply.  */
18397 #ifdef __cplusplus
18398 extern "C"
18399 #endif
18400 char __ashrdi3 ();
18401 int
18402 main ()
18403 {
18404 return __ashrdi3 ();
18405   ;
18406   return 0;
18407 }
18408 _ACEOF
18409 rm -f conftest.$ac_objext conftest$ac_exeext
18410 if { (ac_try="$ac_link"
18411 case "(($ac_try" in
18412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413   *) ac_try_echo=$ac_try;;
18414 esac
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416   (eval "$ac_link") 2>conftest.er1
18417   ac_status=$?
18418   grep -v '^ *+' conftest.er1 >conftest.err
18419   rm -f conftest.er1
18420   cat conftest.err >&5
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); } &&
18423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18424   { (case "(($ac_try" in
18425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426   *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429   (eval "$ac_try") 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; } &&
18433          { ac_try='test -s conftest$ac_exeext'
18434   { (case "(($ac_try" in
18435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436   *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439   (eval "$ac_try") 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; }; then
18443   ac_cv_lib_gcc___ashrdi3=yes
18444 else
18445   echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18447
18448         ac_cv_lib_gcc___ashrdi3=no
18449 fi
18450
18451 rm -f core conftest.err conftest.$ac_objext \
18452       conftest$ac_exeext conftest.$ac_ext
18453 LIBS=$ac_check_lib_save_LIBS
18454 fi
18455 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18456 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18457 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18458
18459 cat >>confdefs.h <<\_ACEOF
18460 #define HAVE___ASHRDI3 1
18461 _ACEOF
18462
18463 fi
18464
18465   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18466 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18467 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18468   echo $ECHO_N "(cached) $ECHO_C" >&6
18469 else
18470   ac_check_lib_save_LIBS=$LIBS
18471 LIBS="-lgcc  $LIBS"
18472 cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h.  */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h.  */
18478
18479 /* Override any GCC internal prototype to avoid an error.
18480    Use char because int might match the return type of a GCC
18481    builtin and then its argument prototype would still apply.  */
18482 #ifdef __cplusplus
18483 extern "C"
18484 #endif
18485 char __divdi3 ();
18486 int
18487 main ()
18488 {
18489 return __divdi3 ();
18490   ;
18491   return 0;
18492 }
18493 _ACEOF
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498   *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501   (eval "$ac_link") 2>conftest.er1
18502   ac_status=$?
18503   grep -v '^ *+' conftest.er1 >conftest.err
18504   rm -f conftest.er1
18505   cat conftest.err >&5
18506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507   (exit $ac_status); } &&
18508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18509   { (case "(($ac_try" in
18510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511   *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514   (eval "$ac_try") 2>&5
18515   ac_status=$?
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); }; } &&
18518          { ac_try='test -s conftest$ac_exeext'
18519   { (case "(($ac_try" in
18520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521   *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524   (eval "$ac_try") 2>&5
18525   ac_status=$?
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); }; }; then
18528   ac_cv_lib_gcc___divdi3=yes
18529 else
18530   echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18532
18533         ac_cv_lib_gcc___divdi3=no
18534 fi
18535
18536 rm -f core conftest.err conftest.$ac_objext \
18537       conftest$ac_exeext conftest.$ac_ext
18538 LIBS=$ac_check_lib_save_LIBS
18539 fi
18540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18541 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18542 if test $ac_cv_lib_gcc___divdi3 = yes; then
18543
18544 cat >>confdefs.h <<\_ACEOF
18545 #define HAVE___DIVDI3 1
18546 _ACEOF
18547
18548 fi
18549
18550   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18551 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18552 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18553   echo $ECHO_N "(cached) $ECHO_C" >&6
18554 else
18555   ac_check_lib_save_LIBS=$LIBS
18556 LIBS="-lgcc  $LIBS"
18557 cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563
18564 /* Override any GCC internal prototype to avoid an error.
18565    Use char because int might match the return type of a GCC
18566    builtin and then its argument prototype would still apply.  */
18567 #ifdef __cplusplus
18568 extern "C"
18569 #endif
18570 char __fixdfdi ();
18571 int
18572 main ()
18573 {
18574 return __fixdfdi ();
18575   ;
18576   return 0;
18577 }
18578 _ACEOF
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (ac_try="$ac_link"
18581 case "(($ac_try" in
18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583   *) ac_try_echo=$ac_try;;
18584 esac
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586   (eval "$ac_link") 2>conftest.er1
18587   ac_status=$?
18588   grep -v '^ *+' conftest.er1 >conftest.err
18589   rm -f conftest.er1
18590   cat conftest.err >&5
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); } &&
18593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18594   { (case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599   (eval "$ac_try") 2>&5
18600   ac_status=$?
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); }; } &&
18603          { ac_try='test -s conftest$ac_exeext'
18604   { (case "(($ac_try" in
18605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606   *) ac_try_echo=$ac_try;;
18607 esac
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609   (eval "$ac_try") 2>&5
18610   ac_status=$?
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); }; }; then
18613   ac_cv_lib_gcc___fixdfdi=yes
18614 else
18615   echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18617
18618         ac_cv_lib_gcc___fixdfdi=no
18619 fi
18620
18621 rm -f core conftest.err conftest.$ac_objext \
18622       conftest$ac_exeext conftest.$ac_ext
18623 LIBS=$ac_check_lib_save_LIBS
18624 fi
18625 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18626 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18627 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18628
18629 cat >>confdefs.h <<\_ACEOF
18630 #define HAVE___FIXDFDI 1
18631 _ACEOF
18632
18633 fi
18634
18635   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18636 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18637 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18638   echo $ECHO_N "(cached) $ECHO_C" >&6
18639 else
18640   ac_check_lib_save_LIBS=$LIBS
18641 LIBS="-lgcc  $LIBS"
18642 cat >conftest.$ac_ext <<_ACEOF
18643 /* confdefs.h.  */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h.  */
18648
18649 /* Override any GCC internal prototype to avoid an error.
18650    Use char because int might match the return type of a GCC
18651    builtin and then its argument prototype would still apply.  */
18652 #ifdef __cplusplus
18653 extern "C"
18654 #endif
18655 char __fixsfdi ();
18656 int
18657 main ()
18658 {
18659 return __fixsfdi ();
18660   ;
18661   return 0;
18662 }
18663 _ACEOF
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668   *) ac_try_echo=$ac_try;;
18669 esac
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671   (eval "$ac_link") 2>conftest.er1
18672   ac_status=$?
18673   grep -v '^ *+' conftest.er1 >conftest.err
18674   rm -f conftest.er1
18675   cat conftest.err >&5
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } &&
18678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679   { (case "(($ac_try" in
18680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681   *) ac_try_echo=$ac_try;;
18682 esac
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684   (eval "$ac_try") 2>&5
18685   ac_status=$?
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); }; } &&
18688          { ac_try='test -s conftest$ac_exeext'
18689   { (case "(($ac_try" in
18690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691   *) ac_try_echo=$ac_try;;
18692 esac
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694   (eval "$ac_try") 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; }; then
18698   ac_cv_lib_gcc___fixsfdi=yes
18699 else
18700   echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18702
18703         ac_cv_lib_gcc___fixsfdi=no
18704 fi
18705
18706 rm -f core conftest.err conftest.$ac_objext \
18707       conftest$ac_exeext conftest.$ac_ext
18708 LIBS=$ac_check_lib_save_LIBS
18709 fi
18710 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18711 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18712 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18713
18714 cat >>confdefs.h <<\_ACEOF
18715 #define HAVE___FIXSFDI 1
18716 _ACEOF
18717
18718 fi
18719
18720   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18721 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18722 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18723   echo $ECHO_N "(cached) $ECHO_C" >&6
18724 else
18725   ac_check_lib_save_LIBS=$LIBS
18726 LIBS="-lgcc  $LIBS"
18727 cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h.  */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h.  */
18733
18734 /* Override any GCC internal prototype to avoid an error.
18735    Use char because int might match the return type of a GCC
18736    builtin and then its argument prototype would still apply.  */
18737 #ifdef __cplusplus
18738 extern "C"
18739 #endif
18740 char __floatdidf ();
18741 int
18742 main ()
18743 {
18744 return __floatdidf ();
18745   ;
18746   return 0;
18747 }
18748 _ACEOF
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (ac_try="$ac_link"
18751 case "(($ac_try" in
18752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753   *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756   (eval "$ac_link") 2>conftest.er1
18757   ac_status=$?
18758   grep -v '^ *+' conftest.er1 >conftest.err
18759   rm -f conftest.er1
18760   cat conftest.err >&5
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } &&
18763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18764   { (case "(($ac_try" in
18765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766   *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769   (eval "$ac_try") 2>&5
18770   ac_status=$?
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); }; } &&
18773          { ac_try='test -s conftest$ac_exeext'
18774   { (case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779   (eval "$ac_try") 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); }; }; then
18783   ac_cv_lib_gcc___floatdidf=yes
18784 else
18785   echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18787
18788         ac_cv_lib_gcc___floatdidf=no
18789 fi
18790
18791 rm -f core conftest.err conftest.$ac_objext \
18792       conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18794 fi
18795 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18796 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18797 if test $ac_cv_lib_gcc___floatdidf = yes; then
18798
18799 cat >>confdefs.h <<\_ACEOF
18800 #define HAVE___FLOATDIDF 1
18801 _ACEOF
18802
18803 fi
18804
18805   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18806 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18807 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18808   echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810   ac_check_lib_save_LIBS=$LIBS
18811 LIBS="-lgcc  $LIBS"
18812 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h.  */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h.  */
18818
18819 /* Override any GCC internal prototype to avoid an error.
18820    Use char because int might match the return type of a GCC
18821    builtin and then its argument prototype would still apply.  */
18822 #ifdef __cplusplus
18823 extern "C"
18824 #endif
18825 char __lshrdi3 ();
18826 int
18827 main ()
18828 {
18829 return __lshrdi3 ();
18830   ;
18831   return 0;
18832 }
18833 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838   *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841   (eval "$ac_link") 2>conftest.er1
18842   ac_status=$?
18843   grep -v '^ *+' conftest.er1 >conftest.err
18844   rm -f conftest.er1
18845   cat conftest.err >&5
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); } &&
18848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849   { (case "(($ac_try" in
18850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851   *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854   (eval "$ac_try") 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; } &&
18858          { ac_try='test -s conftest$ac_exeext'
18859   { (case "(($ac_try" in
18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861   *) ac_try_echo=$ac_try;;
18862 esac
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864   (eval "$ac_try") 2>&5
18865   ac_status=$?
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); }; }; then
18868   ac_cv_lib_gcc___lshrdi3=yes
18869 else
18870   echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873         ac_cv_lib_gcc___lshrdi3=no
18874 fi
18875
18876 rm -f core conftest.err conftest.$ac_objext \
18877       conftest$ac_exeext conftest.$ac_ext
18878 LIBS=$ac_check_lib_save_LIBS
18879 fi
18880 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18881 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18882 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18883
18884 cat >>confdefs.h <<\_ACEOF
18885 #define HAVE___LSHRDI3 1
18886 _ACEOF
18887
18888 fi
18889
18890   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18891 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18892 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18893   echo $ECHO_N "(cached) $ECHO_C" >&6
18894 else
18895   ac_check_lib_save_LIBS=$LIBS
18896 LIBS="-lgcc  $LIBS"
18897 cat >conftest.$ac_ext <<_ACEOF
18898 /* confdefs.h.  */
18899 _ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h.  */
18903
18904 /* Override any GCC internal prototype to avoid an error.
18905    Use char because int might match the return type of a GCC
18906    builtin and then its argument prototype would still apply.  */
18907 #ifdef __cplusplus
18908 extern "C"
18909 #endif
18910 char __moddi3 ();
18911 int
18912 main ()
18913 {
18914 return __moddi3 ();
18915   ;
18916   return 0;
18917 }
18918 _ACEOF
18919 rm -f conftest.$ac_objext conftest$ac_exeext
18920 if { (ac_try="$ac_link"
18921 case "(($ac_try" in
18922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923   *) ac_try_echo=$ac_try;;
18924 esac
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926   (eval "$ac_link") 2>conftest.er1
18927   ac_status=$?
18928   grep -v '^ *+' conftest.er1 >conftest.err
18929   rm -f conftest.er1
18930   cat conftest.err >&5
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); } &&
18933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18934   { (case "(($ac_try" in
18935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936   *) ac_try_echo=$ac_try;;
18937 esac
18938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939   (eval "$ac_try") 2>&5
18940   ac_status=$?
18941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); }; } &&
18943          { ac_try='test -s conftest$ac_exeext'
18944   { (case "(($ac_try" in
18945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946   *) ac_try_echo=$ac_try;;
18947 esac
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949   (eval "$ac_try") 2>&5
18950   ac_status=$?
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); }; }; then
18953   ac_cv_lib_gcc___moddi3=yes
18954 else
18955   echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18957
18958         ac_cv_lib_gcc___moddi3=no
18959 fi
18960
18961 rm -f core conftest.err conftest.$ac_objext \
18962       conftest$ac_exeext conftest.$ac_ext
18963 LIBS=$ac_check_lib_save_LIBS
18964 fi
18965 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18966 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18967 if test $ac_cv_lib_gcc___moddi3 = yes; then
18968
18969 cat >>confdefs.h <<\_ACEOF
18970 #define HAVE___MODDI3 1
18971 _ACEOF
18972
18973 fi
18974
18975   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18976 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18977 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18978   echo $ECHO_N "(cached) $ECHO_C" >&6
18979 else
18980   ac_check_lib_save_LIBS=$LIBS
18981 LIBS="-lgcc  $LIBS"
18982 cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h.  */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h.  */
18988
18989 /* Override any GCC internal prototype to avoid an error.
18990    Use char because int might match the return type of a GCC
18991    builtin and then its argument prototype would still apply.  */
18992 #ifdef __cplusplus
18993 extern "C"
18994 #endif
18995 char __udivdi3 ();
18996 int
18997 main ()
18998 {
18999 return __udivdi3 ();
19000   ;
19001   return 0;
19002 }
19003 _ACEOF
19004 rm -f conftest.$ac_objext conftest$ac_exeext
19005 if { (ac_try="$ac_link"
19006 case "(($ac_try" in
19007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008   *) ac_try_echo=$ac_try;;
19009 esac
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011   (eval "$ac_link") 2>conftest.er1
19012   ac_status=$?
19013   grep -v '^ *+' conftest.er1 >conftest.err
19014   rm -f conftest.er1
19015   cat conftest.err >&5
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); } &&
19018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19019   { (case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_try") 2>&5
19025   ac_status=$?
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); }; } &&
19028          { ac_try='test -s conftest$ac_exeext'
19029   { (case "(($ac_try" in
19030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031   *) ac_try_echo=$ac_try;;
19032 esac
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034   (eval "$ac_try") 2>&5
19035   ac_status=$?
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); }; }; then
19038   ac_cv_lib_gcc___udivdi3=yes
19039 else
19040   echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19042
19043         ac_cv_lib_gcc___udivdi3=no
19044 fi
19045
19046 rm -f core conftest.err conftest.$ac_objext \
19047       conftest$ac_exeext conftest.$ac_ext
19048 LIBS=$ac_check_lib_save_LIBS
19049 fi
19050 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19051 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19052 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19053
19054 cat >>confdefs.h <<\_ACEOF
19055 #define HAVE___UDIVDI3 1
19056 _ACEOF
19057
19058 fi
19059
19060   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19061 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19062 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19063   echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065   ac_check_lib_save_LIBS=$LIBS
19066 LIBS="-lgcc  $LIBS"
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h.  */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h.  */
19073
19074 /* Override any GCC internal prototype to avoid an error.
19075    Use char because int might match the return type of a GCC
19076    builtin and then its argument prototype would still apply.  */
19077 #ifdef __cplusplus
19078 extern "C"
19079 #endif
19080 char __umoddi3 ();
19081 int
19082 main ()
19083 {
19084 return __umoddi3 ();
19085   ;
19086   return 0;
19087 }
19088 _ACEOF
19089 rm -f conftest.$ac_objext conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093   *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096   (eval "$ac_link") 2>conftest.er1
19097   ac_status=$?
19098   grep -v '^ *+' conftest.er1 >conftest.err
19099   rm -f conftest.er1
19100   cat conftest.err >&5
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } &&
19103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19104   { (case "(($ac_try" in
19105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106   *) ac_try_echo=$ac_try;;
19107 esac
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109   (eval "$ac_try") 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); }; } &&
19113          { ac_try='test -s conftest$ac_exeext'
19114   { (case "(($ac_try" in
19115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116   *) ac_try_echo=$ac_try;;
19117 esac
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119   (eval "$ac_try") 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; }; then
19123   ac_cv_lib_gcc___umoddi3=yes
19124 else
19125   echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128         ac_cv_lib_gcc___umoddi3=no
19129 fi
19130
19131 rm -f core conftest.err conftest.$ac_objext \
19132       conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19134 fi
19135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19136 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19137 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19138
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE___UMODDI3 1
19141 _ACEOF
19142
19143 fi
19144
19145
19146   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19147 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19148 if test "${ac_cv_lib_gcc___main+set}" = set; then
19149   echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151   ac_check_lib_save_LIBS=$LIBS
19152 LIBS="-lgcc  $LIBS"
19153 cat >conftest.$ac_ext <<_ACEOF
19154 /* confdefs.h.  */
19155 _ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h.  */
19159
19160 /* Override any GCC internal prototype to avoid an error.
19161    Use char because int might match the return type of a GCC
19162    builtin and then its argument prototype would still apply.  */
19163 #ifdef __cplusplus
19164 extern "C"
19165 #endif
19166 char __main ();
19167 int
19168 main ()
19169 {
19170 return __main ();
19171   ;
19172   return 0;
19173 }
19174 _ACEOF
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (ac_try="$ac_link"
19177 case "(($ac_try" in
19178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179   *) ac_try_echo=$ac_try;;
19180 esac
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182   (eval "$ac_link") 2>conftest.er1
19183   ac_status=$?
19184   grep -v '^ *+' conftest.er1 >conftest.err
19185   rm -f conftest.er1
19186   cat conftest.err >&5
19187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188   (exit $ac_status); } &&
19189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19190   { (case "(($ac_try" in
19191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192   *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195   (eval "$ac_try") 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); }; } &&
19199          { ac_try='test -s conftest$ac_exeext'
19200   { (case "(($ac_try" in
19201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202   *) ac_try_echo=$ac_try;;
19203 esac
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205   (eval "$ac_try") 2>&5
19206   ac_status=$?
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); }; }; then
19209   ac_cv_lib_gcc___main=yes
19210 else
19211   echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19213
19214         ac_cv_lib_gcc___main=no
19215 fi
19216
19217 rm -f core conftest.err conftest.$ac_objext \
19218       conftest$ac_exeext conftest.$ac_ext
19219 LIBS=$ac_check_lib_save_LIBS
19220 fi
19221 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19222 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19223 if test $ac_cv_lib_gcc___main = yes; then
19224
19225 cat >>confdefs.h <<\_ACEOF
19226 #define HAVE___MAIN 1
19227 _ACEOF
19228
19229 fi
19230
19231   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19232 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19233 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19234   echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236   ac_check_lib_save_LIBS=$LIBS
19237 LIBS="-lgcc  $LIBS"
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244
19245 /* Override any GCC internal prototype to avoid an error.
19246    Use char because int might match the return type of a GCC
19247    builtin and then its argument prototype would still apply.  */
19248 #ifdef __cplusplus
19249 extern "C"
19250 #endif
19251 char __cmpdi2 ();
19252 int
19253 main ()
19254 {
19255 return __cmpdi2 ();
19256   ;
19257   return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (ac_try="$ac_link"
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_link") 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_exeext'
19285   { (case "(($ac_try" in
19286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287   *) ac_try_echo=$ac_try;;
19288 esac
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290   (eval "$ac_try") 2>&5
19291   ac_status=$?
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); }; }; then
19294   ac_cv_lib_gcc___cmpdi2=yes
19295 else
19296   echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19298
19299         ac_cv_lib_gcc___cmpdi2=no
19300 fi
19301
19302 rm -f core conftest.err conftest.$ac_objext \
19303       conftest$ac_exeext conftest.$ac_ext
19304 LIBS=$ac_check_lib_save_LIBS
19305 fi
19306 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19307 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19308 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19309
19310 cat >>confdefs.h <<\_ACEOF
19311 #define HAVE___CMPDI2 1
19312 _ACEOF
19313
19314 fi
19315
19316 fi
19317
19318 if test "$llvm_cv_os_type" = "MingW" ; then
19319   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19320 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19321   cat >conftest.$ac_ext <<_ACEOF
19322 #include <windows.h>
19323 #include <imagehlp.h>
19324 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19325 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19326 _ACEOF
19327 rm -f conftest.$ac_objext
19328 if { (ac_try="$ac_compile"
19329 case "(($ac_try" in
19330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331   *) ac_try_echo=$ac_try;;
19332 esac
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334   (eval "$ac_compile") 2>conftest.er1
19335   ac_status=$?
19336   grep -v '^ *+' conftest.er1 >conftest.err
19337   rm -f conftest.er1
19338   cat conftest.err >&5
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); } &&
19341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19342   { (case "(($ac_try" in
19343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344   *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347   (eval "$ac_try") 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; } &&
19351          { ac_try='test -s conftest.$ac_objext'
19352   { (case "(($ac_try" in
19353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354   *) ac_try_echo=$ac_try;;
19355 esac
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357   (eval "$ac_try") 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); }; }; then
19361
19362   { echo "$as_me:$LINENO: result: yes" >&5
19363 echo "${ECHO_T}yes" >&6; }
19364   llvm_cv_win32_elmcb_pcstr="PCSTR"
19365
19366 else
19367   echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370
19371   { echo "$as_me:$LINENO: result: no" >&5
19372 echo "${ECHO_T}no" >&6; }
19373   llvm_cv_win32_elmcb_pcstr="PSTR"
19374
19375 fi
19376
19377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19378
19379 cat >>confdefs.h <<_ACEOF
19380 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19381 _ACEOF
19382
19383 fi
19384
19385
19386 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19387 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19388 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19389   echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391   ac_ext=cpp
19392 ac_cpp='$CXXCPP $CPPFLAGS'
19393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19396
19397    cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h.  */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h.  */
19403 #include <math.h>
19404 int
19405 main ()
19406 {
19407 float f; isnan(f);
19408   ;
19409   return 0;
19410 }
19411 _ACEOF
19412 rm -f conftest.$ac_objext
19413 if { (ac_try="$ac_compile"
19414 case "(($ac_try" in
19415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416   *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419   (eval "$ac_compile") 2>conftest.er1
19420   ac_status=$?
19421   grep -v '^ *+' conftest.er1 >conftest.err
19422   rm -f conftest.er1
19423   cat conftest.err >&5
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); } &&
19426          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19427   { (case "(($ac_try" in
19428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429   *) ac_try_echo=$ac_try;;
19430 esac
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432   (eval "$ac_try") 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; } &&
19436          { ac_try='test -s conftest.$ac_objext'
19437   { (case "(($ac_try" in
19438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439   *) ac_try_echo=$ac_try;;
19440 esac
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442   (eval "$ac_try") 2>&5
19443   ac_status=$?
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); }; }; then
19446   ac_cv_func_isnan_in_math_h=yes
19447 else
19448   echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451         ac_cv_func_isnan_in_math_h=no
19452 fi
19453
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455   ac_ext=c
19456 ac_cpp='$CPP $CPPFLAGS'
19457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19460
19461 fi
19462 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19463 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19464
19465
19466 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19467
19468 cat >>confdefs.h <<\_ACEOF
19469 #define HAVE_ISNAN_IN_MATH_H 1
19470 _ACEOF
19471
19472 fi
19473
19474 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19475 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19476 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19477   echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479   ac_ext=cpp
19480 ac_cpp='$CXXCPP $CPPFLAGS'
19481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19484
19485    cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h.  */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h.  */
19491 #include <cmath>
19492 int
19493 main ()
19494 {
19495 float f; isnan(f);
19496   ;
19497   return 0;
19498 }
19499 _ACEOF
19500 rm -f conftest.$ac_objext
19501 if { (ac_try="$ac_compile"
19502 case "(($ac_try" in
19503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504   *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507   (eval "$ac_compile") 2>conftest.er1
19508   ac_status=$?
19509   grep -v '^ *+' conftest.er1 >conftest.err
19510   rm -f conftest.er1
19511   cat conftest.err >&5
19512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513   (exit $ac_status); } &&
19514          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19515   { (case "(($ac_try" in
19516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517   *) ac_try_echo=$ac_try;;
19518 esac
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520   (eval "$ac_try") 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); }; } &&
19524          { ac_try='test -s conftest.$ac_objext'
19525   { (case "(($ac_try" in
19526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527   *) ac_try_echo=$ac_try;;
19528 esac
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530   (eval "$ac_try") 2>&5
19531   ac_status=$?
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); }; }; then
19534   ac_cv_func_isnan_in_cmath=yes
19535 else
19536   echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19538
19539         ac_cv_func_isnan_in_cmath=no
19540 fi
19541
19542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19543   ac_ext=c
19544 ac_cpp='$CPP $CPPFLAGS'
19545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19548
19549 fi
19550 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19551 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19552
19553 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19554
19555 cat >>confdefs.h <<\_ACEOF
19556 #define HAVE_ISNAN_IN_CMATH 1
19557 _ACEOF
19558
19559 fi
19560
19561 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19562 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19563 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19564   echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566   ac_ext=cpp
19567 ac_cpp='$CXXCPP $CPPFLAGS'
19568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19571
19572    cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578 #include <cmath>
19579 int
19580 main ()
19581 {
19582 float f; std::isnan(f);
19583   ;
19584   return 0;
19585 }
19586 _ACEOF
19587 rm -f conftest.$ac_objext
19588 if { (ac_try="$ac_compile"
19589 case "(($ac_try" in
19590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591   *) ac_try_echo=$ac_try;;
19592 esac
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594   (eval "$ac_compile") 2>conftest.er1
19595   ac_status=$?
19596   grep -v '^ *+' conftest.er1 >conftest.err
19597   rm -f conftest.er1
19598   cat conftest.err >&5
19599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600   (exit $ac_status); } &&
19601          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19602   { (case "(($ac_try" in
19603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604   *) ac_try_echo=$ac_try;;
19605 esac
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607   (eval "$ac_try") 2>&5
19608   ac_status=$?
19609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610   (exit $ac_status); }; } &&
19611          { ac_try='test -s conftest.$ac_objext'
19612   { (case "(($ac_try" in
19613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614   *) ac_try_echo=$ac_try;;
19615 esac
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617   (eval "$ac_try") 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); }; }; then
19621   ac_cv_func_std_isnan_in_cmath=yes
19622 else
19623   echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19625
19626         ac_cv_func_std_isnan_in_cmath=no
19627 fi
19628
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630   ac_ext=c
19631 ac_cpp='$CPP $CPPFLAGS'
19632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19635
19636 fi
19637 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19638 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19639
19640 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19641
19642 cat >>confdefs.h <<\_ACEOF
19643 #define HAVE_STD_ISNAN_IN_CMATH 1
19644 _ACEOF
19645
19646 fi
19647
19648
19649 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19650 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19651 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654   ac_ext=cpp
19655 ac_cpp='$CXXCPP $CPPFLAGS'
19656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19659
19660    cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h.  */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h.  */
19666 #include <math.h>
19667 int
19668 main ()
19669 {
19670 float f; isinf(f);
19671   ;
19672   return 0;
19673 }
19674 _ACEOF
19675 rm -f conftest.$ac_objext
19676 if { (ac_try="$ac_compile"
19677 case "(($ac_try" in
19678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679   *) ac_try_echo=$ac_try;;
19680 esac
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682   (eval "$ac_compile") 2>conftest.er1
19683   ac_status=$?
19684   grep -v '^ *+' conftest.er1 >conftest.err
19685   rm -f conftest.er1
19686   cat conftest.err >&5
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); } &&
19689          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19690   { (case "(($ac_try" in
19691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692   *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695   (eval "$ac_try") 2>&5
19696   ac_status=$?
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); }; } &&
19699          { ac_try='test -s conftest.$ac_objext'
19700   { (case "(($ac_try" in
19701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702   *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705   (eval "$ac_try") 2>&5
19706   ac_status=$?
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); }; }; then
19709   ac_cv_func_isinf_in_math_h=yes
19710 else
19711   echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19713
19714         ac_cv_func_isinf_in_math_h=no
19715 fi
19716
19717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19718   ac_ext=c
19719 ac_cpp='$CPP $CPPFLAGS'
19720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19723
19724 fi
19725 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19726 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19727
19728 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19729
19730 cat >>confdefs.h <<\_ACEOF
19731 #define HAVE_ISINF_IN_MATH_H 1
19732 _ACEOF
19733
19734 fi
19735
19736 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19737 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19738 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   ac_ext=cpp
19742 ac_cpp='$CXXCPP $CPPFLAGS'
19743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19746
19747    cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753 #include <cmath>
19754 int
19755 main ()
19756 {
19757 float f; isinf(f);
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769   (eval "$ac_compile") 2>conftest.er1
19770   ac_status=$?
19771   grep -v '^ *+' conftest.er1 >conftest.err
19772   rm -f conftest.er1
19773   cat conftest.err >&5
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); } &&
19776          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777   { (case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782   (eval "$ac_try") 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); }; } &&
19786          { ac_try='test -s conftest.$ac_objext'
19787   { (case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_try") 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); }; }; then
19796   ac_cv_func_isinf_in_cmath=yes
19797 else
19798   echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801         ac_cv_func_isinf_in_cmath=no
19802 fi
19803
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19805   ac_ext=c
19806 ac_cpp='$CPP $CPPFLAGS'
19807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810
19811 fi
19812 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19813 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19814
19815 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19816
19817 cat >>confdefs.h <<\_ACEOF
19818 #define HAVE_ISINF_IN_CMATH 1
19819 _ACEOF
19820
19821 fi
19822
19823 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19824 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19825 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19826   echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828   ac_ext=cpp
19829 ac_cpp='$CXXCPP $CPPFLAGS'
19830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19833
19834    cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840 #include <cmath>
19841 int
19842 main ()
19843 {
19844 float f; std::isinf(f)}
19845   ;
19846   return 0;
19847 }
19848 _ACEOF
19849 rm -f conftest.$ac_objext
19850 if { (ac_try="$ac_compile"
19851 case "(($ac_try" in
19852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853   *) ac_try_echo=$ac_try;;
19854 esac
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856   (eval "$ac_compile") 2>conftest.er1
19857   ac_status=$?
19858   grep -v '^ *+' conftest.er1 >conftest.err
19859   rm -f conftest.er1
19860   cat conftest.err >&5
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } &&
19863          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19864   { (case "(($ac_try" in
19865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866   *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869   (eval "$ac_try") 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); }; } &&
19873          { ac_try='test -s conftest.$ac_objext'
19874   { (case "(($ac_try" in
19875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876   *) ac_try_echo=$ac_try;;
19877 esac
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879   (eval "$ac_try") 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); }; }; then
19883   ac_cv_func_std_isinf_in_cmath=yes
19884 else
19885   echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19887
19888         ac_cv_func_std_isinf_in_cmath=no
19889 fi
19890
19891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19892   ac_ext=c
19893 ac_cpp='$CPP $CPPFLAGS'
19894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19897
19898 fi
19899 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19900 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19901
19902 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19903
19904 cat >>confdefs.h <<\_ACEOF
19905 #define HAVE_STD_ISINF_IN_CMATH 1
19906 _ACEOF
19907
19908 fi
19909
19910 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19911 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19912 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19913   echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915   ac_ext=cpp
19916 ac_cpp='$CXXCPP $CPPFLAGS'
19917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19920
19921    cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927 #include <ieeefp.h>
19928 int
19929 main ()
19930 {
19931 float f; finite(f);
19932   ;
19933   return 0;
19934 }
19935 _ACEOF
19936 rm -f conftest.$ac_objext
19937 if { (ac_try="$ac_compile"
19938 case "(($ac_try" in
19939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940   *) ac_try_echo=$ac_try;;
19941 esac
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943   (eval "$ac_compile") 2>conftest.er1
19944   ac_status=$?
19945   grep -v '^ *+' conftest.er1 >conftest.err
19946   rm -f conftest.er1
19947   cat conftest.err >&5
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); } &&
19950          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19951   { (case "(($ac_try" in
19952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953   *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956   (eval "$ac_try") 2>&5
19957   ac_status=$?
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); }; } &&
19960          { ac_try='test -s conftest.$ac_objext'
19961   { (case "(($ac_try" in
19962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963   *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966   (eval "$ac_try") 2>&5
19967   ac_status=$?
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); }; }; then
19970   ac_cv_func_finite_in_ieeefp_h=yes
19971 else
19972   echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19974
19975         ac_cv_func_finite_in_ieeefp_h=no
19976 fi
19977
19978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19979   ac_ext=c
19980 ac_cpp='$CPP $CPPFLAGS'
19981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19984
19985 fi
19986 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19987 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19988
19989 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19990
19991 cat >>confdefs.h <<\_ACEOF
19992 #define HAVE_FINITE_IN_IEEEFP_H 1
19993 _ACEOF
19994
19995 fi
19996
19997
19998
19999 if test "$llvm_cv_platform_type" = "Unix" ; then
20000
20001
20002 for ac_header in stdlib.h unistd.h
20003 do
20004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20006   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20009   echo $ECHO_N "(cached) $ECHO_C" >&6
20010 fi
20011 ac_res=`eval echo '${'$as_ac_Header'}'`
20012                { echo "$as_me:$LINENO: result: $ac_res" >&5
20013 echo "${ECHO_T}$ac_res" >&6; }
20014 else
20015   # Is the header compilable?
20016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h.  */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h.  */
20024 $ac_includes_default
20025 #include <$ac_header>
20026 _ACEOF
20027 rm -f conftest.$ac_objext
20028 if { (ac_try="$ac_compile"
20029 case "(($ac_try" in
20030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031   *) ac_try_echo=$ac_try;;
20032 esac
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034   (eval "$ac_compile") 2>conftest.er1
20035   ac_status=$?
20036   grep -v '^ *+' conftest.er1 >conftest.err
20037   rm -f conftest.er1
20038   cat conftest.err >&5
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); } &&
20041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20042   { (case "(($ac_try" in
20043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044   *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047   (eval "$ac_try") 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; } &&
20051          { ac_try='test -s conftest.$ac_objext'
20052   { (case "(($ac_try" in
20053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054   *) ac_try_echo=$ac_try;;
20055 esac
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057   (eval "$ac_try") 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); }; }; then
20061   ac_header_compiler=yes
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066         ac_header_compiler=no
20067 fi
20068
20069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20071 echo "${ECHO_T}$ac_header_compiler" >&6; }
20072
20073 # Is the header present?
20074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h.  */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h.  */
20082 #include <$ac_header>
20083 _ACEOF
20084 if { (ac_try="$ac_cpp conftest.$ac_ext"
20085 case "(($ac_try" in
20086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087   *) ac_try_echo=$ac_try;;
20088 esac
20089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20091   ac_status=$?
20092   grep -v '^ *+' conftest.er1 >conftest.err
20093   rm -f conftest.er1
20094   cat conftest.err >&5
20095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096   (exit $ac_status); } >/dev/null; then
20097   if test -s conftest.err; then
20098     ac_cpp_err=$ac_c_preproc_warn_flag
20099     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20100   else
20101     ac_cpp_err=
20102   fi
20103 else
20104   ac_cpp_err=yes
20105 fi
20106 if test -z "$ac_cpp_err"; then
20107   ac_header_preproc=yes
20108 else
20109   echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20111
20112   ac_header_preproc=no
20113 fi
20114
20115 rm -f conftest.err conftest.$ac_ext
20116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20117 echo "${ECHO_T}$ac_header_preproc" >&6; }
20118
20119 # So?  What about this header?
20120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20121   yes:no: )
20122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20126     ac_header_preproc=yes
20127     ;;
20128   no:yes:* )
20129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20141     ( cat <<\_ASBOX
20142 ## ----------------------------------- ##
20143 ## Report this to llvmbugs@cs.uiuc.edu ##
20144 ## ----------------------------------- ##
20145 _ASBOX
20146      ) | sed "s/^/$as_me: WARNING:     /" >&2
20147     ;;
20148 esac
20149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20152   echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154   eval "$as_ac_Header=\$ac_header_preproc"
20155 fi
20156 ac_res=`eval echo '${'$as_ac_Header'}'`
20157                { echo "$as_me:$LINENO: result: $ac_res" >&5
20158 echo "${ECHO_T}$ac_res" >&6; }
20159
20160 fi
20161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20162   cat >>confdefs.h <<_ACEOF
20163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20164 _ACEOF
20165
20166 fi
20167
20168 done
20169
20170
20171 for ac_func in getpagesize
20172 do
20173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20177   echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179   cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h.  */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h.  */
20185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20187 #define $ac_func innocuous_$ac_func
20188
20189 /* System header to define __stub macros and hopefully few prototypes,
20190     which can conflict with char $ac_func (); below.
20191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20192     <limits.h> exists even on freestanding compilers.  */
20193
20194 #ifdef __STDC__
20195 # include <limits.h>
20196 #else
20197 # include <assert.h>
20198 #endif
20199
20200 #undef $ac_func
20201
20202 /* Override any GCC internal prototype to avoid an error.
20203    Use char because int might match the return type of a GCC
20204    builtin and then its argument prototype would still apply.  */
20205 #ifdef __cplusplus
20206 extern "C"
20207 #endif
20208 char $ac_func ();
20209 /* The GNU C library defines this for functions which it implements
20210     to always fail with ENOSYS.  Some functions are actually named
20211     something starting with __ and the normal name is an alias.  */
20212 #if defined __stub_$ac_func || defined __stub___$ac_func
20213 choke me
20214 #endif
20215
20216 int
20217 main ()
20218 {
20219 return $ac_func ();
20220   ;
20221   return 0;
20222 }
20223 _ACEOF
20224 rm -f conftest.$ac_objext conftest$ac_exeext
20225 if { (ac_try="$ac_link"
20226 case "(($ac_try" in
20227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228   *) ac_try_echo=$ac_try;;
20229 esac
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231   (eval "$ac_link") 2>conftest.er1
20232   ac_status=$?
20233   grep -v '^ *+' conftest.er1 >conftest.err
20234   rm -f conftest.er1
20235   cat conftest.err >&5
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); } &&
20238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20239   { (case "(($ac_try" in
20240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241   *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244   (eval "$ac_try") 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; } &&
20248          { ac_try='test -s conftest$ac_exeext'
20249   { (case "(($ac_try" in
20250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251   *) ac_try_echo=$ac_try;;
20252 esac
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254   (eval "$ac_try") 2>&5
20255   ac_status=$?
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); }; }; then
20258   eval "$as_ac_var=yes"
20259 else
20260   echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20262
20263         eval "$as_ac_var=no"
20264 fi
20265
20266 rm -f core conftest.err conftest.$ac_objext \
20267       conftest$ac_exeext conftest.$ac_ext
20268 fi
20269 ac_res=`eval echo '${'$as_ac_var'}'`
20270                { echo "$as_me:$LINENO: result: $ac_res" >&5
20271 echo "${ECHO_T}$ac_res" >&6; }
20272 if test `eval echo '${'$as_ac_var'}'` = yes; then
20273   cat >>confdefs.h <<_ACEOF
20274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20275 _ACEOF
20276
20277 fi
20278 done
20279
20280 { echo "$as_me:$LINENO: checking for working mmap" >&5
20281 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20282 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20283   echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20285   if test "$cross_compiling" = yes; then
20286   ac_cv_func_mmap_fixed_mapped=no
20287 else
20288   cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h.  */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h.  */
20294 $ac_includes_default
20295 /* malloc might have been renamed as rpl_malloc. */
20296 #undef malloc
20297
20298 /* Thanks to Mike Haertel and Jim Avera for this test.
20299    Here is a matrix of mmap possibilities:
20300         mmap private not fixed
20301         mmap private fixed at somewhere currently unmapped
20302         mmap private fixed at somewhere already mapped
20303         mmap shared not fixed
20304         mmap shared fixed at somewhere currently unmapped
20305         mmap shared fixed at somewhere already mapped
20306    For private mappings, we should verify that changes cannot be read()
20307    back from the file, nor mmap's back from the file at a different
20308    address.  (There have been systems where private was not correctly
20309    implemented like the infamous i386 svr4.0, and systems where the
20310    VM page cache was not coherent with the file system buffer cache
20311    like early versions of FreeBSD and possibly contemporary NetBSD.)
20312    For shared mappings, we should conversely verify that changes get
20313    propagated back to all the places they're supposed to be.
20314
20315    Grep wants private fixed already mapped.
20316    The main things grep needs to know about mmap are:
20317    * does it exist and is it safe to write into the mmap'd area
20318    * how to use it (BSD variants)  */
20319
20320 #include <fcntl.h>
20321 #include <sys/mman.h>
20322
20323 #if !STDC_HEADERS && !HAVE_STDLIB_H
20324 char *malloc ();
20325 #endif
20326
20327 /* This mess was copied from the GNU getpagesize.h.  */
20328 #if !HAVE_GETPAGESIZE
20329 /* Assume that all systems that can run configure have sys/param.h.  */
20330 # if !HAVE_SYS_PARAM_H
20331 #  define HAVE_SYS_PARAM_H 1
20332 # endif
20333
20334 # ifdef _SC_PAGESIZE
20335 #  define getpagesize() sysconf(_SC_PAGESIZE)
20336 # else /* no _SC_PAGESIZE */
20337 #  if HAVE_SYS_PARAM_H
20338 #   include <sys/param.h>
20339 #   ifdef EXEC_PAGESIZE
20340 #    define getpagesize() EXEC_PAGESIZE
20341 #   else /* no EXEC_PAGESIZE */
20342 #    ifdef NBPG
20343 #     define getpagesize() NBPG * CLSIZE
20344 #     ifndef CLSIZE
20345 #      define CLSIZE 1
20346 #     endif /* no CLSIZE */
20347 #    else /* no NBPG */
20348 #     ifdef NBPC
20349 #      define getpagesize() NBPC
20350 #     else /* no NBPC */
20351 #      ifdef PAGESIZE
20352 #       define getpagesize() PAGESIZE
20353 #      endif /* PAGESIZE */
20354 #     endif /* no NBPC */
20355 #    endif /* no NBPG */
20356 #   endif /* no EXEC_PAGESIZE */
20357 #  else /* no HAVE_SYS_PARAM_H */
20358 #   define getpagesize() 8192   /* punt totally */
20359 #  endif /* no HAVE_SYS_PARAM_H */
20360 # endif /* no _SC_PAGESIZE */
20361
20362 #endif /* no HAVE_GETPAGESIZE */
20363
20364 int
20365 main ()
20366 {
20367   char *data, *data2, *data3;
20368   int i, pagesize;
20369   int fd;
20370
20371   pagesize = getpagesize ();
20372
20373   /* First, make a file with some known garbage in it. */
20374   data = (char *) malloc (pagesize);
20375   if (!data)
20376     return 1;
20377   for (i = 0; i < pagesize; ++i)
20378     *(data + i) = rand ();
20379   umask (0);
20380   fd = creat ("conftest.mmap", 0600);
20381   if (fd < 0)
20382     return 1;
20383   if (write (fd, data, pagesize) != pagesize)
20384     return 1;
20385   close (fd);
20386
20387   /* Next, try to mmap the file at a fixed address which already has
20388      something else allocated at it.  If we can, also make sure that
20389      we see the same garbage.  */
20390   fd = open ("conftest.mmap", O_RDWR);
20391   if (fd < 0)
20392     return 1;
20393   data2 = (char *) malloc (2 * pagesize);
20394   if (!data2)
20395     return 1;
20396   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20397   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20398                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20399     return 1;
20400   for (i = 0; i < pagesize; ++i)
20401     if (*(data + i) != *(data2 + i))
20402       return 1;
20403
20404   /* Finally, make sure that changes to the mapped area do not
20405      percolate back to the file as seen by read().  (This is a bug on
20406      some variants of i386 svr4.0.)  */
20407   for (i = 0; i < pagesize; ++i)
20408     *(data2 + i) = *(data2 + i) + 1;
20409   data3 = (char *) malloc (pagesize);
20410   if (!data3)
20411     return 1;
20412   if (read (fd, data3, pagesize) != pagesize)
20413     return 1;
20414   for (i = 0; i < pagesize; ++i)
20415     if (*(data + i) != *(data3 + i))
20416       return 1;
20417   close (fd);
20418   return 0;
20419 }
20420 _ACEOF
20421 rm -f conftest$ac_exeext
20422 if { (ac_try="$ac_link"
20423 case "(($ac_try" in
20424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425   *) ac_try_echo=$ac_try;;
20426 esac
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428   (eval "$ac_link") 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20432   { (case "(($ac_try" in
20433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434   *) ac_try_echo=$ac_try;;
20435 esac
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437   (eval "$ac_try") 2>&5
20438   ac_status=$?
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); }; }; then
20441   ac_cv_func_mmap_fixed_mapped=yes
20442 else
20443   echo "$as_me: program exited with status $ac_status" >&5
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447 ( exit $ac_status )
20448 ac_cv_func_mmap_fixed_mapped=no
20449 fi
20450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20451 fi
20452
20453
20454 fi
20455 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20456 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20457 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20458
20459 cat >>confdefs.h <<\_ACEOF
20460 #define HAVE_MMAP 1
20461 _ACEOF
20462
20463 fi
20464 rm -f conftest.mmap
20465
20466   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20467 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20468 if test "${ac_cv_func_mmap_file+set}" = set; then
20469   echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
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   if test "$cross_compiling" = yes; then
20478   ac_cv_func_mmap_file=no
20479 else
20480   cat >conftest.$ac_ext <<_ACEOF
20481
20482     /* confdefs.h.  */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h.  */
20487
20488 #include <sys/types.h>
20489 #include <sys/mman.h>
20490 #include <fcntl.h>
20491
20492 int
20493 main ()
20494 {
20495
20496   int fd;
20497   fd = creat ("foo",0777);
20498   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20499   unlink ("foo");
20500   return (fd != (int) MAP_FAILED);
20501   ;
20502   return 0;
20503 }
20504 _ACEOF
20505 rm -f conftest$ac_exeext
20506 if { (ac_try="$ac_link"
20507 case "(($ac_try" in
20508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509   *) ac_try_echo=$ac_try;;
20510 esac
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512   (eval "$ac_link") 2>&5
20513   ac_status=$?
20514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20516   { (case "(($ac_try" in
20517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518   *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521   (eval "$ac_try") 2>&5
20522   ac_status=$?
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); }; }; then
20525   ac_cv_func_mmap_file=yes
20526 else
20527   echo "$as_me: program exited with status $ac_status" >&5
20528 echo "$as_me: failed program was:" >&5
20529 sed 's/^/| /' conftest.$ac_ext >&5
20530
20531 ( exit $ac_status )
20532 ac_cv_func_mmap_file=no
20533 fi
20534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20535 fi
20536
20537
20538   ac_ext=c
20539 ac_cpp='$CPP $CPPFLAGS'
20540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20543
20544
20545 fi
20546 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20547 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20548 if test "$ac_cv_func_mmap_file" = yes; then
20549
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_MMAP_FILE
20552 _ACEOF
20553
20554    MMAP_FILE=yes
20555
20556 fi
20557
20558   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20559 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20560 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20561   echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563   if test "$llvm_cv_os_type" = "Interix" ; then
20564    ac_cv_need_dev_zero_for_mmap=yes
20565  else
20566    ac_cv_need_dev_zero_for_mmap=no
20567  fi
20568
20569 fi
20570 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20571 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20572 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20573
20574 cat >>confdefs.h <<\_ACEOF
20575 #define NEED_DEV_ZERO_FOR_MMAP 1
20576 _ACEOF
20577
20578 fi
20579
20580   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20581   then
20582     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20583 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20584   fi
20585   if test "$ac_cv_func_mmap_file" = "no"
20586   then
20587     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20588 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20589   fi
20590 fi
20591
20592 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20593 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20594 ac_ext=cpp
20595 ac_cpp='$CXXCPP $CPPFLAGS'
20596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20599
20600 cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h.  */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h.  */
20606 int main() {
20607         volatile unsigned long val = 1;
20608         __sync_synchronize();
20609         __sync_val_compare_and_swap(&val, 1, 0);
20610         __sync_add_and_fetch(&val, 1);
20611         __sync_sub_and_fetch(&val, 1);
20612         return 0;
20613       }
20614
20615 _ACEOF
20616 rm -f conftest.$ac_objext conftest$ac_exeext
20617 if { (ac_try="$ac_link"
20618 case "(($ac_try" in
20619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620   *) ac_try_echo=$ac_try;;
20621 esac
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623   (eval "$ac_link") 2>conftest.er1
20624   ac_status=$?
20625   grep -v '^ *+' conftest.er1 >conftest.err
20626   rm -f conftest.er1
20627   cat conftest.err >&5
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); } &&
20630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20631   { (case "(($ac_try" in
20632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633   *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636   (eval "$ac_try") 2>&5
20637   ac_status=$?
20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); }; } &&
20640          { ac_try='test -s conftest$ac_exeext'
20641   { (case "(($ac_try" in
20642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643   *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646   (eval "$ac_try") 2>&5
20647   ac_status=$?
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); }; }; then
20650   ac_ext=c
20651 ac_cpp='$CPP $CPPFLAGS'
20652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20655
20656   { echo "$as_me:$LINENO: result: yes" >&5
20657 echo "${ECHO_T}yes" >&6; }
20658
20659 cat >>confdefs.h <<\_ACEOF
20660 #define LLVM_HAS_ATOMICS 1
20661 _ACEOF
20662
20663 else
20664   echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20666
20667         { echo "$as_me:$LINENO: result: no" >&5
20668 echo "${ECHO_T}no" >&6; }
20669
20670 cat >>confdefs.h <<\_ACEOF
20671 #define LLVM_HAS_ATOMICS 0
20672 _ACEOF
20673
20674   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20675 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20676 fi
20677
20678 rm -f core conftest.err conftest.$ac_objext \
20679       conftest$ac_exeext conftest.$ac_ext
20680
20681
20682 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20683   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20684 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20685 if test "${llvm_cv_linux_mixed+set}" = set; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
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   cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h.  */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h.  */
20700 #ifndef __x86_64__
20701        error: Not x86-64 even if uname says so!
20702       #endif
20703
20704 int
20705 main ()
20706 {
20707
20708   ;
20709   return 0;
20710 }
20711 _ACEOF
20712 rm -f conftest.$ac_objext
20713 if { (ac_try="$ac_compile"
20714 case "(($ac_try" in
20715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716   *) ac_try_echo=$ac_try;;
20717 esac
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719   (eval "$ac_compile") 2>conftest.er1
20720   ac_status=$?
20721   grep -v '^ *+' conftest.er1 >conftest.err
20722   rm -f conftest.er1
20723   cat conftest.err >&5
20724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725   (exit $ac_status); } &&
20726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20727   { (case "(($ac_try" in
20728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729   *) ac_try_echo=$ac_try;;
20730 esac
20731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732   (eval "$ac_try") 2>&5
20733   ac_status=$?
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); }; } &&
20736          { ac_try='test -s conftest.$ac_objext'
20737   { (case "(($ac_try" in
20738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739   *) ac_try_echo=$ac_try;;
20740 esac
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742   (eval "$ac_try") 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; }; then
20746   llvm_cv_linux_mixed=no
20747 else
20748   echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751         llvm_cv_linux_mixed=yes
20752 fi
20753
20754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20755   ac_ext=c
20756 ac_cpp='$CPP $CPPFLAGS'
20757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20760
20761
20762 fi
20763 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20764 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20765
20766   if test "$llvm_cv_linux_mixed" = "yes"; then
20767     llvm_cv_target_arch="x86"
20768     ARCH="x86"
20769   fi
20770 fi
20771
20772
20773 for ac_func in __dso_handle
20774 do
20775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20779   echo $ECHO_N "(cached) $ECHO_C" >&6
20780 else
20781   cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h.  */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h.  */
20787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20789 #define $ac_func innocuous_$ac_func
20790
20791 /* System header to define __stub macros and hopefully few prototypes,
20792     which can conflict with char $ac_func (); below.
20793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20794     <limits.h> exists even on freestanding compilers.  */
20795
20796 #ifdef __STDC__
20797 # include <limits.h>
20798 #else
20799 # include <assert.h>
20800 #endif
20801
20802 #undef $ac_func
20803
20804 /* Override any GCC internal prototype to avoid an error.
20805    Use char because int might match the return type of a GCC
20806    builtin and then its argument prototype would still apply.  */
20807 #ifdef __cplusplus
20808 extern "C"
20809 #endif
20810 char $ac_func ();
20811 /* The GNU C library defines this for functions which it implements
20812     to always fail with ENOSYS.  Some functions are actually named
20813     something starting with __ and the normal name is an alias.  */
20814 #if defined __stub_$ac_func || defined __stub___$ac_func
20815 choke me
20816 #endif
20817
20818 int
20819 main ()
20820 {
20821 return $ac_func ();
20822   ;
20823   return 0;
20824 }
20825 _ACEOF
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (ac_try="$ac_link"
20828 case "(($ac_try" in
20829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830   *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833   (eval "$ac_link") 2>conftest.er1
20834   ac_status=$?
20835   grep -v '^ *+' conftest.er1 >conftest.err
20836   rm -f conftest.er1
20837   cat conftest.err >&5
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); } &&
20840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20841   { (case "(($ac_try" in
20842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843   *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846   (eval "$ac_try") 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; } &&
20850          { ac_try='test -s conftest$ac_exeext'
20851   { (case "(($ac_try" in
20852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853   *) ac_try_echo=$ac_try;;
20854 esac
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856   (eval "$ac_try") 2>&5
20857   ac_status=$?
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); }; }; then
20860   eval "$as_ac_var=yes"
20861 else
20862   echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865         eval "$as_ac_var=no"
20866 fi
20867
20868 rm -f core conftest.err conftest.$ac_objext \
20869       conftest$ac_exeext conftest.$ac_ext
20870 fi
20871 ac_res=`eval echo '${'$as_ac_var'}'`
20872                { echo "$as_me:$LINENO: result: $ac_res" >&5
20873 echo "${ECHO_T}$ac_res" >&6; }
20874 if test `eval echo '${'$as_ac_var'}'` = yes; then
20875   cat >>confdefs.h <<_ACEOF
20876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20877 _ACEOF
20878
20879 fi
20880 done
20881
20882
20883 SHLIBEXT=$libltdl_cv_shlibext
20884
20885
20886 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20887
20888
20889 # Translate the various configuration directories and other basic
20890 # information into substitutions that will end up in Makefile.config.in
20891 # that these configured values can be used by the makefiles
20892 if test "${prefix}" = "NONE" ; then
20893   prefix="/usr/local"
20894 fi
20895 eval LLVM_PREFIX="${prefix}";
20896 eval LLVM_BINDIR="${prefix}/bin";
20897 eval LLVM_LIBDIR="${prefix}/lib";
20898 eval LLVM_DATADIR="${prefix}/share/llvm";
20899 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20900 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20901 eval LLVM_INCLUDEDIR="${prefix}/include";
20902 eval LLVM_INFODIR="${prefix}/info";
20903 eval LLVM_MANDIR="${prefix}/man";
20904 LLVM_CONFIGTIME=`date`
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916 # Place the various directores into the config.h file as #defines so that we
20917 # can know about the installation paths within LLVM.
20918
20919 cat >>confdefs.h <<_ACEOF
20920 #define LLVM_PREFIX "$LLVM_PREFIX"
20921 _ACEOF
20922
20923
20924 cat >>confdefs.h <<_ACEOF
20925 #define LLVM_BINDIR "$LLVM_BINDIR"
20926 _ACEOF
20927
20928
20929 cat >>confdefs.h <<_ACEOF
20930 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20931 _ACEOF
20932
20933
20934 cat >>confdefs.h <<_ACEOF
20935 #define LLVM_DATADIR "$LLVM_DATADIR"
20936 _ACEOF
20937
20938
20939 cat >>confdefs.h <<_ACEOF
20940 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20941 _ACEOF
20942
20943
20944 cat >>confdefs.h <<_ACEOF
20945 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20946 _ACEOF
20947
20948
20949 cat >>confdefs.h <<_ACEOF
20950 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20951 _ACEOF
20952
20953
20954 cat >>confdefs.h <<_ACEOF
20955 #define LLVM_INFODIR "$LLVM_INFODIR"
20956 _ACEOF
20957
20958
20959 cat >>confdefs.h <<_ACEOF
20960 #define LLVM_MANDIR "$LLVM_MANDIR"
20961 _ACEOF
20962
20963
20964 cat >>confdefs.h <<_ACEOF
20965 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20966 _ACEOF
20967
20968
20969 cat >>confdefs.h <<_ACEOF
20970 #define LLVM_HOSTTRIPLE "$host"
20971 _ACEOF
20972
20973
20974 # Determine which bindings to build.
20975 if test "$BINDINGS_TO_BUILD" = auto ; then
20976   BINDINGS_TO_BUILD=""
20977   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20978     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20979   fi
20980 fi
20981 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20982
20983
20984 # This isn't really configurey, but it avoids having to repeat the list in
20985 # other files.
20986 ALL_BINDINGS=ocaml
20987
20988
20989 # Do any work necessary to ensure that bindings have what they need.
20990 binding_prereqs_failed=0
20991 for a_binding in $BINDINGS_TO_BUILD ; do
20992   case "$a_binding" in
20993   ocaml)
20994     if test "x$OCAMLC" = x ; then
20995       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20996 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20997       binding_prereqs_failed=1
20998     fi
20999     if test "x$OCAMLDEP" = x ; then
21000       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21001 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21002       binding_prereqs_failed=1
21003     fi
21004     if test "x$OCAMLOPT" = x ; then
21005       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21006 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21007           fi
21008     if test "x$with_ocaml_libdir" != xauto ; then
21009       OCAML_LIBDIR=$with_ocaml_libdir
21010
21011     else
21012       ocaml_stdlib="`"$OCAMLC" -where`"
21013       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21014       then
21015         # ocaml stdlib is beneath our prefix; use stdlib
21016         OCAML_LIBDIR=$ocaml_stdlib
21017
21018       else
21019         # ocaml stdlib is outside our prefix; use libdir/ocaml
21020         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21021
21022       fi
21023     fi
21024     ;;
21025   esac
21026 done
21027 if test "$binding_prereqs_failed" = 1 ; then
21028   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21029 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21030    { (exit 1); exit 1; }; }
21031 fi
21032
21033 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21034 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21035 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21036   echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038    ac_ext=cpp
21039 ac_cpp='$CXXCPP $CPPFLAGS'
21040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21043
21044   oldcxxflags="$CXXFLAGS"
21045   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
21046   cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052
21053 int
21054 main ()
21055 {
21056
21057   ;
21058   return 0;
21059 }
21060 _ACEOF
21061 rm -f conftest.$ac_objext
21062 if { (ac_try="$ac_compile"
21063 case "(($ac_try" in
21064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065   *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068   (eval "$ac_compile") 2>conftest.er1
21069   ac_status=$?
21070   grep -v '^ *+' conftest.er1 >conftest.err
21071   rm -f conftest.er1
21072   cat conftest.err >&5
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); } &&
21075          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21076   { (case "(($ac_try" in
21077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078   *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081   (eval "$ac_try") 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; } &&
21085          { ac_try='test -s conftest.$ac_objext'
21086   { (case "(($ac_try" in
21087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088   *) ac_try_echo=$ac_try;;
21089 esac
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091   (eval "$ac_try") 2>&5
21092   ac_status=$?
21093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094   (exit $ac_status); }; }; then
21095   llvm_cv_cxx_visibility_inlines_hidden=yes
21096 else
21097   echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21099
21100         llvm_cv_cxx_visibility_inlines_hidden=no
21101 fi
21102
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104   CXXFLAGS="$oldcxxflags"
21105   ac_ext=c
21106 ac_cpp='$CPP $CPPFLAGS'
21107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21110
21111
21112 fi
21113 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21114 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21115 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21116   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21117
21118 else
21119   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21120
21121 fi
21122
21123
21124 if test "$llvm_cv_link_use_r" = "yes" ; then
21125   RPATH="-Wl,-R"
21126 else
21127   RPATH="-Wl,-rpath"
21128 fi
21129
21130
21131 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21132   RDYNAMIC="-Wl,-export-dynamic"
21133 else
21134   RDYNAMIC=""
21135 fi
21136
21137
21138
21139 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21140
21141
21142
21143
21144
21145
21146 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21147
21148 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21149
21150 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21151
21152 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21153
21154 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21155
21156
21157 ac_config_files="$ac_config_files Makefile.config"
21158
21159
21160 ac_config_files="$ac_config_files llvm.spec"
21161
21162
21163 ac_config_files="$ac_config_files docs/doxygen.cfg"
21164
21165 if test -f ${srcdir}/tools/clang/README.txt; then
21166   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21167
21168 fi
21169
21170 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21171
21172
21173 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21174
21175
21176 ac_config_commands="$ac_config_commands setup"
21177
21178 ac_config_commands="$ac_config_commands Makefile"
21179
21180
21181 ac_config_commands="$ac_config_commands Makefile.common"
21182
21183
21184 ac_config_commands="$ac_config_commands examples/Makefile"
21185
21186
21187 ac_config_commands="$ac_config_commands lib/Makefile"
21188
21189
21190 ac_config_commands="$ac_config_commands runtime/Makefile"
21191
21192
21193 ac_config_commands="$ac_config_commands test/Makefile"
21194
21195
21196 ac_config_commands="$ac_config_commands test/Makefile.tests"
21197
21198
21199 ac_config_commands="$ac_config_commands unittests/Makefile"
21200
21201
21202 ac_config_commands="$ac_config_commands tools/Makefile"
21203
21204
21205 ac_config_commands="$ac_config_commands utils/Makefile"
21206
21207
21208 ac_config_commands="$ac_config_commands projects/Makefile"
21209
21210
21211 ac_config_commands="$ac_config_commands bindings/Makefile"
21212
21213
21214 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21215
21216
21217
21218 cat >confcache <<\_ACEOF
21219 # This file is a shell script that caches the results of configure
21220 # tests run on this system so they can be shared between configure
21221 # scripts and configure runs, see configure's option --config-cache.
21222 # It is not useful on other systems.  If it contains results you don't
21223 # want to keep, you may remove or edit it.
21224 #
21225 # config.status only pays attention to the cache file if you give it
21226 # the --recheck option to rerun configure.
21227 #
21228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21230 # following values.
21231
21232 _ACEOF
21233
21234 # The following way of writing the cache mishandles newlines in values,
21235 # but we know of no workaround that is simple, portable, and efficient.
21236 # So, we kill variables containing newlines.
21237 # Ultrix sh set writes to stderr and can't be redirected directly,
21238 # and sets the high bit in the cache file unless we assign to the vars.
21239 (
21240   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21241     eval ac_val=\$$ac_var
21242     case $ac_val in #(
21243     *${as_nl}*)
21244       case $ac_var in #(
21245       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21246 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21247       esac
21248       case $ac_var in #(
21249       _ | IFS | as_nl) ;; #(
21250       *) $as_unset $ac_var ;;
21251       esac ;;
21252     esac
21253   done
21254
21255   (set) 2>&1 |
21256     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21257     *${as_nl}ac_space=\ *)
21258       # `set' does not quote correctly, so add quotes (double-quote
21259       # substitution turns \\\\ into \\, and sed turns \\ into \).
21260       sed -n \
21261         "s/'/'\\\\''/g;
21262           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21263       ;; #(
21264     *)
21265       # `set' quotes correctly as required by POSIX, so do not add quotes.
21266       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21267       ;;
21268     esac |
21269     sort
21270 ) |
21271   sed '
21272      /^ac_cv_env_/b end
21273      t clear
21274      :clear
21275      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21276      t end
21277      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21278      :end' >>confcache
21279 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21280   if test -w "$cache_file"; then
21281     test "x$cache_file" != "x/dev/null" &&
21282       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21283 echo "$as_me: updating cache $cache_file" >&6;}
21284     cat confcache >$cache_file
21285   else
21286     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21287 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21288   fi
21289 fi
21290 rm -f confcache
21291
21292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21293 # Let make expand exec_prefix.
21294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21295
21296 DEFS=-DHAVE_CONFIG_H
21297
21298 ac_libobjs=
21299 ac_ltlibobjs=
21300 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21301   # 1. Remove the extension, and $U if already installed.
21302   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21303   ac_i=`echo "$ac_i" | sed "$ac_script"`
21304   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21305   #    will be set to the directory where LIBOBJS objects are built.
21306   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21307   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21308 done
21309 LIBOBJS=$ac_libobjs
21310
21311 LTLIBOBJS=$ac_ltlibobjs
21312
21313
21314 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21315   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21316 Usually this means the macro was only invoked conditionally." >&5
21317 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21318 Usually this means the macro was only invoked conditionally." >&2;}
21319    { (exit 1); exit 1; }; }
21320 fi
21321 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21322   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21323 Usually this means the macro was only invoked conditionally." >&5
21324 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21325 Usually this means the macro was only invoked conditionally." >&2;}
21326    { (exit 1); exit 1; }; }
21327 fi
21328
21329 : ${CONFIG_STATUS=./config.status}
21330 ac_clean_files_save=$ac_clean_files
21331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21332 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21333 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21334 cat >$CONFIG_STATUS <<_ACEOF
21335 #! $SHELL
21336 # Generated by $as_me.
21337 # Run this file to recreate the current configuration.
21338 # Compiler output produced by configure, useful for debugging
21339 # configure, is in config.log if it exists.
21340
21341 debug=false
21342 ac_cs_recheck=false
21343 ac_cs_silent=false
21344 SHELL=\${CONFIG_SHELL-$SHELL}
21345 _ACEOF
21346
21347 cat >>$CONFIG_STATUS <<\_ACEOF
21348 ## --------------------- ##
21349 ## M4sh Initialization.  ##
21350 ## --------------------- ##
21351
21352 # Be Bourne compatible
21353 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21354   emulate sh
21355   NULLCMD=:
21356   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21357   # is contrary to our usage.  Disable this feature.
21358   alias -g '${1+"$@"}'='"$@"'
21359   setopt NO_GLOB_SUBST
21360 else
21361   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21362 fi
21363 BIN_SH=xpg4; export BIN_SH # for Tru64
21364 DUALCASE=1; export DUALCASE # for MKS sh
21365
21366
21367 # PATH needs CR
21368 # Avoid depending upon Character Ranges.
21369 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21372 as_cr_digits='0123456789'
21373 as_cr_alnum=$as_cr_Letters$as_cr_digits
21374
21375 # The user is always right.
21376 if test "${PATH_SEPARATOR+set}" != set; then
21377   echo "#! /bin/sh" >conf$$.sh
21378   echo  "exit 0"   >>conf$$.sh
21379   chmod +x conf$$.sh
21380   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21381     PATH_SEPARATOR=';'
21382   else
21383     PATH_SEPARATOR=:
21384   fi
21385   rm -f conf$$.sh
21386 fi
21387
21388 # Support unset when possible.
21389 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21390   as_unset=unset
21391 else
21392   as_unset=false
21393 fi
21394
21395
21396 # IFS
21397 # We need space, tab and new line, in precisely that order.  Quoting is
21398 # there to prevent editors from complaining about space-tab.
21399 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21400 # splitting by setting IFS to empty value.)
21401 as_nl='
21402 '
21403 IFS=" ""        $as_nl"
21404
21405 # Find who we are.  Look in the path if we contain no directory separator.
21406 case $0 in
21407   *[\\/]* ) as_myself=$0 ;;
21408   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21409 for as_dir in $PATH
21410 do
21411   IFS=$as_save_IFS
21412   test -z "$as_dir" && as_dir=.
21413   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21414 done
21415 IFS=$as_save_IFS
21416
21417      ;;
21418 esac
21419 # We did not find ourselves, most probably we were run as `sh COMMAND'
21420 # in which case we are not to be found in the path.
21421 if test "x$as_myself" = x; then
21422   as_myself=$0
21423 fi
21424 if test ! -f "$as_myself"; then
21425   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21426   { (exit 1); exit 1; }
21427 fi
21428
21429 # Work around bugs in pre-3.0 UWIN ksh.
21430 for as_var in ENV MAIL MAILPATH
21431 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21432 done
21433 PS1='$ '
21434 PS2='> '
21435 PS4='+ '
21436
21437 # NLS nuisances.
21438 for as_var in \
21439   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21440   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21441   LC_TELEPHONE LC_TIME
21442 do
21443   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21444     eval $as_var=C; export $as_var
21445   else
21446     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21447   fi
21448 done
21449
21450 # Required to use basename.
21451 if expr a : '\(a\)' >/dev/null 2>&1 &&
21452    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21453   as_expr=expr
21454 else
21455   as_expr=false
21456 fi
21457
21458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21459   as_basename=basename
21460 else
21461   as_basename=false
21462 fi
21463
21464
21465 # Name of the executable.
21466 as_me=`$as_basename -- "$0" ||
21467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21468          X"$0" : 'X\(//\)$' \| \
21469          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21470 echo X/"$0" |
21471     sed '/^.*\/\([^/][^/]*\)\/*$/{
21472             s//\1/
21473             q
21474           }
21475           /^X\/\(\/\/\)$/{
21476             s//\1/
21477             q
21478           }
21479           /^X\/\(\/\).*/{
21480             s//\1/
21481             q
21482           }
21483           s/.*/./; q'`
21484
21485 # CDPATH.
21486 $as_unset CDPATH
21487
21488
21489
21490   as_lineno_1=$LINENO
21491   as_lineno_2=$LINENO
21492   test "x$as_lineno_1" != "x$as_lineno_2" &&
21493   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21494
21495   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21496   # uniformly replaced by the line number.  The first 'sed' inserts a
21497   # line-number line after each line using $LINENO; the second 'sed'
21498   # does the real work.  The second script uses 'N' to pair each
21499   # line-number line with the line containing $LINENO, and appends
21500   # trailing '-' during substitution so that $LINENO is not a special
21501   # case at line end.
21502   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21503   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21504   # E. McMahon (1931-1989) for sed's syntax.  :-)
21505   sed -n '
21506     p
21507     /[$]LINENO/=
21508   ' <$as_myself |
21509     sed '
21510       s/[$]LINENO.*/&-/
21511       t lineno
21512       b
21513       :lineno
21514       N
21515       :loop
21516       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21517       t loop
21518       s/-\n.*//
21519     ' >$as_me.lineno &&
21520   chmod +x "$as_me.lineno" ||
21521     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21522    { (exit 1); exit 1; }; }
21523
21524   # Don't try to exec as it changes $[0], causing all sort of problems
21525   # (the dirname of $[0] is not the place where we might find the
21526   # original and so on.  Autoconf is especially sensitive to this).
21527   . "./$as_me.lineno"
21528   # Exit status is that of the last command.
21529   exit
21530 }
21531
21532
21533 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21534   as_dirname=dirname
21535 else
21536   as_dirname=false
21537 fi
21538
21539 ECHO_C= ECHO_N= ECHO_T=
21540 case `echo -n x` in
21541 -n*)
21542   case `echo 'x\c'` in
21543   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21544   *)   ECHO_C='\c';;
21545   esac;;
21546 *)
21547   ECHO_N='-n';;
21548 esac
21549
21550 if expr a : '\(a\)' >/dev/null 2>&1 &&
21551    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21552   as_expr=expr
21553 else
21554   as_expr=false
21555 fi
21556
21557 rm -f conf$$ conf$$.exe conf$$.file
21558 if test -d conf$$.dir; then
21559   rm -f conf$$.dir/conf$$.file
21560 else
21561   rm -f conf$$.dir
21562   mkdir conf$$.dir
21563 fi
21564 echo >conf$$.file
21565 if ln -s conf$$.file conf$$ 2>/dev/null; then
21566   as_ln_s='ln -s'
21567   # ... but there are two gotchas:
21568   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21569   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21570   # In both cases, we have to default to `cp -p'.
21571   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21572     as_ln_s='cp -p'
21573 elif ln conf$$.file conf$$ 2>/dev/null; then
21574   as_ln_s=ln
21575 else
21576   as_ln_s='cp -p'
21577 fi
21578 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21579 rmdir conf$$.dir 2>/dev/null
21580
21581 if mkdir -p . 2>/dev/null; then
21582   as_mkdir_p=:
21583 else
21584   test -d ./-p && rmdir ./-p
21585   as_mkdir_p=false
21586 fi
21587
21588 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21589 # systems may use methods other than mode bits to determine executability.
21590 cat >conf$$.file <<_ASEOF
21591 #! /bin/sh
21592 exit 0
21593 _ASEOF
21594 chmod +x conf$$.file
21595 if test -x conf$$.file >/dev/null 2>&1; then
21596   as_executable_p="test -x"
21597 else
21598   as_executable_p=:
21599 fi
21600 rm -f conf$$.file
21601
21602 # Sed expression to map a string onto a valid CPP name.
21603 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21604
21605 # Sed expression to map a string onto a valid variable name.
21606 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21607
21608
21609 exec 6>&1
21610
21611 # Save the log message, to keep $[0] and so on meaningful, and to
21612 # report actual input values of CONFIG_FILES etc. instead of their
21613 # values after options handling.
21614 ac_log="
21615 This file was extended by llvm $as_me 3.1svn, which was
21616 generated by GNU Autoconf 2.60.  Invocation command line was
21617
21618   CONFIG_FILES    = $CONFIG_FILES
21619   CONFIG_HEADERS  = $CONFIG_HEADERS
21620   CONFIG_LINKS    = $CONFIG_LINKS
21621   CONFIG_COMMANDS = $CONFIG_COMMANDS
21622   $ $0 $@
21623
21624 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21625 "
21626
21627 _ACEOF
21628
21629 cat >>$CONFIG_STATUS <<_ACEOF
21630 # Files that config.status was made for.
21631 config_files="$ac_config_files"
21632 config_headers="$ac_config_headers"
21633 config_commands="$ac_config_commands"
21634
21635 _ACEOF
21636
21637 cat >>$CONFIG_STATUS <<\_ACEOF
21638 ac_cs_usage="\
21639 \`$as_me' instantiates files from templates according to the
21640 current configuration.
21641
21642 Usage: $0 [OPTIONS] [FILE]...
21643
21644   -h, --help       print this help, then exit
21645   -V, --version    print version number, then exit
21646   -q, --quiet      do not print progress messages
21647   -d, --debug      don't remove temporary files
21648       --recheck    update $as_me by reconfiguring in the same conditions
21649   --file=FILE[:TEMPLATE]
21650                    instantiate the configuration file FILE
21651   --header=FILE[:TEMPLATE]
21652                    instantiate the configuration header FILE
21653
21654 Configuration files:
21655 $config_files
21656
21657 Configuration headers:
21658 $config_headers
21659
21660 Configuration commands:
21661 $config_commands
21662
21663 Report bugs to <bug-autoconf@gnu.org>."
21664
21665 _ACEOF
21666 cat >>$CONFIG_STATUS <<_ACEOF
21667 ac_cs_version="\\
21668 llvm config.status 3.1svn
21669 configured by $0, generated by GNU Autoconf 2.60,
21670   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21671
21672 Copyright (C) 2006 Free Software Foundation, Inc.
21673 This config.status script is free software; the Free Software Foundation
21674 gives unlimited permission to copy, distribute and modify it."
21675
21676 ac_pwd='$ac_pwd'
21677 srcdir='$srcdir'
21678 INSTALL='$INSTALL'
21679 _ACEOF
21680
21681 cat >>$CONFIG_STATUS <<\_ACEOF
21682 # If no file are specified by the user, then we need to provide default
21683 # value.  By we need to know if files were specified by the user.
21684 ac_need_defaults=:
21685 while test $# != 0
21686 do
21687   case $1 in
21688   --*=*)
21689     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21690     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21691     ac_shift=:
21692     ;;
21693   *)
21694     ac_option=$1
21695     ac_optarg=$2
21696     ac_shift=shift
21697     ;;
21698   esac
21699
21700   case $ac_option in
21701   # Handling of the options.
21702   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21703     ac_cs_recheck=: ;;
21704   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21705     echo "$ac_cs_version"; exit ;;
21706   --debug | --debu | --deb | --de | --d | -d )
21707     debug=: ;;
21708   --file | --fil | --fi | --f )
21709     $ac_shift
21710     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21711     ac_need_defaults=false;;
21712   --header | --heade | --head | --hea )
21713     $ac_shift
21714     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21715     ac_need_defaults=false;;
21716   --he | --h)
21717     # Conflict between --help and --header
21718     { echo "$as_me: error: ambiguous option: $1
21719 Try \`$0 --help' for more information." >&2
21720    { (exit 1); exit 1; }; };;
21721   --help | --hel | -h )
21722     echo "$ac_cs_usage"; exit ;;
21723   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21724   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21725     ac_cs_silent=: ;;
21726
21727   # This is an error.
21728   -*) { echo "$as_me: error: unrecognized option: $1
21729 Try \`$0 --help' for more information." >&2
21730    { (exit 1); exit 1; }; } ;;
21731
21732   *) ac_config_targets="$ac_config_targets $1"
21733      ac_need_defaults=false ;;
21734
21735   esac
21736   shift
21737 done
21738
21739 ac_configure_extra_args=
21740
21741 if $ac_cs_silent; then
21742   exec 6>/dev/null
21743   ac_configure_extra_args="$ac_configure_extra_args --silent"
21744 fi
21745
21746 _ACEOF
21747 cat >>$CONFIG_STATUS <<_ACEOF
21748 if \$ac_cs_recheck; then
21749   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21750   CONFIG_SHELL=$SHELL
21751   export CONFIG_SHELL
21752   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21753 fi
21754
21755 _ACEOF
21756 cat >>$CONFIG_STATUS <<\_ACEOF
21757 exec 5>>config.log
21758 {
21759   echo
21760   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21761 ## Running $as_me. ##
21762 _ASBOX
21763   echo "$ac_log"
21764 } >&5
21765
21766 _ACEOF
21767 cat >>$CONFIG_STATUS <<_ACEOF
21768 #
21769 # INIT-COMMANDS
21770 #
21771 llvm_src="${srcdir}"
21772
21773 _ACEOF
21774
21775 cat >>$CONFIG_STATUS <<\_ACEOF
21776
21777 # Handling of arguments.
21778 for ac_config_target in $ac_config_targets
21779 do
21780   case $ac_config_target in
21781     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21782     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21783     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21784     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21785     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21786     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21787     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21788     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21789     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21790     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21791     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21792     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21793     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21794     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21795     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21796     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21797     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21798     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21799     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21800     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21801     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21802     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21803     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21804     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21805     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21806     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21807     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21808
21809   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21810 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21811    { (exit 1); exit 1; }; };;
21812   esac
21813 done
21814
21815
21816 # If the user did not use the arguments to specify the items to instantiate,
21817 # then the envvar interface is used.  Set only those that are not.
21818 # We use the long form for the default assignment because of an extremely
21819 # bizarre bug on SunOS 4.1.3.
21820 if $ac_need_defaults; then
21821   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21822   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21823   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21824 fi
21825
21826 # Have a temporary directory for convenience.  Make it in the build tree
21827 # simply because there is no reason against having it here, and in addition,
21828 # creating and moving files from /tmp can sometimes cause problems.
21829 # Hook for its removal unless debugging.
21830 # Note that there is a small window in which the directory will not be cleaned:
21831 # after its creation but before its name has been assigned to `$tmp'.
21832 $debug ||
21833 {
21834   tmp=
21835   trap 'exit_status=$?
21836   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21837 ' 0
21838   trap '{ (exit 1); exit 1; }' 1 2 13 15
21839 }
21840 # Create a (secure) tmp directory for tmp files.
21841
21842 {
21843   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21844   test -n "$tmp" && test -d "$tmp"
21845 }  ||
21846 {
21847   tmp=./conf$$-$RANDOM
21848   (umask 077 && mkdir "$tmp")
21849 } ||
21850 {
21851    echo "$me: cannot create a temporary directory in ." >&2
21852    { (exit 1); exit 1; }
21853 }
21854
21855 #
21856 # Set up the sed scripts for CONFIG_FILES section.
21857 #
21858
21859 # No need to generate the scripts if there are no CONFIG_FILES.
21860 # This happens for instance when ./config.status config.h
21861 if test -n "$CONFIG_FILES"; then
21862
21863 _ACEOF
21864
21865
21866
21867 ac_delim='%!_!# '
21868 for ac_last_try in false false false false false :; do
21869   cat >conf$$subs.sed <<_ACEOF
21870 SHELL!$SHELL$ac_delim
21871 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21872 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21873 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21874 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21875 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21876 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21877 exec_prefix!$exec_prefix$ac_delim
21878 prefix!$prefix$ac_delim
21879 program_transform_name!$program_transform_name$ac_delim
21880 bindir!$bindir$ac_delim
21881 sbindir!$sbindir$ac_delim
21882 libexecdir!$libexecdir$ac_delim
21883 datarootdir!$datarootdir$ac_delim
21884 datadir!$datadir$ac_delim
21885 sysconfdir!$sysconfdir$ac_delim
21886 sharedstatedir!$sharedstatedir$ac_delim
21887 localstatedir!$localstatedir$ac_delim
21888 includedir!$includedir$ac_delim
21889 oldincludedir!$oldincludedir$ac_delim
21890 docdir!$docdir$ac_delim
21891 infodir!$infodir$ac_delim
21892 htmldir!$htmldir$ac_delim
21893 dvidir!$dvidir$ac_delim
21894 pdfdir!$pdfdir$ac_delim
21895 psdir!$psdir$ac_delim
21896 libdir!$libdir$ac_delim
21897 localedir!$localedir$ac_delim
21898 mandir!$mandir$ac_delim
21899 DEFS!$DEFS$ac_delim
21900 ECHO_C!$ECHO_C$ac_delim
21901 ECHO_N!$ECHO_N$ac_delim
21902 ECHO_T!$ECHO_T$ac_delim
21903 LIBS!$LIBS$ac_delim
21904 build_alias!$build_alias$ac_delim
21905 host_alias!$host_alias$ac_delim
21906 target_alias!$target_alias$ac_delim
21907 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21908 CC!$CC$ac_delim
21909 CFLAGS!$CFLAGS$ac_delim
21910 LDFLAGS!$LDFLAGS$ac_delim
21911 CPPFLAGS!$CPPFLAGS$ac_delim
21912 ac_ct_CC!$ac_ct_CC$ac_delim
21913 EXEEXT!$EXEEXT$ac_delim
21914 OBJEXT!$OBJEXT$ac_delim
21915 CXX!$CXX$ac_delim
21916 CXXFLAGS!$CXXFLAGS$ac_delim
21917 ac_ct_CXX!$ac_ct_CXX$ac_delim
21918 CPP!$CPP$ac_delim
21919 subdirs!$subdirs$ac_delim
21920 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21921 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21922 build!$build$ac_delim
21923 build_cpu!$build_cpu$ac_delim
21924 build_vendor!$build_vendor$ac_delim
21925 build_os!$build_os$ac_delim
21926 host!$host$ac_delim
21927 host_cpu!$host_cpu$ac_delim
21928 host_vendor!$host_vendor$ac_delim
21929 host_os!$host_os$ac_delim
21930 target!$target$ac_delim
21931 target_cpu!$target_cpu$ac_delim
21932 target_vendor!$target_vendor$ac_delim
21933 target_os!$target_os$ac_delim
21934 OS!$OS$ac_delim
21935 HOST_OS!$HOST_OS$ac_delim
21936 TARGET_OS!$TARGET_OS$ac_delim
21937 LINKALL!$LINKALL$ac_delim
21938 NOLINKALL!$NOLINKALL$ac_delim
21939 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21940 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21941 ARCH!$ARCH$ac_delim
21942 ENDIAN!$ENDIAN$ac_delim
21943 GREP!$GREP$ac_delim
21944 EGREP!$EGREP$ac_delim
21945 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21946 BUILD_CC!$BUILD_CC$ac_delim
21947 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21948 BUILD_CXX!$BUILD_CXX$ac_delim
21949 CVSBUILD!$CVSBUILD$ac_delim
21950 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21951 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21952 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21953 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21954 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21955 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21956 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21957 JIT!$JIT$ac_delim
21958 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21959 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21960 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21961 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21962 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21963 ENABLE_PIC!$ENABLE_PIC$ac_delim
21964 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21965 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21966 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21967 _ACEOF
21968
21969   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21970     break
21971   elif $ac_last_try; then
21972     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21973 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21974    { (exit 1); exit 1; }; }
21975   else
21976     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21977   fi
21978 done
21979
21980 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21981 if test -n "$ac_eof"; then
21982   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21983   ac_eof=`expr $ac_eof + 1`
21984 fi
21985
21986 cat >>$CONFIG_STATUS <<_ACEOF
21987 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21989 _ACEOF
21990 sed '
21991 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21992 s/^/s,@/; s/!/@,|#_!!_#|/
21993 :n
21994 t n
21995 s/'"$ac_delim"'$/,g/; t
21996 s/$/\\/; p
21997 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21998 ' >>$CONFIG_STATUS <conf$$subs.sed
21999 rm -f conf$$subs.sed
22000 cat >>$CONFIG_STATUS <<_ACEOF
22001 CEOF$ac_eof
22002 _ACEOF
22003
22004
22005 ac_delim='%!_!# '
22006 for ac_last_try in false false false false false :; do
22007   cat >conf$$subs.sed <<_ACEOF
22008 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22009 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22010 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22011 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22012 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22013 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22014 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22015 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22016 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22017 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22018 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22019 NM!$NM$ac_delim
22020 ifGNUmake!$ifGNUmake$ac_delim
22021 LN_S!$LN_S$ac_delim
22022 CMP!$CMP$ac_delim
22023 CP!$CP$ac_delim
22024 DATE!$DATE$ac_delim
22025 FIND!$FIND$ac_delim
22026 MKDIR!$MKDIR$ac_delim
22027 MV!$MV$ac_delim
22028 RANLIB!$RANLIB$ac_delim
22029 AR!$AR$ac_delim
22030 STRIP!$STRIP$ac_delim
22031 RM!$RM$ac_delim
22032 SED!$SED$ac_delim
22033 TAR!$TAR$ac_delim
22034 BINPWD!$BINPWD$ac_delim
22035 GRAPHVIZ!$GRAPHVIZ$ac_delim
22036 DOT!$DOT$ac_delim
22037 FDP!$FDP$ac_delim
22038 NEATO!$NEATO$ac_delim
22039 TWOPI!$TWOPI$ac_delim
22040 CIRCO!$CIRCO$ac_delim
22041 GV!$GV$ac_delim
22042 DOTTY!$DOTTY$ac_delim
22043 XDOT_PY!$XDOT_PY$ac_delim
22044 PERL!$PERL$ac_delim
22045 HAVE_PERL!$HAVE_PERL$ac_delim
22046 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22047 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22048 INSTALL_DATA!$INSTALL_DATA$ac_delim
22049 BZIP2!$BZIP2$ac_delim
22050 CAT!$CAT$ac_delim
22051 DOXYGEN!$DOXYGEN$ac_delim
22052 GROFF!$GROFF$ac_delim
22053 GZIPBIN!$GZIPBIN$ac_delim
22054 POD2HTML!$POD2HTML$ac_delim
22055 POD2MAN!$POD2MAN$ac_delim
22056 PDFROFF!$PDFROFF$ac_delim
22057 RUNTEST!$RUNTEST$ac_delim
22058 TCLSH!$TCLSH$ac_delim
22059 ZIP!$ZIP$ac_delim
22060 OCAMLC!$OCAMLC$ac_delim
22061 OCAMLOPT!$OCAMLOPT$ac_delim
22062 OCAMLDEP!$OCAMLDEP$ac_delim
22063 OCAMLDOC!$OCAMLDOC$ac_delim
22064 GAS!$GAS$ac_delim
22065 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22066 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22067 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22068 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22069 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22070 LIBADD_DL!$LIBADD_DL$ac_delim
22071 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22072 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22073 USE_UDIS86!$USE_UDIS86$ac_delim
22074 USE_OPROFILE!$USE_OPROFILE$ac_delim
22075 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22076 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22077 MMAP_FILE!$MMAP_FILE$ac_delim
22078 SHLIBEXT!$SHLIBEXT$ac_delim
22079 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22080 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22081 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22082 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22083 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22084 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22085 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22086 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22087 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22088 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22089 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22090 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22091 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22092 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22093 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22094 RPATH!$RPATH$ac_delim
22095 RDYNAMIC!$RDYNAMIC$ac_delim
22096 LIBOBJS!$LIBOBJS$ac_delim
22097 LTLIBOBJS!$LTLIBOBJS$ac_delim
22098 _ACEOF
22099
22100   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22101     break
22102   elif $ac_last_try; then
22103     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22104 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22105    { (exit 1); exit 1; }; }
22106   else
22107     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22108   fi
22109 done
22110
22111 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22112 if test -n "$ac_eof"; then
22113   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22114   ac_eof=`expr $ac_eof + 1`
22115 fi
22116
22117 cat >>$CONFIG_STATUS <<_ACEOF
22118 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22120 _ACEOF
22121 sed '
22122 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22123 s/^/s,@/; s/!/@,|#_!!_#|/
22124 :n
22125 t n
22126 s/'"$ac_delim"'$/,g/; t
22127 s/$/\\/; p
22128 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22129 ' >>$CONFIG_STATUS <conf$$subs.sed
22130 rm -f conf$$subs.sed
22131 cat >>$CONFIG_STATUS <<_ACEOF
22132 :end
22133 s/|#_!!_#|//g
22134 CEOF$ac_eof
22135 _ACEOF
22136
22137
22138 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22139 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22140 # trailing colons and then remove the whole line if VPATH becomes empty
22141 # (actually we leave an empty line to preserve line numbers).
22142 if test "x$srcdir" = x.; then
22143   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22144 s/:*\$(srcdir):*/:/
22145 s/:*\${srcdir}:*/:/
22146 s/:*@srcdir@:*/:/
22147 s/^\([^=]*=[     ]*\):*/\1/
22148 s/:*$//
22149 s/^[^=]*=[       ]*$//
22150 }'
22151 fi
22152
22153 cat >>$CONFIG_STATUS <<\_ACEOF
22154 fi # test -n "$CONFIG_FILES"
22155
22156
22157 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22158 do
22159   case $ac_tag in
22160   :[FHLC]) ac_mode=$ac_tag; continue;;
22161   esac
22162   case $ac_mode$ac_tag in
22163   :[FHL]*:*);;
22164   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22165 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22166    { (exit 1); exit 1; }; };;
22167   :[FH]-) ac_tag=-:-;;
22168   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22169   esac
22170   ac_save_IFS=$IFS
22171   IFS=:
22172   set x $ac_tag
22173   IFS=$ac_save_IFS
22174   shift
22175   ac_file=$1
22176   shift
22177
22178   case $ac_mode in
22179   :L) ac_source=$1;;
22180   :[FH])
22181     ac_file_inputs=
22182     for ac_f
22183     do
22184       case $ac_f in
22185       -) ac_f="$tmp/stdin";;
22186       *) # Look for the file first in the build tree, then in the source tree
22187          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22188          # because $ac_f cannot contain `:'.
22189          test -f "$ac_f" ||
22190            case $ac_f in
22191            [\\/$]*) false;;
22192            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22193            esac ||
22194            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22195 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22196    { (exit 1); exit 1; }; };;
22197       esac
22198       ac_file_inputs="$ac_file_inputs $ac_f"
22199     done
22200
22201     # Let's still pretend it is `configure' which instantiates (i.e., don't
22202     # use $as_me), people would be surprised to read:
22203     #    /* config.h.  Generated by config.status.  */
22204     configure_input="Generated from "`IFS=:
22205           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22206     if test x"$ac_file" != x-; then
22207       configure_input="$ac_file.  $configure_input"
22208       { echo "$as_me:$LINENO: creating $ac_file" >&5
22209 echo "$as_me: creating $ac_file" >&6;}
22210     fi
22211
22212     case $ac_tag in
22213     *:-:* | *:-) cat >"$tmp/stdin";;
22214     esac
22215     ;;
22216   esac
22217
22218   ac_dir=`$as_dirname -- "$ac_file" ||
22219 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220          X"$ac_file" : 'X\(//\)[^/]' \| \
22221          X"$ac_file" : 'X\(//\)$' \| \
22222          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22223 echo X"$ac_file" |
22224     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22225             s//\1/
22226             q
22227           }
22228           /^X\(\/\/\)[^/].*/{
22229             s//\1/
22230             q
22231           }
22232           /^X\(\/\/\)$/{
22233             s//\1/
22234             q
22235           }
22236           /^X\(\/\).*/{
22237             s//\1/
22238             q
22239           }
22240           s/.*/./; q'`
22241   { as_dir="$ac_dir"
22242   case $as_dir in #(
22243   -*) as_dir=./$as_dir;;
22244   esac
22245   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22246     as_dirs=
22247     while :; do
22248       case $as_dir in #(
22249       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22250       *) as_qdir=$as_dir;;
22251       esac
22252       as_dirs="'$as_qdir' $as_dirs"
22253       as_dir=`$as_dirname -- "$as_dir" ||
22254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22255          X"$as_dir" : 'X\(//\)[^/]' \| \
22256          X"$as_dir" : 'X\(//\)$' \| \
22257          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22258 echo X"$as_dir" |
22259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22260             s//\1/
22261             q
22262           }
22263           /^X\(\/\/\)[^/].*/{
22264             s//\1/
22265             q
22266           }
22267           /^X\(\/\/\)$/{
22268             s//\1/
22269             q
22270           }
22271           /^X\(\/\).*/{
22272             s//\1/
22273             q
22274           }
22275           s/.*/./; q'`
22276       test -d "$as_dir" && break
22277     done
22278     test -z "$as_dirs" || eval "mkdir $as_dirs"
22279   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22280 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22281    { (exit 1); exit 1; }; }; }
22282   ac_builddir=.
22283
22284 case "$ac_dir" in
22285 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22286 *)
22287   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22288   # A ".." for each directory in $ac_dir_suffix.
22289   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22290   case $ac_top_builddir_sub in
22291   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22292   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22293   esac ;;
22294 esac
22295 ac_abs_top_builddir=$ac_pwd
22296 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22297 # for backward compatibility:
22298 ac_top_builddir=$ac_top_build_prefix
22299
22300 case $srcdir in
22301   .)  # We are building in place.
22302     ac_srcdir=.
22303     ac_top_srcdir=$ac_top_builddir_sub
22304     ac_abs_top_srcdir=$ac_pwd ;;
22305   [\\/]* | ?:[\\/]* )  # Absolute name.
22306     ac_srcdir=$srcdir$ac_dir_suffix;
22307     ac_top_srcdir=$srcdir
22308     ac_abs_top_srcdir=$srcdir ;;
22309   *) # Relative name.
22310     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22311     ac_top_srcdir=$ac_top_build_prefix$srcdir
22312     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22313 esac
22314 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22315
22316
22317   case $ac_mode in
22318   :F)
22319   #
22320   # CONFIG_FILE
22321   #
22322
22323   case $INSTALL in
22324   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22325   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22326   esac
22327 _ACEOF
22328
22329 cat >>$CONFIG_STATUS <<\_ACEOF
22330 # If the template does not know about datarootdir, expand it.
22331 # FIXME: This hack should be removed a few years after 2.60.
22332 ac_datarootdir_hack=; ac_datarootdir_seen=
22333
22334 case `sed -n '/datarootdir/ {
22335   p
22336   q
22337 }
22338 /@datadir@/p
22339 /@docdir@/p
22340 /@infodir@/p
22341 /@localedir@/p
22342 /@mandir@/p
22343 ' $ac_file_inputs` in
22344 *datarootdir*) ac_datarootdir_seen=yes;;
22345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22346   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22347 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22348 _ACEOF
22349 cat >>$CONFIG_STATUS <<_ACEOF
22350   ac_datarootdir_hack='
22351   s&@datadir@&$datadir&g
22352   s&@docdir@&$docdir&g
22353   s&@infodir@&$infodir&g
22354   s&@localedir@&$localedir&g
22355   s&@mandir@&$mandir&g
22356     s&\\\${datarootdir}&$datarootdir&g' ;;
22357 esac
22358 _ACEOF
22359
22360 # Neutralize VPATH when `$srcdir' = `.'.
22361 # Shell code in configure.ac might set extrasub.
22362 # FIXME: do we really want to maintain this feature?
22363 cat >>$CONFIG_STATUS <<_ACEOF
22364   sed "$ac_vpsub
22365 $extrasub
22366 _ACEOF
22367 cat >>$CONFIG_STATUS <<\_ACEOF
22368 :t
22369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22370 s&@configure_input@&$configure_input&;t t
22371 s&@top_builddir@&$ac_top_builddir_sub&;t t
22372 s&@srcdir@&$ac_srcdir&;t t
22373 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22374 s&@top_srcdir@&$ac_top_srcdir&;t t
22375 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22376 s&@builddir@&$ac_builddir&;t t
22377 s&@abs_builddir@&$ac_abs_builddir&;t t
22378 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22379 s&@INSTALL@&$ac_INSTALL&;t t
22380 $ac_datarootdir_hack
22381 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22382
22383 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22384   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22385   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22386   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22387 which seems to be undefined.  Please make sure it is defined." >&5
22388 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22389 which seems to be undefined.  Please make sure it is defined." >&2;}
22390
22391   rm -f "$tmp/stdin"
22392   case $ac_file in
22393   -) cat "$tmp/out"; rm -f "$tmp/out";;
22394   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22395   esac
22396  ;;
22397   :H)
22398   #
22399   # CONFIG_HEADER
22400   #
22401 _ACEOF
22402
22403 # Transform confdefs.h into a sed script `conftest.defines', that
22404 # substitutes the proper values into config.h.in to produce config.h.
22405 rm -f conftest.defines conftest.tail
22406 # First, append a space to every undef/define line, to ease matching.
22407 echo 's/$/ /' >conftest.defines
22408 # Then, protect against being on the right side of a sed subst, or in
22409 # an unquoted here document, in config.status.  If some macros were
22410 # called several times there might be several #defines for the same
22411 # symbol, which is useless.  But do not sort them, since the last
22412 # AC_DEFINE must be honored.
22413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22414 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22415 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22416 # PARAMS is the parameter list in the macro definition--in most cases, it's
22417 # just an empty string.
22418 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22419 ac_dB='\\)[      (].*,\\1define\\2'
22420 ac_dC=' '
22421 ac_dD=' ,'
22422
22423 uniq confdefs.h |
22424   sed -n '
22425         t rset
22426         :rset
22427         s/^[     ]*#[    ]*define[       ][      ]*//
22428         t ok
22429         d
22430         :ok
22431         s/[\\&,]/\\&/g
22432         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22433         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22434   ' >>conftest.defines
22435
22436 # Remove the space that was appended to ease matching.
22437 # Then replace #undef with comments.  This is necessary, for
22438 # example, in the case of _POSIX_SOURCE, which is predefined and required
22439 # on some systems where configure will not decide to define it.
22440 # (The regexp can be short, since the line contains either #define or #undef.)
22441 echo 's/ $//
22442 s,^[     #]*u.*,/* & */,' >>conftest.defines
22443
22444 # Break up conftest.defines:
22445 ac_max_sed_lines=50
22446
22447 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22448 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22449 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22450 # et cetera.
22451 ac_in='$ac_file_inputs'
22452 ac_out='"$tmp/out1"'
22453 ac_nxt='"$tmp/out2"'
22454
22455 while :
22456 do
22457   # Write a here document:
22458     cat >>$CONFIG_STATUS <<_ACEOF
22459     # First, check the format of the line:
22460     cat >"\$tmp/defines.sed" <<\\CEOF
22461 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22462 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22463 b
22464 :def
22465 _ACEOF
22466   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22467   echo 'CEOF
22468     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22469   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22470   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22471   grep . conftest.tail >/dev/null || break
22472   rm -f conftest.defines
22473   mv conftest.tail conftest.defines
22474 done
22475 rm -f conftest.defines conftest.tail
22476
22477 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22478 cat >>$CONFIG_STATUS <<\_ACEOF
22479   if test x"$ac_file" != x-; then
22480     echo "/* $configure_input  */" >"$tmp/config.h"
22481     cat "$ac_result" >>"$tmp/config.h"
22482     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22483       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22484 echo "$as_me: $ac_file is unchanged" >&6;}
22485     else
22486       rm -f $ac_file
22487       mv "$tmp/config.h" $ac_file
22488     fi
22489   else
22490     echo "/* $configure_input  */"
22491     cat "$ac_result"
22492   fi
22493   rm -f "$tmp/out12"
22494  ;;
22495
22496   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22497 echo "$as_me: executing $ac_file commands" >&6;}
22498  ;;
22499   esac
22500
22501
22502   case $ac_file$ac_mode in
22503     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22504    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22505     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22506    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22507     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22508    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22509     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22510    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22511     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22512    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22513     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22514    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22515     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22516    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22517     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22518    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22519     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22520    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22521     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22522    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22523     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22524    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22525     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22526    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22527     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22528    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22529
22530   esac
22531 done # for ac_tag
22532
22533
22534 { (exit 0); exit 0; }
22535 _ACEOF
22536 chmod +x $CONFIG_STATUS
22537 ac_clean_files=$ac_clean_files_save
22538
22539
22540 # configure is writing to config.log, and then calls config.status.
22541 # config.status does its own redirection, appending to config.log.
22542 # Unfortunately, on DOS this fails, as config.log is still kept open
22543 # by configure, so config.status won't be able to write to it; its
22544 # output is simply discarded.  So we exec the FD to /dev/null,
22545 # effectively closing config.log, so it can be properly (re)opened and
22546 # appended to by config.status.  When coming back to configure, we
22547 # need to make the FD available again.
22548 if test "$no_create" != yes; then
22549   ac_cs_success=:
22550   ac_config_status_args=
22551   test "$silent" = yes &&
22552     ac_config_status_args="$ac_config_status_args --quiet"
22553   exec 5>/dev/null
22554   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22555   exec 5>>config.log
22556   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22557   # would make configure fail if this is the last instruction.
22558   $ac_cs_success || { (exit 1); exit 1; }
22559 fi
22560
22561 #
22562 # CONFIG_SUBDIRS section.
22563 #
22564 if test "$no_recursion" != yes; then
22565
22566   # Remove --cache-file and --srcdir arguments so they do not pile up.
22567   ac_sub_configure_args=
22568   ac_prev=
22569   eval "set x $ac_configure_args"
22570   shift
22571   for ac_arg
22572   do
22573     if test -n "$ac_prev"; then
22574       ac_prev=
22575       continue
22576     fi
22577     case $ac_arg in
22578     -cache-file | --cache-file | --cache-fil | --cache-fi \
22579     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22580       ac_prev=cache_file ;;
22581     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22582     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22583     | --c=*)
22584       ;;
22585     --config-cache | -C)
22586       ;;
22587     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22588       ac_prev=srcdir ;;
22589     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22590       ;;
22591     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22592       ac_prev=prefix ;;
22593     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22594       ;;
22595     *)
22596       case $ac_arg in
22597       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22598       esac
22599       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22600     esac
22601   done
22602
22603   # Always prepend --prefix to ensure using the same prefix
22604   # in subdir configurations.
22605   ac_arg="--prefix=$prefix"
22606   case $ac_arg in
22607   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22608   esac
22609   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22610
22611   ac_popdir=`pwd`
22612   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22613
22614     # Do not complain, so a configure script can configure whichever
22615     # parts of a large source tree are present.
22616     test -d "$srcdir/$ac_dir" || continue
22617
22618     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22619     echo "$as_me:$LINENO: $ac_msg" >&5
22620     echo "$ac_msg" >&6
22621     { as_dir="$ac_dir"
22622   case $as_dir in #(
22623   -*) as_dir=./$as_dir;;
22624   esac
22625   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22626     as_dirs=
22627     while :; do
22628       case $as_dir in #(
22629       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22630       *) as_qdir=$as_dir;;
22631       esac
22632       as_dirs="'$as_qdir' $as_dirs"
22633       as_dir=`$as_dirname -- "$as_dir" ||
22634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22635          X"$as_dir" : 'X\(//\)[^/]' \| \
22636          X"$as_dir" : 'X\(//\)$' \| \
22637          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22638 echo X"$as_dir" |
22639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22640             s//\1/
22641             q
22642           }
22643           /^X\(\/\/\)[^/].*/{
22644             s//\1/
22645             q
22646           }
22647           /^X\(\/\/\)$/{
22648             s//\1/
22649             q
22650           }
22651           /^X\(\/\).*/{
22652             s//\1/
22653             q
22654           }
22655           s/.*/./; q'`
22656       test -d "$as_dir" && break
22657     done
22658     test -z "$as_dirs" || eval "mkdir $as_dirs"
22659   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22660 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22661    { (exit 1); exit 1; }; }; }
22662     ac_builddir=.
22663
22664 case "$ac_dir" in
22665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22666 *)
22667   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22668   # A ".." for each directory in $ac_dir_suffix.
22669   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22670   case $ac_top_builddir_sub in
22671   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22672   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22673   esac ;;
22674 esac
22675 ac_abs_top_builddir=$ac_pwd
22676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22677 # for backward compatibility:
22678 ac_top_builddir=$ac_top_build_prefix
22679
22680 case $srcdir in
22681   .)  # We are building in place.
22682     ac_srcdir=.
22683     ac_top_srcdir=$ac_top_builddir_sub
22684     ac_abs_top_srcdir=$ac_pwd ;;
22685   [\\/]* | ?:[\\/]* )  # Absolute name.
22686     ac_srcdir=$srcdir$ac_dir_suffix;
22687     ac_top_srcdir=$srcdir
22688     ac_abs_top_srcdir=$srcdir ;;
22689   *) # Relative name.
22690     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22691     ac_top_srcdir=$ac_top_build_prefix$srcdir
22692     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22693 esac
22694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22695
22696
22697     cd "$ac_dir"
22698
22699     # Check for guested configure; otherwise get Cygnus style configure.
22700     if test -f "$ac_srcdir/configure.gnu"; then
22701       ac_sub_configure=$ac_srcdir/configure.gnu
22702     elif test -f "$ac_srcdir/configure"; then
22703       ac_sub_configure=$ac_srcdir/configure
22704     elif test -f "$ac_srcdir/configure.in"; then
22705       # This should be Cygnus configure.
22706       ac_sub_configure=$ac_aux_dir/configure
22707     else
22708       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22709 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22710       ac_sub_configure=
22711     fi
22712
22713     # The recursion is here.
22714     if test -n "$ac_sub_configure"; then
22715       # Make the cache file name correct relative to the subdirectory.
22716       case $cache_file in
22717       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22718       *) # Relative name.
22719         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22720       esac
22721
22722       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22723 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22724       # The eval makes quoting arguments work.
22725       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22726            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22727         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22728 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22729    { (exit 1); exit 1; }; }
22730     fi
22731
22732     cd "$ac_popdir"
22733   done
22734 fi
22735