Detect if llvm-gcc is built on dragonegg.
[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 2.9svn.
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-2010 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='2.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 subdirs
644 ENABLE_POLLY
645 LLVM_HAS_POLLY
646 build
647 build_cpu
648 build_vendor
649 build_os
650 host
651 host_cpu
652 host_vendor
653 host_os
654 target
655 target_cpu
656 target_vendor
657 target_os
658 OS
659 HOST_OS
660 TARGET_OS
661 LINKALL
662 NOLINKALL
663 LLVM_ON_UNIX
664 LLVM_ON_WIN32
665 ARCH
666 ENDIAN
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LLVM_CROSS_COMPILING
678 BUILD_CC
679 BUILD_EXEEXT
680 BUILD_CXX
681 CVSBUILD
682 ENABLE_OPTIMIZED
683 ENABLE_PROFILING
684 DISABLE_ASSERTIONS
685 ENABLE_EXPENSIVE_CHECKS
686 EXPENSIVE_CHECKS
687 DEBUG_RUNTIME
688 DEBUG_SYMBOLS
689 JIT
690 TARGET_HAS_JIT
691 ENABLE_DOXYGEN
692 ENABLE_THREADS
693 ENABLE_PIC
694 ENABLE_SHARED
695 ENABLE_TIMESTAMPS
696 TARGETS_TO_BUILD
697 LLVM_ENUM_TARGETS
698 LLVM_ENUM_ASM_PRINTERS
699 LLVM_ENUM_ASM_PARSERS
700 LLVM_ENUM_DISASSEMBLERS
701 ENABLE_CBE_PRINTF_A
702 CLANGPATH
703 CLANGXXPATH
704 ENABLE_BUILT_CLANG
705 OPTIMIZE_OPTION
706 EXTRA_OPTIONS
707 BINUTILS_INCDIR
708 CXX
709 CXXFLAGS
710 ac_ct_CXX
711 NM
712 ifGNUmake
713 LN_S
714 CMP
715 CP
716 DATE
717 FIND
718 MKDIR
719 MV
720 RANLIB
721 AR
722 RM
723 SED
724 TAR
725 BINPWD
726 GRAPHVIZ
727 DOT
728 FDP
729 NEATO
730 TWOPI
731 CIRCO
732 GV
733 DOTTY
734 XDOT_PY
735 PERL
736 HAVE_PERL
737 INSTALL_PROGRAM
738 INSTALL_SCRIPT
739 INSTALL_DATA
740 BZIP2
741 CAT
742 DOXYGEN
743 GROFF
744 GZIP
745 POD2HTML
746 POD2MAN
747 PDFROFF
748 RUNTEST
749 TCLSH
750 ZIP
751 OCAMLC
752 OCAMLOPT
753 OCAMLDEP
754 OCAMLDOC
755 GAS
756 HAVE_LINK_VERSION_SCRIPT
757 INSTALL_LTDL_TRUE
758 INSTALL_LTDL_FALSE
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
761 LIBADD_DL
762 LLVMGCCCOMMAND
763 LLVMGXXCOMMAND
764 LLVMGCC
765 LLVMGXX
766 LLVMCC_OPTION
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 USE_UDIS86
770 USE_OPROFILE
771 HAVE_PTHREAD
772 HUGE_VAL_SANITY
773 MMAP_FILE
774 LLVMCC_EMITIR_FLAG
775 LLVMCC1
776 LLVMCC1PLUS
777 LLVMGCCDIR
778 LLVMGCC_LANGS
779 LLVMGCC_DRAGONEGG
780 LLVMGCC_DISABLEOPT_FLAGS
781 SHLIBEXT
782 SHLIBPATH_VAR
783 LLVM_PREFIX
784 LLVM_BINDIR
785 LLVM_LIBDIR
786 LLVM_DATADIR
787 LLVM_DOCSDIR
788 LLVM_ETCDIR
789 LLVM_INCLUDEDIR
790 LLVM_INFODIR
791 LLVM_MANDIR
792 LLVM_CONFIGTIME
793 BINDINGS_TO_BUILD
794 ALL_BINDINGS
795 OCAML_LIBDIR
796 ENABLE_VISIBILITY_INLINES_HIDDEN
797 RPATH
798 RDYNAMIC
799 LIBOBJS
800 LTLIBOBJS'
801 ac_subst_files=''
802       ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 CPPFLAGS
809 CPP
810 CXX
811 CXXFLAGS
812 CCC'
813 ac_subdirs_all='projects/llvm-gcc
814 projects/test-suite
815 projects/llvm-test
816 projects/poolalloc
817 projects/llvm-poolalloc
818 projects/sample
819 projects/privbracket
820 projects/llvm-stacker
821 projects/llvm-reopt
822 projects/llvm-java
823 projects/llvm-tv
824 projects/safecode
825 projects/llvm-kernel
826 tools/polly'
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
847
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878   # If the previous option needs an argument, assign it.
879   if test -n "$ac_prev"; then
880     eval $ac_prev=\$ac_option
881     ac_prev=
882     continue
883   fi
884
885   case $ac_option in
886   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887   *)    ac_optarg=yes ;;
888   esac
889
890   # Accept the important Cygnus configure options, so we can diagnose typos.
891
892   case $ac_dashdash$ac_option in
893   --)
894     ac_dashdash=yes ;;
895
896   -bindir | --bindir | --bindi | --bind | --bin | --bi)
897     ac_prev=bindir ;;
898   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899     bindir=$ac_optarg ;;
900
901   -build | --build | --buil | --bui | --bu)
902     ac_prev=build_alias ;;
903   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904     build_alias=$ac_optarg ;;
905
906   -cache-file | --cache-file | --cache-fil | --cache-fi \
907   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908     ac_prev=cache_file ;;
909   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911     cache_file=$ac_optarg ;;
912
913   --config-cache | -C)
914     cache_file=config.cache ;;
915
916   -datadir | --datadir | --datadi | --datad)
917     ac_prev=datadir ;;
918   -datadir=* | --datadir=* | --datadi=* | --datad=*)
919     datadir=$ac_optarg ;;
920
921   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922   | --dataroo | --dataro | --datar)
923     ac_prev=datarootdir ;;
924   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926     datarootdir=$ac_optarg ;;
927
928   -disable-* | --disable-*)
929     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930     # Reject names that are not valid shell variable names.
931     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
932       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
933    { (exit 1); exit 1; }; }
934     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
935     eval enable_$ac_feature=no ;;
936
937   -docdir | --docdir | --docdi | --doc | --do)
938     ac_prev=docdir ;;
939   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940     docdir=$ac_optarg ;;
941
942   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943     ac_prev=dvidir ;;
944   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945     dvidir=$ac_optarg ;;
946
947   -enable-* | --enable-*)
948     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949     # Reject names that are not valid shell variable names.
950     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
951       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
952    { (exit 1); exit 1; }; }
953     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
954     eval enable_$ac_feature=\$ac_optarg ;;
955
956   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958   | --exec | --exe | --ex)
959     ac_prev=exec_prefix ;;
960   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962   | --exec=* | --exe=* | --ex=*)
963     exec_prefix=$ac_optarg ;;
964
965   -gas | --gas | --ga | --g)
966     # Obsolete; use --with-gas.
967     with_gas=yes ;;
968
969   -help | --help | --hel | --he | -h)
970     ac_init_help=long ;;
971   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972     ac_init_help=recursive ;;
973   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974     ac_init_help=short ;;
975
976   -host | --host | --hos | --ho)
977     ac_prev=host_alias ;;
978   -host=* | --host=* | --hos=* | --ho=*)
979     host_alias=$ac_optarg ;;
980
981   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982     ac_prev=htmldir ;;
983   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984   | --ht=*)
985     htmldir=$ac_optarg ;;
986
987   -includedir | --includedir | --includedi | --included | --include \
988   | --includ | --inclu | --incl | --inc)
989     ac_prev=includedir ;;
990   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991   | --includ=* | --inclu=* | --incl=* | --inc=*)
992     includedir=$ac_optarg ;;
993
994   -infodir | --infodir | --infodi | --infod | --info | --inf)
995     ac_prev=infodir ;;
996   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997     infodir=$ac_optarg ;;
998
999   -libdir | --libdir | --libdi | --libd)
1000     ac_prev=libdir ;;
1001   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002     libdir=$ac_optarg ;;
1003
1004   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005   | --libexe | --libex | --libe)
1006     ac_prev=libexecdir ;;
1007   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008   | --libexe=* | --libex=* | --libe=*)
1009     libexecdir=$ac_optarg ;;
1010
1011   -localedir | --localedir | --localedi | --localed | --locale)
1012     ac_prev=localedir ;;
1013   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014     localedir=$ac_optarg ;;
1015
1016   -localstatedir | --localstatedir | --localstatedi | --localstated \
1017   | --localstate | --localstat | --localsta | --localst | --locals)
1018     ac_prev=localstatedir ;;
1019   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021     localstatedir=$ac_optarg ;;
1022
1023   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024     ac_prev=mandir ;;
1025   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026     mandir=$ac_optarg ;;
1027
1028   -nfp | --nfp | --nf)
1029     # Obsolete; use --without-fp.
1030     with_fp=no ;;
1031
1032   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033   | --no-cr | --no-c | -n)
1034     no_create=yes ;;
1035
1036   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038     no_recursion=yes ;;
1039
1040   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042   | --oldin | --oldi | --old | --ol | --o)
1043     ac_prev=oldincludedir ;;
1044   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047     oldincludedir=$ac_optarg ;;
1048
1049   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050     ac_prev=prefix ;;
1051   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052     prefix=$ac_optarg ;;
1053
1054   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055   | --program-pre | --program-pr | --program-p)
1056     ac_prev=program_prefix ;;
1057   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059     program_prefix=$ac_optarg ;;
1060
1061   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062   | --program-suf | --program-su | --program-s)
1063     ac_prev=program_suffix ;;
1064   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066     program_suffix=$ac_optarg ;;
1067
1068   -program-transform-name | --program-transform-name \
1069   | --program-transform-nam | --program-transform-na \
1070   | --program-transform-n | --program-transform- \
1071   | --program-transform | --program-transfor \
1072   | --program-transfo | --program-transf \
1073   | --program-trans | --program-tran \
1074   | --progr-tra | --program-tr | --program-t)
1075     ac_prev=program_transform_name ;;
1076   -program-transform-name=* | --program-transform-name=* \
1077   | --program-transform-nam=* | --program-transform-na=* \
1078   | --program-transform-n=* | --program-transform-=* \
1079   | --program-transform=* | --program-transfor=* \
1080   | --program-transfo=* | --program-transf=* \
1081   | --program-trans=* | --program-tran=* \
1082   | --progr-tra=* | --program-tr=* | --program-t=*)
1083     program_transform_name=$ac_optarg ;;
1084
1085   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086     ac_prev=pdfdir ;;
1087   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088     pdfdir=$ac_optarg ;;
1089
1090   -psdir | --psdir | --psdi | --psd | --ps)
1091     ac_prev=psdir ;;
1092   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093     psdir=$ac_optarg ;;
1094
1095   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096   | -silent | --silent | --silen | --sile | --sil)
1097     silent=yes ;;
1098
1099   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100     ac_prev=sbindir ;;
1101   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102   | --sbi=* | --sb=*)
1103     sbindir=$ac_optarg ;;
1104
1105   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107   | --sharedst | --shareds | --shared | --share | --shar \
1108   | --sha | --sh)
1109     ac_prev=sharedstatedir ;;
1110   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113   | --sha=* | --sh=*)
1114     sharedstatedir=$ac_optarg ;;
1115
1116   -site | --site | --sit)
1117     ac_prev=site ;;
1118   -site=* | --site=* | --sit=*)
1119     site=$ac_optarg ;;
1120
1121   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122     ac_prev=srcdir ;;
1123   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124     srcdir=$ac_optarg ;;
1125
1126   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127   | --syscon | --sysco | --sysc | --sys | --sy)
1128     ac_prev=sysconfdir ;;
1129   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131     sysconfdir=$ac_optarg ;;
1132
1133   -target | --target | --targe | --targ | --tar | --ta | --t)
1134     ac_prev=target_alias ;;
1135   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136     target_alias=$ac_optarg ;;
1137
1138   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139     verbose=yes ;;
1140
1141   -version | --version | --versio | --versi | --vers | -V)
1142     ac_init_version=: ;;
1143
1144   -with-* | --with-*)
1145     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1152
1153   -without-* | --without-*)
1154     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1157       { echo "$as_me: error: invalid package name: $ac_package" >&2
1158    { (exit 1); exit 1; }; }
1159     ac_package=`echo $ac_package | sed 's/-/_/g'`
1160     eval with_$ac_package=no ;;
1161
1162   --x)
1163     # Obsolete; use --with-x.
1164     with_x=yes ;;
1165
1166   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167   | --x-incl | --x-inc | --x-in | --x-i)
1168     ac_prev=x_includes ;;
1169   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171     x_includes=$ac_optarg ;;
1172
1173   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175     ac_prev=x_libraries ;;
1176   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178     x_libraries=$ac_optarg ;;
1179
1180   -*) { echo "$as_me: error: unrecognized option: $ac_option
1181 Try \`$0 --help' for more information." >&2
1182    { (exit 1); exit 1; }; }
1183     ;;
1184
1185   *=*)
1186     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1189       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1190    { (exit 1); exit 1; }; }
1191     eval $ac_envvar=\$ac_optarg
1192     export $ac_envvar ;;
1193
1194   *)
1195     # FIXME: should be removed in autoconf 3.0.
1196     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200     ;;
1201
1202   esac
1203 done
1204
1205 if test -n "$ac_prev"; then
1206   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207   { echo "$as_me: error: missing argument to $ac_option" >&2
1208    { (exit 1); exit 1; }; }
1209 fi
1210
1211 # Be sure to have absolute directory names.
1212 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213                 datadir sysconfdir sharedstatedir localstatedir includedir \
1214                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215                 libdir localedir mandir
1216 do
1217   eval ac_val=\$$ac_var
1218   case $ac_val in
1219     [\\/$]* | ?:[\\/]* )  continue;;
1220     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221   esac
1222   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1223    { (exit 1); exit 1; }; }
1224 done
1225
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1232
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235   if test "x$build_alias" = x; then
1236     cross_compiling=maybe
1237     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1238     If a cross compiler is detected then cross compile mode will be used." >&2
1239   elif test "x$build_alias" != "x$host_alias"; then
1240     cross_compiling=yes
1241   fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253   { echo "$as_me: error: Working directory cannot be determined" >&2
1254    { (exit 1); exit 1; }; }
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256   { echo "$as_me: error: pwd does not report name of working directory" >&2
1257    { (exit 1); exit 1; }; }
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262   ac_srcdir_defaulted=yes
1263   # Try the directory containing this script, then the parent directory.
1264   ac_confdir=`$as_dirname -- "$0" ||
1265 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266          X"$0" : 'X\(//\)[^/]' \| \
1267          X"$0" : 'X\(//\)$' \| \
1268          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1269 echo X"$0" |
1270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)[^/].*/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\).*/{
1283             s//\1/
1284             q
1285           }
1286           s/.*/./; q'`
1287   srcdir=$ac_confdir
1288   if test ! -r "$srcdir/$ac_unique_file"; then
1289     srcdir=..
1290   fi
1291 else
1292   ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1297    { (exit 1); exit 1; }; }
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1302    { (exit 1); exit 1; }; }
1303         pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306   srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_env_${ac_var}_value=\$${ac_var}
1317   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325   # Omit some internal or obsolete options to make the list less imposing.
1326   # This message is too long to be a string in the A/UX 3.1 sh.
1327   cat <<_ACEOF
1328 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE.  See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338   -h, --help              display this help and exit
1339       --help=short        display options specific to this package
1340       --help=recursive    display the short help of all the included packages
1341   -V, --version           display version information and exit
1342   -q, --quiet, --silent   do not print \`checking...' messages
1343       --cache-file=FILE   cache test results in FILE [disabled]
1344   -C, --config-cache      alias for \`--cache-file=config.cache'
1345   -n, --no-create         do not create output files
1346       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349   --prefix=PREFIX         install architecture-independent files in PREFIX
1350                           [$ac_default_prefix]
1351   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1352                           [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362   --bindir=DIR           user executables [EPREFIX/bin]
1363   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1364   --libexecdir=DIR       program executables [EPREFIX/libexec]
1365   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1366   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1367   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1368   --libdir=DIR           object code libraries [EPREFIX/lib]
1369   --includedir=DIR       C header files [PREFIX/include]
1370   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1371   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1372   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1373   --infodir=DIR          info documentation [DATAROOTDIR/info]
1374   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1375   --mandir=DIR           man documentation [DATAROOTDIR/man]
1376   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1377   --htmldir=DIR          html documentation [DOCDIR]
1378   --dvidir=DIR           dvi documentation [DOCDIR]
1379   --pdfdir=DIR           pdf documentation [DOCDIR]
1380   --psdir=DIR            ps documentation [DOCDIR]
1381 _ACEOF
1382
1383   cat <<\_ACEOF
1384
1385 System types:
1386   --build=BUILD     configure for building on BUILD [guessed]
1387   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1388   --target=TARGET   configure for building compilers for TARGET [HOST]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393   case $ac_init_help in
1394      short | recursive ) echo "Configuration of llvm 2.9svn:";;
1395    esac
1396   cat <<\_ACEOF
1397
1398 Optional Features:
1399   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1400   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1401   --enable-polly          Use polly if available (default is YES)
1402   --enable-optimized      Compile with optimizations enabled (default is NO)
1403   --enable-profiling      Compile with profiling enabled (default is NO)
1404   --enable-assertions     Compile with assertion checks enabled (default is
1405                           YES)
1406   --enable-expensive-checks
1407                           Compile with expensive debug checks enabled (default
1408                           is NO)
1409   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1410                           NO)
1411   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1412                           optimization is on and YES if it's off)
1413   --enable-jit            Enable Just In Time Compiling (default is YES)
1414   --enable-doxygen        Build doxygen documentation (default is NO)
1415   --enable-threads        Use threads if available (default is YES)
1416   --enable-pic            Build LLVM with Position Independent Code (default
1417                           is YES)
1418   --enable-shared         Build a shared library and link tools against it
1419                           (default is NO)
1420   --enable-timestamps     Enable embedding timestamp information in build
1421                           (default is YES)
1422   --enable-targets        Build specific host targets: all or
1423                           target1,target2,... Valid targets are: host, x86,
1424                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1425                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1426                           (default=all)
1427   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1428                           %a (default is YES)
1429   --enable-bindings       Build specific language bindings:
1430                           all,auto,none,{binding-name} (default=auto)
1431   --enable-libffi         Check for the presence of libffi (default is NO)
1432   --enable-ltdl-install   install libltdl
1433
1434 Optional Packages:
1435   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1436   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1437   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1438                           searches PATH)
1439   --with-llvmgcc          Specify location of llvm-gcc driver (default
1440                           searches PATH)
1441   --with-llvmgxx          Specify location of llvm-g++ driver (default
1442                           searches PATH)
1443   --with-clang            Specify location of clang compiler (default is
1444                           --with-built-clang)
1445   --with-built-clang      Use the compiled Clang as the LLVM compiler
1446                           (default=check)
1447   --with-optimize-option  Select the compiler options to use for optimized
1448                           builds
1449   --with-extra-options    Specify additional options to compile LLVM with
1450   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1451                           is stdlib)
1452   --with-clang-resource-dir
1453                           Relative directory from the Clang binary for
1454                           resource files
1455   --with-c-include-dirs   Colon separated list of directories clang will
1456                           search for headers
1457   --with-cxx-include-root Directory with the libstdc++ headers.
1458   --with-cxx-include-arch Architecture of the libstdc++ headers.
1459   --with-cxx-include-32bit-dir
1460                           32 bit multilib dir.
1461   --with-cxx-include-64bit-dir
1462                           64 bit multilib directory.
1463   --with-binutils-include Specify path to binutils/include/ containing
1464                           plugin-api.h file for gold plugin.
1465   --with-tclinclude       directory where tcl headers are
1466   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1467                           clang, or none; default=check)
1468   --with-udis86=<path>    Use udis86 external x86 disassembler library
1469   --with-oprofile=<prefix>
1470                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1471
1472 Some influential environment variables:
1473   CC          C compiler command
1474   CFLAGS      C compiler flags
1475   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476               nonstandard directory <lib dir>
1477   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1478               you have headers in a nonstandard directory <include dir>
1479   CPP         C preprocessor
1480   CXX         C++ compiler command
1481   CXXFLAGS    C++ compiler flags
1482
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 Report bugs to <llvmbugs@cs.uiuc.edu>.
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if test "$ac_init_help" = "recursive"; then
1492   # If there are subdirs, report their specific --help.
1493   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494     test -d "$ac_dir" || continue
1495     ac_builddir=.
1496
1497 case "$ac_dir" in
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *)
1500   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1501   # A ".." for each directory in $ac_dir_suffix.
1502   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1503   case $ac_top_builddir_sub in
1504   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506   esac ;;
1507 esac
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1512
1513 case $srcdir in
1514   .)  # We are building in place.
1515     ac_srcdir=.
1516     ac_top_srcdir=$ac_top_builddir_sub
1517     ac_abs_top_srcdir=$ac_pwd ;;
1518   [\\/]* | ?:[\\/]* )  # Absolute name.
1519     ac_srcdir=$srcdir$ac_dir_suffix;
1520     ac_top_srcdir=$srcdir
1521     ac_abs_top_srcdir=$srcdir ;;
1522   *) # Relative name.
1523     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524     ac_top_srcdir=$ac_top_build_prefix$srcdir
1525     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 esac
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529     cd "$ac_dir" || { ac_status=$?; continue; }
1530     # Check for guested configure.
1531     if test -f "$ac_srcdir/configure.gnu"; then
1532       echo &&
1533       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534     elif test -f "$ac_srcdir/configure"; then
1535       echo &&
1536       $SHELL "$ac_srcdir/configure" --help=recursive
1537     else
1538       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539     fi || ac_status=$?
1540     cd "$ac_pwd" || { ac_status=$?; break; }
1541   done
1542 fi
1543
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1546   cat <<\_ACEOF
1547 llvm configure 2.9svn
1548 generated by GNU Autoconf 2.60
1549
1550 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1551 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1554
1555 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1556 _ACEOF
1557   exit
1558 fi
1559 cat >config.log <<_ACEOF
1560 This file contains any messages produced by compilers while
1561 running configure, to aid debugging if configure makes a mistake.
1562
1563 It was created by llvm $as_me 2.9svn, which was
1564 generated by GNU Autoconf 2.60.  Invocation command line was
1565
1566   $ $0 $@
1567
1568 _ACEOF
1569 exec 5>>config.log
1570 {
1571 cat <<_ASUNAME
1572 ## --------- ##
1573 ## Platform. ##
1574 ## --------- ##
1575
1576 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1577 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1578 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1579 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1580 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1581
1582 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1583 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1584
1585 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1586 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1587 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1588 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1589 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1590 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1591 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1592
1593 _ASUNAME
1594
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1597 do
1598   IFS=$as_save_IFS
1599   test -z "$as_dir" && as_dir=.
1600   echo "PATH: $as_dir"
1601 done
1602 IFS=$as_save_IFS
1603
1604 } >&5
1605
1606 cat >&5 <<_ACEOF
1607
1608
1609 ## ----------- ##
1610 ## Core tests. ##
1611 ## ----------- ##
1612
1613 _ACEOF
1614
1615
1616 # Keep a trace of the command line.
1617 # Strip out --no-create and --no-recursion so they do not pile up.
1618 # Strip out --silent because we don't want to record it for future runs.
1619 # Also quote any args containing shell meta-characters.
1620 # Make two passes to allow for proper duplicate-argument suppression.
1621 ac_configure_args=
1622 ac_configure_args0=
1623 ac_configure_args1=
1624 ac_must_keep_next=false
1625 for ac_pass in 1 2
1626 do
1627   for ac_arg
1628   do
1629     case $ac_arg in
1630     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1631     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1632     | -silent | --silent | --silen | --sile | --sil)
1633       continue ;;
1634     *\'*)
1635       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1636     esac
1637     case $ac_pass in
1638     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1639     2)
1640       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1641       if test $ac_must_keep_next = true; then
1642         ac_must_keep_next=false # Got value, back to normal.
1643       else
1644         case $ac_arg in
1645           *=* | --config-cache | -C | -disable-* | --disable-* \
1646           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1647           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1648           | -with-* | --with-* | -without-* | --without-* | --x)
1649             case "$ac_configure_args0 " in
1650               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1651             esac
1652             ;;
1653           -* ) ac_must_keep_next=true ;;
1654         esac
1655       fi
1656       ac_configure_args="$ac_configure_args '$ac_arg'"
1657       ;;
1658     esac
1659   done
1660 done
1661 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1662 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1663
1664 # When interrupted or exit'd, cleanup temporary files, and complete
1665 # config.log.  We remove comments because anyway the quotes in there
1666 # would cause problems or look ugly.
1667 # WARNING: Use '\'' to represent an apostrophe within the trap.
1668 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1669 trap 'exit_status=$?
1670   # Save into config.log some information that might help in debugging.
1671   {
1672     echo
1673
1674     cat <<\_ASBOX
1675 ## ---------------- ##
1676 ## Cache variables. ##
1677 ## ---------------- ##
1678 _ASBOX
1679     echo
1680     # The following way of writing the cache mishandles newlines in values,
1681 (
1682   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1683     eval ac_val=\$$ac_var
1684     case $ac_val in #(
1685     *${as_nl}*)
1686       case $ac_var in #(
1687       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1688 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1689       esac
1690       case $ac_var in #(
1691       _ | IFS | as_nl) ;; #(
1692       *) $as_unset $ac_var ;;
1693       esac ;;
1694     esac
1695   done
1696   (set) 2>&1 |
1697     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1698     *${as_nl}ac_space=\ *)
1699       sed -n \
1700         "s/'\''/'\''\\\\'\'''\''/g;
1701           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1702       ;; #(
1703     *)
1704       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1705       ;;
1706     esac |
1707     sort
1708 )
1709     echo
1710
1711     cat <<\_ASBOX
1712 ## ----------------- ##
1713 ## Output variables. ##
1714 ## ----------------- ##
1715 _ASBOX
1716     echo
1717     for ac_var in $ac_subst_vars
1718     do
1719       eval ac_val=\$$ac_var
1720       case $ac_val in
1721       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722       esac
1723       echo "$ac_var='\''$ac_val'\''"
1724     done | sort
1725     echo
1726
1727     if test -n "$ac_subst_files"; then
1728       cat <<\_ASBOX
1729 ## ------------------- ##
1730 ## File substitutions. ##
1731 ## ------------------- ##
1732 _ASBOX
1733       echo
1734       for ac_var in $ac_subst_files
1735       do
1736         eval ac_val=\$$ac_var
1737         case $ac_val in
1738         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739         esac
1740         echo "$ac_var='\''$ac_val'\''"
1741       done | sort
1742       echo
1743     fi
1744
1745     if test -s confdefs.h; then
1746       cat <<\_ASBOX
1747 ## ----------- ##
1748 ## confdefs.h. ##
1749 ## ----------- ##
1750 _ASBOX
1751       echo
1752       cat confdefs.h
1753       echo
1754     fi
1755     test "$ac_signal" != 0 &&
1756       echo "$as_me: caught signal $ac_signal"
1757     echo "$as_me: exit $exit_status"
1758   } >&5
1759   rm -f core *.core core.conftest.* &&
1760     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1761     exit $exit_status
1762 ' 0
1763 for ac_signal in 1 2 13 15; do
1764   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1765 done
1766 ac_signal=0
1767
1768 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1769 rm -f -r conftest* confdefs.h
1770
1771 # Predefined preprocessor variables.
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_NAME "$PACKAGE_NAME"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_STRING "$PACKAGE_STRING"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795 _ACEOF
1796
1797
1798 # Let the site file select an alternate cache file if it wants to.
1799 # Prefer explicitly selected file to automatically selected ones.
1800 if test -n "$CONFIG_SITE"; then
1801   set x "$CONFIG_SITE"
1802 elif test "x$prefix" != xNONE; then
1803   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1804 else
1805   set x "$ac_default_prefix/share/config.site" \
1806         "$ac_default_prefix/etc/config.site"
1807 fi
1808 shift
1809 for ac_site_file
1810 do
1811   if test -r "$ac_site_file"; then
1812     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1813 echo "$as_me: loading site script $ac_site_file" >&6;}
1814     sed 's/^/| /' "$ac_site_file" >&5
1815     . "$ac_site_file"
1816   fi
1817 done
1818
1819 if test -r "$cache_file"; then
1820   # Some versions of bash will fail to source /dev/null (special
1821   # files actually), so we avoid doing that.
1822   if test -f "$cache_file"; then
1823     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1824 echo "$as_me: loading cache $cache_file" >&6;}
1825     case $cache_file in
1826       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1827       *)                      . "./$cache_file";;
1828     esac
1829   fi
1830 else
1831   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1832 echo "$as_me: creating cache $cache_file" >&6;}
1833   >$cache_file
1834 fi
1835
1836 # Check that the precious variables saved in the cache have kept the same
1837 # value.
1838 ac_cache_corrupted=false
1839 for ac_var in $ac_precious_vars; do
1840   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1841   eval ac_new_set=\$ac_env_${ac_var}_set
1842   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1843   eval ac_new_val=\$ac_env_${ac_var}_value
1844   case $ac_old_set,$ac_new_set in
1845     set,)
1846       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1847 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1848       ac_cache_corrupted=: ;;
1849     ,set)
1850       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1851 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1852       ac_cache_corrupted=: ;;
1853     ,);;
1854     *)
1855       if test "x$ac_old_val" != "x$ac_new_val"; then
1856         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1857 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1858         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1859 echo "$as_me:   former value:  $ac_old_val" >&2;}
1860         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1861 echo "$as_me:   current value: $ac_new_val" >&2;}
1862         ac_cache_corrupted=:
1863       fi;;
1864   esac
1865   # Pass precious variables to config.status.
1866   if test "$ac_new_set" = set; then
1867     case $ac_new_val in
1868     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1869     *) ac_arg=$ac_var=$ac_new_val ;;
1870     esac
1871     case " $ac_configure_args " in
1872       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1873       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1874     esac
1875   fi
1876 done
1877 if $ac_cache_corrupted; then
1878   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1879 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1880   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1881 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1882    { (exit 1); exit 1; }; }
1883 fi
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909 ac_ext=c
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914
1915
1916
1917 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1918
1919
1920
1921
1922
1923
1924
1925 ac_aux_dir=
1926 for ac_dir in autoconf "$srcdir"/autoconf; do
1927   if test -f "$ac_dir/install-sh"; then
1928     ac_aux_dir=$ac_dir
1929     ac_install_sh="$ac_aux_dir/install-sh -c"
1930     break
1931   elif test -f "$ac_dir/install.sh"; then
1932     ac_aux_dir=$ac_dir
1933     ac_install_sh="$ac_aux_dir/install.sh -c"
1934     break
1935   elif test -f "$ac_dir/shtool"; then
1936     ac_aux_dir=$ac_dir
1937     ac_install_sh="$ac_aux_dir/shtool install -c"
1938     break
1939   fi
1940 done
1941 if test -z "$ac_aux_dir"; then
1942   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1943 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1944    { (exit 1); exit 1; }; }
1945 fi
1946
1947 # These three variables are undocumented and unsupported,
1948 # and are intended to be withdrawn in a future Autoconf release.
1949 # They can cause serious problems if a builder's source tree is in a directory
1950 # whose full name contains unusual characters.
1951 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1952 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1953 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1954
1955
1956
1957 if test ${srcdir} != "." ; then
1958   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1959     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1960 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1961    { (exit 1); exit 1; }; }
1962   fi
1963 fi
1964
1965
1966
1967 if test -d ${srcdir}/projects/llvm-gcc ; then
1968   subdirs="$subdirs projects/llvm-gcc"
1969
1970 fi
1971
1972 if test -d ${srcdir}/projects/test-suite ; then
1973   subdirs="$subdirs projects/test-suite"
1974
1975 fi
1976
1977 if test -d ${srcdir}/projects/llvm-test ; then
1978   subdirs="$subdirs projects/llvm-test"
1979
1980 fi
1981
1982 if test -d ${srcdir}/projects/poolalloc ; then
1983   subdirs="$subdirs projects/poolalloc"
1984
1985 fi
1986
1987 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1988   subdirs="$subdirs projects/llvm-poolalloc"
1989
1990 fi
1991
1992 for i in `ls ${srcdir}/projects`
1993 do
1994   if test -d ${srcdir}/projects/${i} ; then
1995     case ${i} in
1996       sample)       subdirs="$subdirs projects/sample"
1997     ;;
1998       privbracket)  subdirs="$subdirs projects/privbracket"
1999  ;;
2000       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2001  ;;
2002       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2003 ;;
2004       llvm-java)    subdirs="$subdirs projects/llvm-java"
2005  ;;
2006       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2007    ;;
2008       safecode)     subdirs="$subdirs projects/safecode"
2009  ;;
2010       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2011  ;;
2012       llvm-gcc)       ;;
2013       test-suite)     ;;
2014       llvm-test)      ;;
2015       poolalloc)      ;;
2016       llvm-poolalloc) ;;
2017       *)
2018         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2019 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2020         ;;
2021     esac
2022   fi
2023 done
2024
2025 # Check whether --enable-polly was given.
2026 if test "${enable_polly+set}" = set; then
2027   enableval=$enable_polly;
2028 else
2029   enableval=default
2030 fi
2031
2032 case "$enableval" in
2033   yes) ENABLE_POLLY=1
2034  ;;
2035   no)  ENABLE_POLLY=0
2036  ;;
2037   default) ENABLE_POLLY=1
2038  ;;
2039   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2040 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2041    { (exit 1); exit 1; }; } ;;
2042 esac
2043
2044
2045 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2046   LLVM_HAS_POLLY=1
2047
2048   subdirs="$subdirs tools/polly"
2049
2050 fi
2051
2052
2053 # Make sure we can run config.sub.
2054 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2055   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2056 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2057    { (exit 1); exit 1; }; }
2058
2059 { echo "$as_me:$LINENO: checking build system type" >&5
2060 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2061 if test "${ac_cv_build+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   ac_build_alias=$build_alias
2065 test "x$ac_build_alias" = x &&
2066   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2067 test "x$ac_build_alias" = x &&
2068   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2069 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2070    { (exit 1); exit 1; }; }
2071 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2072   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2074    { (exit 1); exit 1; }; }
2075
2076 fi
2077 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2078 echo "${ECHO_T}$ac_cv_build" >&6; }
2079 case $ac_cv_build in
2080 *-*-*) ;;
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2082 echo "$as_me: error: invalid value of canonical build" >&2;}
2083    { (exit 1); exit 1; }; };;
2084 esac
2085 build=$ac_cv_build
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_build
2088 shift
2089 build_cpu=$1
2090 build_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 build_os=$*
2095 IFS=$ac_save_IFS
2096 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2097
2098
2099 { echo "$as_me:$LINENO: checking host system type" >&5
2100 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_host+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   if test "x$host_alias" = x; then
2105   ac_cv_host=$ac_cv_build
2106 else
2107   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2108     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2110    { (exit 1); exit 1; }; }
2111 fi
2112
2113 fi
2114 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2115 echo "${ECHO_T}$ac_cv_host" >&6; }
2116 case $ac_cv_host in
2117 *-*-*) ;;
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2119 echo "$as_me: error: invalid value of canonical host" >&2;}
2120    { (exit 1); exit 1; }; };;
2121 esac
2122 host=$ac_cv_host
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_host
2125 shift
2126 host_cpu=$1
2127 host_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 host_os=$*
2132 IFS=$ac_save_IFS
2133 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2134
2135
2136 { echo "$as_me:$LINENO: checking target system type" >&5
2137 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2138 if test "${ac_cv_target+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   if test "x$target_alias" = x; then
2142   ac_cv_target=$ac_cv_host
2143 else
2144   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2145     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2147    { (exit 1); exit 1; }; }
2148 fi
2149
2150 fi
2151 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2152 echo "${ECHO_T}$ac_cv_target" >&6; }
2153 case $ac_cv_target in
2154 *-*-*) ;;
2155 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2156 echo "$as_me: error: invalid value of canonical target" >&2;}
2157    { (exit 1); exit 1; }; };;
2158 esac
2159 target=$ac_cv_target
2160 ac_save_IFS=$IFS; IFS='-'
2161 set x $ac_cv_target
2162 shift
2163 target_cpu=$1
2164 target_vendor=$2
2165 shift; shift
2166 # Remember, the first character of IFS is used to create $*,
2167 # except with old shells:
2168 target_os=$*
2169 IFS=$ac_save_IFS
2170 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2171
2172
2173 # The aliases save the names the user supplied, while $host etc.
2174 # will get canonicalized.
2175 test -n "$target_alias" &&
2176   test "$program_prefix$program_suffix$program_transform_name" = \
2177     NONENONEs,x,x, &&
2178   program_prefix=${target_alias}-
2179
2180 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2181 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2182 if test "${llvm_cv_os_type+set}" = set; then
2183   echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185   case $host in
2186   *-*-aix*)
2187     llvm_cv_link_all_option="-Wl,--whole-archive"
2188     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2189     llvm_cv_os_type="AIX"
2190     llvm_cv_platform_type="Unix" ;;
2191   *-*-irix*)
2192     llvm_cv_link_all_option="-Wl,--whole-archive"
2193     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2194     llvm_cv_os_type="IRIX"
2195     llvm_cv_platform_type="Unix" ;;
2196   *-*-cygwin*)
2197     llvm_cv_link_all_option="-Wl,--whole-archive"
2198     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2199     llvm_cv_os_type="Cygwin"
2200     llvm_cv_platform_type="Unix" ;;
2201   *-*-darwin*)
2202     llvm_cv_link_all_option="-Wl,-all_load"
2203     llvm_cv_no_link_all_option="-Wl,-noall_load"
2204     llvm_cv_os_type="Darwin"
2205     llvm_cv_platform_type="Unix" ;;
2206   *-*-minix*)
2207     llvm_cv_link_all_option="-Wl,-all_load"
2208     llvm_cv_no_link_all_option="-Wl,-noall_load"
2209     llvm_cv_os_type="Minix"
2210     llvm_cv_platform_type="Unix" ;;
2211   *-*-freebsd*)
2212     llvm_cv_link_all_option="-Wl,--whole-archive"
2213     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2214     llvm_cv_os_type="FreeBSD"
2215     llvm_cv_platform_type="Unix" ;;
2216   *-*-openbsd*)
2217     llvm_cv_link_all_option="-Wl,--whole-archive"
2218     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2219     llvm_cv_os_type="OpenBSD"
2220     llvm_cv_platform_type="Unix" ;;
2221   *-*-netbsd*)
2222     llvm_cv_link_all_option="-Wl,--whole-archive"
2223     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2224     llvm_cv_os_type="NetBSD"
2225     llvm_cv_platform_type="Unix" ;;
2226   *-*-dragonfly*)
2227     llvm_cv_link_all_option="-Wl,--whole-archive"
2228     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2229     llvm_cv_os_type="DragonFly"
2230     llvm_cv_platform_type="Unix" ;;
2231   *-*-hpux*)
2232     llvm_cv_link_all_option="-Wl,--whole-archive"
2233     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2234     llvm_cv_os_type="HP-UX"
2235     llvm_cv_platform_type="Unix" ;;
2236   *-*-interix*)
2237     llvm_cv_link_all_option="-Wl,--whole-archive"
2238     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2239     llvm_cv_os_type="Interix"
2240     llvm_cv_platform_type="Unix" ;;
2241   *-*-linux*)
2242     llvm_cv_link_all_option="-Wl,--whole-archive"
2243     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244     llvm_cv_os_type="Linux"
2245     llvm_cv_platform_type="Unix" ;;
2246   *-*-solaris*)
2247     llvm_cv_link_all_option="-Wl,-z,allextract"
2248     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2249     llvm_cv_os_type="SunOS"
2250     llvm_cv_platform_type="Unix" ;;
2251   *-*-auroraux*)
2252     llvm_cv_link_all_option="-Wl,-z,allextract"
2253     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2254     llvm_cv_os_type="AuroraUX"
2255     llvm_cv_platform_type="Unix" ;;
2256   *-*-win32*)
2257     llvm_cv_link_all_option="-Wl,--whole-archive"
2258     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259     llvm_cv_os_type="Win32"
2260     llvm_cv_platform_type="Win32" ;;
2261   *-*-mingw*)
2262     llvm_cv_link_all_option="-Wl,--whole-archive"
2263     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264     llvm_cv_os_type="MingW"
2265     llvm_cv_platform_type="Win32" ;;
2266   *-*-haiku*)
2267     llvm_cv_link_all_option="-Wl,--whole-archive"
2268     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269     llvm_cv_os_type="Haiku"
2270     llvm_cv_platform_type="Unix" ;;
2271   *-unknown-eabi*)
2272     llvm_cv_link_all_option="-Wl,--whole-archive"
2273     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274     llvm_cv_os_type="Freestanding"
2275     llvm_cv_platform_type="Unix" ;;
2276   *-unknown-elf*)
2277     llvm_cv_link_all_option="-Wl,--whole-archive"
2278     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279     llvm_cv_os_type="Freestanding"
2280     llvm_cv_platform_type="Unix" ;;
2281   *)
2282     llvm_cv_link_all_option=""
2283     llvm_cv_no_link_all_option=""
2284     llvm_cv_os_type="Unknown"
2285     llvm_cv_platform_type="Unknown" ;;
2286 esac
2287 fi
2288 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2289 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2290
2291 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2292 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2293 if test "${llvm_cv_target_os_type+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   case $target in
2297   *-*-aix*)
2298     llvm_cv_target_os_type="AIX" ;;
2299   *-*-irix*)
2300     llvm_cv_target_os_type="IRIX" ;;
2301   *-*-cygwin*)
2302     llvm_cv_target_os_type="Cygwin" ;;
2303   *-*-darwin*)
2304     llvm_cv_target_os_type="Darwin" ;;
2305   *-*-minix*)
2306     llvm_cv_target_os_type="Minix" ;;
2307   *-*-freebsd*)
2308     llvm_cv_target_os_type="FreeBSD" ;;
2309   *-*-openbsd*)
2310     llvm_cv_target_os_type="OpenBSD" ;;
2311   *-*-netbsd*)
2312     llvm_cv_target_os_type="NetBSD" ;;
2313   *-*-dragonfly*)
2314     llvm_cv_target_os_type="DragonFly" ;;
2315   *-*-hpux*)
2316     llvm_cv_target_os_type="HP-UX" ;;
2317   *-*-interix*)
2318     llvm_cv_target_os_type="Interix" ;;
2319   *-*-linux*)
2320     llvm_cv_target_os_type="Linux" ;;
2321   *-*-solaris*)
2322     llvm_cv_target_os_type="SunOS" ;;
2323   *-*-auroraux*)
2324     llvm_cv_target_os_type="AuroraUX" ;;
2325   *-*-win32*)
2326     llvm_cv_target_os_type="Win32" ;;
2327   *-*-mingw*)
2328     llvm_cv_target_os_type="MingW" ;;
2329   *-*-haiku*)
2330     llvm_cv_target_os_type="Haiku" ;;
2331   *-unknown-eabi*)
2332     llvm_cv_target_os_type="Freestanding" ;;
2333   *)
2334     llvm_cv_target_os_type="Unknown" ;;
2335 esac
2336 fi
2337 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2338 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2339
2340 if test "$llvm_cv_os_type" = "Unknown" ; then
2341   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2342 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2343    { (exit 1); exit 1; }; }
2344 fi
2345
2346 OS=$llvm_cv_os_type
2347
2348 HOST_OS=$llvm_cv_os_type
2349
2350 TARGET_OS=$llvm_cv_target_os_type
2351
2352
2353 LINKALL=$llvm_cv_link_all_option
2354
2355 NOLINKALL=$llvm_cv_no_link_all_option
2356
2357
2358 case $llvm_cv_platform_type in
2359   Unix)
2360
2361 cat >>confdefs.h <<\_ACEOF
2362 #define LLVM_ON_UNIX 1
2363 _ACEOF
2364
2365     LLVM_ON_UNIX=1
2366
2367     LLVM_ON_WIN32=0
2368
2369     ;;
2370   Win32)
2371
2372 cat >>confdefs.h <<\_ACEOF
2373 #define LLVM_ON_WIN32 1
2374 _ACEOF
2375
2376     LLVM_ON_UNIX=0
2377
2378     LLVM_ON_WIN32=1
2379
2380     ;;
2381 esac
2382
2383 { echo "$as_me:$LINENO: checking target architecture" >&5
2384 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2385 if test "${llvm_cv_target_arch+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   case $target in
2389   i?86-*)                 llvm_cv_target_arch="x86" ;;
2390   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2391   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2392   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2393   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2394   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2395   mips-*)                 llvm_cv_target_arch="Mips" ;;
2396   xcore-*)                llvm_cv_target_arch="XCore" ;;
2397   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2398   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2399   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2400   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2401   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2402   *)                      llvm_cv_target_arch="Unknown" ;;
2403 esac
2404 fi
2405 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2406 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2407
2408 if test "$llvm_cv_target_arch" = "Unknown" ; then
2409   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2410 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2411 fi
2412
2413 # Determine the LLVM native architecture for the target
2414 case "$llvm_cv_target_arch" in
2415     x86)     LLVM_NATIVE_ARCH="X86" ;;
2416     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2417     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2418 esac
2419
2420 ARCH=$llvm_cv_target_arch
2421
2422
2423 ac_ext=c
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428 if test -n "$ac_tool_prefix"; then
2429   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2430 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434   echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436   if test -n "$CC"; then
2437   ac_cv_prog_CC="$CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442   IFS=$as_save_IFS
2443   test -z "$as_dir" && as_dir=.
2444   for ac_exec_ext in '' $ac_executable_extensions; do
2445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2446     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448     break 2
2449   fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458   { echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6; }
2460 else
2461   { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2463 fi
2464
2465
2466 fi
2467 if test -z "$ac_cv_prog_CC"; then
2468   ac_ct_CC=$CC
2469   # Extract the first word of "gcc", so it can be a program name with args.
2470 set dummy gcc; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474   echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476   if test -n "$ac_ct_CC"; then
2477   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482   IFS=$as_save_IFS
2483   test -z "$as_dir" && as_dir=.
2484   for ac_exec_ext in '' $ac_executable_extensions; do
2485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2486     ac_cv_prog_ac_ct_CC="gcc"
2487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488     break 2
2489   fi
2490 done
2491 done
2492 IFS=$as_save_IFS
2493
2494 fi
2495 fi
2496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497 if test -n "$ac_ct_CC"; then
2498   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499 echo "${ECHO_T}$ac_ct_CC" >&6; }
2500 else
2501   { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2503 fi
2504
2505   if test "x$ac_ct_CC" = x; then
2506     CC=""
2507   else
2508     case $cross_compiling:$ac_tool_warned in
2509 yes:)
2510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511 whose name does not start with the host triplet.  If you think this
2512 configuration is useful to you, please write to autoconf@gnu.org." >&5
2513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet.  If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2516 ac_tool_warned=yes ;;
2517 esac
2518     CC=$ac_ct_CC
2519   fi
2520 else
2521   CC="$ac_cv_prog_CC"
2522 fi
2523
2524 if test -z "$CC"; then
2525           if test -n "$ac_tool_prefix"; then
2526     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}cc; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   if test -n "$CC"; then
2534   ac_cv_prog_CC="$CC" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541   for ac_exec_ext in '' $ac_executable_extensions; do
2542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2543     ac_cv_prog_CC="${ac_tool_prefix}cc"
2544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545     break 2
2546   fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 CC=$ac_cv_prog_CC
2554 if test -n "$CC"; then
2555   { echo "$as_me:$LINENO: result: $CC" >&5
2556 echo "${ECHO_T}$CC" >&6; }
2557 else
2558   { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2560 fi
2561
2562
2563   fi
2564 fi
2565 if test -z "$CC"; then
2566   # Extract the first word of "cc", so it can be a program name with args.
2567 set dummy cc; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   if test -n "$CC"; then
2574   ac_cv_prog_CC="$CC" # Let the user override the test.
2575 else
2576   ac_prog_rejected=no
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582   for ac_exec_ext in '' $ac_executable_extensions; do
2583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2584     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2585        ac_prog_rejected=yes
2586        continue
2587      fi
2588     ac_cv_prog_CC="cc"
2589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590     break 2
2591   fi
2592 done
2593 done
2594 IFS=$as_save_IFS
2595
2596 if test $ac_prog_rejected = yes; then
2597   # We found a bogon in the path, so make sure we never use it.
2598   set dummy $ac_cv_prog_CC
2599   shift
2600   if test $# != 0; then
2601     # We chose a different compiler from the bogus one.
2602     # However, it has the same basename, so the bogon will be chosen
2603     # first if we set CC to just the basename; use the full file name.
2604     shift
2605     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2606   fi
2607 fi
2608 fi
2609 fi
2610 CC=$ac_cv_prog_CC
2611 if test -n "$CC"; then
2612   { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2614 else
2615   { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619
2620 fi
2621 if test -z "$CC"; then
2622   if test -n "$ac_tool_prefix"; then
2623   for ac_prog in cl.exe
2624   do
2625     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630   echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632   if test -n "$CC"; then
2633   ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
2639   test -z "$as_dir" && as_dir=.
2640   for ac_exec_ext in '' $ac_executable_extensions; do
2641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2642     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654   { echo "$as_me:$LINENO: result: $CC" >&5
2655 echo "${ECHO_T}$CC" >&6; }
2656 else
2657   { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2659 fi
2660
2661
2662     test -n "$CC" && break
2663   done
2664 fi
2665 if test -z "$CC"; then
2666   ac_ct_CC=$CC
2667   for ac_prog in cl.exe
2668 do
2669   # Extract the first word of "$ac_prog", so it can be a program name with args.
2670 set dummy $ac_prog; ac_word=$2
2671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   if test -n "$ac_ct_CC"; then
2677   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684   for ac_exec_ext in '' $ac_executable_extensions; do
2685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2686     ac_cv_prog_ac_ct_CC="$ac_prog"
2687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688     break 2
2689   fi
2690 done
2691 done
2692 IFS=$as_save_IFS
2693
2694 fi
2695 fi
2696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697 if test -n "$ac_ct_CC"; then
2698   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2699 echo "${ECHO_T}$ac_ct_CC" >&6; }
2700 else
2701   { echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6; }
2703 fi
2704
2705
2706   test -n "$ac_ct_CC" && break
2707 done
2708
2709   if test "x$ac_ct_CC" = x; then
2710     CC=""
2711   else
2712     case $cross_compiling:$ac_tool_warned in
2713 yes:)
2714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2715 whose name does not start with the host triplet.  If you think this
2716 configuration is useful to you, please write to autoconf@gnu.org." >&5
2717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2718 whose name does not start with the host triplet.  If you think this
2719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2720 ac_tool_warned=yes ;;
2721 esac
2722     CC=$ac_ct_CC
2723   fi
2724 fi
2725
2726 fi
2727
2728
2729 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: no acceptable C compiler found in \$PATH
2732 See \`config.log' for more details." >&2;}
2733    { (exit 1); exit 1; }; }
2734
2735 # Provide some information about the compiler.
2736 echo "$as_me:$LINENO: checking for C compiler version" >&5
2737 ac_compiler=`set X $ac_compile; echo $2`
2738 { (ac_try="$ac_compiler --version >&5"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_compiler --version >&5") 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }
2748 { (ac_try="$ac_compiler -v >&5"
2749 case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_compiler -v >&5") 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }
2758 { (ac_try="$ac_compiler -V >&5"
2759 case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764   (eval "$ac_compiler -V >&5") 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }
2768
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775
2776 int
2777 main ()
2778 {
2779
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 ac_clean_files_save=$ac_clean_files
2785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2786 # Try to create an executable without -o first, disregard a.out.
2787 # It will help us diagnose broken compilers, and finding out an intuition
2788 # of exeext.
2789 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792 #
2793 # List of possible output files, starting from the most likely.
2794 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2795 # only as a last resort.  b.out is created by i960 compilers.
2796 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2797 #
2798 # The IRIX 6 linker writes into existing files which may not be
2799 # executable, retaining their permissions.  Remove them first so a
2800 # subsequent execution test works.
2801 ac_rmfiles=
2802 for ac_file in $ac_files
2803 do
2804   case $ac_file in
2805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2806     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2807   esac
2808 done
2809 rm -f $ac_rmfiles
2810
2811 if { (ac_try="$ac_link_default"
2812 case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_link_default") 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }; then
2821   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2823 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2824 # so that the user can short-circuit this test for compilers unknown to
2825 # Autoconf.
2826 for ac_file in $ac_files
2827 do
2828   test -f "$ac_file" || continue
2829   case $ac_file in
2830     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2831         ;;
2832     [ab].out )
2833         # We found the default executable, but exeext='' is most
2834         # certainly right.
2835         break;;
2836     *.* )
2837         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2838         then :; else
2839            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840         fi
2841         # We set ac_cv_exeext here because the later test for it is not
2842         # safe: cross compilers may not add the suffix if given an `-o'
2843         # argument, so we may need to know it at that point already.
2844         # Even if this section looks crufty: it has the advantage of
2845         # actually working.
2846         break;;
2847     * )
2848         break;;
2849   esac
2850 done
2851 test "$ac_cv_exeext" = no && ac_cv_exeext=
2852
2853 else
2854   echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&2;}
2861    { (exit 77); exit 77; }; }
2862 fi
2863
2864 ac_exeext=$ac_cv_exeext
2865 { echo "$as_me:$LINENO: result: $ac_file" >&5
2866 echo "${ECHO_T}$ac_file" >&6; }
2867
2868 # Check that the compiler produces executables we can run.  If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2873 # If not cross compiling, check that we can run a simple program.
2874 if test "$cross_compiling" != yes; then
2875   if { ac_try='./$ac_file'
2876   { (case "(($ac_try" in
2877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878   *) ac_try_echo=$ac_try;;
2879 esac
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881   (eval "$ac_try") 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }; }; then
2885     cross_compiling=no
2886   else
2887     if test "$cross_compiling" = maybe; then
2888         cross_compiling=yes
2889     else
2890         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2891 If you meant to cross compile, use \`--host'.
2892 See \`config.log' for more details." >&5
2893 echo "$as_me: error: cannot run C compiled programs.
2894 If you meant to cross compile, use \`--host'.
2895 See \`config.log' for more details." >&2;}
2896    { (exit 1); exit 1; }; }
2897     fi
2898   fi
2899 fi
2900 { echo "$as_me:$LINENO: result: yes" >&5
2901 echo "${ECHO_T}yes" >&6; }
2902
2903 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2904 ac_clean_files=$ac_clean_files_save
2905 # Check that the compiler produces executables we can run.  If not, either
2906 # the compiler is broken, or we cross compile.
2907 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2908 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2909 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2910 echo "${ECHO_T}$cross_compiling" >&6; }
2911
2912 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2913 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2914 if { (ac_try="$ac_link"
2915 case "(($ac_try" in
2916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917   *) ac_try_echo=$ac_try;;
2918 esac
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920   (eval "$ac_link") 2>&5
2921   ac_status=$?
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); }; then
2924   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2925 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2926 # work properly (i.e., refer to `conftest.exe'), while it won't with
2927 # `rm'.
2928 for ac_file in conftest.exe conftest conftest.*; do
2929   test -f "$ac_file" || continue
2930   case $ac_file in
2931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2932     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933           break;;
2934     * ) break;;
2935   esac
2936 done
2937 else
2938   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2939 See \`config.log' for more details." >&5
2940 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2941 See \`config.log' for more details." >&2;}
2942    { (exit 1); exit 1; }; }
2943 fi
2944
2945 rm -f conftest$ac_cv_exeext
2946 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2947 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2948
2949 rm -f conftest.$ac_ext
2950 EXEEXT=$ac_cv_exeext
2951 ac_exeext=$EXEEXT
2952 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2953 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2954 if test "${ac_cv_objext+set}" = set; then
2955   echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957   cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h.  */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h.  */
2963
2964 int
2965 main ()
2966 {
2967
2968   ;
2969   return 0;
2970 }
2971 _ACEOF
2972 rm -f conftest.o conftest.obj
2973 if { (ac_try="$ac_compile"
2974 case "(($ac_try" in
2975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976   *) ac_try_echo=$ac_try;;
2977 esac
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979   (eval "$ac_compile") 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; then
2983   for ac_file in conftest.o conftest.obj conftest.*; do
2984   test -f "$ac_file" || continue;
2985   case $ac_file in
2986     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2987     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2988        break;;
2989   esac
2990 done
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2996 See \`config.log' for more details." >&5
2997 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2998 See \`config.log' for more details." >&2;}
2999    { (exit 1); exit 1; }; }
3000 fi
3001
3002 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3003 fi
3004 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3005 echo "${ECHO_T}$ac_cv_objext" >&6; }
3006 OBJEXT=$ac_cv_objext
3007 ac_objext=$OBJEXT
3008 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3010 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013   cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019
3020 int
3021 main ()
3022 {
3023 #ifndef __GNUC__
3024        choke me
3025 #endif
3026
3027   ;
3028   return 0;
3029 }
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (ac_try="$ac_compile"
3033 case "(($ac_try" in
3034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035   *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038   (eval "$ac_compile") 2>conftest.er1
3039   ac_status=$?
3040   grep -v '^ *+' conftest.er1 >conftest.err
3041   rm -f conftest.er1
3042   cat conftest.err >&5
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); } &&
3045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3046   { (case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_try") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; } &&
3055          { ac_try='test -s conftest.$ac_objext'
3056   { (case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_try") 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; }; then
3065   ac_compiler_gnu=yes
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070         ac_compiler_gnu=no
3071 fi
3072
3073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3075
3076 fi
3077 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3078 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3079 GCC=`test $ac_compiler_gnu = yes && echo yes`
3080 ac_test_CFLAGS=${CFLAGS+set}
3081 ac_save_CFLAGS=$CFLAGS
3082 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3083 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3084 if test "${ac_cv_prog_cc_g+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   ac_save_c_werror_flag=$ac_c_werror_flag
3088    ac_c_werror_flag=yes
3089    ac_cv_prog_cc_g=no
3090    CFLAGS="-g"
3091    cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h.  */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h.  */
3097
3098 int
3099 main ()
3100 {
3101
3102   ;
3103   return 0;
3104 }
3105 _ACEOF
3106 rm -f conftest.$ac_objext
3107 if { (ac_try="$ac_compile"
3108 case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113   (eval "$ac_compile") 2>conftest.er1
3114   ac_status=$?
3115   grep -v '^ *+' conftest.er1 >conftest.err
3116   rm -f conftest.er1
3117   cat conftest.err >&5
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); } &&
3120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3121   { (case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_try") 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; } &&
3130          { ac_try='test -s conftest.$ac_objext'
3131   { (case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_try") 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; }; then
3140   ac_cv_prog_cc_g=yes
3141 else
3142   echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3144
3145         CFLAGS=""
3146       cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156
3157   ;
3158   return 0;
3159 }
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3163 case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_compile") 2>conftest.er1
3169   ac_status=$?
3170   grep -v '^ *+' conftest.er1 >conftest.err
3171   rm -f conftest.er1
3172   cat conftest.err >&5
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } &&
3175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3176   { (case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_try") 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }; } &&
3185          { ac_try='test -s conftest.$ac_objext'
3186   { (case "(($ac_try" in
3187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188   *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191   (eval "$ac_try") 2>&5
3192   ac_status=$?
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); }; }; then
3195   :
3196 else
3197   echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200         ac_c_werror_flag=$ac_save_c_werror_flag
3201          CFLAGS="-g"
3202          cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h.  */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h.  */
3208
3209 int
3210 main ()
3211 {
3212
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224   (eval "$ac_compile") 2>conftest.er1
3225   ac_status=$?
3226   grep -v '^ *+' conftest.er1 >conftest.err
3227   rm -f conftest.er1
3228   cat conftest.err >&5
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); } &&
3231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3232   { (case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237   (eval "$ac_try") 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; } &&
3241          { ac_try='test -s conftest.$ac_objext'
3242   { (case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247   (eval "$ac_try") 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }; }; then
3251   ac_cv_prog_cc_g=yes
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256
3257 fi
3258
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 fi
3261
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 fi
3264
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266    ac_c_werror_flag=$ac_save_c_werror_flag
3267 fi
3268 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3270 if test "$ac_test_CFLAGS" = set; then
3271   CFLAGS=$ac_save_CFLAGS
3272 elif test $ac_cv_prog_cc_g = yes; then
3273   if test "$GCC" = yes; then
3274     CFLAGS="-g -O2"
3275   else
3276     CFLAGS="-g"
3277   fi
3278 else
3279   if test "$GCC" = yes; then
3280     CFLAGS="-O2"
3281   else
3282     CFLAGS=
3283   fi
3284 fi
3285 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3286 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3287 if test "${ac_cv_prog_cc_c89+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290   ac_cv_prog_cc_c89=no
3291 ac_save_CC=$CC
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 #include <stdarg.h>
3299 #include <stdio.h>
3300 #include <sys/types.h>
3301 #include <sys/stat.h>
3302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3303 struct buf { int x; };
3304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3305 static char *e (p, i)
3306      char **p;
3307      int i;
3308 {
3309   return p[i];
3310 }
3311 static char *f (char * (*g) (char **, int), char **p, ...)
3312 {
3313   char *s;
3314   va_list v;
3315   va_start (v,p);
3316   s = g (p, va_arg (v,int));
3317   va_end (v);
3318   return s;
3319 }
3320
3321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3322    function prototypes and stuff, but not '\xHH' hex character constants.
3323    These don't provoke an error unfortunately, instead are silently treated
3324    as 'x'.  The following induces an error, until -std is added to get
3325    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3326    array size at least.  It's necessary to write '\x00'==0 to get something
3327    that's true only with -std.  */
3328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3329
3330 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3331    inside strings and character constants.  */
3332 #define FOO(x) 'x'
3333 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3334
3335 int test (int i, double x);
3336 struct s1 {int (*f) (int a);};
3337 struct s2 {int (*f) (double a);};
3338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339 int argc;
3340 char **argv;
3341 int
3342 main ()
3343 {
3344 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3350         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351 do
3352   CC="$ac_save_CC $ac_arg"
3353   rm -f conftest.$ac_objext
3354 if { (ac_try="$ac_compile"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360   (eval "$ac_compile") 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } &&
3367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3368   { (case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373   (eval "$ac_try") 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); }; } &&
3377          { ac_try='test -s conftest.$ac_objext'
3378   { (case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383   (eval "$ac_try") 2>&5
3384   ac_status=$?
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); }; }; then
3387   ac_cv_prog_cc_c89=$ac_arg
3388 else
3389   echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392
3393 fi
3394
3395 rm -f core conftest.err conftest.$ac_objext
3396   test "x$ac_cv_prog_cc_c89" != "xno" && break
3397 done
3398 rm -f conftest.$ac_ext
3399 CC=$ac_save_CC
3400
3401 fi
3402 # AC_CACHE_VAL
3403 case "x$ac_cv_prog_cc_c89" in
3404   x)
3405     { echo "$as_me:$LINENO: result: none needed" >&5
3406 echo "${ECHO_T}none needed" >&6; } ;;
3407   xno)
3408     { echo "$as_me:$LINENO: result: unsupported" >&5
3409 echo "${ECHO_T}unsupported" >&6; } ;;
3410   *)
3411     CC="$CC $ac_cv_prog_cc_c89"
3412     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3413 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3414 esac
3415
3416
3417 ac_ext=c
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
3423
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3430 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3431 # On Suns, sometimes $CPP names a directory.
3432 if test -n "$CPP" && test -d "$CPP"; then
3433   CPP=
3434 fi
3435 if test -z "$CPP"; then
3436   if test "${ac_cv_prog_CPP+set}" = set; then
3437   echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439       # Double quotes because CPP needs to be expanded
3440     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3441     do
3442       ac_preproc_ok=false
3443 for ac_c_preproc_warn_flag in '' yes
3444 do
3445   # Use a header file that comes with gcc, so configuring glibc
3446   # with a fresh cross-compiler works.
3447   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3448   # <limits.h> exists even on freestanding compilers.
3449   # On the NeXT, cc -E runs the code through the compiler's parser,
3450   # not just through cpp. "Syntax error" is here to catch this case.
3451   cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h.  */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h.  */
3457 #ifdef __STDC__
3458 # include <limits.h>
3459 #else
3460 # include <assert.h>
3461 #endif
3462                      Syntax error
3463 _ACEOF
3464 if { (ac_try="$ac_cpp conftest.$ac_ext"
3465 case "(($ac_try" in
3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467   *) ac_try_echo=$ac_try;;
3468 esac
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471   ac_status=$?
3472   grep -v '^ *+' conftest.er1 >conftest.err
3473   rm -f conftest.er1
3474   cat conftest.err >&5
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); } >/dev/null; then
3477   if test -s conftest.err; then
3478     ac_cpp_err=$ac_c_preproc_warn_flag
3479     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3480   else
3481     ac_cpp_err=
3482   fi
3483 else
3484   ac_cpp_err=yes
3485 fi
3486 if test -z "$ac_cpp_err"; then
3487   :
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492   # Broken: fails on valid input.
3493 continue
3494 fi
3495
3496 rm -f conftest.err conftest.$ac_ext
3497
3498   # OK, works on sane cases.  Now check whether nonexistent headers
3499   # can be detected and how.
3500   cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 #include <ac_nonexistent.h>
3507 _ACEOF
3508 if { (ac_try="$ac_cpp conftest.$ac_ext"
3509 case "(($ac_try" in
3510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511   *) ac_try_echo=$ac_try;;
3512 esac
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3515   ac_status=$?
3516   grep -v '^ *+' conftest.er1 >conftest.err
3517   rm -f conftest.er1
3518   cat conftest.err >&5
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); } >/dev/null; then
3521   if test -s conftest.err; then
3522     ac_cpp_err=$ac_c_preproc_warn_flag
3523     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3524   else
3525     ac_cpp_err=
3526   fi
3527 else
3528   ac_cpp_err=yes
3529 fi
3530 if test -z "$ac_cpp_err"; then
3531   # Broken: success on invalid input.
3532 continue
3533 else
3534   echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3536
3537   # Passes both tests.
3538 ac_preproc_ok=:
3539 break
3540 fi
3541
3542 rm -f conftest.err conftest.$ac_ext
3543
3544 done
3545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546 rm -f conftest.err conftest.$ac_ext
3547 if $ac_preproc_ok; then
3548   break
3549 fi
3550
3551     done
3552     ac_cv_prog_CPP=$CPP
3553
3554 fi
3555   CPP=$ac_cv_prog_CPP
3556 else
3557   ac_cv_prog_CPP=$CPP
3558 fi
3559 { echo "$as_me:$LINENO: result: $CPP" >&5
3560 echo "${ECHO_T}$CPP" >&6; }
3561 ac_preproc_ok=false
3562 for ac_c_preproc_warn_flag in '' yes
3563 do
3564   # Use a header file that comes with gcc, so configuring glibc
3565   # with a fresh cross-compiler works.
3566   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3567   # <limits.h> exists even on freestanding compilers.
3568   # On the NeXT, cc -E runs the code through the compiler's parser,
3569   # not just through cpp. "Syntax error" is here to catch this case.
3570   cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576 #ifdef __STDC__
3577 # include <limits.h>
3578 #else
3579 # include <assert.h>
3580 #endif
3581                      Syntax error
3582 _ACEOF
3583 if { (ac_try="$ac_cpp conftest.$ac_ext"
3584 case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3590   ac_status=$?
3591   grep -v '^ *+' conftest.er1 >conftest.err
3592   rm -f conftest.er1
3593   cat conftest.err >&5
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); } >/dev/null; then
3596   if test -s conftest.err; then
3597     ac_cpp_err=$ac_c_preproc_warn_flag
3598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3599   else
3600     ac_cpp_err=
3601   fi
3602 else
3603   ac_cpp_err=yes
3604 fi
3605 if test -z "$ac_cpp_err"; then
3606   :
3607 else
3608   echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611   # Broken: fails on valid input.
3612 continue
3613 fi
3614
3615 rm -f conftest.err conftest.$ac_ext
3616
3617   # OK, works on sane cases.  Now check whether nonexistent headers
3618   # can be detected and how.
3619   cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h.  */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h.  */
3625 #include <ac_nonexistent.h>
3626 _ACEOF
3627 if { (ac_try="$ac_cpp conftest.$ac_ext"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3634   ac_status=$?
3635   grep -v '^ *+' conftest.er1 >conftest.err
3636   rm -f conftest.er1
3637   cat conftest.err >&5
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); } >/dev/null; then
3640   if test -s conftest.err; then
3641     ac_cpp_err=$ac_c_preproc_warn_flag
3642     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3643   else
3644     ac_cpp_err=
3645   fi
3646 else
3647   ac_cpp_err=yes
3648 fi
3649 if test -z "$ac_cpp_err"; then
3650   # Broken: success on invalid input.
3651 continue
3652 else
3653   echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3655
3656   # Passes both tests.
3657 ac_preproc_ok=:
3658 break
3659 fi
3660
3661 rm -f conftest.err conftest.$ac_ext
3662
3663 done
3664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3665 rm -f conftest.err conftest.$ac_ext
3666 if $ac_preproc_ok; then
3667   :
3668 else
3669   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3670 See \`config.log' for more details." >&5
3671 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3672 See \`config.log' for more details." >&2;}
3673    { (exit 1); exit 1; }; }
3674 fi
3675
3676 ac_ext=c
3677 ac_cpp='$CPP $CPPFLAGS'
3678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681
3682
3683 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3684 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3685 if test "${ac_cv_path_GREP+set}" = set; then
3686   echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688   # Extract the first word of "grep ggrep" to use in msg output
3689 if test -z "$GREP"; then
3690 set dummy grep ggrep; ac_prog_name=$2
3691 if test "${ac_cv_path_GREP+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   ac_path_GREP_found=false
3695 # Loop through the user's path and test for each of PROGNAME-LIST
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3698 do
3699   IFS=$as_save_IFS
3700   test -z "$as_dir" && as_dir=.
3701   for ac_prog in grep ggrep; do
3702   for ac_exec_ext in '' $ac_executable_extensions; do
3703     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3704     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3705     # Check for GNU ac_path_GREP and select it if it is found.
3706   # Check for GNU $ac_path_GREP
3707 case `"$ac_path_GREP" --version 2>&1` in
3708 *GNU*)
3709   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3710 *)
3711   ac_count=0
3712   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3713   while :
3714   do
3715     cat "conftest.in" "conftest.in" >"conftest.tmp"
3716     mv "conftest.tmp" "conftest.in"
3717     cp "conftest.in" "conftest.nl"
3718     echo 'GREP' >> "conftest.nl"
3719     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3721     ac_count=`expr $ac_count + 1`
3722     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3723       # Best one so far, save it but keep looking for a better one
3724       ac_cv_path_GREP="$ac_path_GREP"
3725       ac_path_GREP_max=$ac_count
3726     fi
3727     # 10*(2^10) chars as input seems more than enough
3728     test $ac_count -gt 10 && break
3729   done
3730   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731 esac
3732
3733
3734     $ac_path_GREP_found && break 3
3735   done
3736 done
3737
3738 done
3739 IFS=$as_save_IFS
3740
3741
3742 fi
3743
3744 GREP="$ac_cv_path_GREP"
3745 if test -z "$GREP"; then
3746   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3747 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3748    { (exit 1); exit 1; }; }
3749 fi
3750
3751 else
3752   ac_cv_path_GREP=$GREP
3753 fi
3754
3755
3756 fi
3757 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3758 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3759  GREP="$ac_cv_path_GREP"
3760
3761
3762 { echo "$as_me:$LINENO: checking for egrep" >&5
3763 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3764 if test "${ac_cv_path_EGREP+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3768    then ac_cv_path_EGREP="$GREP -E"
3769    else
3770      # Extract the first word of "egrep" to use in msg output
3771 if test -z "$EGREP"; then
3772 set dummy egrep; ac_prog_name=$2
3773 if test "${ac_cv_path_EGREP+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   ac_path_EGREP_found=false
3777 # Loop through the user's path and test for each of PROGNAME-LIST
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780 do
3781   IFS=$as_save_IFS
3782   test -z "$as_dir" && as_dir=.
3783   for ac_prog in egrep; do
3784   for ac_exec_ext in '' $ac_executable_extensions; do
3785     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3786     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3787     # Check for GNU ac_path_EGREP and select it if it is found.
3788   # Check for GNU $ac_path_EGREP
3789 case `"$ac_path_EGREP" --version 2>&1` in
3790 *GNU*)
3791   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3792 *)
3793   ac_count=0
3794   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3795   while :
3796   do
3797     cat "conftest.in" "conftest.in" >"conftest.tmp"
3798     mv "conftest.tmp" "conftest.in"
3799     cp "conftest.in" "conftest.nl"
3800     echo 'EGREP' >> "conftest.nl"
3801     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3802     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3803     ac_count=`expr $ac_count + 1`
3804     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3805       # Best one so far, save it but keep looking for a better one
3806       ac_cv_path_EGREP="$ac_path_EGREP"
3807       ac_path_EGREP_max=$ac_count
3808     fi
3809     # 10*(2^10) chars as input seems more than enough
3810     test $ac_count -gt 10 && break
3811   done
3812   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3813 esac
3814
3815
3816     $ac_path_EGREP_found && break 3
3817   done
3818 done
3819
3820 done
3821 IFS=$as_save_IFS
3822
3823
3824 fi
3825
3826 EGREP="$ac_cv_path_EGREP"
3827 if test -z "$EGREP"; then
3828   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3829 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3830    { (exit 1); exit 1; }; }
3831 fi
3832
3833 else
3834   ac_cv_path_EGREP=$EGREP
3835 fi
3836
3837
3838    fi
3839 fi
3840 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3841 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3842  EGREP="$ac_cv_path_EGREP"
3843
3844
3845 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3847 if test "${ac_cv_header_stdc+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h.  */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h.  */
3856 #include <stdlib.h>
3857 #include <stdarg.h>
3858 #include <string.h>
3859 #include <float.h>
3860
3861 int
3862 main ()
3863 {
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3871 case "(($ac_try" in
3872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873   *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876   (eval "$ac_compile") 2>conftest.er1
3877   ac_status=$?
3878   grep -v '^ *+' conftest.er1 >conftest.err
3879   rm -f conftest.er1
3880   cat conftest.err >&5
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); } &&
3883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3884   { (case "(($ac_try" in
3885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886   *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889   (eval "$ac_try") 2>&5
3890   ac_status=$?
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); }; } &&
3893          { ac_try='test -s conftest.$ac_objext'
3894   { (case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899   (eval "$ac_try") 2>&5
3900   ac_status=$?
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); }; }; then
3903   ac_cv_header_stdc=yes
3904 else
3905   echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908         ac_cv_header_stdc=no
3909 fi
3910
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912
3913 if test $ac_cv_header_stdc = yes; then
3914   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3915   cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921 #include <string.h>
3922
3923 _ACEOF
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925   $EGREP "memchr" >/dev/null 2>&1; then
3926   :
3927 else
3928   ac_cv_header_stdc=no
3929 fi
3930 rm -f conftest*
3931
3932 fi
3933
3934 if test $ac_cv_header_stdc = yes; then
3935   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3936   cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h.  */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h.  */
3942 #include <stdlib.h>
3943
3944 _ACEOF
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946   $EGREP "free" >/dev/null 2>&1; then
3947   :
3948 else
3949   ac_cv_header_stdc=no
3950 fi
3951 rm -f conftest*
3952
3953 fi
3954
3955 if test $ac_cv_header_stdc = yes; then
3956   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3957   if test "$cross_compiling" = yes; then
3958   :
3959 else
3960   cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966 #include <ctype.h>
3967 #include <stdlib.h>
3968 #if ((' ' & 0x0FF) == 0x020)
3969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3971 #else
3972 # define ISLOWER(c) \
3973                    (('a' <= (c) && (c) <= 'i') \
3974                      || ('j' <= (c) && (c) <= 'r') \
3975                      || ('s' <= (c) && (c) <= 'z'))
3976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3977 #endif
3978
3979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3980 int
3981 main ()
3982 {
3983   int i;
3984   for (i = 0; i < 256; i++)
3985     if (XOR (islower (i), ISLOWER (i))
3986         || toupper (i) != TOUPPER (i))
3987       return 2;
3988   return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest$ac_exeext
3992 if { (ac_try="$ac_link"
3993 case "(($ac_try" in
3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995   *) ac_try_echo=$ac_try;;
3996 esac
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998   (eval "$ac_link") 2>&5
3999   ac_status=$?
4000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4002   { (case "(($ac_try" in
4003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004   *) ac_try_echo=$ac_try;;
4005 esac
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007   (eval "$ac_try") 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); }; }; then
4011   :
4012 else
4013   echo "$as_me: program exited with status $ac_status" >&5
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017 ( exit $ac_status )
4018 ac_cv_header_stdc=no
4019 fi
4020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4021 fi
4022
4023
4024 fi
4025 fi
4026 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4027 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4028 if test $ac_cv_header_stdc = yes; then
4029
4030 cat >>confdefs.h <<\_ACEOF
4031 #define STDC_HEADERS 1
4032 _ACEOF
4033
4034 fi
4035
4036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4047                   inttypes.h stdint.h unistd.h
4048 do
4049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h.  */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h.  */
4061 $ac_includes_default
4062
4063 #include <$ac_header>
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4067 case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_compile") 2>conftest.er1
4073   ac_status=$?
4074   grep -v '^ *+' conftest.er1 >conftest.err
4075   rm -f conftest.er1
4076   cat conftest.err >&5
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); } &&
4079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080   { (case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085   (eval "$ac_try") 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; } &&
4089          { ac_try='test -s conftest.$ac_objext'
4090   { (case "(($ac_try" in
4091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092   *) ac_try_echo=$ac_try;;
4093 esac
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095   (eval "$ac_try") 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   eval "$as_ac_Header=yes"
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104         eval "$as_ac_Header=no"
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 fi
4109 ac_res=`eval echo '${'$as_ac_Header'}'`
4110                { echo "$as_me:$LINENO: result: $ac_res" >&5
4111 echo "${ECHO_T}$ac_res" >&6; }
4112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4113   cat >>confdefs.h <<_ACEOF
4114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4115 _ACEOF
4116
4117 fi
4118
4119 done
4120
4121
4122 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4123 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4124 if test "${ac_cv_c_bigendian+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   # See if sys/param.h defines the BYTE_ORDER macro.
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 #include <sys/types.h>
4135 #include <sys/param.h>
4136
4137 int
4138 main ()
4139 {
4140 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4141  bogus endian macros
4142 #endif
4143
4144   ;
4145   return 0;
4146 }
4147 _ACEOF
4148 rm -f conftest.$ac_objext
4149 if { (ac_try="$ac_compile"
4150 case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155   (eval "$ac_compile") 2>conftest.er1
4156   ac_status=$?
4157   grep -v '^ *+' conftest.er1 >conftest.err
4158   rm -f conftest.er1
4159   cat conftest.err >&5
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); } &&
4162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163   { (case "(($ac_try" in
4164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165   *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168   (eval "$ac_try") 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; } &&
4172          { ac_try='test -s conftest.$ac_objext'
4173   { (case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178   (eval "$ac_try") 2>&5
4179   ac_status=$?
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); }; }; then
4182   # It does; now see whether it defined to BIG_ENDIAN or not.
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h.  */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h.  */
4189 #include <sys/types.h>
4190 #include <sys/param.h>
4191
4192 int
4193 main ()
4194 {
4195 #if BYTE_ORDER != BIG_ENDIAN
4196  not big endian
4197 #endif
4198
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 rm -f conftest.$ac_objext
4204 if { (ac_try="$ac_compile"
4205 case "(($ac_try" in
4206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207   *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210   (eval "$ac_compile") 2>conftest.er1
4211   ac_status=$?
4212   grep -v '^ *+' conftest.er1 >conftest.err
4213   rm -f conftest.er1
4214   cat conftest.err >&5
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); } &&
4217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); }; } &&
4227          { ac_try='test -s conftest.$ac_objext'
4228   { (case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233   (eval "$ac_try") 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; }; then
4237   ac_cv_c_bigendian=yes
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242         ac_cv_c_bigendian=no
4243 fi
4244
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 else
4247   echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4249
4250         # It does not; compile a test program.
4251 if test "$cross_compiling" = yes; then
4252   # try to guess the endianness by grepping values into an object file
4253   ac_cv_c_bigendian=unknown
4254   cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h.  */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h.  */
4260 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4261 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4262 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4263 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4264 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4265 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4266 int
4267 main ()
4268 {
4269  _ascii (); _ebcdic ();
4270   ;
4271   return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (ac_try="$ac_compile"
4276 case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281   (eval "$ac_compile") 2>conftest.er1
4282   ac_status=$?
4283   grep -v '^ *+' conftest.er1 >conftest.err
4284   rm -f conftest.er1
4285   cat conftest.err >&5
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } &&
4288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4289   { (case "(($ac_try" in
4290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291   *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294   (eval "$ac_try") 2>&5
4295   ac_status=$?
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); }; } &&
4298          { ac_try='test -s conftest.$ac_objext'
4299   { (case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304   (eval "$ac_try") 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; }; then
4308   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4309   ac_cv_c_bigendian=yes
4310 fi
4311 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4312   if test "$ac_cv_c_bigendian" = unknown; then
4313     ac_cv_c_bigendian=no
4314   else
4315     # finding both strings is unlikely to happen, but who knows?
4316     ac_cv_c_bigendian=unknown
4317   fi
4318 fi
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323
4324 fi
4325
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 else
4328   cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334 $ac_includes_default
4335 int
4336 main ()
4337 {
4338
4339   /* Are we little or big endian?  From Harbison&Steele.  */
4340   union
4341   {
4342     long int l;
4343     char c[sizeof (long int)];
4344   } u;
4345   u.l = 1;
4346   return u.c[sizeof (long int) - 1] == 1;
4347
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 rm -f conftest$ac_exeext
4353 if { (ac_try="$ac_link"
4354 case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_link") 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4363   { (case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368   (eval "$ac_try") 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; }; then
4372   ac_cv_c_bigendian=no
4373 else
4374   echo "$as_me: program exited with status $ac_status" >&5
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 ( exit $ac_status )
4379 ac_cv_c_bigendian=yes
4380 fi
4381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4382 fi
4383
4384
4385 fi
4386
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4390 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4391 case $ac_cv_c_bigendian in
4392   yes)
4393     ENDIAN=big
4394  ;;
4395   no)
4396     ENDIAN=little
4397  ;;
4398   *)
4399     { { echo "$as_me:$LINENO: error: unknown endianness
4400 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4401 echo "$as_me: error: unknown endianness
4402 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4403    { (exit 1); exit 1; }; } ;;
4404 esac
4405
4406
4407 if test "$cross_compiling" = yes; then
4408   LLVM_CROSS_COMPILING=1
4409
4410
4411 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4412 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4413 if test "${ac_cv_build_exeext+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4417   ac_cv_build_exeext=.exe
4418 else
4419   ac_build_prefix=${build_alias}-
4420
4421   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4422 set dummy ${ac_build_prefix}gcc; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428   if test -n "$BUILD_CC"; then
4429   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4438     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444 IFS=$as_save_IFS
4445
4446 fi
4447 fi
4448 BUILD_CC=$ac_cv_prog_BUILD_CC
4449 if test -n "$BUILD_CC"; then
4450   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451 echo "${ECHO_T}$BUILD_CC" >&6; }
4452 else
4453   { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4455 fi
4456
4457
4458   if test -z "$BUILD_CC"; then
4459      # Extract the first word of "gcc", so it can be a program name with args.
4460 set dummy gcc; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   if test -n "$BUILD_CC"; then
4467   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472   IFS=$as_save_IFS
4473   test -z "$as_dir" && as_dir=.
4474   for ac_exec_ext in '' $ac_executable_extensions; do
4475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476     ac_cv_prog_BUILD_CC="gcc"
4477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478     break 2
4479   fi
4480 done
4481 done
4482 IFS=$as_save_IFS
4483
4484 fi
4485 fi
4486 BUILD_CC=$ac_cv_prog_BUILD_CC
4487 if test -n "$BUILD_CC"; then
4488   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4489 echo "${ECHO_T}$BUILD_CC" >&6; }
4490 else
4491   { echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6; }
4493 fi
4494
4495
4496      if test -z "$BUILD_CC"; then
4497        # Extract the first word of "cc", so it can be a program name with args.
4498 set dummy cc; ac_word=$2
4499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4501 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   if test -n "$BUILD_CC"; then
4505   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4506 else
4507   ac_prog_rejected=no
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4510 do
4511   IFS=$as_save_IFS
4512   test -z "$as_dir" && as_dir=.
4513   for ac_exec_ext in '' $ac_executable_extensions; do
4514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4515     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4516        ac_prog_rejected=yes
4517        continue
4518      fi
4519     ac_cv_prog_BUILD_CC="cc"
4520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521     break 2
4522   fi
4523 done
4524 done
4525 IFS=$as_save_IFS
4526
4527 if test $ac_prog_rejected = yes; then
4528   # We found a bogon in the path, so make sure we never use it.
4529   set dummy $ac_cv_prog_BUILD_CC
4530   shift
4531   if test $# != 0; then
4532     # We chose a different compiler from the bogus one.
4533     # However, it has the same basename, so the bogon will be chosen
4534     # first if we set BUILD_CC to just the basename; use the full file name.
4535     shift
4536     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4537   fi
4538 fi
4539 fi
4540 fi
4541 BUILD_CC=$ac_cv_prog_BUILD_CC
4542 if test -n "$BUILD_CC"; then
4543   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4544 echo "${ECHO_T}$BUILD_CC" >&6; }
4545 else
4546   { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4548 fi
4549
4550
4551      fi
4552   fi
4553   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4554 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4555    { (exit 1); exit 1; }; }
4556   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4557   rm -f conftest*
4558   echo 'int main () { return 0; }' > conftest.$ac_ext
4559   ac_cv_build_exeext=
4560   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4561   (eval $ac_build_link) 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); }; then
4565     for file in conftest.*; do
4566       case $file in
4567       *.c | *.o | *.obj | *.dSYM) ;;
4568       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4569       esac
4570     done
4571   else
4572     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4573 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4574    { (exit 1); exit 1; }; }
4575   fi
4576   rm -f conftest*
4577   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4578 fi
4579 fi
4580
4581 BUILD_EXEEXT=""
4582 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4583 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4584 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4585 ac_build_exeext=$BUILD_EXEEXT
4586
4587   ac_build_prefix=${build_alias}-
4588   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4589 set dummy ${ac_build_prefix}g++; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   if test -n "$BUILD_CXX"; then
4596   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603   for ac_exec_ext in '' $ac_executable_extensions; do
4604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4605     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi
4614 fi
4615 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616 if test -n "$BUILD_CXX"; then
4617   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618 echo "${ECHO_T}$BUILD_CXX" >&6; }
4619 else
4620   { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622 fi
4623
4624
4625   if test -z "$BUILD_CXX"; then
4626      # Extract the first word of "g++", so it can be a program name with args.
4627 set dummy g++; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633   if test -n "$BUILD_CXX"; then
4634   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639   IFS=$as_save_IFS
4640   test -z "$as_dir" && as_dir=.
4641   for ac_exec_ext in '' $ac_executable_extensions; do
4642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4643     ac_cv_prog_BUILD_CXX="g++"
4644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645     break 2
4646   fi
4647 done
4648 done
4649 IFS=$as_save_IFS
4650
4651 fi
4652 fi
4653 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4654 if test -n "$BUILD_CXX"; then
4655   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4656 echo "${ECHO_T}$BUILD_CXX" >&6; }
4657 else
4658   { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4660 fi
4661
4662
4663      if test -z "$BUILD_CXX"; then
4664        # Extract the first word of "c++", so it can be a program name with args.
4665 set dummy c++; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4669   echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671   if test -n "$BUILD_CXX"; then
4672   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4673 else
4674   ac_prog_rejected=no
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678   IFS=$as_save_IFS
4679   test -z "$as_dir" && as_dir=.
4680   for ac_exec_ext in '' $ac_executable_extensions; do
4681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4682     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4683        ac_prog_rejected=yes
4684        continue
4685      fi
4686     ac_cv_prog_BUILD_CXX="c++"
4687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688     break 2
4689   fi
4690 done
4691 done
4692 IFS=$as_save_IFS
4693
4694 if test $ac_prog_rejected = yes; then
4695   # We found a bogon in the path, so make sure we never use it.
4696   set dummy $ac_cv_prog_BUILD_CXX
4697   shift
4698   if test $# != 0; then
4699     # We chose a different compiler from the bogus one.
4700     # However, it has the same basename, so the bogon will be chosen
4701     # first if we set BUILD_CXX to just the basename; use the full file name.
4702     shift
4703     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4704   fi
4705 fi
4706 fi
4707 fi
4708 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4709 if test -n "$BUILD_CXX"; then
4710   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4711 echo "${ECHO_T}$BUILD_CXX" >&6; }
4712 else
4713   { echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6; }
4715 fi
4716
4717
4718      fi
4719   fi
4720 else
4721   LLVM_CROSS_COMPILING=0
4722
4723 fi
4724
4725 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4726   cvsbuild="yes"
4727   optimize="no"
4728   CVSBUILD=CVSBUILD=1
4729
4730 else
4731   cvsbuild="no"
4732   optimize="yes"
4733 fi
4734
4735
4736 # Check whether --enable-optimized was given.
4737 if test "${enable_optimized+set}" = set; then
4738   enableval=$enable_optimized;
4739 else
4740   enableval=$optimize
4741 fi
4742
4743 if test ${enableval} = "no" ; then
4744   ENABLE_OPTIMIZED=
4745
4746 else
4747   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4748
4749 fi
4750
4751 # Check whether --enable-profiling was given.
4752 if test "${enable_profiling+set}" = set; then
4753   enableval=$enable_profiling;
4754 else
4755   enableval="no"
4756 fi
4757
4758 if test ${enableval} = "no" ; then
4759   ENABLE_PROFILING=
4760
4761 else
4762   ENABLE_PROFILING=ENABLE_PROFILING=1
4763
4764 fi
4765
4766 # Check whether --enable-assertions was given.
4767 if test "${enable_assertions+set}" = set; then
4768   enableval=$enable_assertions;
4769 else
4770   enableval="yes"
4771 fi
4772
4773 if test ${enableval} = "yes" ; then
4774   DISABLE_ASSERTIONS=
4775
4776 else
4777   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4778
4779 fi
4780
4781 # Check whether --enable-expensive-checks was given.
4782 if test "${enable_expensive_checks+set}" = set; then
4783   enableval=$enable_expensive_checks;
4784 else
4785   enableval="no"
4786 fi
4787
4788 if test ${enableval} = "yes" ; then
4789   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4790
4791   EXPENSIVE_CHECKS=yes
4792
4793 else
4794   ENABLE_EXPENSIVE_CHECKS=
4795
4796   EXPENSIVE_CHECKS=no
4797
4798 fi
4799
4800 # Check whether --enable-debug-runtime was given.
4801 if test "${enable_debug_runtime+set}" = set; then
4802   enableval=$enable_debug_runtime;
4803 else
4804   enableval=no
4805 fi
4806
4807 if test ${enableval} = "no" ; then
4808   DEBUG_RUNTIME=
4809
4810 else
4811   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4812
4813 fi
4814
4815 # Check whether --enable-debug-symbols was given.
4816 if test "${enable_debug_symbols+set}" = set; then
4817   enableval=$enable_debug_symbols;
4818 else
4819   enableval=no
4820 fi
4821
4822 if test ${enableval} = "no" ; then
4823   DEBUG_SYMBOLS=
4824
4825 else
4826   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4827
4828 fi
4829
4830 # Check whether --enable-jit was given.
4831 if test "${enable_jit+set}" = set; then
4832   enableval=$enable_jit;
4833 else
4834   enableval=default
4835 fi
4836
4837 if test ${enableval} = "no"
4838 then
4839   JIT=
4840
4841 else
4842   case "$llvm_cv_target_arch" in
4843     x86)         TARGET_HAS_JIT=1
4844  ;;
4845     Sparc)       TARGET_HAS_JIT=0
4846  ;;
4847     PowerPC)     TARGET_HAS_JIT=1
4848  ;;
4849     x86_64)      TARGET_HAS_JIT=1
4850  ;;
4851     Alpha)       TARGET_HAS_JIT=1
4852  ;;
4853     ARM)         TARGET_HAS_JIT=1
4854  ;;
4855     Mips)        TARGET_HAS_JIT=0
4856  ;;
4857     XCore)       TARGET_HAS_JIT=0
4858  ;;
4859     MSP430)      TARGET_HAS_JIT=0
4860  ;;
4861     SystemZ)     TARGET_HAS_JIT=0
4862  ;;
4863     Blackfin)    TARGET_HAS_JIT=0
4864  ;;
4865     MBlaze)      TARGET_HAS_JIT=0
4866  ;;
4867     PTX)         TARGET_HAS_JIT=0
4868  ;;
4869     *)           TARGET_HAS_JIT=0
4870  ;;
4871   esac
4872 fi
4873
4874 # Check whether --enable-doxygen was given.
4875 if test "${enable_doxygen+set}" = set; then
4876   enableval=$enable_doxygen;
4877 else
4878   enableval=default
4879 fi
4880
4881 case "$enableval" in
4882   yes) ENABLE_DOXYGEN=1
4883  ;;
4884   no)  ENABLE_DOXYGEN=0
4885  ;;
4886   default) ENABLE_DOXYGEN=0
4887  ;;
4888   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4889 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4890    { (exit 1); exit 1; }; } ;;
4891 esac
4892
4893 # Check whether --enable-threads was given.
4894 if test "${enable_threads+set}" = set; then
4895   enableval=$enable_threads;
4896 else
4897   enableval=default
4898 fi
4899
4900 case "$enableval" in
4901   yes) ENABLE_THREADS=1
4902  ;;
4903   no)  ENABLE_THREADS=0
4904  ;;
4905   default) ENABLE_THREADS=1
4906  ;;
4907   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4908 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4909    { (exit 1); exit 1; }; } ;;
4910 esac
4911
4912 cat >>confdefs.h <<_ACEOF
4913 #define ENABLE_THREADS $ENABLE_THREADS
4914 _ACEOF
4915
4916
4917 # Check whether --enable-pic was given.
4918 if test "${enable_pic+set}" = set; then
4919   enableval=$enable_pic;
4920 else
4921   enableval=default
4922 fi
4923
4924 case "$enableval" in
4925   yes) ENABLE_PIC=1
4926  ;;
4927   no)  ENABLE_PIC=0
4928  ;;
4929   default) ENABLE_PIC=1
4930  ;;
4931   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4932 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4933    { (exit 1); exit 1; }; } ;;
4934 esac
4935
4936 cat >>confdefs.h <<_ACEOF
4937 #define ENABLE_PIC $ENABLE_PIC
4938 _ACEOF
4939
4940
4941 # Check whether --enable-shared was given.
4942 if test "${enable_shared+set}" = set; then
4943   enableval=$enable_shared;
4944 else
4945   enableval=default
4946 fi
4947
4948 case "$enableval" in
4949   yes) ENABLE_SHARED=1
4950  ;;
4951   no)  ENABLE_SHARED=0
4952  ;;
4953   default) ENABLE_SHARED=0
4954  ;;
4955   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4956 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4957    { (exit 1); exit 1; }; } ;;
4958 esac
4959
4960 # Check whether --enable-timestamps was given.
4961 if test "${enable_timestamps+set}" = set; then
4962   enableval=$enable_timestamps;
4963 else
4964   enableval=default
4965 fi
4966
4967 case "$enableval" in
4968   yes) ENABLE_TIMESTAMPS=1
4969  ;;
4970   no)  ENABLE_TIMESTAMPS=0
4971  ;;
4972   default) ENABLE_TIMESTAMPS=1
4973  ;;
4974   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4975 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4976    { (exit 1); exit 1; }; } ;;
4977 esac
4978
4979 cat >>confdefs.h <<_ACEOF
4980 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4981 _ACEOF
4982
4983
4984 TARGETS_TO_BUILD=""
4985 # Check whether --enable-targets was given.
4986 if test "${enable_targets+set}" = set; then
4987   enableval=$enable_targets;
4988 else
4989   enableval=all
4990 fi
4991
4992 if test "$enableval" = host-only ; then
4993   enableval=host
4994 fi
4995 case "$enableval" in
4996   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4997   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4998       case "$a_target" in
4999         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5000         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5001         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5002         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5003         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5004         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5005         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5006         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5007         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5008         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5009         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5010         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5011         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5012         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5013         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5014         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5015         host) case "$llvm_cv_target_arch" in
5016             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5017             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5018             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5019             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5020             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5021             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5022             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5023             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5024             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5025             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5026             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5027             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5028             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5029             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5030             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5031 echo "$as_me: error: Can not set target to build" >&2;}
5032    { (exit 1); exit 1; }; } ;;
5033           esac ;;
5034         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5035 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5036    { (exit 1); exit 1; }; } ;;
5037       esac
5038   done
5039   ;;
5040 esac
5041 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5042
5043
5044 # Determine whether we are building LLVM support for the native architecture.
5045 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5046 for a_target in $TARGETS_TO_BUILD; do
5047   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5048
5049 cat >>confdefs.h <<_ACEOF
5050 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5051 _ACEOF
5052
5053     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5054     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5055     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5056
5057 cat >>confdefs.h <<_ACEOF
5058 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5059 _ACEOF
5060
5061
5062 cat >>confdefs.h <<_ACEOF
5063 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5064 _ACEOF
5065
5066
5067 cat >>confdefs.h <<_ACEOF
5068 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5069 _ACEOF
5070
5071   fi
5072 done
5073
5074 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5075 # target feature def files.
5076 LLVM_ENUM_TARGETS=""
5077 LLVM_ENUM_ASM_PRINTERS=""
5078 LLVM_ENUM_ASM_PARSERS=""
5079 LLVM_ENUM_DISASSEMBLERS=""
5080 for target_to_build in $TARGETS_TO_BUILD; do
5081   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5082   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5083     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5084   fi
5085   # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5086   if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5087     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5088   fi
5089   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5090     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5091   fi
5092   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5093     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5094   fi
5095 done
5096
5097
5098
5099
5100
5101 # Check whether --enable-cbe-printf-a was given.
5102 if test "${enable_cbe_printf_a+set}" = set; then
5103   enableval=$enable_cbe_printf_a;
5104 else
5105   enableval=default
5106 fi
5107
5108 case "$enableval" in
5109   yes) ENABLE_CBE_PRINTF_A=1
5110  ;;
5111   no)  ENABLE_CBE_PRINTF_A=0
5112  ;;
5113   default)  ENABLE_CBE_PRINTF_A=1
5114  ;;
5115   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5116 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5117    { (exit 1); exit 1; }; } ;;
5118 esac
5119
5120 cat >>confdefs.h <<_ACEOF
5121 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5122 _ACEOF
5123
5124
5125
5126 # Check whether --with-llvmgccdir was given.
5127 if test "${with_llvmgccdir+set}" = set; then
5128   withval=$with_llvmgccdir;
5129 else
5130   withval=default
5131 fi
5132
5133 case "$withval" in
5134   default) WITH_LLVMGCCDIR=default ;;
5135   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5136   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5137 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5138    { (exit 1); exit 1; }; } ;;
5139 esac
5140
5141
5142 # Check whether --with-llvmgcc was given.
5143 if test "${with_llvmgcc+set}" = set; then
5144   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5145       WITH_LLVMGCCDIR=""
5146 fi
5147
5148
5149
5150 # Check whether --with-llvmgxx was given.
5151 if test "${with_llvmgxx+set}" = set; then
5152   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5153     WITH_LLVMGCCDIR=""
5154 fi
5155
5156
5157 if test -n "$LLVMGCC"; then
5158    LLVMGCCCOMMAND="$LLVMGCC"
5159 fi
5160
5161 if test -n "$LLVMGXX"; then
5162    LLVMGXXCOMMAND="$LLVMGXX"
5163 fi
5164
5165 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5166    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5167 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5168    { (exit 1); exit 1; }; };
5169 fi
5170
5171 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5172    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5173 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5174    { (exit 1); exit 1; }; };
5175 fi
5176
5177
5178 # Check whether --with-clang was given.
5179 if test "${with_clang+set}" = set; then
5180   withval=$with_clang;
5181 else
5182   with_clang=default
5183 fi
5184
5185
5186
5187 # Check whether --with-built-clang was given.
5188 if test "${with_built_clang+set}" = set; then
5189   withval=$with_built_clang;
5190 else
5191   with_built_clang=check
5192 fi
5193
5194
5195 { echo "$as_me:$LINENO: checking clang compiler" >&5
5196 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5197 WITH_CLANGPATH=""
5198 WITH_BUILT_CLANG=0
5199 if test "$with_clang" != "default"; then
5200    WITH_CLANGPATH="$with_clang"
5201    if ! test -x "$WITH_CLANGPATH"; then
5202      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5203 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5204    { (exit 1); exit 1; }; }
5205    fi
5206 elif test "$with_built_clang" = "yes"; then
5207    WITH_BUILT_CLANG=1
5208 elif test "$with_built_clang" = "no"; then
5209    WITH_BUILT_CLANG=0
5210 else
5211    if test "$with_built_clang" != "check"; then
5212       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5213 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5214    { (exit 1); exit 1; }; }
5215    fi
5216
5217    if test -f ${srcdir}/tools/clang/README.txt; then
5218      WITH_BUILT_CLANG=1
5219    fi
5220 fi
5221
5222 if ! test -z "$WITH_CLANGPATH"; then
5223    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5224 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5225    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5226 elif test "$WITH_BUILT_CLANG" = "1"; then
5227    { echo "$as_me:$LINENO: result: built" >&5
5228 echo "${ECHO_T}built" >&6; }
5229 else
5230    { echo "$as_me:$LINENO: result: none" >&5
5231 echo "${ECHO_T}none" >&6; }
5232 fi
5233 CLANGPATH=$WITH_CLANGPATH
5234
5235 CLANGXXPATH=$WITH_CLANGXXPATH
5236
5237 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5238
5239
5240
5241 # Check whether --with-optimize-option was given.
5242 if test "${with_optimize_option+set}" = set; then
5243   withval=$with_optimize_option;
5244 else
5245   withval=default
5246 fi
5247
5248 { echo "$as_me:$LINENO: checking optimization flags" >&5
5249 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5250 case "$withval" in
5251   default)
5252     case "$llvm_cv_os_type" in
5253     FreeBSD) optimize_option=-O2 ;;
5254     MingW) optimize_option=-O2 ;;
5255     *)     optimize_option=-O3 ;;
5256     esac ;;
5257   *) optimize_option="$withval" ;;
5258 esac
5259 OPTIMIZE_OPTION=$optimize_option
5260
5261 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5262 echo "${ECHO_T}$optimize_option" >&6; }
5263
5264
5265 # Check whether --with-extra-options was given.
5266 if test "${with_extra_options+set}" = set; then
5267   withval=$with_extra_options;
5268 else
5269   withval=default
5270 fi
5271
5272 case "$withval" in
5273   default) EXTRA_OPTIONS= ;;
5274   *) EXTRA_OPTIONS=$withval ;;
5275 esac
5276 EXTRA_OPTIONS=$EXTRA_OPTIONS
5277
5278
5279 # Check whether --enable-bindings was given.
5280 if test "${enable_bindings+set}" = set; then
5281   enableval=$enable_bindings;
5282 else
5283   enableval=default
5284 fi
5285
5286 BINDINGS_TO_BUILD=""
5287 case "$enableval" in
5288   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5289   all ) BINDINGS_TO_BUILD="ocaml" ;;
5290   none | no) BINDINGS_TO_BUILD="" ;;
5291   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5292       case "$a_binding" in
5293         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5294         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5295 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5296    { (exit 1); exit 1; }; } ;;
5297       esac
5298   done
5299   ;;
5300 esac
5301
5302
5303 # Check whether --with-ocaml-libdir was given.
5304 if test "${with_ocaml_libdir+set}" = set; then
5305   withval=$with_ocaml_libdir;
5306 else
5307   withval=auto
5308 fi
5309
5310 case "$withval" in
5311   auto) with_ocaml_libdir="$withval" ;;
5312   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5313   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5314 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5315    { (exit 1); exit 1; }; } ;;
5316 esac
5317
5318
5319 # Check whether --with-clang-resource-dir was given.
5320 if test "${with_clang_resource_dir+set}" = set; then
5321   withval=$with_clang_resource_dir;
5322 else
5323   withval=""
5324 fi
5325
5326
5327 cat >>confdefs.h <<_ACEOF
5328 #define CLANG_RESOURCE_DIR "$withval"
5329 _ACEOF
5330
5331
5332
5333 # Check whether --with-c-include-dirs was given.
5334 if test "${with_c_include_dirs+set}" = set; then
5335   withval=$with_c_include_dirs;
5336 else
5337   withval=""
5338 fi
5339
5340
5341 cat >>confdefs.h <<_ACEOF
5342 #define C_INCLUDE_DIRS "$withval"
5343 _ACEOF
5344
5345
5346
5347 # Check whether --with-cxx-include-root was given.
5348 if test "${with_cxx_include_root+set}" = set; then
5349   withval=$with_cxx_include_root;
5350 else
5351   withval=""
5352 fi
5353
5354
5355 cat >>confdefs.h <<_ACEOF
5356 #define CXX_INCLUDE_ROOT "$withval"
5357 _ACEOF
5358
5359
5360
5361 # Check whether --with-cxx-include-arch was given.
5362 if test "${with_cxx_include_arch+set}" = set; then
5363   withval=$with_cxx_include_arch;
5364 else
5365   withval=""
5366 fi
5367
5368
5369 cat >>confdefs.h <<_ACEOF
5370 #define CXX_INCLUDE_ARCH "$withval"
5371 _ACEOF
5372
5373
5374
5375 # Check whether --with-cxx-include-32bit-dir was given.
5376 if test "${with_cxx_include_32bit_dir+set}" = set; then
5377   withval=$with_cxx_include_32bit_dir;
5378 else
5379   withval=""
5380 fi
5381
5382
5383 cat >>confdefs.h <<_ACEOF
5384 #define CXX_INCLUDE_32BIT_DIR "$withval"
5385 _ACEOF
5386
5387
5388
5389 # Check whether --with-cxx-include-64bit-dir was given.
5390 if test "${with_cxx_include_64bit_dir+set}" = set; then
5391   withval=$with_cxx_include_64bit_dir;
5392 else
5393   withval=""
5394 fi
5395
5396
5397 cat >>confdefs.h <<_ACEOF
5398 #define CXX_INCLUDE_64BIT_DIR "$withval"
5399 _ACEOF
5400
5401
5402
5403 # Check whether --with-binutils-include was given.
5404 if test "${with_binutils_include+set}" = set; then
5405   withval=$with_binutils_include;
5406 else
5407   withval=default
5408 fi
5409
5410 case "$withval" in
5411   default) WITH_BINUTILS_INCDIR=default ;;
5412   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5413   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5414 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5415    { (exit 1); exit 1; }; } ;;
5416 esac
5417 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5418   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5419
5420   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5421      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5422      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5423 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5424    { (exit 1); exit 1; }; };
5425   fi
5426 fi
5427
5428 # Check whether --enable-libffi was given.
5429 if test "${enable_libffi+set}" = set; then
5430   enableval=$enable_libffi; case "$enableval" in
5431     yes) llvm_cv_enable_libffi="yes" ;;
5432     no)  llvm_cv_enable_libffi="no"  ;;
5433     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5434 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5435    { (exit 1); exit 1; }; } ;;
5436   esac
5437 else
5438   llvm_cv_enable_libffi=no
5439 fi
5440
5441
5442
5443 ac_ext=c
5444 ac_cpp='$CPP $CPPFLAGS'
5445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5450 # On Suns, sometimes $CPP names a directory.
5451 if test -n "$CPP" && test -d "$CPP"; then
5452   CPP=
5453 fi
5454 if test -z "$CPP"; then
5455   if test "${ac_cv_prog_CPP+set}" = set; then
5456   echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458       # Double quotes because CPP needs to be expanded
5459     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5460     do
5461       ac_preproc_ok=false
5462 for ac_c_preproc_warn_flag in '' yes
5463 do
5464   # Use a header file that comes with gcc, so configuring glibc
5465   # with a fresh cross-compiler works.
5466   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467   # <limits.h> exists even on freestanding compilers.
5468   # On the NeXT, cc -E runs the code through the compiler's parser,
5469   # not just through cpp. "Syntax error" is here to catch this case.
5470   cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h.  */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h.  */
5476 #ifdef __STDC__
5477 # include <limits.h>
5478 #else
5479 # include <assert.h>
5480 #endif
5481                      Syntax error
5482 _ACEOF
5483 if { (ac_try="$ac_cpp conftest.$ac_ext"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } >/dev/null; then
5496   if test -s conftest.err; then
5497     ac_cpp_err=$ac_c_preproc_warn_flag
5498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5499   else
5500     ac_cpp_err=
5501   fi
5502 else
5503   ac_cpp_err=yes
5504 fi
5505 if test -z "$ac_cpp_err"; then
5506   :
5507 else
5508   echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5510
5511   # Broken: fails on valid input.
5512 continue
5513 fi
5514
5515 rm -f conftest.err conftest.$ac_ext
5516
5517   # OK, works on sane cases.  Now check whether nonexistent headers
5518   # can be detected and how.
5519   cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h.  */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h.  */
5525 #include <ac_nonexistent.h>
5526 _ACEOF
5527 if { (ac_try="$ac_cpp conftest.$ac_ext"
5528 case "(($ac_try" in
5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530   *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534   ac_status=$?
5535   grep -v '^ *+' conftest.er1 >conftest.err
5536   rm -f conftest.er1
5537   cat conftest.err >&5
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } >/dev/null; then
5540   if test -s conftest.err; then
5541     ac_cpp_err=$ac_c_preproc_warn_flag
5542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5543   else
5544     ac_cpp_err=
5545   fi
5546 else
5547   ac_cpp_err=yes
5548 fi
5549 if test -z "$ac_cpp_err"; then
5550   # Broken: success on invalid input.
5551 continue
5552 else
5553   echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556   # Passes both tests.
5557 ac_preproc_ok=:
5558 break
5559 fi
5560
5561 rm -f conftest.err conftest.$ac_ext
5562
5563 done
5564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5565 rm -f conftest.err conftest.$ac_ext
5566 if $ac_preproc_ok; then
5567   break
5568 fi
5569
5570     done
5571     ac_cv_prog_CPP=$CPP
5572
5573 fi
5574   CPP=$ac_cv_prog_CPP
5575 else
5576   ac_cv_prog_CPP=$CPP
5577 fi
5578 { echo "$as_me:$LINENO: result: $CPP" >&5
5579 echo "${ECHO_T}$CPP" >&6; }
5580 ac_preproc_ok=false
5581 for ac_c_preproc_warn_flag in '' yes
5582 do
5583   # Use a header file that comes with gcc, so configuring glibc
5584   # with a fresh cross-compiler works.
5585   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586   # <limits.h> exists even on freestanding compilers.
5587   # On the NeXT, cc -E runs the code through the compiler's parser,
5588   # not just through cpp. "Syntax error" is here to catch this case.
5589   cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h.  */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h.  */
5595 #ifdef __STDC__
5596 # include <limits.h>
5597 #else
5598 # include <assert.h>
5599 #endif
5600                      Syntax error
5601 _ACEOF
5602 if { (ac_try="$ac_cpp conftest.$ac_ext"
5603 case "(($ac_try" in
5604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605   *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5609   ac_status=$?
5610   grep -v '^ *+' conftest.er1 >conftest.err
5611   rm -f conftest.er1
5612   cat conftest.err >&5
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } >/dev/null; then
5615   if test -s conftest.err; then
5616     ac_cpp_err=$ac_c_preproc_warn_flag
5617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5618   else
5619     ac_cpp_err=
5620   fi
5621 else
5622   ac_cpp_err=yes
5623 fi
5624 if test -z "$ac_cpp_err"; then
5625   :
5626 else
5627   echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5629
5630   # Broken: fails on valid input.
5631 continue
5632 fi
5633
5634 rm -f conftest.err conftest.$ac_ext
5635
5636   # OK, works on sane cases.  Now check whether nonexistent headers
5637   # can be detected and how.
5638   cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h.  */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h.  */
5644 #include <ac_nonexistent.h>
5645 _ACEOF
5646 if { (ac_try="$ac_cpp conftest.$ac_ext"
5647 case "(($ac_try" in
5648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649   *) ac_try_echo=$ac_try;;
5650 esac
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5653   ac_status=$?
5654   grep -v '^ *+' conftest.er1 >conftest.err
5655   rm -f conftest.er1
5656   cat conftest.err >&5
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); } >/dev/null; then
5659   if test -s conftest.err; then
5660     ac_cpp_err=$ac_c_preproc_warn_flag
5661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5662   else
5663     ac_cpp_err=
5664   fi
5665 else
5666   ac_cpp_err=yes
5667 fi
5668 if test -z "$ac_cpp_err"; then
5669   # Broken: success on invalid input.
5670 continue
5671 else
5672   echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5674
5675   # Passes both tests.
5676 ac_preproc_ok=:
5677 break
5678 fi
5679
5680 rm -f conftest.err conftest.$ac_ext
5681
5682 done
5683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5684 rm -f conftest.err conftest.$ac_ext
5685 if $ac_preproc_ok; then
5686   :
5687 else
5688   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5689 See \`config.log' for more details." >&5
5690 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5691 See \`config.log' for more details." >&2;}
5692    { (exit 1); exit 1; }; }
5693 fi
5694
5695 ac_ext=c
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700
5701 ac_ext=c
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706 if test -n "$ac_tool_prefix"; then
5707   for ac_prog in gcc
5708   do
5709     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5713 if test "${ac_cv_prog_CC+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   if test -n "$CC"; then
5717   ac_cv_prog_CC="$CC" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724   for ac_exec_ext in '' $ac_executable_extensions; do
5725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5726     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728     break 2
5729   fi
5730 done
5731 done
5732 IFS=$as_save_IFS
5733
5734 fi
5735 fi
5736 CC=$ac_cv_prog_CC
5737 if test -n "$CC"; then
5738   { echo "$as_me:$LINENO: result: $CC" >&5
5739 echo "${ECHO_T}$CC" >&6; }
5740 else
5741   { echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6; }
5743 fi
5744
5745
5746     test -n "$CC" && break
5747   done
5748 fi
5749 if test -z "$CC"; then
5750   ac_ct_CC=$CC
5751   for ac_prog in gcc
5752 do
5753   # Extract the first word of "$ac_prog", so it can be a program name with args.
5754 set dummy $ac_prog; ac_word=$2
5755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   if test -n "$ac_ct_CC"; then
5761   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5762 else
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_prog_ac_ct_CC="$ac_prog"
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 fi
5779 fi
5780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5781 if test -n "$ac_ct_CC"; then
5782   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5783 echo "${ECHO_T}$ac_ct_CC" >&6; }
5784 else
5785   { echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6; }
5787 fi
5788
5789
5790   test -n "$ac_ct_CC" && break
5791 done
5792
5793   if test "x$ac_ct_CC" = x; then
5794     CC=""
5795   else
5796     case $cross_compiling:$ac_tool_warned in
5797 yes:)
5798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5799 whose name does not start with the host triplet.  If you think this
5800 configuration is useful to you, please write to autoconf@gnu.org." >&5
5801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5802 whose name does not start with the host triplet.  If you think this
5803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5804 ac_tool_warned=yes ;;
5805 esac
5806     CC=$ac_ct_CC
5807   fi
5808 fi
5809
5810
5811 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5812 See \`config.log' for more details." >&5
5813 echo "$as_me: error: no acceptable C compiler found in \$PATH
5814 See \`config.log' for more details." >&2;}
5815    { (exit 1); exit 1; }; }
5816
5817 # Provide some information about the compiler.
5818 echo "$as_me:$LINENO: checking for C compiler version" >&5
5819 ac_compiler=`set X $ac_compile; echo $2`
5820 { (ac_try="$ac_compiler --version >&5"
5821 case "(($ac_try" in
5822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823   *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826   (eval "$ac_compiler --version >&5") 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); }
5830 { (ac_try="$ac_compiler -v >&5"
5831 case "(($ac_try" in
5832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833   *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836   (eval "$ac_compiler -v >&5") 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }
5840 { (ac_try="$ac_compiler -V >&5"
5841 case "(($ac_try" in
5842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843   *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846   (eval "$ac_compiler -V >&5") 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }
5850
5851 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h.  */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h.  */
5862
5863 int
5864 main ()
5865 {
5866 #ifndef __GNUC__
5867        choke me
5868 #endif
5869
5870   ;
5871   return 0;
5872 }
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5876 case "(($ac_try" in
5877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878   *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881   (eval "$ac_compile") 2>conftest.er1
5882   ac_status=$?
5883   grep -v '^ *+' conftest.er1 >conftest.err
5884   rm -f conftest.er1
5885   cat conftest.err >&5
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } &&
5888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5889   { (case "(($ac_try" in
5890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891   *) ac_try_echo=$ac_try;;
5892 esac
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894   (eval "$ac_try") 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); }; } &&
5898          { ac_try='test -s conftest.$ac_objext'
5899   { (case "(($ac_try" in
5900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901   *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904   (eval "$ac_try") 2>&5
5905   ac_status=$?
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); }; }; then
5908   ac_compiler_gnu=yes
5909 else
5910   echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5912
5913         ac_compiler_gnu=no
5914 fi
5915
5916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5918
5919 fi
5920 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5921 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5922 GCC=`test $ac_compiler_gnu = yes && echo yes`
5923 ac_test_CFLAGS=${CFLAGS+set}
5924 ac_save_CFLAGS=$CFLAGS
5925 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5926 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5927 if test "${ac_cv_prog_cc_g+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   ac_save_c_werror_flag=$ac_c_werror_flag
5931    ac_c_werror_flag=yes
5932    ac_cv_prog_cc_g=no
5933    CFLAGS="-g"
5934    cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h.  */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h.  */
5940
5941 int
5942 main ()
5943 {
5944
5945   ;
5946   return 0;
5947 }
5948 _ACEOF
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5951 case "(($ac_try" in
5952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953   *) ac_try_echo=$ac_try;;
5954 esac
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956   (eval "$ac_compile") 2>conftest.er1
5957   ac_status=$?
5958   grep -v '^ *+' conftest.er1 >conftest.err
5959   rm -f conftest.er1
5960   cat conftest.err >&5
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } &&
5963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5964   { (case "(($ac_try" in
5965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966   *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969   (eval "$ac_try") 2>&5
5970   ac_status=$?
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); }; } &&
5973          { ac_try='test -s conftest.$ac_objext'
5974   { (case "(($ac_try" in
5975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976   *) ac_try_echo=$ac_try;;
5977 esac
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979   (eval "$ac_try") 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); }; }; then
5983   ac_cv_prog_cc_g=yes
5984 else
5985   echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988         CFLAGS=""
5989       cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h.  */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h.  */
5995
5996 int
5997 main ()
5998 {
5999
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6006 case "(($ac_try" in
6007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008   *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011   (eval "$ac_compile") 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } &&
6018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019   { (case "(($ac_try" in
6020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021   *) ac_try_echo=$ac_try;;
6022 esac
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024   (eval "$ac_try") 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; } &&
6028          { ac_try='test -s conftest.$ac_objext'
6029   { (case "(($ac_try" in
6030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031   *) ac_try_echo=$ac_try;;
6032 esac
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034   (eval "$ac_try") 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; }; then
6038   :
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043         ac_c_werror_flag=$ac_save_c_werror_flag
6044          CFLAGS="-g"
6045          cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h.  */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h.  */
6051
6052 int
6053 main ()
6054 {
6055
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6062 case "(($ac_try" in
6063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064   *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067   (eval "$ac_compile") 2>conftest.er1
6068   ac_status=$?
6069   grep -v '^ *+' conftest.er1 >conftest.err
6070   rm -f conftest.er1
6071   cat conftest.err >&5
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); } &&
6074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6075   { (case "(($ac_try" in
6076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077   *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080   (eval "$ac_try") 2>&5
6081   ac_status=$?
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); }; } &&
6084          { ac_try='test -s conftest.$ac_objext'
6085   { (case "(($ac_try" in
6086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087   *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090   (eval "$ac_try") 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; }; then
6094   ac_cv_prog_cc_g=yes
6095 else
6096   echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099
6100 fi
6101
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 fi
6104
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 fi
6107
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109    ac_c_werror_flag=$ac_save_c_werror_flag
6110 fi
6111 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6112 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6113 if test "$ac_test_CFLAGS" = set; then
6114   CFLAGS=$ac_save_CFLAGS
6115 elif test $ac_cv_prog_cc_g = yes; then
6116   if test "$GCC" = yes; then
6117     CFLAGS="-g -O2"
6118   else
6119     CFLAGS="-g"
6120   fi
6121 else
6122   if test "$GCC" = yes; then
6123     CFLAGS="-O2"
6124   else
6125     CFLAGS=
6126   fi
6127 fi
6128 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6129 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6130 if test "${ac_cv_prog_cc_c89+set}" = set; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   ac_cv_prog_cc_c89=no
6134 ac_save_CC=$CC
6135 cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141 #include <stdarg.h>
6142 #include <stdio.h>
6143 #include <sys/types.h>
6144 #include <sys/stat.h>
6145 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6146 struct buf { int x; };
6147 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6148 static char *e (p, i)
6149      char **p;
6150      int i;
6151 {
6152   return p[i];
6153 }
6154 static char *f (char * (*g) (char **, int), char **p, ...)
6155 {
6156   char *s;
6157   va_list v;
6158   va_start (v,p);
6159   s = g (p, va_arg (v,int));
6160   va_end (v);
6161   return s;
6162 }
6163
6164 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6165    function prototypes and stuff, but not '\xHH' hex character constants.
6166    These don't provoke an error unfortunately, instead are silently treated
6167    as 'x'.  The following induces an error, until -std is added to get
6168    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6169    array size at least.  It's necessary to write '\x00'==0 to get something
6170    that's true only with -std.  */
6171 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6172
6173 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6174    inside strings and character constants.  */
6175 #define FOO(x) 'x'
6176 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6177
6178 int test (int i, double x);
6179 struct s1 {int (*f) (int a);};
6180 struct s2 {int (*f) (double a);};
6181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6182 int argc;
6183 char **argv;
6184 int
6185 main ()
6186 {
6187 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6188   ;
6189   return 0;
6190 }
6191 _ACEOF
6192 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6193         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6194 do
6195   CC="$ac_save_CC $ac_arg"
6196   rm -f conftest.$ac_objext
6197 if { (ac_try="$ac_compile"
6198 case "(($ac_try" in
6199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200   *) ac_try_echo=$ac_try;;
6201 esac
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203   (eval "$ac_compile") 2>conftest.er1
6204   ac_status=$?
6205   grep -v '^ *+' conftest.er1 >conftest.err
6206   rm -f conftest.er1
6207   cat conftest.err >&5
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); } &&
6210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6211   { (case "(($ac_try" in
6212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213   *) ac_try_echo=$ac_try;;
6214 esac
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216   (eval "$ac_try") 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); }; } &&
6220          { ac_try='test -s conftest.$ac_objext'
6221   { (case "(($ac_try" in
6222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223   *) ac_try_echo=$ac_try;;
6224 esac
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226   (eval "$ac_try") 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; }; then
6230   ac_cv_prog_cc_c89=$ac_arg
6231 else
6232   echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235
6236 fi
6237
6238 rm -f core conftest.err conftest.$ac_objext
6239   test "x$ac_cv_prog_cc_c89" != "xno" && break
6240 done
6241 rm -f conftest.$ac_ext
6242 CC=$ac_save_CC
6243
6244 fi
6245 # AC_CACHE_VAL
6246 case "x$ac_cv_prog_cc_c89" in
6247   x)
6248     { echo "$as_me:$LINENO: result: none needed" >&5
6249 echo "${ECHO_T}none needed" >&6; } ;;
6250   xno)
6251     { echo "$as_me:$LINENO: result: unsupported" >&5
6252 echo "${ECHO_T}unsupported" >&6; } ;;
6253   *)
6254     CC="$CC $ac_cv_prog_cc_c89"
6255     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6256 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6257 esac
6258
6259
6260 ac_ext=c
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265
6266 ac_ext=cpp
6267 ac_cpp='$CXXCPP $CPPFLAGS'
6268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6271 if test -z "$CXX"; then
6272   if test -n "$CCC"; then
6273     CXX=$CCC
6274   else
6275     if test -n "$ac_tool_prefix"; then
6276   for ac_prog in g++
6277   do
6278     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_prog_CXX+set}" = set; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285   if test -n "$CXX"; then
6286   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293   for ac_exec_ext in '' $ac_executable_extensions; do
6294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 CXX=$ac_cv_prog_CXX
6306 if test -n "$CXX"; then
6307   { echo "$as_me:$LINENO: result: $CXX" >&5
6308 echo "${ECHO_T}$CXX" >&6; }
6309 else
6310   { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6312 fi
6313
6314
6315     test -n "$CXX" && break
6316   done
6317 fi
6318 if test -z "$CXX"; then
6319   ac_ct_CXX=$CXX
6320   for ac_prog in g++
6321 do
6322   # Extract the first word of "$ac_prog", so it can be a program name with args.
6323 set dummy $ac_prog; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   if test -n "$ac_ct_CXX"; then
6330   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337   for ac_exec_ext in '' $ac_executable_extensions; do
6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6339     ac_cv_prog_ac_ct_CXX="$ac_prog"
6340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6350 if test -n "$ac_ct_CXX"; then
6351   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6352 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6353 else
6354   { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6356 fi
6357
6358
6359   test -n "$ac_ct_CXX" && break
6360 done
6361
6362   if test "x$ac_ct_CXX" = x; then
6363     CXX="g++"
6364   else
6365     case $cross_compiling:$ac_tool_warned in
6366 yes:)
6367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6368 whose name does not start with the host triplet.  If you think this
6369 configuration is useful to you, please write to autoconf@gnu.org." >&5
6370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6371 whose name does not start with the host triplet.  If you think this
6372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6373 ac_tool_warned=yes ;;
6374 esac
6375     CXX=$ac_ct_CXX
6376   fi
6377 fi
6378
6379   fi
6380 fi
6381 # Provide some information about the compiler.
6382 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6383 ac_compiler=`set X $ac_compile; echo $2`
6384 { (ac_try="$ac_compiler --version >&5"
6385 case "(($ac_try" in
6386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387   *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390   (eval "$ac_compiler --version >&5") 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); }
6394 { (ac_try="$ac_compiler -v >&5"
6395 case "(($ac_try" in
6396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397   *) ac_try_echo=$ac_try;;
6398 esac
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400   (eval "$ac_compiler -v >&5") 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }
6404 { (ac_try="$ac_compiler -V >&5"
6405 case "(($ac_try" in
6406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407   *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410   (eval "$ac_compiler -V >&5") 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }
6414
6415 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6416 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6417 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6418   echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420   cat >conftest.$ac_ext <<_ACEOF
6421 /* confdefs.h.  */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h.  */
6426
6427 int
6428 main ()
6429 {
6430 #ifndef __GNUC__
6431        choke me
6432 #endif
6433
6434   ;
6435   return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (ac_try="$ac_compile"
6440 case "(($ac_try" in
6441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442   *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445   (eval "$ac_compile") 2>conftest.er1
6446   ac_status=$?
6447   grep -v '^ *+' conftest.er1 >conftest.err
6448   rm -f conftest.er1
6449   cat conftest.err >&5
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } &&
6452          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6453   { (case "(($ac_try" in
6454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455   *) ac_try_echo=$ac_try;;
6456 esac
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458   (eval "$ac_try") 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); }; } &&
6462          { ac_try='test -s conftest.$ac_objext'
6463   { (case "(($ac_try" in
6464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465   *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468   (eval "$ac_try") 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; }; then
6472   ac_compiler_gnu=yes
6473 else
6474   echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477         ac_compiler_gnu=no
6478 fi
6479
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6482
6483 fi
6484 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6485 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6486 GXX=`test $ac_compiler_gnu = yes && echo yes`
6487 ac_test_CXXFLAGS=${CXXFLAGS+set}
6488 ac_save_CXXFLAGS=$CXXFLAGS
6489 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6490 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_cxx_g+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6495    ac_cxx_werror_flag=yes
6496    ac_cv_prog_cxx_g=no
6497    CXXFLAGS="-g"
6498    cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h.  */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h.  */
6504
6505 int
6506 main ()
6507 {
6508
6509   ;
6510   return 0;
6511 }
6512 _ACEOF
6513 rm -f conftest.$ac_objext
6514 if { (ac_try="$ac_compile"
6515 case "(($ac_try" in
6516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517   *) ac_try_echo=$ac_try;;
6518 esac
6519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520   (eval "$ac_compile") 2>conftest.er1
6521   ac_status=$?
6522   grep -v '^ *+' conftest.er1 >conftest.err
6523   rm -f conftest.er1
6524   cat conftest.err >&5
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); } &&
6527          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6528   { (case "(($ac_try" in
6529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530   *) ac_try_echo=$ac_try;;
6531 esac
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533   (eval "$ac_try") 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; } &&
6537          { ac_try='test -s conftest.$ac_objext'
6538   { (case "(($ac_try" in
6539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540   *) ac_try_echo=$ac_try;;
6541 esac
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543   (eval "$ac_try") 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); }; }; then
6547   ac_cv_prog_cxx_g=yes
6548 else
6549   echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552         CXXFLAGS=""
6553       cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h.  */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h.  */
6559
6560 int
6561 main ()
6562 {
6563
6564   ;
6565   return 0;
6566 }
6567 _ACEOF
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6570 case "(($ac_try" in
6571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572   *) ac_try_echo=$ac_try;;
6573 esac
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575   (eval "$ac_compile") 2>conftest.er1
6576   ac_status=$?
6577   grep -v '^ *+' conftest.er1 >conftest.err
6578   rm -f conftest.er1
6579   cat conftest.err >&5
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); } &&
6582          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6583   { (case "(($ac_try" in
6584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585   *) ac_try_echo=$ac_try;;
6586 esac
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588   (eval "$ac_try") 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; } &&
6592          { ac_try='test -s conftest.$ac_objext'
6593   { (case "(($ac_try" in
6594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595   *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598   (eval "$ac_try") 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; }; then
6602   :
6603 else
6604   echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6606
6607         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6608          CXXFLAGS="-g"
6609          cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h.  */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h.  */
6615
6616 int
6617 main ()
6618 {
6619
6620   ;
6621   return 0;
6622 }
6623 _ACEOF
6624 rm -f conftest.$ac_objext
6625 if { (ac_try="$ac_compile"
6626 case "(($ac_try" in
6627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628   *) ac_try_echo=$ac_try;;
6629 esac
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631   (eval "$ac_compile") 2>conftest.er1
6632   ac_status=$?
6633   grep -v '^ *+' conftest.er1 >conftest.err
6634   rm -f conftest.er1
6635   cat conftest.err >&5
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } &&
6638          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6639   { (case "(($ac_try" in
6640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641   *) ac_try_echo=$ac_try;;
6642 esac
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644   (eval "$ac_try") 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; } &&
6648          { ac_try='test -s conftest.$ac_objext'
6649   { (case "(($ac_try" in
6650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651   *) ac_try_echo=$ac_try;;
6652 esac
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654   (eval "$ac_try") 2>&5
6655   ac_status=$?
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); }; }; then
6658   ac_cv_prog_cxx_g=yes
6659 else
6660   echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6662
6663
6664 fi
6665
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 fi
6668
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670 fi
6671
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6674 fi
6675 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6677 if test "$ac_test_CXXFLAGS" = set; then
6678   CXXFLAGS=$ac_save_CXXFLAGS
6679 elif test $ac_cv_prog_cxx_g = yes; then
6680   if test "$GXX" = yes; then
6681     CXXFLAGS="-g -O2"
6682   else
6683     CXXFLAGS="-g"
6684   fi
6685 else
6686   if test "$GXX" = yes; then
6687     CXXFLAGS="-O2"
6688   else
6689     CXXFLAGS=
6690   fi
6691 fi
6692 ac_ext=c
6693 ac_cpp='$CPP $CPPFLAGS'
6694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6697
6698
6699 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6700 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6701 if test "${lt_cv_path_NM+set}" = set; then
6702   echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704   if test -n "$NM"; then
6705   # Let the user override the test.
6706   lt_cv_path_NM="$NM"
6707 else
6708   lt_nm_to_check="${ac_tool_prefix}nm"
6709   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6710     lt_nm_to_check="$lt_nm_to_check nm"
6711   fi
6712   for lt_tmp_nm in $lt_nm_to_check; do
6713     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6714     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6715       IFS="$lt_save_ifs"
6716       test -z "$ac_dir" && ac_dir=.
6717       tmp_nm="$ac_dir/$lt_tmp_nm"
6718       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6719         # Check to see if the nm accepts a BSD-compat flag.
6720         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6721         #   nm: unknown option "B" ignored
6722         # Tru64's nm complains that /dev/null is an invalid object file
6723         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6724         */dev/null* | *'Invalid file or object type'*)
6725           lt_cv_path_NM="$tmp_nm -B"
6726           break
6727           ;;
6728         *)
6729           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6730           */dev/null*)
6731             lt_cv_path_NM="$tmp_nm -p"
6732             break
6733             ;;
6734           *)
6735             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6736             continue # so that we can try to find one that supports BSD flags
6737             ;;
6738           esac
6739           ;;
6740         esac
6741       fi
6742     done
6743     IFS="$lt_save_ifs"
6744   done
6745   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6746 fi
6747 fi
6748 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6749 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6750 NM="$lt_cv_path_NM"
6751
6752
6753
6754 { echo "$as_me:$LINENO: checking for GNU make" >&5
6755 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6756 if test "${llvm_cv_gnu_make_command+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   llvm_cv_gnu_make_command=''
6760  for a in "$MAKE" make gmake gnumake ; do
6761   if test -z "$a" ; then continue ; fi ;
6762   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6763   then
6764    llvm_cv_gnu_make_command=$a ;
6765    break;
6766   fi
6767  done
6768 fi
6769 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6770 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6771  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6772    ifGNUmake='' ;
6773  else
6774    ifGNUmake='#' ;
6775    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6776 echo "${ECHO_T}\"Not found\"" >&6; };
6777  fi
6778
6779
6780 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6781 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6782 LN_S=$as_ln_s
6783 if test "$LN_S" = "ln -s"; then
6784   { echo "$as_me:$LINENO: result: yes" >&5
6785 echo "${ECHO_T}yes" >&6; }
6786 else
6787   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6788 echo "${ECHO_T}no, using $LN_S" >&6; }
6789 fi
6790
6791 # Extract the first word of "cmp", so it can be a program name with args.
6792 set dummy cmp; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_path_CMP+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   case $CMP in
6799   [\\/]* | ?:[\\/]*)
6800   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6801   ;;
6802   *)
6803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808   for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6819   ;;
6820 esac
6821 fi
6822 CMP=$ac_cv_path_CMP
6823 if test -n "$CMP"; then
6824   { echo "$as_me:$LINENO: result: $CMP" >&5
6825 echo "${ECHO_T}$CMP" >&6; }
6826 else
6827   { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6829 fi
6830
6831
6832 # Extract the first word of "cp", so it can be a program name with args.
6833 set dummy cp; ac_word=$2
6834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836 if test "${ac_cv_path_CP+set}" = set; then
6837   echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839   case $CP in
6840   [\\/]* | ?:[\\/]*)
6841   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6842   ;;
6843   *)
6844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849   for ac_exec_ext in '' $ac_executable_extensions; do
6850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6851     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6860   ;;
6861 esac
6862 fi
6863 CP=$ac_cv_path_CP
6864 if test -n "$CP"; then
6865   { echo "$as_me:$LINENO: result: $CP" >&5
6866 echo "${ECHO_T}$CP" >&6; }
6867 else
6868   { echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6; }
6870 fi
6871
6872
6873 # Extract the first word of "date", so it can be a program name with args.
6874 set dummy date; ac_word=$2
6875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877 if test "${ac_cv_path_DATE+set}" = set; then
6878   echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880   case $DATE in
6881   [\\/]* | ?:[\\/]*)
6882   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6883   ;;
6884   *)
6885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888   IFS=$as_save_IFS
6889   test -z "$as_dir" && as_dir=.
6890   for ac_exec_ext in '' $ac_executable_extensions; do
6891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6892     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894     break 2
6895   fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6901   ;;
6902 esac
6903 fi
6904 DATE=$ac_cv_path_DATE
6905 if test -n "$DATE"; then
6906   { echo "$as_me:$LINENO: result: $DATE" >&5
6907 echo "${ECHO_T}$DATE" >&6; }
6908 else
6909   { echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6; }
6911 fi
6912
6913
6914 # Extract the first word of "find", so it can be a program name with args.
6915 set dummy find; ac_word=$2
6916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918 if test "${ac_cv_path_FIND+set}" = set; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921   case $FIND in
6922   [\\/]* | ?:[\\/]*)
6923   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6924   ;;
6925   *)
6926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929   IFS=$as_save_IFS
6930   test -z "$as_dir" && as_dir=.
6931   for ac_exec_ext in '' $ac_executable_extensions; do
6932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6942   ;;
6943 esac
6944 fi
6945 FIND=$ac_cv_path_FIND
6946 if test -n "$FIND"; then
6947   { echo "$as_me:$LINENO: result: $FIND" >&5
6948 echo "${ECHO_T}$FIND" >&6; }
6949 else
6950   { echo "$as_me:$LINENO: result: no" >&5
6951 echo "${ECHO_T}no" >&6; }
6952 fi
6953
6954
6955 # Extract the first word of "grep", so it can be a program name with args.
6956 set dummy grep; ac_word=$2
6957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6959 if test "${ac_cv_path_GREP+set}" = set; then
6960   echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962   case $GREP in
6963   [\\/]* | ?:[\\/]*)
6964   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6965   ;;
6966   *)
6967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970   IFS=$as_save_IFS
6971   test -z "$as_dir" && as_dir=.
6972   for ac_exec_ext in '' $ac_executable_extensions; do
6973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6974     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976     break 2
6977   fi
6978 done
6979 done
6980 IFS=$as_save_IFS
6981
6982   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6983   ;;
6984 esac
6985 fi
6986 GREP=$ac_cv_path_GREP
6987 if test -n "$GREP"; then
6988   { echo "$as_me:$LINENO: result: $GREP" >&5
6989 echo "${ECHO_T}$GREP" >&6; }
6990 else
6991   { echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6; }
6993 fi
6994
6995
6996 # Extract the first word of "mkdir", so it can be a program name with args.
6997 set dummy mkdir; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_path_MKDIR+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   case $MKDIR in
7004   [\\/]* | ?:[\\/]*)
7005   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7006   ;;
7007   *)
7008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011   IFS=$as_save_IFS
7012   test -z "$as_dir" && as_dir=.
7013   for ac_exec_ext in '' $ac_executable_extensions; do
7014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7015     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017     break 2
7018   fi
7019 done
7020 done
7021 IFS=$as_save_IFS
7022
7023   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7024   ;;
7025 esac
7026 fi
7027 MKDIR=$ac_cv_path_MKDIR
7028 if test -n "$MKDIR"; then
7029   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7030 echo "${ECHO_T}$MKDIR" >&6; }
7031 else
7032   { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7034 fi
7035
7036
7037 # Extract the first word of "mv", so it can be a program name with args.
7038 set dummy mv; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_MV+set}" = set; then
7042   echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044   case $MV in
7045   [\\/]* | ?:[\\/]*)
7046   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7047   ;;
7048   *)
7049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054   for ac_exec_ext in '' $ac_executable_extensions; do
7055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7065   ;;
7066 esac
7067 fi
7068 MV=$ac_cv_path_MV
7069 if test -n "$MV"; then
7070   { echo "$as_me:$LINENO: result: $MV" >&5
7071 echo "${ECHO_T}$MV" >&6; }
7072 else
7073   { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077
7078 if test -n "$ac_tool_prefix"; then
7079   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_prog_RANLIB+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   if test -n "$RANLIB"; then
7087   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094   for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 RANLIB=$ac_cv_prog_RANLIB
7107 if test -n "$RANLIB"; then
7108   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7109 echo "${ECHO_T}$RANLIB" >&6; }
7110 else
7111   { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7113 fi
7114
7115
7116 fi
7117 if test -z "$ac_cv_prog_RANLIB"; then
7118   ac_ct_RANLIB=$RANLIB
7119   # Extract the first word of "ranlib", so it can be a program name with args.
7120 set dummy ranlib; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   if test -n "$ac_ct_RANLIB"; then
7127   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136     ac_cv_prog_ac_ct_RANLIB="ranlib"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7147 if test -n "$ac_ct_RANLIB"; then
7148   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7149 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7150 else
7151   { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7153 fi
7154
7155   if test "x$ac_ct_RANLIB" = x; then
7156     RANLIB=":"
7157   else
7158     case $cross_compiling:$ac_tool_warned in
7159 yes:)
7160 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7161 whose name does not start with the host triplet.  If you think this
7162 configuration is useful to you, please write to autoconf@gnu.org." >&5
7163 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7164 whose name does not start with the host triplet.  If you think this
7165 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7166 ac_tool_warned=yes ;;
7167 esac
7168     RANLIB=$ac_ct_RANLIB
7169   fi
7170 else
7171   RANLIB="$ac_cv_prog_RANLIB"
7172 fi
7173
7174 if test -n "$ac_tool_prefix"; then
7175   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7176 set dummy ${ac_tool_prefix}ar; ac_word=$2
7177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179 if test "${ac_cv_prog_AR+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   if test -n "$AR"; then
7183   ac_cv_prog_AR="$AR" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190   for ac_exec_ext in '' $ac_executable_extensions; do
7191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192     ac_cv_prog_AR="${ac_tool_prefix}ar"
7193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194     break 2
7195   fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200 fi
7201 fi
7202 AR=$ac_cv_prog_AR
7203 if test -n "$AR"; then
7204   { echo "$as_me:$LINENO: result: $AR" >&5
7205 echo "${ECHO_T}$AR" >&6; }
7206 else
7207   { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7209 fi
7210
7211
7212 fi
7213 if test -z "$ac_cv_prog_AR"; then
7214   ac_ct_AR=$AR
7215   # Extract the first word of "ar", so it can be a program name with args.
7216 set dummy ar; ac_word=$2
7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   if test -n "$ac_ct_AR"; then
7223   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7224 else
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228   IFS=$as_save_IFS
7229   test -z "$as_dir" && as_dir=.
7230   for ac_exec_ext in '' $ac_executable_extensions; do
7231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232     ac_cv_prog_ac_ct_AR="ar"
7233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234     break 2
7235   fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7239
7240 fi
7241 fi
7242 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7243 if test -n "$ac_ct_AR"; then
7244   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7245 echo "${ECHO_T}$ac_ct_AR" >&6; }
7246 else
7247   { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7249 fi
7250
7251   if test "x$ac_ct_AR" = x; then
7252     AR="false"
7253   else
7254     case $cross_compiling:$ac_tool_warned in
7255 yes:)
7256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7257 whose name does not start with the host triplet.  If you think this
7258 configuration is useful to you, please write to autoconf@gnu.org." >&5
7259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7260 whose name does not start with the host triplet.  If you think this
7261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7262 ac_tool_warned=yes ;;
7263 esac
7264     AR=$ac_ct_AR
7265   fi
7266 else
7267   AR="$ac_cv_prog_AR"
7268 fi
7269
7270 # Extract the first word of "rm", so it can be a program name with args.
7271 set dummy rm; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_path_RM+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277   case $RM in
7278   [\\/]* | ?:[\\/]*)
7279   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7280   ;;
7281   *)
7282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287   for ac_exec_ext in '' $ac_executable_extensions; do
7288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7289     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294 done
7295 IFS=$as_save_IFS
7296
7297   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7298   ;;
7299 esac
7300 fi
7301 RM=$ac_cv_path_RM
7302 if test -n "$RM"; then
7303   { echo "$as_me:$LINENO: result: $RM" >&5
7304 echo "${ECHO_T}$RM" >&6; }
7305 else
7306   { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7308 fi
7309
7310
7311 # Extract the first word of "sed", so it can be a program name with args.
7312 set dummy sed; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_path_SED+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   case $SED in
7319   [\\/]* | ?:[\\/]*)
7320   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7321   ;;
7322   *)
7323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7325 do
7326   IFS=$as_save_IFS
7327   test -z "$as_dir" && as_dir=.
7328   for ac_exec_ext in '' $ac_executable_extensions; do
7329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7330     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332     break 2
7333   fi
7334 done
7335 done
7336 IFS=$as_save_IFS
7337
7338   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7339   ;;
7340 esac
7341 fi
7342 SED=$ac_cv_path_SED
7343 if test -n "$SED"; then
7344   { echo "$as_me:$LINENO: result: $SED" >&5
7345 echo "${ECHO_T}$SED" >&6; }
7346 else
7347   { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7349 fi
7350
7351
7352 # Extract the first word of "tar", so it can be a program name with args.
7353 set dummy tar; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_TAR+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   case $TAR in
7360   [\\/]* | ?:[\\/]*)
7361   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7362   ;;
7363   *)
7364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369   for ac_exec_ext in '' $ac_executable_extensions; do
7370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7380   ;;
7381 esac
7382 fi
7383 TAR=$ac_cv_path_TAR
7384 if test -n "$TAR"; then
7385   { echo "$as_me:$LINENO: result: $TAR" >&5
7386 echo "${ECHO_T}$TAR" >&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 "pwd", so it can be a program name with args.
7394 set dummy pwd; 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_BINPWD+set}" = set; then
7398   echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400   case $BINPWD in
7401   [\\/]* | ?:[\\/]*)
7402   ac_cv_path_BINPWD="$BINPWD" # 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_BINPWD="$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   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7421   ;;
7422 esac
7423 fi
7424 BINPWD=$ac_cv_path_BINPWD
7425 if test -n "$BINPWD"; then
7426   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7427 echo "${ECHO_T}$BINPWD" >&6; }
7428 else
7429   { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7431 fi
7432
7433
7434
7435 # Extract the first word of "Graphviz", so it can be a program name with args.
7436 set dummy Graphviz; ac_word=$2
7437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7440   echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442   case $GRAPHVIZ in
7443   [\\/]* | ?:[\\/]*)
7444   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7445   ;;
7446   *)
7447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452   for ac_exec_ext in '' $ac_executable_extensions; do
7453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7454     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7463   ;;
7464 esac
7465 fi
7466 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7467 if test -n "$GRAPHVIZ"; then
7468   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7469 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7470 else
7471   { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7473 fi
7474
7475
7476 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7477
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_GRAPHVIZ 1
7480 _ACEOF
7481
7482     if test "$llvm_cv_os_type" = "MingW" ; then
7483     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7484   fi
7485
7486 cat >>confdefs.h <<_ACEOF
7487 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7488 _ACEOF
7489
7490 fi
7491 # Extract the first word of "dot", so it can be a program name with args.
7492 set dummy dot; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_DOT+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   case $DOT in
7499   [\\/]* | ?:[\\/]*)
7500   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7501   ;;
7502   *)
7503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508   for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7519   ;;
7520 esac
7521 fi
7522 DOT=$ac_cv_path_DOT
7523 if test -n "$DOT"; then
7524   { echo "$as_me:$LINENO: result: $DOT" >&5
7525 echo "${ECHO_T}$DOT" >&6; }
7526 else
7527   { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7529 fi
7530
7531
7532 if test "$DOT" != "echo dot" ; then
7533
7534 cat >>confdefs.h <<\_ACEOF
7535 #define HAVE_DOT 1
7536 _ACEOF
7537
7538     if test "$llvm_cv_os_type" = "MingW" ; then
7539     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7540   fi
7541
7542 cat >>confdefs.h <<_ACEOF
7543 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7544 _ACEOF
7545
7546 fi
7547 # Extract the first word of "fdp", so it can be a program name with args.
7548 set dummy fdp; ac_word=$2
7549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551 if test "${ac_cv_path_FDP+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554   case $FDP in
7555   [\\/]* | ?:[\\/]*)
7556   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7557   ;;
7558   *)
7559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564   for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7575   ;;
7576 esac
7577 fi
7578 FDP=$ac_cv_path_FDP
7579 if test -n "$FDP"; then
7580   { echo "$as_me:$LINENO: result: $FDP" >&5
7581 echo "${ECHO_T}$FDP" >&6; }
7582 else
7583   { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7585 fi
7586
7587
7588 if test "$FDP" != "echo fdp" ; then
7589
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_FDP 1
7592 _ACEOF
7593
7594     if test "$llvm_cv_os_type" = "MingW" ; then
7595     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7596   fi
7597
7598 cat >>confdefs.h <<_ACEOF
7599 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7600 _ACEOF
7601
7602 fi
7603 # Extract the first word of "neato", so it can be a program name with args.
7604 set dummy neato; 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_NEATO+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   case $NEATO in
7611   [\\/]* | ?:[\\/]*)
7612   ac_cv_path_NEATO="$NEATO" # 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_NEATO="$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   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7631   ;;
7632 esac
7633 fi
7634 NEATO=$ac_cv_path_NEATO
7635 if test -n "$NEATO"; then
7636   { echo "$as_me:$LINENO: result: $NEATO" >&5
7637 echo "${ECHO_T}$NEATO" >&6; }
7638 else
7639   { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7641 fi
7642
7643
7644 if test "$NEATO" != "echo neato" ; then
7645
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_NEATO 1
7648 _ACEOF
7649
7650     if test "$llvm_cv_os_type" = "MingW" ; then
7651     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7652   fi
7653
7654 cat >>confdefs.h <<_ACEOF
7655 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7656 _ACEOF
7657
7658 fi
7659 # Extract the first word of "twopi", so it can be a program name with args.
7660 set dummy twopi; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_TWOPI+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   case $TWOPI in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684 IFS=$as_save_IFS
7685
7686   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7687   ;;
7688 esac
7689 fi
7690 TWOPI=$ac_cv_path_TWOPI
7691 if test -n "$TWOPI"; then
7692   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7693 echo "${ECHO_T}$TWOPI" >&6; }
7694 else
7695   { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7697 fi
7698
7699
7700 if test "$TWOPI" != "echo twopi" ; then
7701
7702 cat >>confdefs.h <<\_ACEOF
7703 #define HAVE_TWOPI 1
7704 _ACEOF
7705
7706     if test "$llvm_cv_os_type" = "MingW" ; then
7707     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7708   fi
7709
7710 cat >>confdefs.h <<_ACEOF
7711 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7712 _ACEOF
7713
7714 fi
7715 # Extract the first word of "circo", so it can be a program name with args.
7716 set dummy circo; ac_word=$2
7717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719 if test "${ac_cv_path_CIRCO+set}" = set; then
7720   echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722   case $CIRCO in
7723   [\\/]* | ?:[\\/]*)
7724   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7725   ;;
7726   *)
7727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732   for ac_exec_ext in '' $ac_executable_extensions; do
7733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7734     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7743   ;;
7744 esac
7745 fi
7746 CIRCO=$ac_cv_path_CIRCO
7747 if test -n "$CIRCO"; then
7748   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7749 echo "${ECHO_T}$CIRCO" >&6; }
7750 else
7751   { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7753 fi
7754
7755
7756 if test "$CIRCO" != "echo circo" ; then
7757
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_CIRCO 1
7760 _ACEOF
7761
7762     if test "$llvm_cv_os_type" = "MingW" ; then
7763     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7764   fi
7765
7766 cat >>confdefs.h <<_ACEOF
7767 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7768 _ACEOF
7769
7770 fi
7771 for ac_prog in gv gsview32
7772 do
7773   # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777 if test "${ac_cv_path_GV+set}" = set; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780   case $GV in
7781   [\\/]* | ?:[\\/]*)
7782   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7783   ;;
7784   *)
7785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788   IFS=$as_save_IFS
7789   test -z "$as_dir" && as_dir=.
7790   for ac_exec_ext in '' $ac_executable_extensions; do
7791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794     break 2
7795   fi
7796 done
7797 done
7798 IFS=$as_save_IFS
7799
7800   ;;
7801 esac
7802 fi
7803 GV=$ac_cv_path_GV
7804 if test -n "$GV"; then
7805   { echo "$as_me:$LINENO: result: $GV" >&5
7806 echo "${ECHO_T}$GV" >&6; }
7807 else
7808   { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7810 fi
7811
7812
7813   test -n "$GV" && break
7814 done
7815 test -n "$GV" || GV="echo gv"
7816
7817 if test "$GV" != "echo gv" ; then
7818
7819 cat >>confdefs.h <<\_ACEOF
7820 #define HAVE_GV 1
7821 _ACEOF
7822
7823     if test "$llvm_cv_os_type" = "MingW" ; then
7824     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7825   fi
7826
7827 cat >>confdefs.h <<_ACEOF
7828 #define LLVM_PATH_GV "$GV${EXEEXT}"
7829 _ACEOF
7830
7831 fi
7832 # Extract the first word of "dotty", so it can be a program name with args.
7833 set dummy dotty; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_path_DOTTY+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839   case $DOTTY in
7840   [\\/]* | ?:[\\/]*)
7841   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7842   ;;
7843   *)
7844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849   for ac_exec_ext in '' $ac_executable_extensions; do
7850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856 done
7857 IFS=$as_save_IFS
7858
7859   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7860   ;;
7861 esac
7862 fi
7863 DOTTY=$ac_cv_path_DOTTY
7864 if test -n "$DOTTY"; then
7865   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7866 echo "${ECHO_T}$DOTTY" >&6; }
7867 else
7868   { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7870 fi
7871
7872
7873 if test "$DOTTY" != "echo dotty" ; then
7874
7875 cat >>confdefs.h <<\_ACEOF
7876 #define HAVE_DOTTY 1
7877 _ACEOF
7878
7879     if test "$llvm_cv_os_type" = "MingW" ; then
7880     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7881   fi
7882
7883 cat >>confdefs.h <<_ACEOF
7884 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7885 _ACEOF
7886
7887 fi
7888 # Extract the first word of "xdot.py", so it can be a program name with args.
7889 set dummy xdot.py; ac_word=$2
7890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   case $XDOT_PY in
7896   [\\/]* | ?:[\\/]*)
7897   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7898   ;;
7899   *)
7900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7902 do
7903   IFS=$as_save_IFS
7904   test -z "$as_dir" && as_dir=.
7905   for ac_exec_ext in '' $ac_executable_extensions; do
7906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7907     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909     break 2
7910   fi
7911 done
7912 done
7913 IFS=$as_save_IFS
7914
7915   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7916   ;;
7917 esac
7918 fi
7919 XDOT_PY=$ac_cv_path_XDOT_PY
7920 if test -n "$XDOT_PY"; then
7921   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7922 echo "${ECHO_T}$XDOT_PY" >&6; }
7923 else
7924   { echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6; }
7926 fi
7927
7928
7929 if test "$XDOT_PY" != "echo xdot.py" ; then
7930
7931 cat >>confdefs.h <<\_ACEOF
7932 #define HAVE_XDOT_PY 1
7933 _ACEOF
7934
7935     if test "$llvm_cv_os_type" = "MingW" ; then
7936     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7937   fi
7938
7939 cat >>confdefs.h <<_ACEOF
7940 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7941 _ACEOF
7942
7943 fi
7944
7945
7946 # Extract the first word of "perl", so it can be a program name with args.
7947 set dummy perl; ac_word=$2
7948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950 if test "${ac_cv_path_PERL+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   case $PERL in
7954   [\\/]* | ?:[\\/]*)
7955   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7956   ;;
7957   *)
7958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961   IFS=$as_save_IFS
7962   test -z "$as_dir" && as_dir=.
7963   for ac_exec_ext in '' $ac_executable_extensions; do
7964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7965     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967     break 2
7968   fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7974   ;;
7975 esac
7976 fi
7977 PERL=$ac_cv_path_PERL
7978 if test -n "$PERL"; then
7979   { echo "$as_me:$LINENO: result: $PERL" >&5
7980 echo "${ECHO_T}$PERL" >&6; }
7981 else
7982   { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7984 fi
7985
7986
7987 if test "$PERL" != "none"; then
7988   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7989 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7990   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7991     { echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6; }
7993   else
7994     PERL=none
7995     { echo "$as_me:$LINENO: result: not found" >&5
7996 echo "${ECHO_T}not found" >&6; }
7997   fi
7998 fi
7999
8000
8001 if test x"$PERL" = xnone; then
8002    HAVE_PERL=0
8003
8004    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8005 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8006    { (exit 1); exit 1; }; }
8007 else
8008    HAVE_PERL=1
8009
8010 fi
8011
8012 # Find a good install program.  We prefer a C program (faster),
8013 # so one script is as good as another.  But avoid the broken or
8014 # incompatible versions:
8015 # SysV /etc/install, /usr/sbin/install
8016 # SunOS /usr/etc/install
8017 # IRIX /sbin/install
8018 # AIX /bin/install
8019 # AmigaOS /C/install, which installs bootblocks on floppy discs
8020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8023 # OS/2's system install, which has a completely different semantic
8024 # ./install, which can be erroneously created by make from ./install.sh.
8025 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8026 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8027 if test -z "$INSTALL"; then
8028 if test "${ac_cv_path_install+set}" = set; then
8029   echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034   IFS=$as_save_IFS
8035   test -z "$as_dir" && as_dir=.
8036   # Account for people who put trailing slashes in PATH elements.
8037 case $as_dir/ in
8038   ./ | .// | /cC/* | \
8039   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8040   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8041   /usr/ucb/* ) ;;
8042   *)
8043     # OSF1 and SCO ODT 3.0 have their own names for install.
8044     # Don't use installbsd from OSF since it installs stuff as root
8045     # by default.
8046     for ac_prog in ginstall scoinst install; do
8047       for ac_exec_ext in '' $ac_executable_extensions; do
8048         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8049           if test $ac_prog = install &&
8050             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8051             # AIX install.  It has an incompatible calling convention.
8052             :
8053           elif test $ac_prog = install &&
8054             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8055             # program-specific install script used by HP pwplus--don't use.
8056             :
8057           else
8058             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8059             break 3
8060           fi
8061         fi
8062       done
8063     done
8064     ;;
8065 esac
8066 done
8067 IFS=$as_save_IFS
8068
8069
8070 fi
8071   if test "${ac_cv_path_install+set}" = set; then
8072     INSTALL=$ac_cv_path_install
8073   else
8074     # As a last resort, use the slow shell script.  Don't cache a
8075     # value for INSTALL within a source directory, because that will
8076     # break other packages using the cache if that directory is
8077     # removed, or if the value is a relative name.
8078     INSTALL=$ac_install_sh
8079   fi
8080 fi
8081 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8082 echo "${ECHO_T}$INSTALL" >&6; }
8083
8084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8085 # It thinks the first close brace ends the variable substitution.
8086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8087
8088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8089
8090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8091
8092 case "$INSTALL" in
8093  [\\/$]* | ?:[\\/]* ) ;;
8094  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8095 esac
8096
8097 # Extract the first word of "bzip2", so it can be a program name with args.
8098 set dummy bzip2; ac_word=$2
8099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101 if test "${ac_cv_path_BZIP2+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   case $BZIP2 in
8105   [\\/]* | ?:[\\/]*)
8106   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8107   ;;
8108   *)
8109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112   IFS=$as_save_IFS
8113   test -z "$as_dir" && as_dir=.
8114   for ac_exec_ext in '' $ac_executable_extensions; do
8115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8116     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121 done
8122 IFS=$as_save_IFS
8123
8124   ;;
8125 esac
8126 fi
8127 BZIP2=$ac_cv_path_BZIP2
8128 if test -n "$BZIP2"; then
8129   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8130 echo "${ECHO_T}$BZIP2" >&6; }
8131 else
8132   { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8134 fi
8135
8136
8137 # Extract the first word of "cat", so it can be a program name with args.
8138 set dummy cat; ac_word=$2
8139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141 if test "${ac_cv_path_CAT+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   case $CAT in
8145   [\\/]* | ?:[\\/]*)
8146   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8147   ;;
8148   *)
8149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152   IFS=$as_save_IFS
8153   test -z "$as_dir" && as_dir=.
8154   for ac_exec_ext in '' $ac_executable_extensions; do
8155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158     break 2
8159   fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164   ;;
8165 esac
8166 fi
8167 CAT=$ac_cv_path_CAT
8168 if test -n "$CAT"; then
8169   { echo "$as_me:$LINENO: result: $CAT" >&5
8170 echo "${ECHO_T}$CAT" >&6; }
8171 else
8172   { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8174 fi
8175
8176
8177 # Extract the first word of "doxygen", so it can be a program name with args.
8178 set dummy doxygen; ac_word=$2
8179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   case $DOXYGEN in
8185   [\\/]* | ?:[\\/]*)
8186   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8187   ;;
8188   *)
8189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192   IFS=$as_save_IFS
8193   test -z "$as_dir" && as_dir=.
8194   for ac_exec_ext in '' $ac_executable_extensions; do
8195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8196     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198     break 2
8199   fi
8200 done
8201 done
8202 IFS=$as_save_IFS
8203
8204   ;;
8205 esac
8206 fi
8207 DOXYGEN=$ac_cv_path_DOXYGEN
8208 if test -n "$DOXYGEN"; then
8209   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8210 echo "${ECHO_T}$DOXYGEN" >&6; }
8211 else
8212   { echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6; }
8214 fi
8215
8216
8217 # Extract the first word of "groff", so it can be a program name with args.
8218 set dummy groff; ac_word=$2
8219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221 if test "${ac_cv_path_GROFF+set}" = set; then
8222   echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224   case $GROFF in
8225   [\\/]* | ?:[\\/]*)
8226   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8227   ;;
8228   *)
8229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8231 do
8232   IFS=$as_save_IFS
8233   test -z "$as_dir" && as_dir=.
8234   for ac_exec_ext in '' $ac_executable_extensions; do
8235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8236     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238     break 2
8239   fi
8240 done
8241 done
8242 IFS=$as_save_IFS
8243
8244   ;;
8245 esac
8246 fi
8247 GROFF=$ac_cv_path_GROFF
8248 if test -n "$GROFF"; then
8249   { echo "$as_me:$LINENO: result: $GROFF" >&5
8250 echo "${ECHO_T}$GROFF" >&6; }
8251 else
8252   { echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6; }
8254 fi
8255
8256
8257 # Extract the first word of "gzip", so it can be a program name with args.
8258 set dummy gzip; ac_word=$2
8259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8261 if test "${ac_cv_path_GZIP+set}" = set; then
8262   echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264   case $GZIP in
8265   [\\/]* | ?:[\\/]*)
8266   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8267   ;;
8268   *)
8269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272   IFS=$as_save_IFS
8273   test -z "$as_dir" && as_dir=.
8274   for ac_exec_ext in '' $ac_executable_extensions; do
8275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8276     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8278     break 2
8279   fi
8280 done
8281 done
8282 IFS=$as_save_IFS
8283
8284   ;;
8285 esac
8286 fi
8287 GZIP=$ac_cv_path_GZIP
8288 if test -n "$GZIP"; then
8289   { echo "$as_me:$LINENO: result: $GZIP" >&5
8290 echo "${ECHO_T}$GZIP" >&6; }
8291 else
8292   { echo "$as_me:$LINENO: result: no" >&5
8293 echo "${ECHO_T}no" >&6; }
8294 fi
8295
8296
8297 # Extract the first word of "pod2html", so it can be a program name with args.
8298 set dummy pod2html; ac_word=$2
8299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8301 if test "${ac_cv_path_POD2HTML+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   case $POD2HTML in
8305   [\\/]* | ?:[\\/]*)
8306   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8307   ;;
8308   *)
8309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312   IFS=$as_save_IFS
8313   test -z "$as_dir" && as_dir=.
8314   for ac_exec_ext in '' $ac_executable_extensions; do
8315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8316     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318     break 2
8319   fi
8320 done
8321 done
8322 IFS=$as_save_IFS
8323
8324   ;;
8325 esac
8326 fi
8327 POD2HTML=$ac_cv_path_POD2HTML
8328 if test -n "$POD2HTML"; then
8329   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8330 echo "${ECHO_T}$POD2HTML" >&6; }
8331 else
8332   { echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6; }
8334 fi
8335
8336
8337 # Extract the first word of "pod2man", so it can be a program name with args.
8338 set dummy pod2man; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_path_POD2MAN+set}" = set; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   case $POD2MAN in
8345   [\\/]* | ?:[\\/]*)
8346   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8347   ;;
8348   *)
8349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352   IFS=$as_save_IFS
8353   test -z "$as_dir" && as_dir=.
8354   for ac_exec_ext in '' $ac_executable_extensions; do
8355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8356     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8358     break 2
8359   fi
8360 done
8361 done
8362 IFS=$as_save_IFS
8363
8364   ;;
8365 esac
8366 fi
8367 POD2MAN=$ac_cv_path_POD2MAN
8368 if test -n "$POD2MAN"; then
8369   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8370 echo "${ECHO_T}$POD2MAN" >&6; }
8371 else
8372   { echo "$as_me:$LINENO: result: no" >&5
8373 echo "${ECHO_T}no" >&6; }
8374 fi
8375
8376
8377 # Extract the first word of "pdfroff", so it can be a program name with args.
8378 set dummy pdfroff; ac_word=$2
8379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8381 if test "${ac_cv_path_PDFROFF+set}" = set; then
8382   echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384   case $PDFROFF in
8385   [\\/]* | ?:[\\/]*)
8386   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8387   ;;
8388   *)
8389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392   IFS=$as_save_IFS
8393   test -z "$as_dir" && as_dir=.
8394   for ac_exec_ext in '' $ac_executable_extensions; do
8395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8396     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8398     break 2
8399   fi
8400 done
8401 done
8402 IFS=$as_save_IFS
8403
8404   ;;
8405 esac
8406 fi
8407 PDFROFF=$ac_cv_path_PDFROFF
8408 if test -n "$PDFROFF"; then
8409   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8410 echo "${ECHO_T}$PDFROFF" >&6; }
8411 else
8412   { echo "$as_me:$LINENO: result: no" >&5
8413 echo "${ECHO_T}no" >&6; }
8414 fi
8415
8416
8417 # Extract the first word of "runtest", so it can be a program name with args.
8418 set dummy runtest; ac_word=$2
8419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8421 if test "${ac_cv_path_RUNTEST+set}" = set; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   case $RUNTEST in
8425   [\\/]* | ?:[\\/]*)
8426   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8427   ;;
8428   *)
8429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432   IFS=$as_save_IFS
8433   test -z "$as_dir" && as_dir=.
8434   for ac_exec_ext in '' $ac_executable_extensions; do
8435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8436     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8438     break 2
8439   fi
8440 done
8441 done
8442 IFS=$as_save_IFS
8443
8444   ;;
8445 esac
8446 fi
8447 RUNTEST=$ac_cv_path_RUNTEST
8448 if test -n "$RUNTEST"; then
8449   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8450 echo "${ECHO_T}$RUNTEST" >&6; }
8451 else
8452   { echo "$as_me:$LINENO: result: no" >&5
8453 echo "${ECHO_T}no" >&6; }
8454 fi
8455
8456
8457
8458 no_itcl=true
8459 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8460 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8461
8462 # Check whether --with-tclinclude was given.
8463 if test "${with_tclinclude+set}" = set; then
8464   withval=$with_tclinclude; with_tclinclude=${withval}
8465 else
8466   with_tclinclude=''
8467 fi
8468
8469 if test "${ac_cv_path_tclsh+set}" = set; then
8470   echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472
8473 if test x"${with_tclinclude}" != x ; then
8474   if test -f ${with_tclinclude}/tclsh ; then
8475     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8476   elif test -f ${with_tclinclude}/src/tclsh ; then
8477     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8478   else
8479     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8480 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8481    { (exit 1); exit 1; }; }
8482   fi
8483 fi
8484 fi
8485
8486
8487 if test x"${ac_cv_path_tclsh}" = x ; then
8488   { echo "$as_me:$LINENO: result: none" >&5
8489 echo "${ECHO_T}none" >&6; }
8490   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
8491 do
8492   # Extract the first word of "$ac_prog", so it can be a program name with args.
8493 set dummy $ac_prog; ac_word=$2
8494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8496 if test "${ac_cv_path_TCLSH+set}" = set; then
8497   echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499   case $TCLSH in
8500   [\\/]* | ?:[\\/]*)
8501   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8502   ;;
8503   *)
8504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8506 do
8507   IFS=$as_save_IFS
8508   test -z "$as_dir" && as_dir=.
8509   for ac_exec_ext in '' $ac_executable_extensions; do
8510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8511     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8513     break 2
8514   fi
8515 done
8516 done
8517 IFS=$as_save_IFS
8518
8519   ;;
8520 esac
8521 fi
8522 TCLSH=$ac_cv_path_TCLSH
8523 if test -n "$TCLSH"; then
8524   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8525 echo "${ECHO_T}$TCLSH" >&6; }
8526 else
8527   { echo "$as_me:$LINENO: result: no" >&5
8528 echo "${ECHO_T}no" >&6; }
8529 fi
8530
8531
8532   test -n "$TCLSH" && break
8533 done
8534
8535   if test x"${TCLSH}" = x ; then
8536     ac_cv_path_tclsh='';
8537   else
8538     ac_cv_path_tclsh="${TCLSH}";
8539   fi
8540 else
8541   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8542 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8543   TCLSH="${ac_cv_path_tclsh}"
8544
8545 fi
8546
8547 # Extract the first word of "zip", so it can be a program name with args.
8548 set dummy zip; ac_word=$2
8549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8551 if test "${ac_cv_path_ZIP+set}" = set; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554   case $ZIP in
8555   [\\/]* | ?:[\\/]*)
8556   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8557   ;;
8558   *)
8559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 for as_dir in $PATH
8561 do
8562   IFS=$as_save_IFS
8563   test -z "$as_dir" && as_dir=.
8564   for ac_exec_ext in '' $ac_executable_extensions; do
8565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8566     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8568     break 2
8569   fi
8570 done
8571 done
8572 IFS=$as_save_IFS
8573
8574   ;;
8575 esac
8576 fi
8577 ZIP=$ac_cv_path_ZIP
8578 if test -n "$ZIP"; then
8579   { echo "$as_me:$LINENO: result: $ZIP" >&5
8580 echo "${ECHO_T}$ZIP" >&6; }
8581 else
8582   { echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6; }
8584 fi
8585
8586
8587 for ac_prog in ocamlc
8588 do
8589   # Extract the first word of "$ac_prog", so it can be a program name with args.
8590 set dummy $ac_prog; ac_word=$2
8591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8593 if test "${ac_cv_path_OCAMLC+set}" = set; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   case $OCAMLC in
8597   [\\/]* | ?:[\\/]*)
8598   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8599   ;;
8600   *)
8601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8603 do
8604   IFS=$as_save_IFS
8605   test -z "$as_dir" && as_dir=.
8606   for ac_exec_ext in '' $ac_executable_extensions; do
8607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8608     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610     break 2
8611   fi
8612 done
8613 done
8614 IFS=$as_save_IFS
8615
8616   ;;
8617 esac
8618 fi
8619 OCAMLC=$ac_cv_path_OCAMLC
8620 if test -n "$OCAMLC"; then
8621   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8622 echo "${ECHO_T}$OCAMLC" >&6; }
8623 else
8624   { echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6; }
8626 fi
8627
8628
8629   test -n "$OCAMLC" && break
8630 done
8631
8632 for ac_prog in ocamlopt
8633 do
8634   # Extract the first word of "$ac_prog", so it can be a program name with args.
8635 set dummy $ac_prog; ac_word=$2
8636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8638 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641   case $OCAMLOPT in
8642   [\\/]* | ?:[\\/]*)
8643   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8644   ;;
8645   *)
8646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649   IFS=$as_save_IFS
8650   test -z "$as_dir" && as_dir=.
8651   for ac_exec_ext in '' $ac_executable_extensions; do
8652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8653     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655     break 2
8656   fi
8657 done
8658 done
8659 IFS=$as_save_IFS
8660
8661   ;;
8662 esac
8663 fi
8664 OCAMLOPT=$ac_cv_path_OCAMLOPT
8665 if test -n "$OCAMLOPT"; then
8666   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8667 echo "${ECHO_T}$OCAMLOPT" >&6; }
8668 else
8669   { echo "$as_me:$LINENO: result: no" >&5
8670 echo "${ECHO_T}no" >&6; }
8671 fi
8672
8673
8674   test -n "$OCAMLOPT" && break
8675 done
8676
8677 for ac_prog in ocamldep
8678 do
8679   # Extract the first word of "$ac_prog", so it can be a program name with args.
8680 set dummy $ac_prog; ac_word=$2
8681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8683 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686   case $OCAMLDEP in
8687   [\\/]* | ?:[\\/]*)
8688   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8689   ;;
8690   *)
8691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8693 do
8694   IFS=$as_save_IFS
8695   test -z "$as_dir" && as_dir=.
8696   for ac_exec_ext in '' $ac_executable_extensions; do
8697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8698     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8700     break 2
8701   fi
8702 done
8703 done
8704 IFS=$as_save_IFS
8705
8706   ;;
8707 esac
8708 fi
8709 OCAMLDEP=$ac_cv_path_OCAMLDEP
8710 if test -n "$OCAMLDEP"; then
8711   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8712 echo "${ECHO_T}$OCAMLDEP" >&6; }
8713 else
8714   { echo "$as_me:$LINENO: result: no" >&5
8715 echo "${ECHO_T}no" >&6; }
8716 fi
8717
8718
8719   test -n "$OCAMLDEP" && break
8720 done
8721
8722 for ac_prog in ocamldoc
8723 do
8724   # Extract the first word of "$ac_prog", so it can be a program name with args.
8725 set dummy $ac_prog; ac_word=$2
8726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8728 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8729   echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731   case $OCAMLDOC in
8732   [\\/]* | ?:[\\/]*)
8733   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8734   ;;
8735   *)
8736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739   IFS=$as_save_IFS
8740   test -z "$as_dir" && as_dir=.
8741   for ac_exec_ext in '' $ac_executable_extensions; do
8742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8743     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745     break 2
8746   fi
8747 done
8748 done
8749 IFS=$as_save_IFS
8750
8751   ;;
8752 esac
8753 fi
8754 OCAMLDOC=$ac_cv_path_OCAMLDOC
8755 if test -n "$OCAMLDOC"; then
8756   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8757 echo "${ECHO_T}$OCAMLDOC" >&6; }
8758 else
8759   { echo "$as_me:$LINENO: result: no" >&5
8760 echo "${ECHO_T}no" >&6; }
8761 fi
8762
8763
8764   test -n "$OCAMLDOC" && break
8765 done
8766
8767 for ac_prog in gas as
8768 do
8769   # Extract the first word of "$ac_prog", so it can be a program name with args.
8770 set dummy $ac_prog; ac_word=$2
8771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8773 if test "${ac_cv_path_GAS+set}" = set; then
8774   echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776   case $GAS in
8777   [\\/]* | ?:[\\/]*)
8778   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8779   ;;
8780   *)
8781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 for as_dir in $PATH
8783 do
8784   IFS=$as_save_IFS
8785   test -z "$as_dir" && as_dir=.
8786   for ac_exec_ext in '' $ac_executable_extensions; do
8787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8788     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8790     break 2
8791   fi
8792 done
8793 done
8794 IFS=$as_save_IFS
8795
8796   ;;
8797 esac
8798 fi
8799 GAS=$ac_cv_path_GAS
8800 if test -n "$GAS"; then
8801   { echo "$as_me:$LINENO: result: $GAS" >&5
8802 echo "${ECHO_T}$GAS" >&6; }
8803 else
8804   { echo "$as_me:$LINENO: result: no" >&5
8805 echo "${ECHO_T}no" >&6; }
8806 fi
8807
8808
8809   test -n "$GAS" && break
8810 done
8811
8812
8813 { echo "$as_me:$LINENO: checking for linker version" >&5
8814 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8815 if test "${llvm_cv_link_version+set}" = set; then
8816   echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818
8819    version_string="$(ld -v 2>&1 | head -1)"
8820
8821    # Check for ld64.
8822    if (echo "$version_string" | grep -q "ld64"); then
8823      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8824    else
8825      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8826    fi
8827
8828 fi
8829 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8830 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8831
8832 cat >>confdefs.h <<_ACEOF
8833 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8834 _ACEOF
8835
8836
8837
8838 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8839 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8840 if test "${llvm_cv_link_use_r+set}" = set; then
8841   echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843    ac_ext=c
8844 ac_cpp='$CPP $CPPFLAGS'
8845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8848
8849   oldcflags="$CFLAGS"
8850   CFLAGS="$CFLAGS -Wl,-R."
8851   cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h.  */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h.  */
8857
8858 int
8859 main ()
8860 {
8861
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8868 case "(($ac_try" in
8869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870   *) ac_try_echo=$ac_try;;
8871 esac
8872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873   (eval "$ac_link") 2>conftest.er1
8874   ac_status=$?
8875   grep -v '^ *+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } &&
8880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8881   { (case "(($ac_try" in
8882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883   *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886   (eval "$ac_try") 2>&5
8887   ac_status=$?
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); }; } &&
8890          { ac_try='test -s conftest$ac_exeext'
8891   { (case "(($ac_try" in
8892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893   *) ac_try_echo=$ac_try;;
8894 esac
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896   (eval "$ac_try") 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); }; }; then
8900   llvm_cv_link_use_r=yes
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905         llvm_cv_link_use_r=no
8906 fi
8907
8908 rm -f core conftest.err conftest.$ac_objext \
8909       conftest$ac_exeext conftest.$ac_ext
8910   CFLAGS="$oldcflags"
8911   ac_ext=c
8912 ac_cpp='$CPP $CPPFLAGS'
8913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8916
8917
8918 fi
8919 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8920 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8921 if test "$llvm_cv_link_use_r" = yes ; then
8922
8923 cat >>confdefs.h <<\_ACEOF
8924 #define HAVE_LINK_R 1
8925 _ACEOF
8926
8927   fi
8928
8929
8930 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8931 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8932 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8933   echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935    ac_ext=c
8936 ac_cpp='$CPP $CPPFLAGS'
8937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940
8941   oldcflags="$CFLAGS"
8942   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8943   cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949
8950 int
8951 main ()
8952 {
8953
8954   ;
8955   return 0;
8956 }
8957 _ACEOF
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (ac_try="$ac_link"
8960 case "(($ac_try" in
8961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962   *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965   (eval "$ac_link") 2>conftest.er1
8966   ac_status=$?
8967   grep -v '^ *+' conftest.er1 >conftest.err
8968   rm -f conftest.er1
8969   cat conftest.err >&5
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); } &&
8972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973   { (case "(($ac_try" in
8974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975   *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978   (eval "$ac_try") 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; } &&
8982          { ac_try='test -s conftest$ac_exeext'
8983   { (case "(($ac_try" in
8984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985   *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988   (eval "$ac_try") 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   llvm_cv_link_use_export_dynamic=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997         llvm_cv_link_use_export_dynamic=no
8998 fi
8999
9000 rm -f core conftest.err conftest.$ac_objext \
9001       conftest$ac_exeext conftest.$ac_ext
9002   CFLAGS="$oldcflags"
9003   ac_ext=c
9004 ac_cpp='$CPP $CPPFLAGS'
9005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008
9009
9010 fi
9011 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9012 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9013 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9014
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_LINK_EXPORT_DYNAMIC 1
9017 _ACEOF
9018
9019   fi
9020
9021
9022 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9023 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9024 if test "${llvm_cv_link_use_version_script+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027    ac_ext=c
9028 ac_cpp='$CPP $CPPFLAGS'
9029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032
9033   oldcflags="$CFLAGS"
9034
9035   # The following code is from the autoconf manual,
9036   # "11.13: Limitations of Usual Tools".
9037   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9038   # Use mktemp if possible; otherwise fall back on mkdir,
9039   # with $RANDOM to make collisions less likely.
9040   : ${TMPDIR=/tmp}
9041   {
9042     tmp=`
9043       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9044     ` &&
9045     test -n "$tmp" && test -d "$tmp"
9046   } || {
9047     tmp=$TMPDIR/foo$$-$RANDOM
9048     (umask 077 && mkdir "$tmp")
9049   } || exit $?
9050
9051   echo "{" > "$tmp/export.map"
9052   echo "  global: main;" >> "$tmp/export.map"
9053   echo "  local: *;" >> "$tmp/export.map"
9054   echo "};" >> "$tmp/export.map"
9055
9056   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9057   cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h.  */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h.  */
9063
9064 int
9065 main ()
9066 {
9067
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9074 case "(($ac_try" in
9075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076   *) ac_try_echo=$ac_try;;
9077 esac
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079   (eval "$ac_link") 2>conftest.er1
9080   ac_status=$?
9081   grep -v '^ *+' conftest.er1 >conftest.err
9082   rm -f conftest.er1
9083   cat conftest.err >&5
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } &&
9086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9087   { (case "(($ac_try" in
9088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089   *) ac_try_echo=$ac_try;;
9090 esac
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092   (eval "$ac_try") 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; } &&
9096          { ac_try='test -s conftest$ac_exeext'
9097   { (case "(($ac_try" in
9098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099   *) ac_try_echo=$ac_try;;
9100 esac
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102   (eval "$ac_try") 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); }; }; then
9106   llvm_cv_link_use_version_script=yes
9107 else
9108   echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9110
9111         llvm_cv_link_use_version_script=no
9112 fi
9113
9114 rm -f core conftest.err conftest.$ac_objext \
9115       conftest$ac_exeext conftest.$ac_ext
9116   rm "$tmp/export.map"
9117   rmdir "$tmp"
9118   CFLAGS="$oldcflags"
9119   ac_ext=c
9120 ac_cpp='$CPP $CPPFLAGS'
9121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9124
9125
9126 fi
9127 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9128 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9129 if test "$llvm_cv_link_use_version_script" = yes ; then
9130   HAVE_LINK_VERSION_SCRIPT=1
9131
9132   fi
9133
9134
9135
9136
9137 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9138 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9139 if test "${ac_cv_c_const+set}" = set; then
9140   echo $ECHO_N "(cached) $ECHO_C" >&6
9141 else
9142   cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h.  */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h.  */
9148
9149 int
9150 main ()
9151 {
9152 /* FIXME: Include the comments suggested by Paul. */
9153 #ifndef __cplusplus
9154   /* Ultrix mips cc rejects this.  */
9155   typedef int charset[2];
9156   const charset x;
9157   /* SunOS 4.1.1 cc rejects this.  */
9158   char const *const *ccp;
9159   char **p;
9160   /* NEC SVR4.0.2 mips cc rejects this.  */
9161   struct point {int x, y;};
9162   static struct point const zero = {0,0};
9163   /* AIX XL C 1.02.0.0 rejects this.
9164      It does not let you subtract one const X* pointer from another in
9165      an arm of an if-expression whose if-part is not a constant
9166      expression */
9167   const char *g = "string";
9168   ccp = &g + (g ? g-g : 0);
9169   /* HPUX 7.0 cc rejects these. */
9170   ++ccp;
9171   p = (char**) ccp;
9172   ccp = (char const *const *) p;
9173   { /* SCO 3.2v4 cc rejects this.  */
9174     char *t;
9175     char const *s = 0 ? (char *) 0 : (char const *) 0;
9176
9177     *t++ = 0;
9178     if (s) return 0;
9179   }
9180   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9181     int x[] = {25, 17};
9182     const int *foo = &x[0];
9183     ++foo;
9184   }
9185   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9186     typedef const int *iptr;
9187     iptr p = 0;
9188     ++p;
9189   }
9190   { /* AIX XL C 1.02.0.0 rejects this saying
9191        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9192     struct s { int j; const int *ap[3]; };
9193     struct s *b; b->j = 5;
9194   }
9195   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9196     const int foo = 10;
9197     if (!foo) return 0;
9198   }
9199   return !x[0] && !zero.x;
9200 #endif
9201
9202   ;
9203   return 0;
9204 }
9205 _ACEOF
9206 rm -f conftest.$ac_objext
9207 if { (ac_try="$ac_compile"
9208 case "(($ac_try" in
9209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210   *) ac_try_echo=$ac_try;;
9211 esac
9212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213   (eval "$ac_compile") 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221   { (case "(($ac_try" in
9222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223   *) ac_try_echo=$ac_try;;
9224 esac
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226   (eval "$ac_try") 2>&5
9227   ac_status=$?
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); }; } &&
9230          { ac_try='test -s conftest.$ac_objext'
9231   { (case "(($ac_try" in
9232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233   *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236   (eval "$ac_try") 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; }; then
9240   ac_cv_c_const=yes
9241 else
9242   echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245         ac_cv_c_const=no
9246 fi
9247
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 fi
9250 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9251 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9252 if test $ac_cv_c_const = no; then
9253
9254 cat >>confdefs.h <<\_ACEOF
9255 #define const
9256 _ACEOF
9257
9258 fi
9259
9260
9261
9262
9263
9264
9265 ac_header_dirent=no
9266 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9267   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9268 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9269 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9271   echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273   cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h.  */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h.  */
9279 #include <sys/types.h>
9280 #include <$ac_hdr>
9281
9282 int
9283 main ()
9284 {
9285 if ((DIR *) 0)
9286 return 0;
9287   ;
9288   return 0;
9289 }
9290 _ACEOF
9291 rm -f conftest.$ac_objext
9292 if { (ac_try="$ac_compile"
9293 case "(($ac_try" in
9294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295   *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298   (eval "$ac_compile") 2>conftest.er1
9299   ac_status=$?
9300   grep -v '^ *+' conftest.er1 >conftest.err
9301   rm -f conftest.er1
9302   cat conftest.err >&5
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); } &&
9305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9306   { (case "(($ac_try" in
9307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308   *) ac_try_echo=$ac_try;;
9309 esac
9310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9311   (eval "$ac_try") 2>&5
9312   ac_status=$?
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); }; } &&
9315          { ac_try='test -s conftest.$ac_objext'
9316   { (case "(($ac_try" in
9317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318   *) ac_try_echo=$ac_try;;
9319 esac
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321   (eval "$ac_try") 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; }; then
9325   eval "$as_ac_Header=yes"
9326 else
9327   echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9329
9330         eval "$as_ac_Header=no"
9331 fi
9332
9333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334 fi
9335 ac_res=`eval echo '${'$as_ac_Header'}'`
9336                { echo "$as_me:$LINENO: result: $ac_res" >&5
9337 echo "${ECHO_T}$ac_res" >&6; }
9338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9339   cat >>confdefs.h <<_ACEOF
9340 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9341 _ACEOF
9342
9343 ac_header_dirent=$ac_hdr; break
9344 fi
9345
9346 done
9347 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9348 if test $ac_header_dirent = dirent.h; then
9349   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9350 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9351 if test "${ac_cv_search_opendir+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354   ac_func_search_save_LIBS=$LIBS
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h.  */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h.  */
9361
9362 /* Override any GCC internal prototype to avoid an error.
9363    Use char because int might match the return type of a GCC
9364    builtin and then its argument prototype would still apply.  */
9365 #ifdef __cplusplus
9366 extern "C"
9367 #endif
9368 char opendir ();
9369 int
9370 main ()
9371 {
9372 return opendir ();
9373   ;
9374   return 0;
9375 }
9376 _ACEOF
9377 for ac_lib in '' dir; do
9378   if test -z "$ac_lib"; then
9379     ac_res="none required"
9380   else
9381     ac_res=-l$ac_lib
9382     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9383   fi
9384   rm -f conftest.$ac_objext conftest$ac_exeext
9385 if { (ac_try="$ac_link"
9386 case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391   (eval "$ac_link") 2>conftest.er1
9392   ac_status=$?
9393   grep -v '^ *+' conftest.er1 >conftest.err
9394   rm -f conftest.er1
9395   cat conftest.err >&5
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } &&
9398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9399   { (case "(($ac_try" in
9400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401   *) ac_try_echo=$ac_try;;
9402 esac
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404   (eval "$ac_try") 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); }; } &&
9408          { ac_try='test -s conftest$ac_exeext'
9409   { (case "(($ac_try" in
9410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411   *) ac_try_echo=$ac_try;;
9412 esac
9413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414   (eval "$ac_try") 2>&5
9415   ac_status=$?
9416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); }; }; then
9418   ac_cv_search_opendir=$ac_res
9419 else
9420   echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9422
9423
9424 fi
9425
9426 rm -f core conftest.err conftest.$ac_objext \
9427       conftest$ac_exeext
9428   if test "${ac_cv_search_opendir+set}" = set; then
9429   break
9430 fi
9431 done
9432 if test "${ac_cv_search_opendir+set}" = set; then
9433   :
9434 else
9435   ac_cv_search_opendir=no
9436 fi
9437 rm conftest.$ac_ext
9438 LIBS=$ac_func_search_save_LIBS
9439 fi
9440 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9441 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9442 ac_res=$ac_cv_search_opendir
9443 if test "$ac_res" != no; then
9444   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9445
9446 fi
9447
9448 else
9449   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9450 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9451 if test "${ac_cv_search_opendir+set}" = set; then
9452   echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454   ac_func_search_save_LIBS=$LIBS
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h.  */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h.  */
9461
9462 /* Override any GCC internal prototype to avoid an error.
9463    Use char because int might match the return type of a GCC
9464    builtin and then its argument prototype would still apply.  */
9465 #ifdef __cplusplus
9466 extern "C"
9467 #endif
9468 char opendir ();
9469 int
9470 main ()
9471 {
9472 return opendir ();
9473   ;
9474   return 0;
9475 }
9476 _ACEOF
9477 for ac_lib in '' x; do
9478   if test -z "$ac_lib"; then
9479     ac_res="none required"
9480   else
9481     ac_res=-l$ac_lib
9482     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9483   fi
9484   rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (ac_try="$ac_link"
9486 case "(($ac_try" in
9487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488   *) ac_try_echo=$ac_try;;
9489 esac
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491   (eval "$ac_link") 2>conftest.er1
9492   ac_status=$?
9493   grep -v '^ *+' conftest.er1 >conftest.err
9494   rm -f conftest.er1
9495   cat conftest.err >&5
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); } &&
9498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9499   { (case "(($ac_try" in
9500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501   *) ac_try_echo=$ac_try;;
9502 esac
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504   (eval "$ac_try") 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; } &&
9508          { ac_try='test -s conftest$ac_exeext'
9509   { (case "(($ac_try" in
9510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511   *) ac_try_echo=$ac_try;;
9512 esac
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514   (eval "$ac_try") 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; }; then
9518   ac_cv_search_opendir=$ac_res
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523
9524 fi
9525
9526 rm -f core conftest.err conftest.$ac_objext \
9527       conftest$ac_exeext
9528   if test "${ac_cv_search_opendir+set}" = set; then
9529   break
9530 fi
9531 done
9532 if test "${ac_cv_search_opendir+set}" = set; then
9533   :
9534 else
9535   ac_cv_search_opendir=no
9536 fi
9537 rm conftest.$ac_ext
9538 LIBS=$ac_func_search_save_LIBS
9539 fi
9540 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9541 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9542 ac_res=$ac_cv_search_opendir
9543 if test "$ac_res" != no; then
9544   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9545
9546 fi
9547
9548 fi
9549
9550
9551 for ac_header in dlfcn.h
9552 do
9553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9555   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9558   echo $ECHO_N "(cached) $ECHO_C" >&6
9559 fi
9560 ac_res=`eval echo '${'$as_ac_Header'}'`
9561                { echo "$as_me:$LINENO: result: $ac_res" >&5
9562 echo "${ECHO_T}$ac_res" >&6; }
9563 else
9564   # Is the header compilable?
9565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h.  */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h.  */
9573 $ac_includes_default
9574 #include <$ac_header>
9575 _ACEOF
9576 rm -f conftest.$ac_objext
9577 if { (ac_try="$ac_compile"
9578 case "(($ac_try" in
9579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580   *) ac_try_echo=$ac_try;;
9581 esac
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583   (eval "$ac_compile") 2>conftest.er1
9584   ac_status=$?
9585   grep -v '^ *+' conftest.er1 >conftest.err
9586   rm -f conftest.er1
9587   cat conftest.err >&5
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); } &&
9590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9591   { (case "(($ac_try" in
9592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593   *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596   (eval "$ac_try") 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); }; } &&
9600          { ac_try='test -s conftest.$ac_objext'
9601   { (case "(($ac_try" in
9602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603   *) ac_try_echo=$ac_try;;
9604 esac
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606   (eval "$ac_try") 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); }; }; then
9610   ac_header_compiler=yes
9611 else
9612   echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9614
9615         ac_header_compiler=no
9616 fi
9617
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620 echo "${ECHO_T}$ac_header_compiler" >&6; }
9621
9622 # Is the header present?
9623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9625 cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631 #include <$ac_header>
9632 _ACEOF
9633 if { (ac_try="$ac_cpp conftest.$ac_ext"
9634 case "(($ac_try" in
9635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636   *) ac_try_echo=$ac_try;;
9637 esac
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9640   ac_status=$?
9641   grep -v '^ *+' conftest.er1 >conftest.err
9642   rm -f conftest.er1
9643   cat conftest.err >&5
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); } >/dev/null; then
9646   if test -s conftest.err; then
9647     ac_cpp_err=$ac_c_preproc_warn_flag
9648     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9649   else
9650     ac_cpp_err=
9651   fi
9652 else
9653   ac_cpp_err=yes
9654 fi
9655 if test -z "$ac_cpp_err"; then
9656   ac_header_preproc=yes
9657 else
9658   echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9660
9661   ac_header_preproc=no
9662 fi
9663
9664 rm -f conftest.err conftest.$ac_ext
9665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9666 echo "${ECHO_T}$ac_header_preproc" >&6; }
9667
9668 # So?  What about this header?
9669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9670   yes:no: )
9671     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9675     ac_header_preproc=yes
9676     ;;
9677   no:yes:* )
9678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9680     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9681 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9682     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9684     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9685 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9688     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9690     ( cat <<\_ASBOX
9691 ## ----------------------------------- ##
9692 ## Report this to llvmbugs@cs.uiuc.edu ##
9693 ## ----------------------------------- ##
9694 _ASBOX
9695      ) | sed "s/^/$as_me: WARNING:     /" >&2
9696     ;;
9697 esac
9698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9701   echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703   eval "$as_ac_Header=\$ac_header_preproc"
9704 fi
9705 ac_res=`eval echo '${'$as_ac_Header'}'`
9706                { echo "$as_me:$LINENO: result: $ac_res" >&5
9707 echo "${ECHO_T}$ac_res" >&6; }
9708
9709 fi
9710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9711   cat >>confdefs.h <<_ACEOF
9712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9713 _ACEOF
9714
9715 fi
9716
9717 done
9718
9719 # Check whether --enable-ltdl-install was given.
9720 if test "${enable_ltdl_install+set}" = set; then
9721   enableval=$enable_ltdl_install;
9722 fi
9723
9724
9725
9726
9727 if test x"${enable_ltdl_install-no}" != xno; then
9728   INSTALL_LTDL_TRUE=
9729   INSTALL_LTDL_FALSE='#'
9730 else
9731   INSTALL_LTDL_TRUE='#'
9732   INSTALL_LTDL_FALSE=
9733 fi
9734
9735
9736
9737 if test x"${enable_ltdl_convenience-no}" != xno; then
9738   CONVENIENCE_LTDL_TRUE=
9739   CONVENIENCE_LTDL_FALSE='#'
9740 else
9741   CONVENIENCE_LTDL_TRUE='#'
9742   CONVENIENCE_LTDL_FALSE=
9743 fi
9744
9745
9746 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9747 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9748 library_names_spec=
9749 libname_spec='lib$name'
9750 soname_spec=
9751 shrext_cmds=".so"
9752 postinstall_cmds=
9753 postuninstall_cmds=
9754 finish_cmds=
9755 finish_eval=
9756 shlibpath_var=
9757 shlibpath_overrides_runpath=unknown
9758 version_type=none
9759 dynamic_linker="$host_os ld.so"
9760 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9761 if test "$GCC" = yes; then
9762   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9763   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9764     # if the path contains ";" then we assume it to be the separator
9765     # otherwise default to the standard path separator (i.e. ":") - it is
9766     # assumed that no part of a normal pathname contains ";" but that should
9767     # okay in the real world where ";" in dirpaths is itself problematic.
9768     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9769   else
9770     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9771   fi
9772 else
9773   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9774 fi
9775 need_lib_prefix=unknown
9776 hardcode_into_libs=no
9777
9778 # when you set need_version to no, make sure it does not cause -set_version
9779 # flags to be left without arguments
9780 need_version=unknown
9781
9782 case $host_os in
9783 aix3*)
9784   version_type=linux
9785   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9786   shlibpath_var=LIBPATH
9787
9788   # AIX 3 has no versioning support, so we append a major version to the name.
9789   soname_spec='${libname}${release}${shared_ext}$major'
9790   ;;
9791
9792 aix4* | aix5*)
9793   version_type=linux
9794   need_lib_prefix=no
9795   need_version=no
9796   hardcode_into_libs=yes
9797   if test "$host_cpu" = ia64; then
9798     # AIX 5 supports IA64
9799     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9800     shlibpath_var=LD_LIBRARY_PATH
9801   else
9802     # With GCC up to 2.95.x, collect2 would create an import file
9803     # for dependence libraries.  The import file would start with
9804     # the line `#! .'.  This would cause the generated library to
9805     # depend on `.', always an invalid library.  This was fixed in
9806     # development snapshots of GCC prior to 3.0.
9807     case $host_os in
9808       aix4 | aix4.[01] | aix4.[01].*)
9809       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9810            echo ' yes '
9811            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9812         :
9813       else
9814         can_build_shared=no
9815       fi
9816       ;;
9817     esac
9818     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9819     # soname into executable. Probably we can add versioning support to
9820     # collect2, so additional links can be useful in future.
9821     if test "$aix_use_runtimelinking" = yes; then
9822       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9823       # instead of lib<name>.a to let people know that these are not
9824       # typical AIX shared libraries.
9825       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826     else
9827       # We preserve .a as extension for shared libraries through AIX4.2
9828       # and later when we are not doing run time linking.
9829       library_names_spec='${libname}${release}.a $libname.a'
9830       soname_spec='${libname}${release}${shared_ext}$major'
9831     fi
9832     shlibpath_var=LIBPATH
9833   fi
9834   ;;
9835
9836 amigaos*)
9837   library_names_spec='$libname.ixlibrary $libname.a'
9838   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9839   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'
9840   ;;
9841
9842 beos*)
9843   library_names_spec='${libname}${shared_ext}'
9844   dynamic_linker="$host_os ld.so"
9845   shlibpath_var=LIBRARY_PATH
9846   ;;
9847
9848 bsdi[45]*)
9849   version_type=linux
9850   need_version=no
9851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852   soname_spec='${libname}${release}${shared_ext}$major'
9853   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9854   shlibpath_var=LD_LIBRARY_PATH
9855   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9856   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9857   # the default ld.so.conf also contains /usr/contrib/lib and
9858   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9859   # libtool to hard-code these into programs
9860   ;;
9861
9862 cygwin* | mingw* | pw32*)
9863   version_type=windows
9864   shrext_cmds=".dll"
9865   need_version=no
9866   need_lib_prefix=no
9867
9868   case $GCC,$host_os in
9869   yes,cygwin* | yes,mingw* | yes,pw32*)
9870     library_names_spec='$libname.dll.a'
9871     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9872     postinstall_cmds='base_file=`basename \${file}`~
9873       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9874       dldir=$destdir/`dirname \$dlpath`~
9875       test -d \$dldir || mkdir -p \$dldir~
9876       $install_prog $dir/$dlname \$dldir/$dlname~
9877       chmod a+x \$dldir/$dlname'
9878     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9879       dlpath=$dir/\$dldll~
9880        $rm \$dlpath'
9881     shlibpath_overrides_runpath=yes
9882
9883     case $host_os in
9884     cygwin*)
9885       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9886       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9887       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9888       ;;
9889     mingw*)
9890       # MinGW DLLs use traditional 'lib' prefix
9891       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9892       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9893       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9894         # It is most probably a Windows format PATH printed by
9895         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9896         # path with ; separators, and with drive letters. We can handle the
9897         # drive letters (cygwin fileutils understands them), so leave them,
9898         # especially as we might pass files found there to a mingw objdump,
9899         # which wouldn't understand a cygwinified path. Ahh.
9900         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9901       else
9902         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9903       fi
9904       ;;
9905     pw32*)
9906       # pw32 DLLs use 'pw' prefix rather than 'lib'
9907       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9908       ;;
9909     esac
9910     ;;
9911
9912   *)
9913     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9914     ;;
9915   esac
9916   dynamic_linker='Win32 ld.exe'
9917   # FIXME: first we should search . and the directory the executable is in
9918   shlibpath_var=PATH
9919   ;;
9920
9921 darwin* | rhapsody*)
9922   dynamic_linker="$host_os dyld"
9923   version_type=darwin
9924   need_lib_prefix=no
9925   need_version=no
9926   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9927   soname_spec='${libname}${release}${major}$shared_ext'
9928   shlibpath_overrides_runpath=yes
9929   shlibpath_var=DYLD_LIBRARY_PATH
9930   shrext_cmds='.dylib'
9931   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9932   if test "$GCC" = yes; then
9933     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"`
9934   else
9935     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9936   fi
9937   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9938   ;;
9939
9940 dgux*)
9941   version_type=linux
9942   need_lib_prefix=no
9943   need_version=no
9944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9945   soname_spec='${libname}${release}${shared_ext}$major'
9946   shlibpath_var=LD_LIBRARY_PATH
9947   ;;
9948
9949 freebsd1*)
9950   dynamic_linker=no
9951   ;;
9952
9953 kfreebsd*-gnu)
9954   version_type=linux
9955   need_lib_prefix=no
9956   need_version=no
9957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9958   soname_spec='${libname}${release}${shared_ext}$major'
9959   shlibpath_var=LD_LIBRARY_PATH
9960   shlibpath_overrides_runpath=no
9961   hardcode_into_libs=yes
9962   dynamic_linker='GNU ld.so'
9963   ;;
9964
9965 freebsd* | dragonfly*)
9966   # DragonFly does not have aout.  When/if they implement a new
9967   # versioning mechanism, adjust this.
9968   if test -x /usr/bin/objformat; then
9969     objformat=`/usr/bin/objformat`
9970   else
9971     case $host_os in
9972     freebsd[123]*) objformat=aout ;;
9973     *) objformat=elf ;;
9974     esac
9975   fi
9976   version_type=freebsd-$objformat
9977   case $version_type in
9978     freebsd-elf*)
9979       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9980       need_version=no
9981       need_lib_prefix=no
9982       ;;
9983     freebsd-*)
9984       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9985       need_version=yes
9986       ;;
9987   esac
9988   shlibpath_var=LD_LIBRARY_PATH
9989   case $host_os in
9990   freebsd2*)
9991     shlibpath_overrides_runpath=yes
9992     ;;
9993   freebsd3.[01]* | freebsdelf3.[01]*)
9994     shlibpath_overrides_runpath=yes
9995     hardcode_into_libs=yes
9996     ;;
9997   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9998   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9999     shlibpath_overrides_runpath=no
10000     hardcode_into_libs=yes
10001     ;;
10002   freebsd*) # from 4.6 on
10003     shlibpath_overrides_runpath=yes
10004     hardcode_into_libs=yes
10005     ;;
10006   esac
10007   ;;
10008
10009 gnu*)
10010   version_type=linux
10011   need_lib_prefix=no
10012   need_version=no
10013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10014   soname_spec='${libname}${release}${shared_ext}$major'
10015   shlibpath_var=LD_LIBRARY_PATH
10016   hardcode_into_libs=yes
10017   ;;
10018
10019 hpux9* | hpux10* | hpux11*)
10020   # Give a soname corresponding to the major version so that dld.sl refuses to
10021   # link against other versions.
10022   version_type=sunos
10023   need_lib_prefix=no
10024   need_version=no
10025   case $host_cpu in
10026   ia64*)
10027     shrext_cmds='.so'
10028     hardcode_into_libs=yes
10029     dynamic_linker="$host_os dld.so"
10030     shlibpath_var=LD_LIBRARY_PATH
10031     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033     soname_spec='${libname}${release}${shared_ext}$major'
10034     if test "X$HPUX_IA64_MODE" = X32; then
10035       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10036     else
10037       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10038     fi
10039     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10040     ;;
10041    hppa*64*)
10042      shrext_cmds='.sl'
10043      hardcode_into_libs=yes
10044      dynamic_linker="$host_os dld.sl"
10045      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10046      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048      soname_spec='${libname}${release}${shared_ext}$major'
10049      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10050      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10051      ;;
10052    *)
10053     shrext_cmds='.sl'
10054     dynamic_linker="$host_os dld.sl"
10055     shlibpath_var=SHLIB_PATH
10056     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058     soname_spec='${libname}${release}${shared_ext}$major'
10059     ;;
10060   esac
10061   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10062   postinstall_cmds='chmod 555 $lib'
10063   ;;
10064
10065 interix3*)
10066   version_type=linux
10067   need_lib_prefix=no
10068   need_version=no
10069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10070   soname_spec='${libname}${release}${shared_ext}$major'
10071   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10072   shlibpath_var=LD_LIBRARY_PATH
10073   shlibpath_overrides_runpath=no
10074   hardcode_into_libs=yes
10075   ;;
10076
10077 irix5* | irix6* | nonstopux*)
10078   case $host_os in
10079     nonstopux*) version_type=nonstopux ;;
10080     *)
10081         if test "$lt_cv_prog_gnu_ld" = yes; then
10082                 version_type=linux
10083         else
10084                 version_type=irix
10085         fi ;;
10086   esac
10087   need_lib_prefix=no
10088   need_version=no
10089   soname_spec='${libname}${release}${shared_ext}$major'
10090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10091   case $host_os in
10092   irix5* | nonstopux*)
10093     libsuff= shlibsuff=
10094     ;;
10095   *)
10096     case $LD in # libtool.m4 will add one of these switches to LD
10097     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10098       libsuff= shlibsuff= libmagic=32-bit;;
10099     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10100       libsuff=32 shlibsuff=N32 libmagic=N32;;
10101     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10102       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10103     *) libsuff= shlibsuff= libmagic=never-match;;
10104     esac
10105     ;;
10106   esac
10107   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10108   shlibpath_overrides_runpath=no
10109   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10110   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10111   hardcode_into_libs=yes
10112   ;;
10113
10114 # No shared lib support for Linux oldld, aout, or coff.
10115 linux*oldld* | linux*aout* | linux*coff*)
10116   dynamic_linker=no
10117   ;;
10118
10119 # This must be Linux ELF.
10120 linux*)
10121   version_type=linux
10122   need_lib_prefix=no
10123   need_version=no
10124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125   soname_spec='${libname}${release}${shared_ext}$major'
10126   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10127   shlibpath_var=LD_LIBRARY_PATH
10128   shlibpath_overrides_runpath=no
10129   # This implies no fast_install, which is unacceptable.
10130   # Some rework will be needed to allow for fast_install
10131   # before this can be enabled.
10132   hardcode_into_libs=yes
10133
10134   # Append ld.so.conf contents to the search path
10135   if test -f /etc/ld.so.conf; then
10136     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' ' '`
10137     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10138   fi
10139
10140   # We used to test for /lib/ld.so.1 and disable shared libraries on
10141   # powerpc, because MkLinux only supported shared libraries with the
10142   # GNU dynamic linker.  Since this was broken with cross compilers,
10143   # most powerpc-linux boxes support dynamic linking these days and
10144   # people can always --disable-shared, the test was removed, and we
10145   # assume the GNU/Linux dynamic linker is in use.
10146   dynamic_linker='GNU/Linux ld.so'
10147   ;;
10148
10149 knetbsd*-gnu)
10150   version_type=linux
10151   need_lib_prefix=no
10152   need_version=no
10153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154   soname_spec='${libname}${release}${shared_ext}$major'
10155   shlibpath_var=LD_LIBRARY_PATH
10156   shlibpath_overrides_runpath=no
10157   hardcode_into_libs=yes
10158   dynamic_linker='GNU ld.so'
10159   ;;
10160
10161 netbsd*)
10162   version_type=sunos
10163   need_lib_prefix=no
10164   need_version=no
10165   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10167     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10168     dynamic_linker='NetBSD (a.out) ld.so'
10169   else
10170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171     soname_spec='${libname}${release}${shared_ext}$major'
10172     dynamic_linker='NetBSD ld.elf_so'
10173   fi
10174   shlibpath_var=LD_LIBRARY_PATH
10175   shlibpath_overrides_runpath=yes
10176   hardcode_into_libs=yes
10177   ;;
10178
10179 newsos6)
10180   version_type=linux
10181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182   shlibpath_var=LD_LIBRARY_PATH
10183   shlibpath_overrides_runpath=yes
10184   ;;
10185
10186 nto-qnx*)
10187   version_type=linux
10188   need_lib_prefix=no
10189   need_version=no
10190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191   soname_spec='${libname}${release}${shared_ext}$major'
10192   shlibpath_var=LD_LIBRARY_PATH
10193   shlibpath_overrides_runpath=yes
10194   ;;
10195
10196 openbsd*)
10197   version_type=sunos
10198   sys_lib_dlsearch_path_spec="/usr/lib"
10199   need_lib_prefix=no
10200   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10201   case $host_os in
10202     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10203     *)                         need_version=no  ;;
10204   esac
10205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10206   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10207   shlibpath_var=LD_LIBRARY_PATH
10208   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10209     case $host_os in
10210       openbsd2.[89] | openbsd2.[89].*)
10211         shlibpath_overrides_runpath=no
10212         ;;
10213       *)
10214         shlibpath_overrides_runpath=yes
10215         ;;
10216       esac
10217   else
10218     shlibpath_overrides_runpath=yes
10219   fi
10220   ;;
10221
10222 os2*)
10223   libname_spec='$name'
10224   shrext_cmds=".dll"
10225   need_lib_prefix=no
10226   library_names_spec='$libname${shared_ext} $libname.a'
10227   dynamic_linker='OS/2 ld.exe'
10228   shlibpath_var=LIBPATH
10229   ;;
10230
10231 osf3* | osf4* | osf5*)
10232   version_type=osf
10233   need_lib_prefix=no
10234   need_version=no
10235   soname_spec='${libname}${release}${shared_ext}$major'
10236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10239   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10240   ;;
10241
10242 solaris*)
10243   version_type=linux
10244   need_lib_prefix=no
10245   need_version=no
10246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247   soname_spec='${libname}${release}${shared_ext}$major'
10248   shlibpath_var=LD_LIBRARY_PATH
10249   shlibpath_overrides_runpath=yes
10250   hardcode_into_libs=yes
10251   # ldd complains unless libraries are executable
10252   postinstall_cmds='chmod +x $lib'
10253   ;;
10254
10255 sunos4*)
10256   version_type=sunos
10257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10259   shlibpath_var=LD_LIBRARY_PATH
10260   shlibpath_overrides_runpath=yes
10261   if test "$with_gnu_ld" = yes; then
10262     need_lib_prefix=no
10263   fi
10264   need_version=yes
10265   ;;
10266
10267 sysv4 | sysv4.3*)
10268   version_type=linux
10269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270   soname_spec='${libname}${release}${shared_ext}$major'
10271   shlibpath_var=LD_LIBRARY_PATH
10272   case $host_vendor in
10273     sni)
10274       shlibpath_overrides_runpath=no
10275       need_lib_prefix=no
10276       export_dynamic_flag_spec='${wl}-Blargedynsym'
10277       runpath_var=LD_RUN_PATH
10278       ;;
10279     siemens)
10280       need_lib_prefix=no
10281       ;;
10282     motorola)
10283       need_lib_prefix=no
10284       need_version=no
10285       shlibpath_overrides_runpath=no
10286       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10287       ;;
10288   esac
10289   ;;
10290
10291 sysv4*MP*)
10292   if test -d /usr/nec ;then
10293     version_type=linux
10294     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10295     soname_spec='$libname${shared_ext}.$major'
10296     shlibpath_var=LD_LIBRARY_PATH
10297   fi
10298   ;;
10299
10300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10301   version_type=freebsd-elf
10302   need_lib_prefix=no
10303   need_version=no
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10305   soname_spec='${libname}${release}${shared_ext}$major'
10306   shlibpath_var=LD_LIBRARY_PATH
10307   hardcode_into_libs=yes
10308   if test "$with_gnu_ld" = yes; then
10309     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10310     shlibpath_overrides_runpath=no
10311   else
10312     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10313     shlibpath_overrides_runpath=yes
10314     case $host_os in
10315       sco3.2v5*)
10316         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10317         ;;
10318     esac
10319   fi
10320   sys_lib_dlsearch_path_spec='/usr/lib'
10321   ;;
10322
10323 uts4*)
10324   version_type=linux
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326   soname_spec='${libname}${release}${shared_ext}$major'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   ;;
10329
10330 *)
10331   dynamic_linker=no
10332   ;;
10333 esac
10334 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10335 echo "${ECHO_T}$dynamic_linker" >&6; }
10336 test "$dynamic_linker" = no && can_build_shared=no
10337
10338 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10339 if test "$GCC" = yes; then
10340   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10341 fi
10342
10343
10344 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10345 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10346 if test "${libltdl_cv_shlibext+set}" = set; then
10347   echo $ECHO_N "(cached) $ECHO_C" >&6
10348 else
10349
10350 module=yes
10351 eval libltdl_cv_shlibext=$shrext_cmds
10352
10353 fi
10354 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10355 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10356 if test -n "$libltdl_cv_shlibext"; then
10357
10358 cat >>confdefs.h <<_ACEOF
10359 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10360 _ACEOF
10361
10362 fi
10363
10364
10365 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10366 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10367 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10368   echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370   libltdl_cv_shlibpath_var="$shlibpath_var"
10371 fi
10372 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10373 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10374 if test -n "$libltdl_cv_shlibpath_var"; then
10375
10376 cat >>confdefs.h <<_ACEOF
10377 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10378 _ACEOF
10379
10380 fi
10381
10382
10383 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10384 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10385 if test "${libltdl_cv_sys_search_path+set}" = set; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10389 fi
10390 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10391 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10392 if test -n "$libltdl_cv_sys_search_path"; then
10393   sys_search_path=
10394   for dir in $libltdl_cv_sys_search_path; do
10395     if test -z "$sys_search_path"; then
10396       sys_search_path="$dir"
10397     else
10398       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10399     fi
10400   done
10401
10402 cat >>confdefs.h <<_ACEOF
10403 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10404 _ACEOF
10405
10406 fi
10407
10408 { echo "$as_me:$LINENO: checking for objdir" >&5
10409 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10410 if test "${libltdl_cv_objdir+set}" = set; then
10411   echo $ECHO_N "(cached) $ECHO_C" >&6
10412 else
10413   libltdl_cv_objdir="$objdir"
10414   if test -n "$objdir"; then
10415     :
10416   else
10417     rm -f .libs 2>/dev/null
10418     mkdir .libs 2>/dev/null
10419     if test -d .libs; then
10420       libltdl_cv_objdir=.libs
10421     else
10422       # MS-DOS does not allow filenames that begin with a dot.
10423       libltdl_cv_objdir=_libs
10424     fi
10425   rmdir .libs 2>/dev/null
10426   fi
10427
10428 fi
10429 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10430 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10431
10432 cat >>confdefs.h <<_ACEOF
10433 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10434 _ACEOF
10435
10436
10437
10438
10439
10440
10441 # Check for command to grab the raw symbol name followed by C symbol from nm.
10442 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10443 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10444 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10445   echo $ECHO_N "(cached) $ECHO_C" >&6
10446 else
10447
10448 # These are sane defaults that work on at least a few old systems.
10449 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10450
10451 # Character class describing NM global symbol codes.
10452 symcode='[BCDEGRST]'
10453
10454 # Regexp to match symbols that can be accessed directly from C.
10455 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10456
10457 # Transform an extracted symbol line into a proper C declaration
10458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10459
10460 # Transform an extracted symbol line into symbol name and symbol address
10461 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'"
10462
10463 # Define system-specific variables.
10464 case $host_os in
10465 aix*)
10466   symcode='[BCDT]'
10467   ;;
10468 cygwin* | mingw* | pw32*)
10469   symcode='[ABCDGISTW]'
10470   ;;
10471 hpux*) # Its linker distinguishes data from code symbols
10472   if test "$host_cpu" = ia64; then
10473     symcode='[ABCDEGRST]'
10474   fi
10475   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10476   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'"
10477   ;;
10478 linux*)
10479   if test "$host_cpu" = ia64; then
10480     symcode='[ABCDGIRSTW]'
10481     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10482     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'"
10483   fi
10484   ;;
10485 irix* | nonstopux*)
10486   symcode='[BCDEGRST]'
10487   ;;
10488 osf*)
10489   symcode='[BCDEGQRST]'
10490   ;;
10491 solaris*)
10492   symcode='[BDRT]'
10493   ;;
10494 sco3.2v5*)
10495   symcode='[DT]'
10496   ;;
10497 sysv4.2uw2*)
10498   symcode='[DT]'
10499   ;;
10500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10501   symcode='[ABDT]'
10502   ;;
10503 sysv4)
10504   symcode='[DFNSTU]'
10505   ;;
10506 esac
10507
10508 # Handle CRLF in mingw tool chain
10509 opt_cr=
10510 case $build_os in
10511 mingw*)
10512   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10513   ;;
10514 esac
10515
10516 # If we're using GNU nm, then use its standard symbol codes.
10517 case `$NM -V 2>&1` in
10518 *GNU* | *'with BFD'*)
10519   symcode='[ABCDGIRSTW]' ;;
10520 esac
10521
10522 # Try without a prefix undercore, then with it.
10523 for ac_symprfx in "" "_"; do
10524
10525   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10526   symxfrm="\\1 $ac_symprfx\\2 \\2"
10527
10528   # Write the raw and C identifiers.
10529   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10530
10531   # Check to see that the pipe works correctly.
10532   pipe_works=no
10533
10534   rm -f conftest*
10535   cat > conftest.$ac_ext <<EOF
10536 #ifdef __cplusplus
10537 extern "C" {
10538 #endif
10539 char nm_test_var;
10540 void nm_test_func(){}
10541 #ifdef __cplusplus
10542 }
10543 #endif
10544 int main(){nm_test_var='a';nm_test_func();return(0);}
10545 EOF
10546
10547   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548   (eval $ac_compile) 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; then
10552     # Now try to grab the symbols.
10553     nlist=conftest.nm
10554     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10555   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); } && test -s "$nlist"; then
10559       # Try sorting and uniquifying the output.
10560       if sort "$nlist" | uniq > "$nlist"T; then
10561         mv -f "$nlist"T "$nlist"
10562       else
10563         rm -f "$nlist"T
10564       fi
10565
10566       # Make sure that we snagged all the symbols we need.
10567       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10568         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10569           cat <<EOF > conftest.$ac_ext
10570 #ifdef __cplusplus
10571 extern "C" {
10572 #endif
10573
10574 EOF
10575           # Now generate the symbol file.
10576           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10577
10578           cat <<EOF >> conftest.$ac_ext
10579 #if defined (__STDC__) && __STDC__
10580 # define lt_ptr_t void *
10581 #else
10582 # define lt_ptr_t char *
10583 # define const
10584 #endif
10585
10586 /* The mapping between symbol names and symbols. */
10587 const struct {
10588   const char *name;
10589   lt_ptr_t address;
10590 }
10591 lt_preloaded_symbols[] =
10592 {
10593 EOF
10594           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10595           cat <<\EOF >> conftest.$ac_ext
10596   {0, (lt_ptr_t) 0}
10597 };
10598
10599 #ifdef __cplusplus
10600 }
10601 #endif
10602 EOF
10603           # Now try linking the two files.
10604           mv conftest.$ac_objext conftstm.$ac_objext
10605           lt_save_LIBS="$LIBS"
10606           lt_save_CFLAGS="$CFLAGS"
10607           LIBS="conftstm.$ac_objext"
10608           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10609           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610   (eval $ac_link) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10614             pipe_works=yes
10615           fi
10616           LIBS="$lt_save_LIBS"
10617           CFLAGS="$lt_save_CFLAGS"
10618         else
10619           echo "cannot find nm_test_func in $nlist" >&5
10620         fi
10621       else
10622         echo "cannot find nm_test_var in $nlist" >&5
10623       fi
10624     else
10625       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10626     fi
10627   else
10628     echo "$progname: failed program was:" >&5
10629     cat conftest.$ac_ext >&5
10630   fi
10631   rm -f conftest* conftst*
10632
10633   # Do not use the global_symbol_pipe unless it works.
10634   if test "$pipe_works" = yes; then
10635     break
10636   else
10637     lt_cv_sys_global_symbol_pipe=
10638   fi
10639 done
10640
10641 fi
10642
10643 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10644   lt_cv_sys_global_symbol_to_cdecl=
10645 fi
10646 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10647   { echo "$as_me:$LINENO: result: failed" >&5
10648 echo "${ECHO_T}failed" >&6; }
10649 else
10650   { echo "$as_me:$LINENO: result: ok" >&5
10651 echo "${ECHO_T}ok" >&6; }
10652 fi
10653
10654
10655 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10656 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10657 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10658   echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10661     libltdl_cv_preloaded_symbols=yes
10662   else
10663     libltdl_cv_preloaded_symbols=no
10664   fi
10665
10666 fi
10667 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10668 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10669 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10670
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_PRELOADED_SYMBOLS 1
10673 _ACEOF
10674
10675 fi
10676
10677 LIBADD_DL=
10678
10679 ac_ext=c
10680 ac_cpp='$CPP $CPPFLAGS'
10681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10684
10685
10686 { echo "$as_me:$LINENO: checking for shl_load" >&5
10687 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10688 if test "${ac_cv_func_shl_load+set}" = set; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691   cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10699 #define shl_load innocuous_shl_load
10700
10701 /* System header to define __stub macros and hopefully few prototypes,
10702     which can conflict with char shl_load (); below.
10703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704     <limits.h> exists even on freestanding compilers.  */
10705
10706 #ifdef __STDC__
10707 # include <limits.h>
10708 #else
10709 # include <assert.h>
10710 #endif
10711
10712 #undef shl_load
10713
10714 /* Override any GCC internal prototype to avoid an error.
10715    Use char because int might match the return type of a GCC
10716    builtin and then its argument prototype would still apply.  */
10717 #ifdef __cplusplus
10718 extern "C"
10719 #endif
10720 char shl_load ();
10721 /* The GNU C library defines this for functions which it implements
10722     to always fail with ENOSYS.  Some functions are actually named
10723     something starting with __ and the normal name is an alias.  */
10724 #if defined __stub_shl_load || defined __stub___shl_load
10725 choke me
10726 #endif
10727
10728 int
10729 main ()
10730 {
10731 return shl_load ();
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 rm -f conftest.$ac_objext conftest$ac_exeext
10737 if { (ac_try="$ac_link"
10738 case "(($ac_try" in
10739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740   *) ac_try_echo=$ac_try;;
10741 esac
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743   (eval "$ac_link") 2>conftest.er1
10744   ac_status=$?
10745   grep -v '^ *+' conftest.er1 >conftest.err
10746   rm -f conftest.er1
10747   cat conftest.err >&5
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); } &&
10750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751   { (case "(($ac_try" in
10752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753   *) ac_try_echo=$ac_try;;
10754 esac
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756   (eval "$ac_try") 2>&5
10757   ac_status=$?
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); }; } &&
10760          { ac_try='test -s conftest$ac_exeext'
10761   { (case "(($ac_try" in
10762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763   *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766   (eval "$ac_try") 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; }; then
10770   ac_cv_func_shl_load=yes
10771 else
10772   echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775         ac_cv_func_shl_load=no
10776 fi
10777
10778 rm -f core conftest.err conftest.$ac_objext \
10779       conftest$ac_exeext conftest.$ac_ext
10780 fi
10781 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10782 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10783 if test $ac_cv_func_shl_load = yes; then
10784
10785 cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_SHL_LOAD 1
10787 _ACEOF
10788
10789 else
10790   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10791 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10792 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795   ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-ldld  $LIBS"
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803
10804 /* Override any GCC internal prototype to avoid an error.
10805    Use char because int might match the return type of a GCC
10806    builtin and then its argument prototype would still apply.  */
10807 #ifdef __cplusplus
10808 extern "C"
10809 #endif
10810 char shl_load ();
10811 int
10812 main ()
10813 {
10814 return shl_load ();
10815   ;
10816   return 0;
10817 }
10818 _ACEOF
10819 rm -f conftest.$ac_objext conftest$ac_exeext
10820 if { (ac_try="$ac_link"
10821 case "(($ac_try" in
10822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823   *) ac_try_echo=$ac_try;;
10824 esac
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826   (eval "$ac_link") 2>conftest.er1
10827   ac_status=$?
10828   grep -v '^ *+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } &&
10833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10840   ac_status=$?
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); }; } &&
10843          { ac_try='test -s conftest$ac_exeext'
10844   { (case "(($ac_try" in
10845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846   *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849   (eval "$ac_try") 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); }; }; then
10853   ac_cv_lib_dld_shl_load=yes
10854 else
10855   echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10857
10858         ac_cv_lib_dld_shl_load=no
10859 fi
10860
10861 rm -f core conftest.err conftest.$ac_objext \
10862       conftest$ac_exeext conftest.$ac_ext
10863 LIBS=$ac_check_lib_save_LIBS
10864 fi
10865 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10866 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10867 if test $ac_cv_lib_dld_shl_load = yes; then
10868
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_SHL_LOAD 1
10871 _ACEOF
10872
10873         LIBADD_DL="$LIBADD_DL -ldld"
10874 else
10875   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10876 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10877 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10878   echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880   ac_check_lib_save_LIBS=$LIBS
10881 LIBS="-ldl  $LIBS"
10882 cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888
10889 /* Override any GCC internal prototype to avoid an error.
10890    Use char because int might match the return type of a GCC
10891    builtin and then its argument prototype would still apply.  */
10892 #ifdef __cplusplus
10893 extern "C"
10894 #endif
10895 char dlopen ();
10896 int
10897 main ()
10898 {
10899 return dlopen ();
10900   ;
10901   return 0;
10902 }
10903 _ACEOF
10904 rm -f conftest.$ac_objext conftest$ac_exeext
10905 if { (ac_try="$ac_link"
10906 case "(($ac_try" in
10907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908   *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911   (eval "$ac_link") 2>conftest.er1
10912   ac_status=$?
10913   grep -v '^ *+' conftest.er1 >conftest.err
10914   rm -f conftest.er1
10915   cat conftest.err >&5
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); } &&
10918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10919   { (case "(($ac_try" in
10920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921   *) ac_try_echo=$ac_try;;
10922 esac
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924   (eval "$ac_try") 2>&5
10925   ac_status=$?
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); }; } &&
10928          { ac_try='test -s conftest$ac_exeext'
10929   { (case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_try") 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; }; then
10938   ac_cv_lib_dl_dlopen=yes
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943         ac_cv_lib_dl_dlopen=no
10944 fi
10945
10946 rm -f core conftest.err conftest.$ac_objext \
10947       conftest$ac_exeext conftest.$ac_ext
10948 LIBS=$ac_check_lib_save_LIBS
10949 fi
10950 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10951 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10952 if test $ac_cv_lib_dl_dlopen = yes; then
10953
10954 cat >>confdefs.h <<\_ACEOF
10955 #define HAVE_LIBDL 1
10956 _ACEOF
10957
10958                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10959 else
10960   cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h.  */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h.  */
10966 #if HAVE_DLFCN_H
10967 #  include <dlfcn.h>
10968 #endif
10969
10970 int
10971 main ()
10972 {
10973 dlopen(0, 0);
10974   ;
10975   return 0;
10976 }
10977 _ACEOF
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (ac_try="$ac_link"
10980 case "(($ac_try" in
10981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982   *) ac_try_echo=$ac_try;;
10983 esac
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985   (eval "$ac_link") 2>conftest.er1
10986   ac_status=$?
10987   grep -v '^ *+' conftest.er1 >conftest.err
10988   rm -f conftest.er1
10989   cat conftest.err >&5
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); } &&
10992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10993   { (case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_try") 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); }; } &&
11002          { ac_try='test -s conftest$ac_exeext'
11003   { (case "(($ac_try" in
11004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005   *) ac_try_echo=$ac_try;;
11006 esac
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008   (eval "$ac_try") 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); }; }; then
11012
11013 cat >>confdefs.h <<\_ACEOF
11014 #define HAVE_LIBDL 1
11015 _ACEOF
11016  libltdl_cv_func_dlopen="yes"
11017 else
11018   echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11020
11021         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11022 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11023 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11024   echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026   ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-lsvld  $LIBS"
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h.  */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h.  */
11034
11035 /* Override any GCC internal prototype to avoid an error.
11036    Use char because int might match the return type of a GCC
11037    builtin and then its argument prototype would still apply.  */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char dlopen ();
11042 int
11043 main ()
11044 {
11045 return dlopen ();
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (ac_try="$ac_link"
11052 case "(($ac_try" in
11053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054   *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057   (eval "$ac_link") 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } &&
11064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065   { (case "(($ac_try" in
11066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067   *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070   (eval "$ac_try") 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; } &&
11074          { ac_try='test -s conftest$ac_exeext'
11075   { (case "(($ac_try" in
11076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077   *) ac_try_echo=$ac_try;;
11078 esac
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080   (eval "$ac_try") 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; }; then
11084   ac_cv_lib_svld_dlopen=yes
11085 else
11086   echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089         ac_cv_lib_svld_dlopen=no
11090 fi
11091
11092 rm -f core conftest.err conftest.$ac_objext \
11093       conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11095 fi
11096 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11097 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11098 if test $ac_cv_lib_svld_dlopen = yes; then
11099
11100 cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_LIBDL 1
11102 _ACEOF
11103
11104                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11105 else
11106   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11107 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11108 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111   ac_check_lib_save_LIBS=$LIBS
11112 LIBS="-ldld  $LIBS"
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h.  */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h.  */
11119
11120 /* Override any GCC internal prototype to avoid an error.
11121    Use char because int might match the return type of a GCC
11122    builtin and then its argument prototype would still apply.  */
11123 #ifdef __cplusplus
11124 extern "C"
11125 #endif
11126 char dld_link ();
11127 int
11128 main ()
11129 {
11130 return dld_link ();
11131   ;
11132   return 0;
11133 }
11134 _ACEOF
11135 rm -f conftest.$ac_objext conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139   *) ac_try_echo=$ac_try;;
11140 esac
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142   (eval "$ac_link") 2>conftest.er1
11143   ac_status=$?
11144   grep -v '^ *+' conftest.er1 >conftest.err
11145   rm -f conftest.er1
11146   cat conftest.err >&5
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); } &&
11149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11150   { (case "(($ac_try" in
11151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152   *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155   (eval "$ac_try") 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); }; } &&
11159          { ac_try='test -s conftest$ac_exeext'
11160   { (case "(($ac_try" in
11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162   *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165   (eval "$ac_try") 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; }; then
11169   ac_cv_lib_dld_dld_link=yes
11170 else
11171   echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174         ac_cv_lib_dld_dld_link=no
11175 fi
11176
11177 rm -f core conftest.err conftest.$ac_objext \
11178       conftest$ac_exeext conftest.$ac_ext
11179 LIBS=$ac_check_lib_save_LIBS
11180 fi
11181 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11182 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11183 if test $ac_cv_lib_dld_dld_link = yes; then
11184
11185 cat >>confdefs.h <<\_ACEOF
11186 #define HAVE_DLD 1
11187 _ACEOF
11188
11189                 LIBADD_DL="$LIBADD_DL -ldld"
11190 else
11191   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11192 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11193 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196   cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h.  */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h.  */
11202 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11204 #define _dyld_func_lookup innocuous__dyld_func_lookup
11205
11206 /* System header to define __stub macros and hopefully few prototypes,
11207     which can conflict with char _dyld_func_lookup (); below.
11208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11209     <limits.h> exists even on freestanding compilers.  */
11210
11211 #ifdef __STDC__
11212 # include <limits.h>
11213 #else
11214 # include <assert.h>
11215 #endif
11216
11217 #undef _dyld_func_lookup
11218
11219 /* Override any GCC internal prototype to avoid an error.
11220    Use char because int might match the return type of a GCC
11221    builtin and then its argument prototype would still apply.  */
11222 #ifdef __cplusplus
11223 extern "C"
11224 #endif
11225 char _dyld_func_lookup ();
11226 /* The GNU C library defines this for functions which it implements
11227     to always fail with ENOSYS.  Some functions are actually named
11228     something starting with __ and the normal name is an alias.  */
11229 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11230 choke me
11231 #endif
11232
11233 int
11234 main ()
11235 {
11236 return _dyld_func_lookup ();
11237   ;
11238   return 0;
11239 }
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (ac_try="$ac_link"
11243 case "(($ac_try" in
11244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245   *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248   (eval "$ac_link") 2>conftest.er1
11249   ac_status=$?
11250   grep -v '^ *+' conftest.er1 >conftest.err
11251   rm -f conftest.er1
11252   cat conftest.err >&5
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } &&
11255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11256   { (case "(($ac_try" in
11257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258   *) ac_try_echo=$ac_try;;
11259 esac
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261   (eval "$ac_try") 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; } &&
11265          { ac_try='test -s conftest$ac_exeext'
11266   { (case "(($ac_try" in
11267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268   *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271   (eval "$ac_try") 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }; then
11275   ac_cv_func__dyld_func_lookup=yes
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280         ac_cv_func__dyld_func_lookup=no
11281 fi
11282
11283 rm -f core conftest.err conftest.$ac_objext \
11284       conftest$ac_exeext conftest.$ac_ext
11285 fi
11286 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11287 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11288 if test $ac_cv_func__dyld_func_lookup = yes; then
11289
11290 cat >>confdefs.h <<\_ACEOF
11291 #define HAVE_DYLD 1
11292 _ACEOF
11293
11294 fi
11295
11296
11297 fi
11298
11299
11300 fi
11301
11302
11303 fi
11304
11305 rm -f core conftest.err conftest.$ac_objext \
11306       conftest$ac_exeext conftest.$ac_ext
11307
11308 fi
11309
11310
11311 fi
11312
11313
11314 fi
11315
11316
11317 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11318 then
11319   lt_save_LIBS="$LIBS"
11320   LIBS="$LIBS $LIBADD_DL"
11321
11322 for ac_func in dlerror
11323 do
11324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330   cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h.  */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h.  */
11336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11338 #define $ac_func innocuous_$ac_func
11339
11340 /* System header to define __stub macros and hopefully few prototypes,
11341     which can conflict with char $ac_func (); below.
11342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11343     <limits.h> exists even on freestanding compilers.  */
11344
11345 #ifdef __STDC__
11346 # include <limits.h>
11347 #else
11348 # include <assert.h>
11349 #endif
11350
11351 #undef $ac_func
11352
11353 /* Override any GCC internal prototype to avoid an error.
11354    Use char because int might match the return type of a GCC
11355    builtin and then its argument prototype would still apply.  */
11356 #ifdef __cplusplus
11357 extern "C"
11358 #endif
11359 char $ac_func ();
11360 /* The GNU C library defines this for functions which it implements
11361     to always fail with ENOSYS.  Some functions are actually named
11362     something starting with __ and the normal name is an alias.  */
11363 #if defined __stub_$ac_func || defined __stub___$ac_func
11364 choke me
11365 #endif
11366
11367 int
11368 main ()
11369 {
11370 return $ac_func ();
11371   ;
11372   return 0;
11373 }
11374 _ACEOF
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (ac_try="$ac_link"
11377 case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382   (eval "$ac_link") 2>conftest.er1
11383   ac_status=$?
11384   grep -v '^ *+' conftest.er1 >conftest.err
11385   rm -f conftest.er1
11386   cat conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); } &&
11389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390   { (case "(($ac_try" in
11391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392   *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395   (eval "$ac_try") 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; } &&
11399          { ac_try='test -s conftest$ac_exeext'
11400   { (case "(($ac_try" in
11401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402   *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405   (eval "$ac_try") 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; }; then
11409   eval "$as_ac_var=yes"
11410 else
11411   echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11413
11414         eval "$as_ac_var=no"
11415 fi
11416
11417 rm -f core conftest.err conftest.$ac_objext \
11418       conftest$ac_exeext conftest.$ac_ext
11419 fi
11420 ac_res=`eval echo '${'$as_ac_var'}'`
11421                { echo "$as_me:$LINENO: result: $ac_res" >&5
11422 echo "${ECHO_T}$ac_res" >&6; }
11423 if test `eval echo '${'$as_ac_var'}'` = yes; then
11424   cat >>confdefs.h <<_ACEOF
11425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11426 _ACEOF
11427
11428 fi
11429 done
11430
11431   LIBS="$lt_save_LIBS"
11432 fi
11433 ac_ext=c
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438
11439
11440
11441 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11442 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11443 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11444   echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446   ac_cv_sys_symbol_underscore=no
11447   cat > conftest.$ac_ext <<EOF
11448 void nm_test_func(){}
11449 int main(){nm_test_func;return 0;}
11450 EOF
11451   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452   (eval $ac_compile) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; then
11456     # Now try to grab the symbols.
11457     ac_nlist=conftest.nm
11458     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11459   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11460   ac_status=$?
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); } && test -s "$ac_nlist"; then
11463       # See whether the symbols have a leading underscore.
11464       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11465         ac_cv_sys_symbol_underscore=yes
11466       else
11467         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11468           :
11469         else
11470           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11471         fi
11472       fi
11473     else
11474       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11475     fi
11476   else
11477     echo "configure: failed program was:" >&5
11478     cat conftest.c >&5
11479   fi
11480   rm -rf conftest*
11481
11482 fi
11483 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11484 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11485
11486
11487 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11488   if test x"$libltdl_cv_func_dlopen" = xyes ||
11489      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11490         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11491 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11492 if test "${libltdl_cv_need_uscore+set}" = set; then
11493   echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495   libltdl_cv_need_uscore=unknown
11496           save_LIBS="$LIBS"
11497           LIBS="$LIBS $LIBADD_DL"
11498           if test "$cross_compiling" = yes; then :
11499   libltdl_cv_need_uscore=cross
11500 else
11501   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11502   lt_status=$lt_dlunknown
11503   cat > conftest.$ac_ext <<EOF
11504 #line 11504 "configure"
11505 #include "confdefs.h"
11506
11507 #if HAVE_DLFCN_H
11508 #include <dlfcn.h>
11509 #endif
11510
11511 #include <stdio.h>
11512
11513 #ifdef RTLD_GLOBAL
11514 #  define LT_DLGLOBAL           RTLD_GLOBAL
11515 #else
11516 #  ifdef DL_GLOBAL
11517 #    define LT_DLGLOBAL         DL_GLOBAL
11518 #  else
11519 #    define LT_DLGLOBAL         0
11520 #  endif
11521 #endif
11522
11523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11524    find out it does not work in some platform. */
11525 #ifndef LT_DLLAZY_OR_NOW
11526 #  ifdef RTLD_LAZY
11527 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11528 #  else
11529 #    ifdef DL_LAZY
11530 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11531 #    else
11532 #      ifdef RTLD_NOW
11533 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11534 #      else
11535 #        ifdef DL_NOW
11536 #          define LT_DLLAZY_OR_NOW      DL_NOW
11537 #        else
11538 #          define LT_DLLAZY_OR_NOW      0
11539 #        endif
11540 #      endif
11541 #    endif
11542 #  endif
11543 #endif
11544
11545 #ifdef __cplusplus
11546 extern "C" void exit (int);
11547 #endif
11548
11549 void fnord() { int i=42;}
11550 int main ()
11551 {
11552   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553   int status = $lt_dlunknown;
11554
11555   if (self)
11556     {
11557       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11558       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11559       /* dlclose (self); */
11560     }
11561   else
11562     puts (dlerror ());
11563
11564     exit (status);
11565 }
11566 EOF
11567   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11568   (eval $ac_link) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11572     (./conftest; exit; ) >&5 2>/dev/null
11573     lt_status=$?
11574     case x$lt_status in
11575       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11576       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11577       x$lt_dlunknown|x*)  ;;
11578     esac
11579   else :
11580     # compilation failed
11581
11582   fi
11583 fi
11584 rm -fr conftest*
11585
11586           LIBS="$save_LIBS"
11587
11588 fi
11589 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11590 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11591   fi
11592 fi
11593
11594 if test x"$libltdl_cv_need_uscore" = xyes; then
11595
11596 cat >>confdefs.h <<\_ACEOF
11597 #define NEED_USCORE 1
11598 _ACEOF
11599
11600 fi
11601
11602
11603 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11604 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11605 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   # PORTME does your system automatically load deplibs for dlopen?
11609   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11610   # For now, we just catch OSes we know something about -- in the
11611   # future, we'll try test this programmatically.
11612   libltdl_cv_sys_dlopen_deplibs=unknown
11613   case "$host_os" in
11614   aix3*|aix4.1.*|aix4.2.*)
11615     # Unknown whether this is true for these versions of AIX, but
11616     # we want this `case' here to explicitly catch those versions.
11617     libltdl_cv_sys_dlopen_deplibs=unknown
11618     ;;
11619   aix[45]*)
11620     libltdl_cv_sys_dlopen_deplibs=yes
11621     ;;
11622   darwin*)
11623     # Assuming the user has installed a libdl from somewhere, this is true
11624     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11625     libltdl_cv_sys_dlopen_deplibs=yes
11626     ;;
11627   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11628     # GNU and its variants, using gnu ld.so (Glibc)
11629     libltdl_cv_sys_dlopen_deplibs=yes
11630     ;;
11631   hpux10*|hpux11*)
11632     libltdl_cv_sys_dlopen_deplibs=yes
11633     ;;
11634   interix*)
11635     libltdl_cv_sys_dlopen_deplibs=yes
11636     ;;
11637   irix[12345]*|irix6.[01]*)
11638     # Catch all versions of IRIX before 6.2, and indicate that we don't
11639     # know how it worked for any of those versions.
11640     libltdl_cv_sys_dlopen_deplibs=unknown
11641     ;;
11642   irix*)
11643     # The case above catches anything before 6.2, and it's known that
11644     # at 6.2 and later dlopen does load deplibs.
11645     libltdl_cv_sys_dlopen_deplibs=yes
11646     ;;
11647   netbsd*)
11648     libltdl_cv_sys_dlopen_deplibs=yes
11649     ;;
11650   openbsd*)
11651     libltdl_cv_sys_dlopen_deplibs=yes
11652     ;;
11653   osf[1234]*)
11654     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11655     # it did *not* use an RPATH in a shared library to find objects the
11656     # library depends on, so we explictly say `no'.
11657     libltdl_cv_sys_dlopen_deplibs=no
11658     ;;
11659   osf5.0|osf5.0a|osf5.1)
11660     # dlopen *does* load deplibs and with the right loader patch applied
11661     # it even uses RPATH in a shared library to search for shared objects
11662     # that the library depends on, but there's no easy way to know if that
11663     # patch is installed.  Since this is the case, all we can really
11664     # say is unknown -- it depends on the patch being installed.  If
11665     # it is, this changes to `yes'.  Without it, it would be `no'.
11666     libltdl_cv_sys_dlopen_deplibs=unknown
11667     ;;
11668   osf*)
11669     # the two cases above should catch all versions of osf <= 5.1.  Read
11670     # the comments above for what we know about them.
11671     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11672     # is used to find them so we can finally say `yes'.
11673     libltdl_cv_sys_dlopen_deplibs=yes
11674     ;;
11675   solaris*)
11676     libltdl_cv_sys_dlopen_deplibs=yes
11677     ;;
11678   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11679     libltdl_cv_sys_dlopen_deplibs=yes
11680     ;;
11681   esac
11682
11683 fi
11684 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11685 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11686 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11687
11688 cat >>confdefs.h <<\_ACEOF
11689 #define LTDL_DLOPEN_DEPLIBS 1
11690 _ACEOF
11691
11692 fi
11693
11694
11695 for ac_header in argz.h
11696 do
11697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11699   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11702   echo $ECHO_N "(cached) $ECHO_C" >&6
11703 fi
11704 ac_res=`eval echo '${'$as_ac_Header'}'`
11705                { echo "$as_me:$LINENO: result: $ac_res" >&5
11706 echo "${ECHO_T}$ac_res" >&6; }
11707 else
11708   # Is the header compilable?
11709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11711 cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 $ac_includes_default
11718 #include <$ac_header>
11719 _ACEOF
11720 rm -f conftest.$ac_objext
11721 if { (ac_try="$ac_compile"
11722 case "(($ac_try" in
11723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724   *) ac_try_echo=$ac_try;;
11725 esac
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727   (eval "$ac_compile") 2>conftest.er1
11728   ac_status=$?
11729   grep -v '^ *+' conftest.er1 >conftest.err
11730   rm -f conftest.er1
11731   cat conftest.err >&5
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } &&
11734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735   { (case "(($ac_try" in
11736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737   *) ac_try_echo=$ac_try;;
11738 esac
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740   (eval "$ac_try") 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; } &&
11744          { ac_try='test -s conftest.$ac_objext'
11745   { (case "(($ac_try" in
11746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747   *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750   (eval "$ac_try") 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); }; }; then
11754   ac_header_compiler=yes
11755 else
11756   echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759         ac_header_compiler=no
11760 fi
11761
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11764 echo "${ECHO_T}$ac_header_compiler" >&6; }
11765
11766 # Is the header present?
11767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h.  */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h.  */
11775 #include <$ac_header>
11776 _ACEOF
11777 if { (ac_try="$ac_cpp conftest.$ac_ext"
11778 case "(($ac_try" in
11779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780   *) ac_try_echo=$ac_try;;
11781 esac
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11784   ac_status=$?
11785   grep -v '^ *+' conftest.er1 >conftest.err
11786   rm -f conftest.er1
11787   cat conftest.err >&5
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); } >/dev/null; then
11790   if test -s conftest.err; then
11791     ac_cpp_err=$ac_c_preproc_warn_flag
11792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11793   else
11794     ac_cpp_err=
11795   fi
11796 else
11797   ac_cpp_err=yes
11798 fi
11799 if test -z "$ac_cpp_err"; then
11800   ac_header_preproc=yes
11801 else
11802   echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805   ac_header_preproc=no
11806 fi
11807
11808 rm -f conftest.err conftest.$ac_ext
11809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11810 echo "${ECHO_T}$ac_header_preproc" >&6; }
11811
11812 # So?  What about this header?
11813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11814   yes:no: )
11815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11819     ac_header_preproc=yes
11820     ;;
11821   no:yes:* )
11822     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11824     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11825 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11826     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11828     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11829 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11832     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11834     ( cat <<\_ASBOX
11835 ## ----------------------------------- ##
11836 ## Report this to llvmbugs@cs.uiuc.edu ##
11837 ## ----------------------------------- ##
11838 _ASBOX
11839      ) | sed "s/^/$as_me: WARNING:     /" >&2
11840     ;;
11841 esac
11842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845   echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847   eval "$as_ac_Header=\$ac_header_preproc"
11848 fi
11849 ac_res=`eval echo '${'$as_ac_Header'}'`
11850                { echo "$as_me:$LINENO: result: $ac_res" >&5
11851 echo "${ECHO_T}$ac_res" >&6; }
11852
11853 fi
11854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11855   cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11857 _ACEOF
11858
11859 fi
11860
11861 done
11862
11863
11864 { echo "$as_me:$LINENO: checking for error_t" >&5
11865 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11866 if test "${ac_cv_type_error_t+set}" = set; then
11867   echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869   cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h.  */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h.  */
11875 #if HAVE_ARGZ_H
11876 #  include <argz.h>
11877 #endif
11878
11879 typedef error_t ac__type_new_;
11880 int
11881 main ()
11882 {
11883 if ((ac__type_new_ *) 0)
11884   return 0;
11885 if (sizeof (ac__type_new_))
11886   return 0;
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext
11892 if { (ac_try="$ac_compile"
11893 case "(($ac_try" in
11894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895   *) ac_try_echo=$ac_try;;
11896 esac
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898   (eval "$ac_compile") 2>conftest.er1
11899   ac_status=$?
11900   grep -v '^ *+' conftest.er1 >conftest.err
11901   rm -f conftest.er1
11902   cat conftest.err >&5
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } &&
11905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11906   { (case "(($ac_try" in
11907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908   *) ac_try_echo=$ac_try;;
11909 esac
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911   (eval "$ac_try") 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; } &&
11915          { ac_try='test -s conftest.$ac_objext'
11916   { (case "(($ac_try" in
11917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918   *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921   (eval "$ac_try") 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; }; then
11925   ac_cv_type_error_t=yes
11926 else
11927   echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11929
11930         ac_cv_type_error_t=no
11931 fi
11932
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934 fi
11935 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11936 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11937 if test $ac_cv_type_error_t = yes; then
11938
11939 cat >>confdefs.h <<_ACEOF
11940 #define HAVE_ERROR_T 1
11941 _ACEOF
11942
11943
11944 else
11945
11946 cat >>confdefs.h <<\_ACEOF
11947 #define error_t int
11948 _ACEOF
11949
11950 fi
11951
11952
11953
11954
11955
11956
11957
11958 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11959 do
11960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11964   echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966   cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h.  */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h.  */
11972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11974 #define $ac_func innocuous_$ac_func
11975
11976 /* System header to define __stub macros and hopefully few prototypes,
11977     which can conflict with char $ac_func (); below.
11978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979     <limits.h> exists even on freestanding compilers.  */
11980
11981 #ifdef __STDC__
11982 # include <limits.h>
11983 #else
11984 # include <assert.h>
11985 #endif
11986
11987 #undef $ac_func
11988
11989 /* Override any GCC internal prototype to avoid an error.
11990    Use char because int might match the return type of a GCC
11991    builtin and then its argument prototype would still apply.  */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 char $ac_func ();
11996 /* The GNU C library defines this for functions which it implements
11997     to always fail with ENOSYS.  Some functions are actually named
11998     something starting with __ and the normal name is an alias.  */
11999 #if defined __stub_$ac_func || defined __stub___$ac_func
12000 choke me
12001 #endif
12002
12003 int
12004 main ()
12005 {
12006 return $ac_func ();
12007   ;
12008   return 0;
12009 }
12010 _ACEOF
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (ac_try="$ac_link"
12013 case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_link") 2>conftest.er1
12019   ac_status=$?
12020   grep -v '^ *+' conftest.er1 >conftest.err
12021   rm -f conftest.er1
12022   cat conftest.err >&5
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); } &&
12025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026   { (case "(($ac_try" in
12027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028   *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031   (eval "$ac_try") 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; } &&
12035          { ac_try='test -s conftest$ac_exeext'
12036   { (case "(($ac_try" in
12037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038   *) ac_try_echo=$ac_try;;
12039 esac
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041   (eval "$ac_try") 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; }; then
12045   eval "$as_ac_var=yes"
12046 else
12047   echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050         eval "$as_ac_var=no"
12051 fi
12052
12053 rm -f core conftest.err conftest.$ac_objext \
12054       conftest$ac_exeext conftest.$ac_ext
12055 fi
12056 ac_res=`eval echo '${'$as_ac_var'}'`
12057                { echo "$as_me:$LINENO: result: $ac_res" >&5
12058 echo "${ECHO_T}$ac_res" >&6; }
12059 if test `eval echo '${'$as_ac_var'}'` = yes; then
12060   cat >>confdefs.h <<_ACEOF
12061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12062 _ACEOF
12063
12064 fi
12065 done
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12095                   stdio.h unistd.h
12096 do
12097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 fi
12104 ac_res=`eval echo '${'$as_ac_Header'}'`
12105                { echo "$as_me:$LINENO: result: $ac_res" >&5
12106 echo "${ECHO_T}$ac_res" >&6; }
12107 else
12108   # Is the header compilable?
12109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h.  */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h.  */
12117 $ac_includes_default
12118 #include <$ac_header>
12119 _ACEOF
12120 rm -f conftest.$ac_objext
12121 if { (ac_try="$ac_compile"
12122 case "(($ac_try" in
12123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124   *) ac_try_echo=$ac_try;;
12125 esac
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127   (eval "$ac_compile") 2>conftest.er1
12128   ac_status=$?
12129   grep -v '^ *+' conftest.er1 >conftest.err
12130   rm -f conftest.er1
12131   cat conftest.err >&5
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } &&
12134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12135   { (case "(($ac_try" in
12136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137   *) ac_try_echo=$ac_try;;
12138 esac
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140   (eval "$ac_try") 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); }; } &&
12144          { ac_try='test -s conftest.$ac_objext'
12145   { (case "(($ac_try" in
12146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147   *) ac_try_echo=$ac_try;;
12148 esac
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150   (eval "$ac_try") 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); }; }; then
12154   ac_header_compiler=yes
12155 else
12156   echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12158
12159         ac_header_compiler=no
12160 fi
12161
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164 echo "${ECHO_T}$ac_header_compiler" >&6; }
12165
12166 # Is the header present?
12167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 #include <$ac_header>
12176 _ACEOF
12177 if { (ac_try="$ac_cpp conftest.$ac_ext"
12178 case "(($ac_try" in
12179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180   *) ac_try_echo=$ac_try;;
12181 esac
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12184   ac_status=$?
12185   grep -v '^ *+' conftest.er1 >conftest.err
12186   rm -f conftest.er1
12187   cat conftest.err >&5
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); } >/dev/null; then
12190   if test -s conftest.err; then
12191     ac_cpp_err=$ac_c_preproc_warn_flag
12192     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12193   else
12194     ac_cpp_err=
12195   fi
12196 else
12197   ac_cpp_err=yes
12198 fi
12199 if test -z "$ac_cpp_err"; then
12200   ac_header_preproc=yes
12201 else
12202   echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12204
12205   ac_header_preproc=no
12206 fi
12207
12208 rm -f conftest.err conftest.$ac_ext
12209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12210 echo "${ECHO_T}$ac_header_preproc" >&6; }
12211
12212 # So?  What about this header?
12213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12214   yes:no: )
12215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12219     ac_header_preproc=yes
12220     ;;
12221   no:yes:* )
12222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12234     ( cat <<\_ASBOX
12235 ## ----------------------------------- ##
12236 ## Report this to llvmbugs@cs.uiuc.edu ##
12237 ## ----------------------------------- ##
12238 _ASBOX
12239      ) | sed "s/^/$as_me: WARNING:     /" >&2
12240     ;;
12241 esac
12242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12245   echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247   eval "$as_ac_Header=\$ac_header_preproc"
12248 fi
12249 ac_res=`eval echo '${'$as_ac_Header'}'`
12250                { echo "$as_me:$LINENO: result: $ac_res" >&5
12251 echo "${ECHO_T}$ac_res" >&6; }
12252
12253 fi
12254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12255   cat >>confdefs.h <<_ACEOF
12256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12257 _ACEOF
12258
12259 fi
12260
12261 done
12262
12263
12264
12265
12266
12267 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12268 do
12269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274   echo $ECHO_N "(cached) $ECHO_C" >&6
12275 fi
12276 ac_res=`eval echo '${'$as_ac_Header'}'`
12277                { echo "$as_me:$LINENO: result: $ac_res" >&5
12278 echo "${ECHO_T}$ac_res" >&6; }
12279 else
12280   # Is the header compilable?
12281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h.  */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h.  */
12289 $ac_includes_default
12290 #include <$ac_header>
12291 _ACEOF
12292 rm -f conftest.$ac_objext
12293 if { (ac_try="$ac_compile"
12294 case "(($ac_try" in
12295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296   *) ac_try_echo=$ac_try;;
12297 esac
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299   (eval "$ac_compile") 2>conftest.er1
12300   ac_status=$?
12301   grep -v '^ *+' conftest.er1 >conftest.err
12302   rm -f conftest.er1
12303   cat conftest.err >&5
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } &&
12306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12307   { (case "(($ac_try" in
12308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309   *) ac_try_echo=$ac_try;;
12310 esac
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312   (eval "$ac_try") 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; } &&
12316          { ac_try='test -s conftest.$ac_objext'
12317   { (case "(($ac_try" in
12318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319   *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322   (eval "$ac_try") 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326   ac_header_compiler=yes
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331         ac_header_compiler=no
12332 fi
12333
12334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12336 echo "${ECHO_T}$ac_header_compiler" >&6; }
12337
12338 # Is the header present?
12339 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 #include <$ac_header>
12348 _ACEOF
12349 if { (ac_try="$ac_cpp conftest.$ac_ext"
12350 case "(($ac_try" in
12351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352   *) ac_try_echo=$ac_try;;
12353 esac
12354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12356   ac_status=$?
12357   grep -v '^ *+' conftest.er1 >conftest.err
12358   rm -f conftest.er1
12359   cat conftest.err >&5
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); } >/dev/null; then
12362   if test -s conftest.err; then
12363     ac_cpp_err=$ac_c_preproc_warn_flag
12364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12365   else
12366     ac_cpp_err=
12367   fi
12368 else
12369   ac_cpp_err=yes
12370 fi
12371 if test -z "$ac_cpp_err"; then
12372   ac_header_preproc=yes
12373 else
12374   echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12376
12377   ac_header_preproc=no
12378 fi
12379
12380 rm -f conftest.err conftest.$ac_ext
12381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12382 echo "${ECHO_T}$ac_header_preproc" >&6; }
12383
12384 # So?  What about this header?
12385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12386   yes:no: )
12387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12391     ac_header_preproc=yes
12392     ;;
12393   no:yes:* )
12394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12396     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12397 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12398     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12400     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12401 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12404     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12406     ( cat <<\_ASBOX
12407 ## ----------------------------------- ##
12408 ## Report this to llvmbugs@cs.uiuc.edu ##
12409 ## ----------------------------------- ##
12410 _ASBOX
12411      ) | sed "s/^/$as_me: WARNING:     /" >&2
12412     ;;
12413 esac
12414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12417   echo $ECHO_N "(cached) $ECHO_C" >&6
12418 else
12419   eval "$as_ac_Header=\$ac_header_preproc"
12420 fi
12421 ac_res=`eval echo '${'$as_ac_Header'}'`
12422                { echo "$as_me:$LINENO: result: $ac_res" >&5
12423 echo "${ECHO_T}$ac_res" >&6; }
12424
12425 fi
12426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12427   cat >>confdefs.h <<_ACEOF
12428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12429 _ACEOF
12430
12431 fi
12432
12433 done
12434
12435
12436
12437 for ac_header in string.h strings.h
12438 do
12439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 fi
12446 ac_res=`eval echo '${'$as_ac_Header'}'`
12447                { echo "$as_me:$LINENO: result: $ac_res" >&5
12448 echo "${ECHO_T}$ac_res" >&6; }
12449 else
12450   # Is the header compilable?
12451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12453 cat >conftest.$ac_ext <<_ACEOF
12454 /* confdefs.h.  */
12455 _ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h.  */
12459 $ac_includes_default
12460 #include <$ac_header>
12461 _ACEOF
12462 rm -f conftest.$ac_objext
12463 if { (ac_try="$ac_compile"
12464 case "(($ac_try" in
12465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466   *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469   (eval "$ac_compile") 2>conftest.er1
12470   ac_status=$?
12471   grep -v '^ *+' conftest.er1 >conftest.err
12472   rm -f conftest.er1
12473   cat conftest.err >&5
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); } &&
12476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477   { (case "(($ac_try" in
12478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479   *) ac_try_echo=$ac_try;;
12480 esac
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482   (eval "$ac_try") 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; } &&
12486          { ac_try='test -s conftest.$ac_objext'
12487   { (case "(($ac_try" in
12488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489   *) ac_try_echo=$ac_try;;
12490 esac
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492   (eval "$ac_try") 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; }; then
12496   ac_header_compiler=yes
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501         ac_header_compiler=no
12502 fi
12503
12504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12506 echo "${ECHO_T}$ac_header_compiler" >&6; }
12507
12508 # Is the header present?
12509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517 #include <$ac_header>
12518 _ACEOF
12519 if { (ac_try="$ac_cpp conftest.$ac_ext"
12520 case "(($ac_try" in
12521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522   *) ac_try_echo=$ac_try;;
12523 esac
12524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12526   ac_status=$?
12527   grep -v '^ *+' conftest.er1 >conftest.err
12528   rm -f conftest.er1
12529   cat conftest.err >&5
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } >/dev/null; then
12532   if test -s conftest.err; then
12533     ac_cpp_err=$ac_c_preproc_warn_flag
12534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12535   else
12536     ac_cpp_err=
12537   fi
12538 else
12539   ac_cpp_err=yes
12540 fi
12541 if test -z "$ac_cpp_err"; then
12542   ac_header_preproc=yes
12543 else
12544   echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12546
12547   ac_header_preproc=no
12548 fi
12549
12550 rm -f conftest.err conftest.$ac_ext
12551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12552 echo "${ECHO_T}$ac_header_preproc" >&6; }
12553
12554 # So?  What about this header?
12555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12556   yes:no: )
12557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12561     ac_header_preproc=yes
12562     ;;
12563   no:yes:* )
12564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12576     ( cat <<\_ASBOX
12577 ## ----------------------------------- ##
12578 ## Report this to llvmbugs@cs.uiuc.edu ##
12579 ## ----------------------------------- ##
12580 _ASBOX
12581      ) | sed "s/^/$as_me: WARNING:     /" >&2
12582     ;;
12583 esac
12584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12587   echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589   eval "$as_ac_Header=\$ac_header_preproc"
12590 fi
12591 ac_res=`eval echo '${'$as_ac_Header'}'`
12592                { echo "$as_me:$LINENO: result: $ac_res" >&5
12593 echo "${ECHO_T}$ac_res" >&6; }
12594
12595 fi
12596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12597   cat >>confdefs.h <<_ACEOF
12598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12599 _ACEOF
12600  break
12601 fi
12602
12603 done
12604
12605
12606
12607
12608 for ac_func in strchr index
12609 do
12610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616   cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h.  */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h.  */
12622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12624 #define $ac_func innocuous_$ac_func
12625
12626 /* System header to define __stub macros and hopefully few prototypes,
12627     which can conflict with char $ac_func (); below.
12628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12629     <limits.h> exists even on freestanding compilers.  */
12630
12631 #ifdef __STDC__
12632 # include <limits.h>
12633 #else
12634 # include <assert.h>
12635 #endif
12636
12637 #undef $ac_func
12638
12639 /* Override any GCC internal prototype to avoid an error.
12640    Use char because int might match the return type of a GCC
12641    builtin and then its argument prototype would still apply.  */
12642 #ifdef __cplusplus
12643 extern "C"
12644 #endif
12645 char $ac_func ();
12646 /* The GNU C library defines this for functions which it implements
12647     to always fail with ENOSYS.  Some functions are actually named
12648     something starting with __ and the normal name is an alias.  */
12649 #if defined __stub_$ac_func || defined __stub___$ac_func
12650 choke me
12651 #endif
12652
12653 int
12654 main ()
12655 {
12656 return $ac_func ();
12657   ;
12658   return 0;
12659 }
12660 _ACEOF
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665   *) ac_try_echo=$ac_try;;
12666 esac
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668   (eval "$ac_link") 2>conftest.er1
12669   ac_status=$?
12670   grep -v '^ *+' conftest.er1 >conftest.err
12671   rm -f conftest.er1
12672   cat conftest.err >&5
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); } &&
12675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676   { (case "(($ac_try" in
12677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678   *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681   (eval "$ac_try") 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; } &&
12685          { ac_try='test -s conftest$ac_exeext'
12686   { (case "(($ac_try" in
12687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688   *) ac_try_echo=$ac_try;;
12689 esac
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691   (eval "$ac_try") 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); }; }; then
12695   eval "$as_ac_var=yes"
12696 else
12697   echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700         eval "$as_ac_var=no"
12701 fi
12702
12703 rm -f core conftest.err conftest.$ac_objext \
12704       conftest$ac_exeext conftest.$ac_ext
12705 fi
12706 ac_res=`eval echo '${'$as_ac_var'}'`
12707                { echo "$as_me:$LINENO: result: $ac_res" >&5
12708 echo "${ECHO_T}$ac_res" >&6; }
12709 if test `eval echo '${'$as_ac_var'}'` = yes; then
12710   cat >>confdefs.h <<_ACEOF
12711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12712 _ACEOF
12713  break
12714 fi
12715 done
12716
12717
12718
12719 for ac_func in strrchr rindex
12720 do
12721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12725   echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727   cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h.  */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h.  */
12733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12735 #define $ac_func innocuous_$ac_func
12736
12737 /* System header to define __stub macros and hopefully few prototypes,
12738     which can conflict with char $ac_func (); below.
12739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12740     <limits.h> exists even on freestanding compilers.  */
12741
12742 #ifdef __STDC__
12743 # include <limits.h>
12744 #else
12745 # include <assert.h>
12746 #endif
12747
12748 #undef $ac_func
12749
12750 /* Override any GCC internal prototype to avoid an error.
12751    Use char because int might match the return type of a GCC
12752    builtin and then its argument prototype would still apply.  */
12753 #ifdef __cplusplus
12754 extern "C"
12755 #endif
12756 char $ac_func ();
12757 /* The GNU C library defines this for functions which it implements
12758     to always fail with ENOSYS.  Some functions are actually named
12759     something starting with __ and the normal name is an alias.  */
12760 #if defined __stub_$ac_func || defined __stub___$ac_func
12761 choke me
12762 #endif
12763
12764 int
12765 main ()
12766 {
12767 return $ac_func ();
12768   ;
12769   return 0;
12770 }
12771 _ACEOF
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776   *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779   (eval "$ac_link") 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } &&
12786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787   { (case "(($ac_try" in
12788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789   *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792   (eval "$ac_try") 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; } &&
12796          { ac_try='test -s conftest$ac_exeext'
12797   { (case "(($ac_try" in
12798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799   *) ac_try_echo=$ac_try;;
12800 esac
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802   (eval "$ac_try") 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; }; then
12806   eval "$as_ac_var=yes"
12807 else
12808   echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811         eval "$as_ac_var=no"
12812 fi
12813
12814 rm -f core conftest.err conftest.$ac_objext \
12815       conftest$ac_exeext conftest.$ac_ext
12816 fi
12817 ac_res=`eval echo '${'$as_ac_var'}'`
12818                { echo "$as_me:$LINENO: result: $ac_res" >&5
12819 echo "${ECHO_T}$ac_res" >&6; }
12820 if test `eval echo '${'$as_ac_var'}'` = yes; then
12821   cat >>confdefs.h <<_ACEOF
12822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12823 _ACEOF
12824  break
12825 fi
12826 done
12827
12828
12829
12830 for ac_func in memcpy bcopy
12831 do
12832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12836   echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838   cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12846 #define $ac_func innocuous_$ac_func
12847
12848 /* System header to define __stub macros and hopefully few prototypes,
12849     which can conflict with char $ac_func (); below.
12850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12851     <limits.h> exists even on freestanding compilers.  */
12852
12853 #ifdef __STDC__
12854 # include <limits.h>
12855 #else
12856 # include <assert.h>
12857 #endif
12858
12859 #undef $ac_func
12860
12861 /* Override any GCC internal prototype to avoid an error.
12862    Use char because int might match the return type of a GCC
12863    builtin and then its argument prototype would still apply.  */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 char $ac_func ();
12868 /* The GNU C library defines this for functions which it implements
12869     to always fail with ENOSYS.  Some functions are actually named
12870     something starting with __ and the normal name is an alias.  */
12871 #if defined __stub_$ac_func || defined __stub___$ac_func
12872 choke me
12873 #endif
12874
12875 int
12876 main ()
12877 {
12878 return $ac_func ();
12879   ;
12880   return 0;
12881 }
12882 _ACEOF
12883 rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (ac_try="$ac_link"
12885 case "(($ac_try" in
12886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887   *) ac_try_echo=$ac_try;;
12888 esac
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890   (eval "$ac_link") 2>conftest.er1
12891   ac_status=$?
12892   grep -v '^ *+' conftest.er1 >conftest.err
12893   rm -f conftest.er1
12894   cat conftest.err >&5
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); } &&
12897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12898   { (case "(($ac_try" in
12899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900   *) ac_try_echo=$ac_try;;
12901 esac
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903   (eval "$ac_try") 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); }; } &&
12907          { ac_try='test -s conftest$ac_exeext'
12908   { (case "(($ac_try" in
12909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910   *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913   (eval "$ac_try") 2>&5
12914   ac_status=$?
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); }; }; then
12917   eval "$as_ac_var=yes"
12918 else
12919   echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12921
12922         eval "$as_ac_var=no"
12923 fi
12924
12925 rm -f core conftest.err conftest.$ac_objext \
12926       conftest$ac_exeext conftest.$ac_ext
12927 fi
12928 ac_res=`eval echo '${'$as_ac_var'}'`
12929                { echo "$as_me:$LINENO: result: $ac_res" >&5
12930 echo "${ECHO_T}$ac_res" >&6; }
12931 if test `eval echo '${'$as_ac_var'}'` = yes; then
12932   cat >>confdefs.h <<_ACEOF
12933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12934 _ACEOF
12935  break
12936 fi
12937 done
12938
12939
12940
12941 for ac_func in memmove strcmp
12942 do
12943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12947   echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949   cat >conftest.$ac_ext <<_ACEOF
12950 /* confdefs.h.  */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h.  */
12955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12957 #define $ac_func innocuous_$ac_func
12958
12959 /* System header to define __stub macros and hopefully few prototypes,
12960     which can conflict with char $ac_func (); below.
12961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12962     <limits.h> exists even on freestanding compilers.  */
12963
12964 #ifdef __STDC__
12965 # include <limits.h>
12966 #else
12967 # include <assert.h>
12968 #endif
12969
12970 #undef $ac_func
12971
12972 /* Override any GCC internal prototype to avoid an error.
12973    Use char because int might match the return type of a GCC
12974    builtin and then its argument prototype would still apply.  */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 char $ac_func ();
12979 /* The GNU C library defines this for functions which it implements
12980     to always fail with ENOSYS.  Some functions are actually named
12981     something starting with __ and the normal name is an alias.  */
12982 #if defined __stub_$ac_func || defined __stub___$ac_func
12983 choke me
12984 #endif
12985
12986 int
12987 main ()
12988 {
12989 return $ac_func ();
12990   ;
12991   return 0;
12992 }
12993 _ACEOF
12994 rm -f conftest.$ac_objext conftest$ac_exeext
12995 if { (ac_try="$ac_link"
12996 case "(($ac_try" in
12997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998   *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001   (eval "$ac_link") 2>conftest.er1
13002   ac_status=$?
13003   grep -v '^ *+' conftest.er1 >conftest.err
13004   rm -f conftest.er1
13005   cat conftest.err >&5
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); } &&
13008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009   { (case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014   (eval "$ac_try") 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); }; } &&
13018          { ac_try='test -s conftest$ac_exeext'
13019   { (case "(($ac_try" in
13020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021   *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024   (eval "$ac_try") 2>&5
13025   ac_status=$?
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); }; }; then
13028   eval "$as_ac_var=yes"
13029 else
13030   echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033         eval "$as_ac_var=no"
13034 fi
13035
13036 rm -f core conftest.err conftest.$ac_objext \
13037       conftest$ac_exeext conftest.$ac_ext
13038 fi
13039 ac_res=`eval echo '${'$as_ac_var'}'`
13040                { echo "$as_me:$LINENO: result: $ac_res" >&5
13041 echo "${ECHO_T}$ac_res" >&6; }
13042 if test `eval echo '${'$as_ac_var'}'` = yes; then
13043   cat >>confdefs.h <<_ACEOF
13044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13045 _ACEOF
13046
13047 fi
13048 done
13049
13050
13051
13052
13053 for ac_func in closedir opendir readdir
13054 do
13055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13059   echo $ECHO_N "(cached) $ECHO_C" >&6
13060 else
13061   cat >conftest.$ac_ext <<_ACEOF
13062 /* confdefs.h.  */
13063 _ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h.  */
13067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13069 #define $ac_func innocuous_$ac_func
13070
13071 /* System header to define __stub macros and hopefully few prototypes,
13072     which can conflict with char $ac_func (); below.
13073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13074     <limits.h> exists even on freestanding compilers.  */
13075
13076 #ifdef __STDC__
13077 # include <limits.h>
13078 #else
13079 # include <assert.h>
13080 #endif
13081
13082 #undef $ac_func
13083
13084 /* Override any GCC internal prototype to avoid an error.
13085    Use char because int might match the return type of a GCC
13086    builtin and then its argument prototype would still apply.  */
13087 #ifdef __cplusplus
13088 extern "C"
13089 #endif
13090 char $ac_func ();
13091 /* The GNU C library defines this for functions which it implements
13092     to always fail with ENOSYS.  Some functions are actually named
13093     something starting with __ and the normal name is an alias.  */
13094 #if defined __stub_$ac_func || defined __stub___$ac_func
13095 choke me
13096 #endif
13097
13098 int
13099 main ()
13100 {
13101 return $ac_func ();
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext conftest$ac_exeext
13107 if { (ac_try="$ac_link"
13108 case "(($ac_try" in
13109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110   *) ac_try_echo=$ac_try;;
13111 esac
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113   (eval "$ac_link") 2>conftest.er1
13114   ac_status=$?
13115   grep -v '^ *+' conftest.er1 >conftest.err
13116   rm -f conftest.er1
13117   cat conftest.err >&5
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); } &&
13120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13121   { (case "(($ac_try" in
13122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123   *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126   (eval "$ac_try") 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; } &&
13130          { ac_try='test -s conftest$ac_exeext'
13131   { (case "(($ac_try" in
13132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133   *) ac_try_echo=$ac_try;;
13134 esac
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136   (eval "$ac_try") 2>&5
13137   ac_status=$?
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); }; }; then
13140   eval "$as_ac_var=yes"
13141 else
13142   echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145         eval "$as_ac_var=no"
13146 fi
13147
13148 rm -f core conftest.err conftest.$ac_objext \
13149       conftest$ac_exeext conftest.$ac_ext
13150 fi
13151 ac_res=`eval echo '${'$as_ac_var'}'`
13152                { echo "$as_me:$LINENO: result: $ac_res" >&5
13153 echo "${ECHO_T}$ac_res" >&6; }
13154 if test `eval echo '${'$as_ac_var'}'` = yes; then
13155   cat >>confdefs.h <<_ACEOF
13156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13157 _ACEOF
13158
13159 fi
13160 done
13161
13162
13163
13164 if test "$WITH_LLVMGCCDIR" = "default" ; then
13165   LLVMGCC="llvm-gcc${EXEEXT}"
13166   LLVMGXX="llvm-g++${EXEEXT}"
13167   LLVMGCCCOMMAND="$LLVMGCC"
13168   LLVMGXXCOMMAND="$LLVMGXX"
13169   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13170
13171   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13172
13173   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13174 set dummy $LLVMGCC; ac_word=$2
13175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13177 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13178   echo $ECHO_N "(cached) $ECHO_C" >&6
13179 else
13180   case $LLVMGCC in
13181   [\\/]* | ?:[\\/]*)
13182   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13183   ;;
13184   *)
13185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13187 do
13188   IFS=$as_save_IFS
13189   test -z "$as_dir" && as_dir=.
13190   for ac_exec_ext in '' $ac_executable_extensions; do
13191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13192     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13194     break 2
13195   fi
13196 done
13197 done
13198 IFS=$as_save_IFS
13199
13200   ;;
13201 esac
13202 fi
13203 LLVMGCC=$ac_cv_path_LLVMGCC
13204 if test -n "$LLVMGCC"; then
13205   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13206 echo "${ECHO_T}$LLVMGCC" >&6; }
13207 else
13208   { echo "$as_me:$LINENO: result: no" >&5
13209 echo "${ECHO_T}no" >&6; }
13210 fi
13211
13212
13213   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13214 set dummy $LLVMGXX; ac_word=$2
13215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13217 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13218   echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220   case $LLVMGXX in
13221   [\\/]* | ?:[\\/]*)
13222   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13223   ;;
13224   *)
13225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13227 do
13228   IFS=$as_save_IFS
13229   test -z "$as_dir" && as_dir=.
13230   for ac_exec_ext in '' $ac_executable_extensions; do
13231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13232     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13234     break 2
13235   fi
13236 done
13237 done
13238 IFS=$as_save_IFS
13239
13240   ;;
13241 esac
13242 fi
13243 LLVMGXX=$ac_cv_path_LLVMGXX
13244 if test -n "$LLVMGXX"; then
13245   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13246 echo "${ECHO_T}$LLVMGXX" >&6; }
13247 else
13248   { echo "$as_me:$LINENO: result: no" >&5
13249 echo "${ECHO_T}no" >&6; }
13250 fi
13251
13252
13253 else
13254   if test -z "$LLVMGCC"; then
13255     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13256     LLVMGCCCOMMAND="$LLVMGCC"
13257   fi
13258   if test -z "$LLVMGXX"; then
13259     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13260     LLVMGXXCOMMAND="$LLVMGXX"
13261   fi
13262
13263   LLVMGCC=$LLVMGCC
13264
13265   LLVMGXX=$LLVMGXX
13266
13267   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13268
13269   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13270
13271 fi
13272
13273
13274 # Check whether --with-llvmcc was given.
13275 if test "${with_llvmcc+set}" = set; then
13276   withval=$with_llvmcc;
13277 else
13278   with_llvmcc=check
13279 fi
13280
13281 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13282 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13283 if test "$with_llvmcc" != "check"; then
13284    if (test "$with_llvmcc" != "llvm-gcc" &&
13285        test "$with_llvmcc" != "clang" &&
13286        test "$with_llvmcc" != "none"); then
13287       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13288 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13289    { (exit 1); exit 1; }; }
13290    fi
13291    WITH_LLVMCC="$with_llvmcc"
13292 elif test -n "$LLVMGCC"; then
13293    WITH_LLVMCC=llvm-gcc
13294 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13295    WITH_LLVMCC=clang
13296 else
13297    WITH_LLVMCC=none
13298 fi
13299 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13300 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13301 LLVMCC_OPTION=$WITH_LLVMCC
13302
13303
13304 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13305 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13306
13307 ICC=no
13308 IXX=no
13309 case $CC in
13310   icc*|icpc*)
13311     ICC=yes
13312     IXX=yes
13313     ;;
13314    *)
13315     ;;
13316 esac
13317
13318 if test "$GCC" != "yes" && test "$ICC" != "yes"
13319 then
13320   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13321 echo "$as_me: error: gcc|icc required but not found" >&2;}
13322    { (exit 1); exit 1; }; }
13323 fi
13324
13325 if test "$GXX" != "yes" && test "$IXX" != "yes"
13326 then
13327   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13328 echo "$as_me: error: g++|icc required but not found" >&2;}
13329    { (exit 1); exit 1; }; }
13330 fi
13331
13332 if test "$GCC" = "yes"
13333 then
13334   cat >conftest.$ac_ext <<_ACEOF
13335 #if !defined(__GNUC__) || __GNUC__ < 3
13336 #error Unsupported GCC version
13337 #endif
13338
13339 _ACEOF
13340 rm -f conftest.$ac_objext
13341 if { (ac_try="$ac_compile"
13342 case "(($ac_try" in
13343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344   *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347   (eval "$ac_compile") 2>conftest.er1
13348   ac_status=$?
13349   grep -v '^ *+' conftest.er1 >conftest.err
13350   rm -f conftest.er1
13351   cat conftest.err >&5
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); } &&
13354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13355   { (case "(($ac_try" in
13356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357   *) ac_try_echo=$ac_try;;
13358 esac
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360   (eval "$ac_try") 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; } &&
13364          { ac_try='test -s conftest.$ac_objext'
13365   { (case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_try") 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; }; then
13374   :
13375 else
13376   echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13380 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13381    { (exit 1); exit 1; }; }
13382 fi
13383
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 fi
13386
13387 if test -z "$llvm_cv_gnu_make_command"
13388 then
13389   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13390 echo "$as_me: error: GNU Make required but not found" >&2;}
13391    { (exit 1); exit 1; }; }
13392 fi
13393
13394 { echo "$as_me:$LINENO: result: ok" >&5
13395 echo "${ECHO_T}ok" >&6; }
13396
13397 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13398 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13399 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13400
13401 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13402
13403 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13404 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13405
13406
13407
13408 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13409 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13410 if test "${ac_cv_lib_m_sin+set}" = set; then
13411   echo $ECHO_N "(cached) $ECHO_C" >&6
13412 else
13413   ac_check_lib_save_LIBS=$LIBS
13414 LIBS="-lm  $LIBS"
13415 cat >conftest.$ac_ext <<_ACEOF
13416 /* confdefs.h.  */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h.  */
13421
13422 /* Override any GCC internal prototype to avoid an error.
13423    Use char because int might match the return type of a GCC
13424    builtin and then its argument prototype would still apply.  */
13425 #ifdef __cplusplus
13426 extern "C"
13427 #endif
13428 char sin ();
13429 int
13430 main ()
13431 {
13432 return sin ();
13433   ;
13434   return 0;
13435 }
13436 _ACEOF
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (ac_try="$ac_link"
13439 case "(($ac_try" in
13440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441   *) ac_try_echo=$ac_try;;
13442 esac
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444   (eval "$ac_link") 2>conftest.er1
13445   ac_status=$?
13446   grep -v '^ *+' conftest.er1 >conftest.err
13447   rm -f conftest.er1
13448   cat conftest.err >&5
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452   { (case "(($ac_try" in
13453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454   *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457   (eval "$ac_try") 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; } &&
13461          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; }; then
13471   ac_cv_lib_m_sin=yes
13472 else
13473   echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476         ac_cv_lib_m_sin=no
13477 fi
13478
13479 rm -f core conftest.err conftest.$ac_objext \
13480       conftest$ac_exeext conftest.$ac_ext
13481 LIBS=$ac_check_lib_save_LIBS
13482 fi
13483 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13484 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13485 if test $ac_cv_lib_m_sin = yes; then
13486   cat >>confdefs.h <<_ACEOF
13487 #define HAVE_LIBM 1
13488 _ACEOF
13489
13490   LIBS="-lm $LIBS"
13491
13492 fi
13493
13494 if test "$llvm_cv_os_type" = "MingW" ; then
13495
13496 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13497 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13498 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13499   echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501   ac_check_lib_save_LIBS=$LIBS
13502 LIBS="-limagehlp  $LIBS"
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h.  */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h.  */
13509
13510
13511 int
13512 main ()
13513 {
13514 return main ();
13515   ;
13516   return 0;
13517 }
13518 _ACEOF
13519 rm -f conftest.$ac_objext conftest$ac_exeext
13520 if { (ac_try="$ac_link"
13521 case "(($ac_try" in
13522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523   *) ac_try_echo=$ac_try;;
13524 esac
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526   (eval "$ac_link") 2>conftest.er1
13527   ac_status=$?
13528   grep -v '^ *+' conftest.er1 >conftest.err
13529   rm -f conftest.er1
13530   cat conftest.err >&5
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); } &&
13533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13534   { (case "(($ac_try" in
13535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536   *) ac_try_echo=$ac_try;;
13537 esac
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539   (eval "$ac_try") 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); }; } &&
13543          { ac_try='test -s conftest$ac_exeext'
13544   { (case "(($ac_try" in
13545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546   *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549   (eval "$ac_try") 2>&5
13550   ac_status=$?
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); }; }; then
13553   ac_cv_lib_imagehlp_main=yes
13554 else
13555   echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13557
13558         ac_cv_lib_imagehlp_main=no
13559 fi
13560
13561 rm -f core conftest.err conftest.$ac_objext \
13562       conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13564 fi
13565 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13566 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13567 if test $ac_cv_lib_imagehlp_main = yes; then
13568   cat >>confdefs.h <<_ACEOF
13569 #define HAVE_LIBIMAGEHLP 1
13570 _ACEOF
13571
13572   LIBS="-limagehlp $LIBS"
13573
13574 fi
13575
13576
13577 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13578 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13579 if test "${ac_cv_lib_psapi_main+set}" = set; then
13580   echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582   ac_check_lib_save_LIBS=$LIBS
13583 LIBS="-lpsapi  $LIBS"
13584 cat >conftest.$ac_ext <<_ACEOF
13585 /* confdefs.h.  */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h.  */
13590
13591
13592 int
13593 main ()
13594 {
13595 return main ();
13596   ;
13597   return 0;
13598 }
13599 _ACEOF
13600 rm -f conftest.$ac_objext conftest$ac_exeext
13601 if { (ac_try="$ac_link"
13602 case "(($ac_try" in
13603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604   *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607   (eval "$ac_link") 2>conftest.er1
13608   ac_status=$?
13609   grep -v '^ *+' conftest.er1 >conftest.err
13610   rm -f conftest.er1
13611   cat conftest.err >&5
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); } &&
13614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13615   { (case "(($ac_try" in
13616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617   *) ac_try_echo=$ac_try;;
13618 esac
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620   (eval "$ac_try") 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; } &&
13624          { ac_try='test -s conftest$ac_exeext'
13625   { (case "(($ac_try" in
13626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627   *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630   (eval "$ac_try") 2>&5
13631   ac_status=$?
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); }; }; then
13634   ac_cv_lib_psapi_main=yes
13635 else
13636   echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13638
13639         ac_cv_lib_psapi_main=no
13640 fi
13641
13642 rm -f core conftest.err conftest.$ac_objext \
13643       conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13645 fi
13646 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13647 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13648 if test $ac_cv_lib_psapi_main = yes; then
13649   cat >>confdefs.h <<_ACEOF
13650 #define HAVE_LIBPSAPI 1
13651 _ACEOF
13652
13653   LIBS="-lpsapi $LIBS"
13654
13655 fi
13656
13657 fi
13658
13659 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13660 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13661 if test "${ac_cv_search_dlopen+set}" = set; then
13662   echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664   ac_func_search_save_LIBS=$LIBS
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671
13672 /* Override any GCC internal prototype to avoid an error.
13673    Use char because int might match the return type of a GCC
13674    builtin and then its argument prototype would still apply.  */
13675 #ifdef __cplusplus
13676 extern "C"
13677 #endif
13678 char dlopen ();
13679 int
13680 main ()
13681 {
13682 return dlopen ();
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 for ac_lib in '' dl; do
13688   if test -z "$ac_lib"; then
13689     ac_res="none required"
13690   else
13691     ac_res=-l$ac_lib
13692     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13693   fi
13694   rm -f conftest.$ac_objext conftest$ac_exeext
13695 if { (ac_try="$ac_link"
13696 case "(($ac_try" in
13697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698   *) ac_try_echo=$ac_try;;
13699 esac
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701   (eval "$ac_link") 2>conftest.er1
13702   ac_status=$?
13703   grep -v '^ *+' conftest.er1 >conftest.err
13704   rm -f conftest.er1
13705   cat conftest.err >&5
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); } &&
13708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13709   { (case "(($ac_try" in
13710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711   *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714   (eval "$ac_try") 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }; } &&
13718          { ac_try='test -s conftest$ac_exeext'
13719   { (case "(($ac_try" in
13720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721   *) ac_try_echo=$ac_try;;
13722 esac
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724   (eval "$ac_try") 2>&5
13725   ac_status=$?
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); }; }; then
13728   ac_cv_search_dlopen=$ac_res
13729 else
13730   echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13732
13733
13734 fi
13735
13736 rm -f core conftest.err conftest.$ac_objext \
13737       conftest$ac_exeext
13738   if test "${ac_cv_search_dlopen+set}" = set; then
13739   break
13740 fi
13741 done
13742 if test "${ac_cv_search_dlopen+set}" = set; then
13743   :
13744 else
13745   ac_cv_search_dlopen=no
13746 fi
13747 rm conftest.$ac_ext
13748 LIBS=$ac_func_search_save_LIBS
13749 fi
13750 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13751 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13752 ac_res=$ac_cv_search_dlopen
13753 if test "$ac_res" != no; then
13754   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13755
13756 cat >>confdefs.h <<\_ACEOF
13757 #define HAVE_DLOPEN 1
13758 _ACEOF
13759
13760 else
13761   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13762 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13763 fi
13764
13765
13766 if test "$llvm_cv_enable_libffi" = "yes" ; then
13767   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13768 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13769 if test "${ac_cv_search_ffi_call+set}" = set; then
13770   echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772   ac_func_search_save_LIBS=$LIBS
13773 cat >conftest.$ac_ext <<_ACEOF
13774 /* confdefs.h.  */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h.  */
13779
13780 /* Override any GCC internal prototype to avoid an error.
13781    Use char because int might match the return type of a GCC
13782    builtin and then its argument prototype would still apply.  */
13783 #ifdef __cplusplus
13784 extern "C"
13785 #endif
13786 char ffi_call ();
13787 int
13788 main ()
13789 {
13790 return ffi_call ();
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 for ac_lib in '' ffi; do
13796   if test -z "$ac_lib"; then
13797     ac_res="none required"
13798   else
13799     ac_res=-l$ac_lib
13800     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13801   fi
13802   rm -f conftest.$ac_objext conftest$ac_exeext
13803 if { (ac_try="$ac_link"
13804 case "(($ac_try" in
13805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806   *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809   (eval "$ac_link") 2>conftest.er1
13810   ac_status=$?
13811   grep -v '^ *+' conftest.er1 >conftest.err
13812   rm -f conftest.er1
13813   cat conftest.err >&5
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); } &&
13816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817   { (case "(($ac_try" in
13818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819   *) ac_try_echo=$ac_try;;
13820 esac
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822   (eval "$ac_try") 2>&5
13823   ac_status=$?
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); }; } &&
13826          { ac_try='test -s conftest$ac_exeext'
13827   { (case "(($ac_try" in
13828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829   *) ac_try_echo=$ac_try;;
13830 esac
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832   (eval "$ac_try") 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_cv_search_ffi_call=$ac_res
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841
13842 fi
13843
13844 rm -f core conftest.err conftest.$ac_objext \
13845       conftest$ac_exeext
13846   if test "${ac_cv_search_ffi_call+set}" = set; then
13847   break
13848 fi
13849 done
13850 if test "${ac_cv_search_ffi_call+set}" = set; then
13851   :
13852 else
13853   ac_cv_search_ffi_call=no
13854 fi
13855 rm conftest.$ac_ext
13856 LIBS=$ac_func_search_save_LIBS
13857 fi
13858 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13859 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13860 ac_res=$ac_cv_search_ffi_call
13861 if test "$ac_res" != no; then
13862   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13863
13864 cat >>confdefs.h <<\_ACEOF
13865 #define HAVE_FFI_CALL 1
13866 _ACEOF
13867
13868 else
13869   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13870 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13871    { (exit 1); exit 1; }; }
13872 fi
13873
13874 fi
13875
13876 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13877 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13878 if test "${ac_cv_search_mallinfo+set}" = set; then
13879   echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881   ac_func_search_save_LIBS=$LIBS
13882 cat >conftest.$ac_ext <<_ACEOF
13883 /* confdefs.h.  */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h.  */
13888
13889 /* Override any GCC internal prototype to avoid an error.
13890    Use char because int might match the return type of a GCC
13891    builtin and then its argument prototype would still apply.  */
13892 #ifdef __cplusplus
13893 extern "C"
13894 #endif
13895 char mallinfo ();
13896 int
13897 main ()
13898 {
13899 return mallinfo ();
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 for ac_lib in '' malloc; do
13905   if test -z "$ac_lib"; then
13906     ac_res="none required"
13907   else
13908     ac_res=-l$ac_lib
13909     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13910   fi
13911   rm -f conftest.$ac_objext conftest$ac_exeext
13912 if { (ac_try="$ac_link"
13913 case "(($ac_try" in
13914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915   *) ac_try_echo=$ac_try;;
13916 esac
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918   (eval "$ac_link") 2>conftest.er1
13919   ac_status=$?
13920   grep -v '^ *+' conftest.er1 >conftest.err
13921   rm -f conftest.er1
13922   cat conftest.err >&5
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); } &&
13925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13926   { (case "(($ac_try" in
13927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928   *) ac_try_echo=$ac_try;;
13929 esac
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931   (eval "$ac_try") 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); }; } &&
13935          { ac_try='test -s conftest$ac_exeext'
13936   { (case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941   (eval "$ac_try") 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }; then
13945   ac_cv_search_mallinfo=$ac_res
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950
13951 fi
13952
13953 rm -f core conftest.err conftest.$ac_objext \
13954       conftest$ac_exeext
13955   if test "${ac_cv_search_mallinfo+set}" = set; then
13956   break
13957 fi
13958 done
13959 if test "${ac_cv_search_mallinfo+set}" = set; then
13960   :
13961 else
13962   ac_cv_search_mallinfo=no
13963 fi
13964 rm conftest.$ac_ext
13965 LIBS=$ac_func_search_save_LIBS
13966 fi
13967 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13968 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13969 ac_res=$ac_cv_search_mallinfo
13970 if test "$ac_res" != no; then
13971   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13972
13973 cat >>confdefs.h <<\_ACEOF
13974 #define HAVE_MALLINFO 1
13975 _ACEOF
13976
13977 fi
13978
13979
13980 if test "$ENABLE_THREADS" -eq 1 ; then
13981
13982 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13983 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13984 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13985   echo $ECHO_N "(cached) $ECHO_C" >&6
13986 else
13987   ac_check_lib_save_LIBS=$LIBS
13988 LIBS="-lpthread  $LIBS"
13989 cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h.  */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h.  */
13995
13996 /* Override any GCC internal prototype to avoid an error.
13997    Use char because int might match the return type of a GCC
13998    builtin and then its argument prototype would still apply.  */
13999 #ifdef __cplusplus
14000 extern "C"
14001 #endif
14002 char pthread_mutex_init ();
14003 int
14004 main ()
14005 {
14006 return pthread_mutex_init ();
14007   ;
14008   return 0;
14009 }
14010 _ACEOF
14011 rm -f conftest.$ac_objext conftest$ac_exeext
14012 if { (ac_try="$ac_link"
14013 case "(($ac_try" in
14014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015   *) ac_try_echo=$ac_try;;
14016 esac
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018   (eval "$ac_link") 2>conftest.er1
14019   ac_status=$?
14020   grep -v '^ *+' conftest.er1 >conftest.err
14021   rm -f conftest.er1
14022   cat conftest.err >&5
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); } &&
14025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14026   { (case "(($ac_try" in
14027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028   *) ac_try_echo=$ac_try;;
14029 esac
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031   (eval "$ac_try") 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; } &&
14035          { ac_try='test -s conftest$ac_exeext'
14036   { (case "(($ac_try" in
14037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038   *) ac_try_echo=$ac_try;;
14039 esac
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041   (eval "$ac_try") 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; }; then
14045   ac_cv_lib_pthread_pthread_mutex_init=yes
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050         ac_cv_lib_pthread_pthread_mutex_init=no
14051 fi
14052
14053 rm -f core conftest.err conftest.$ac_objext \
14054       conftest$ac_exeext conftest.$ac_ext
14055 LIBS=$ac_check_lib_save_LIBS
14056 fi
14057 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14058 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14059 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14060   cat >>confdefs.h <<_ACEOF
14061 #define HAVE_LIBPTHREAD 1
14062 _ACEOF
14063
14064   LIBS="-lpthread $LIBS"
14065
14066 fi
14067
14068   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14069 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14070 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14071   echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073   ac_func_search_save_LIBS=$LIBS
14074 cat >conftest.$ac_ext <<_ACEOF
14075 /* confdefs.h.  */
14076 _ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h.  */
14080
14081 /* Override any GCC internal prototype to avoid an error.
14082    Use char because int might match the return type of a GCC
14083    builtin and then its argument prototype would still apply.  */
14084 #ifdef __cplusplus
14085 extern "C"
14086 #endif
14087 char pthread_mutex_lock ();
14088 int
14089 main ()
14090 {
14091 return pthread_mutex_lock ();
14092   ;
14093   return 0;
14094 }
14095 _ACEOF
14096 for ac_lib in '' pthread; do
14097   if test -z "$ac_lib"; then
14098     ac_res="none required"
14099   else
14100     ac_res=-l$ac_lib
14101     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14102   fi
14103   rm -f conftest.$ac_objext conftest$ac_exeext
14104 if { (ac_try="$ac_link"
14105 case "(($ac_try" in
14106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107   *) ac_try_echo=$ac_try;;
14108 esac
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110   (eval "$ac_link") 2>conftest.er1
14111   ac_status=$?
14112   grep -v '^ *+' conftest.er1 >conftest.err
14113   rm -f conftest.er1
14114   cat conftest.err >&5
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); } &&
14117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14118   { (case "(($ac_try" in
14119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14120   *) ac_try_echo=$ac_try;;
14121 esac
14122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14123   (eval "$ac_try") 2>&5
14124   ac_status=$?
14125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126   (exit $ac_status); }; } &&
14127          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; }; then
14137   ac_cv_search_pthread_mutex_lock=$ac_res
14138 else
14139   echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142
14143 fi
14144
14145 rm -f core conftest.err conftest.$ac_objext \
14146       conftest$ac_exeext
14147   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14148   break
14149 fi
14150 done
14151 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14152   :
14153 else
14154   ac_cv_search_pthread_mutex_lock=no
14155 fi
14156 rm conftest.$ac_ext
14157 LIBS=$ac_func_search_save_LIBS
14158 fi
14159 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14160 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14161 ac_res=$ac_cv_search_pthread_mutex_lock
14162 if test "$ac_res" != no; then
14163   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14164
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_PTHREAD_MUTEX_LOCK 1
14167 _ACEOF
14168
14169 fi
14170
14171   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14172 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14173 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   ac_func_search_save_LIBS=$LIBS
14177 cat >conftest.$ac_ext <<_ACEOF
14178 /* confdefs.h.  */
14179 _ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h.  */
14183
14184 /* Override any GCC internal prototype to avoid an error.
14185    Use char because int might match the return type of a GCC
14186    builtin and then its argument prototype would still apply.  */
14187 #ifdef __cplusplus
14188 extern "C"
14189 #endif
14190 char pthread_rwlock_init ();
14191 int
14192 main ()
14193 {
14194 return pthread_rwlock_init ();
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 for ac_lib in '' pthread; do
14200   if test -z "$ac_lib"; then
14201     ac_res="none required"
14202   else
14203     ac_res=-l$ac_lib
14204     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14205   fi
14206   rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_link") 2>conftest.er1
14214   ac_status=$?
14215   grep -v '^ *+' conftest.er1 >conftest.err
14216   rm -f conftest.er1
14217   cat conftest.err >&5
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221   { (case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226   (eval "$ac_try") 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; } &&
14230          { ac_try='test -s conftest$ac_exeext'
14231   { (case "(($ac_try" in
14232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233   *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236   (eval "$ac_try") 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_cv_search_pthread_rwlock_init=$ac_res
14241 else
14242   echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14244
14245
14246 fi
14247
14248 rm -f core conftest.err conftest.$ac_objext \
14249       conftest$ac_exeext
14250   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14251   break
14252 fi
14253 done
14254 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14255   :
14256 else
14257   ac_cv_search_pthread_rwlock_init=no
14258 fi
14259 rm conftest.$ac_ext
14260 LIBS=$ac_func_search_save_LIBS
14261 fi
14262 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14263 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14264 ac_res=$ac_cv_search_pthread_rwlock_init
14265 if test "$ac_res" != no; then
14266   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14267
14268 cat >>confdefs.h <<\_ACEOF
14269 #define HAVE_PTHREAD_RWLOCK_INIT 1
14270 _ACEOF
14271
14272 fi
14273
14274   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14275 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14276 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279   ac_func_search_save_LIBS=$LIBS
14280 cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h.  */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h.  */
14286
14287 /* Override any GCC internal prototype to avoid an error.
14288    Use char because int might match the return type of a GCC
14289    builtin and then its argument prototype would still apply.  */
14290 #ifdef __cplusplus
14291 extern "C"
14292 #endif
14293 char pthread_getspecific ();
14294 int
14295 main ()
14296 {
14297 return pthread_getspecific ();
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 for ac_lib in '' pthread; do
14303   if test -z "$ac_lib"; then
14304     ac_res="none required"
14305   else
14306     ac_res=-l$ac_lib
14307     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14308   fi
14309   rm -f conftest.$ac_objext conftest$ac_exeext
14310 if { (ac_try="$ac_link"
14311 case "(($ac_try" in
14312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313   *) ac_try_echo=$ac_try;;
14314 esac
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316   (eval "$ac_link") 2>conftest.er1
14317   ac_status=$?
14318   grep -v '^ *+' conftest.er1 >conftest.err
14319   rm -f conftest.er1
14320   cat conftest.err >&5
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); } &&
14323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14324   { (case "(($ac_try" in
14325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326   *) ac_try_echo=$ac_try;;
14327 esac
14328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329   (eval "$ac_try") 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; } &&
14333          { ac_try='test -s conftest$ac_exeext'
14334   { (case "(($ac_try" in
14335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336   *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339   (eval "$ac_try") 2>&5
14340   ac_status=$?
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); }; }; then
14343   ac_cv_search_pthread_getspecific=$ac_res
14344 else
14345   echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14347
14348
14349 fi
14350
14351 rm -f core conftest.err conftest.$ac_objext \
14352       conftest$ac_exeext
14353   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14354   break
14355 fi
14356 done
14357 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14358   :
14359 else
14360   ac_cv_search_pthread_getspecific=no
14361 fi
14362 rm conftest.$ac_ext
14363 LIBS=$ac_func_search_save_LIBS
14364 fi
14365 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14366 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14367 ac_res=$ac_cv_search_pthread_getspecific
14368 if test "$ac_res" != no; then
14369   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14370
14371 cat >>confdefs.h <<\_ACEOF
14372 #define HAVE_PTHREAD_GETSPECIFIC 1
14373 _ACEOF
14374
14375 fi
14376
14377 fi
14378
14379
14380 # Check whether --with-udis86 was given.
14381 if test "${with_udis86+set}" = set; then
14382   withval=$with_udis86;
14383       USE_UDIS86=1
14384
14385       case "$withval" in
14386         /usr/lib|yes) ;;
14387         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14388       esac
14389
14390 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14391 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14392 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395   ac_check_lib_save_LIBS=$LIBS
14396 LIBS="-ludis86  $LIBS"
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h.  */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h.  */
14403
14404 /* Override any GCC internal prototype to avoid an error.
14405    Use char because int might match the return type of a GCC
14406    builtin and then its argument prototype would still apply.  */
14407 #ifdef __cplusplus
14408 extern "C"
14409 #endif
14410 char ud_init ();
14411 int
14412 main ()
14413 {
14414 return ud_init ();
14415   ;
14416   return 0;
14417 }
14418 _ACEOF
14419 rm -f conftest.$ac_objext conftest$ac_exeext
14420 if { (ac_try="$ac_link"
14421 case "(($ac_try" in
14422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423   *) ac_try_echo=$ac_try;;
14424 esac
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426   (eval "$ac_link") 2>conftest.er1
14427   ac_status=$?
14428   grep -v '^ *+' conftest.er1 >conftest.err
14429   rm -f conftest.er1
14430   cat conftest.err >&5
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); } &&
14433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14434   { (case "(($ac_try" in
14435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436   *) ac_try_echo=$ac_try;;
14437 esac
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439   (eval "$ac_try") 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; } &&
14443          { ac_try='test -s conftest$ac_exeext'
14444   { (case "(($ac_try" in
14445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446   *) ac_try_echo=$ac_try;;
14447 esac
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449   (eval "$ac_try") 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; }; then
14453   ac_cv_lib_udis86_ud_init=yes
14454 else
14455   echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458         ac_cv_lib_udis86_ud_init=no
14459 fi
14460
14461 rm -f core conftest.err conftest.$ac_objext \
14462       conftest$ac_exeext conftest.$ac_ext
14463 LIBS=$ac_check_lib_save_LIBS
14464 fi
14465 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14466 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14467 if test $ac_cv_lib_udis86_ud_init = yes; then
14468   cat >>confdefs.h <<_ACEOF
14469 #define HAVE_LIBUDIS86 1
14470 _ACEOF
14471
14472   LIBS="-ludis86 $LIBS"
14473
14474 else
14475
14476         echo "Error! You need to have libudis86 around."
14477         exit -1
14478
14479 fi
14480
14481
14482 else
14483   USE_UDIS86=0
14484
14485 fi
14486
14487
14488 cat >>confdefs.h <<_ACEOF
14489 #define USE_UDIS86 $USE_UDIS86
14490 _ACEOF
14491
14492
14493
14494 # Check whether --with-oprofile was given.
14495 if test "${with_oprofile+set}" = set; then
14496   withval=$with_oprofile;
14497       USE_OPROFILE=1
14498
14499       case "$withval" in
14500         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14501         no) llvm_cv_oppath=
14502             USE_OPROFILE=0
14503  ;;
14504         *) llvm_cv_oppath="${withval}/lib/oprofile"
14505            CPPFLAGS="-I${withval}/include";;
14506       esac
14507       if test -n "$llvm_cv_oppath" ; then
14508         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14509                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14510 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14511 if test "${ac_cv_search_bfd_init+set}" = set; then
14512   echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514   ac_func_search_save_LIBS=$LIBS
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521
14522 /* Override any GCC internal prototype to avoid an error.
14523    Use char because int might match the return type of a GCC
14524    builtin and then its argument prototype would still apply.  */
14525 #ifdef __cplusplus
14526 extern "C"
14527 #endif
14528 char bfd_init ();
14529 int
14530 main ()
14531 {
14532 return bfd_init ();
14533   ;
14534   return 0;
14535 }
14536 _ACEOF
14537 for ac_lib in '' bfd; do
14538   if test -z "$ac_lib"; then
14539     ac_res="none required"
14540   else
14541     ac_res=-l$ac_lib
14542     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14543   fi
14544   rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (ac_try="$ac_link"
14546 case "(($ac_try" in
14547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548   *) ac_try_echo=$ac_try;;
14549 esac
14550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551   (eval "$ac_link") 2>conftest.er1
14552   ac_status=$?
14553   grep -v '^ *+' conftest.er1 >conftest.err
14554   rm -f conftest.er1
14555   cat conftest.err >&5
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); } &&
14558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14559   { (case "(($ac_try" in
14560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561   *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564   (eval "$ac_try") 2>&5
14565   ac_status=$?
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); }; } &&
14568          { ac_try='test -s conftest$ac_exeext'
14569   { (case "(($ac_try" in
14570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571   *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574   (eval "$ac_try") 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; }; then
14578   ac_cv_search_bfd_init=$ac_res
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583
14584 fi
14585
14586 rm -f core conftest.err conftest.$ac_objext \
14587       conftest$ac_exeext
14588   if test "${ac_cv_search_bfd_init+set}" = set; then
14589   break
14590 fi
14591 done
14592 if test "${ac_cv_search_bfd_init+set}" = set; then
14593   :
14594 else
14595   ac_cv_search_bfd_init=no
14596 fi
14597 rm conftest.$ac_ext
14598 LIBS=$ac_func_search_save_LIBS
14599 fi
14600 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14601 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14602 ac_res=$ac_cv_search_bfd_init
14603 if test "$ac_res" != no; then
14604   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14605
14606 fi
14607
14608         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14609 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14610 if test "${ac_cv_search_op_open_agent+set}" = set; then
14611   echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613   ac_func_search_save_LIBS=$LIBS
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h.  */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h.  */
14620
14621 /* Override any GCC internal prototype to avoid an error.
14622    Use char because int might match the return type of a GCC
14623    builtin and then its argument prototype would still apply.  */
14624 #ifdef __cplusplus
14625 extern "C"
14626 #endif
14627 char op_open_agent ();
14628 int
14629 main ()
14630 {
14631 return op_open_agent ();
14632   ;
14633   return 0;
14634 }
14635 _ACEOF
14636 for ac_lib in '' opagent; do
14637   if test -z "$ac_lib"; then
14638     ac_res="none required"
14639   else
14640     ac_res=-l$ac_lib
14641     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14642   fi
14643   rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (ac_try="$ac_link"
14645 case "(($ac_try" in
14646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647   *) ac_try_echo=$ac_try;;
14648 esac
14649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650   (eval "$ac_link") 2>conftest.er1
14651   ac_status=$?
14652   grep -v '^ *+' conftest.er1 >conftest.err
14653   rm -f conftest.er1
14654   cat conftest.err >&5
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); } &&
14657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14658   { (case "(($ac_try" in
14659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660   *) ac_try_echo=$ac_try;;
14661 esac
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663   (eval "$ac_try") 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; } &&
14667          { ac_try='test -s conftest$ac_exeext'
14668   { (case "(($ac_try" in
14669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670   *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673   (eval "$ac_try") 2>&5
14674   ac_status=$?
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); }; }; then
14677   ac_cv_search_op_open_agent=$ac_res
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682
14683 fi
14684
14685 rm -f core conftest.err conftest.$ac_objext \
14686       conftest$ac_exeext
14687   if test "${ac_cv_search_op_open_agent+set}" = set; then
14688   break
14689 fi
14690 done
14691 if test "${ac_cv_search_op_open_agent+set}" = set; then
14692   :
14693 else
14694   ac_cv_search_op_open_agent=no
14695 fi
14696 rm conftest.$ac_ext
14697 LIBS=$ac_func_search_save_LIBS
14698 fi
14699 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14700 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14701 ac_res=$ac_cv_search_op_open_agent
14702 if test "$ac_res" != no; then
14703   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14704
14705 else
14706
14707           echo "Error! You need to have libopagent around."
14708           exit -1
14709
14710 fi
14711
14712         if test "${ac_cv_header_opagent_h+set}" = set; then
14713   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14714 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14715 if test "${ac_cv_header_opagent_h+set}" = set; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 fi
14718 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14719 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14720 else
14721   # Is the header compilable?
14722 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14723 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14724 cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h.  */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h.  */
14730 $ac_includes_default
14731 #include <opagent.h>
14732 _ACEOF
14733 rm -f conftest.$ac_objext
14734 if { (ac_try="$ac_compile"
14735 case "(($ac_try" in
14736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737   *) ac_try_echo=$ac_try;;
14738 esac
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740   (eval "$ac_compile") 2>conftest.er1
14741   ac_status=$?
14742   grep -v '^ *+' conftest.er1 >conftest.err
14743   rm -f conftest.er1
14744   cat conftest.err >&5
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); } &&
14747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748   { (case "(($ac_try" in
14749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750   *) ac_try_echo=$ac_try;;
14751 esac
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753   (eval "$ac_try") 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; } &&
14757          { ac_try='test -s conftest.$ac_objext'
14758   { (case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763   (eval "$ac_try") 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); }; }; then
14767   ac_header_compiler=yes
14768 else
14769   echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772         ac_header_compiler=no
14773 fi
14774
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777 echo "${ECHO_T}$ac_header_compiler" >&6; }
14778
14779 # Is the header present?
14780 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14781 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h.  */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h.  */
14788 #include <opagent.h>
14789 _ACEOF
14790 if { (ac_try="$ac_cpp conftest.$ac_ext"
14791 case "(($ac_try" in
14792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793   *) ac_try_echo=$ac_try;;
14794 esac
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14797   ac_status=$?
14798   grep -v '^ *+' conftest.er1 >conftest.err
14799   rm -f conftest.er1
14800   cat conftest.err >&5
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); } >/dev/null; then
14803   if test -s conftest.err; then
14804     ac_cpp_err=$ac_c_preproc_warn_flag
14805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14806   else
14807     ac_cpp_err=
14808   fi
14809 else
14810   ac_cpp_err=yes
14811 fi
14812 if test -z "$ac_cpp_err"; then
14813   ac_header_preproc=yes
14814 else
14815   echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818   ac_header_preproc=no
14819 fi
14820
14821 rm -f conftest.err conftest.$ac_ext
14822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 echo "${ECHO_T}$ac_header_preproc" >&6; }
14824
14825 # So?  What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827   yes:no: )
14828     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14829 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14831 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14832     ac_header_preproc=yes
14833     ;;
14834   no:yes:* )
14835     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14836 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14837     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14838 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14839     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14840 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14841     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14842 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14843     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14844 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14845     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14846 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14847     ( cat <<\_ASBOX
14848 ## ----------------------------------- ##
14849 ## Report this to llvmbugs@cs.uiuc.edu ##
14850 ## ----------------------------------- ##
14851 _ASBOX
14852      ) | sed "s/^/$as_me: WARNING:     /" >&2
14853     ;;
14854 esac
14855 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14856 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14857 if test "${ac_cv_header_opagent_h+set}" = set; then
14858   echo $ECHO_N "(cached) $ECHO_C" >&6
14859 else
14860   ac_cv_header_opagent_h=$ac_header_preproc
14861 fi
14862 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14863 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14864
14865 fi
14866 if test $ac_cv_header_opagent_h = yes; then
14867   :
14868 else
14869
14870           echo "Error! You need to have opagent.h around."
14871           exit -1
14872
14873 fi
14874
14875
14876       fi
14877
14878 else
14879
14880       USE_OPROFILE=0
14881
14882
14883 fi
14884
14885
14886 cat >>confdefs.h <<_ACEOF
14887 #define USE_OPROFILE $USE_OPROFILE
14888 _ACEOF
14889
14890
14891
14892
14893
14894
14895
14896
14897 ac_header_dirent=no
14898 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14899   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14900 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14901 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14903   echo $ECHO_N "(cached) $ECHO_C" >&6
14904 else
14905   cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h.  */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h.  */
14911 #include <sys/types.h>
14912 #include <$ac_hdr>
14913
14914 int
14915 main ()
14916 {
14917 if ((DIR *) 0)
14918 return 0;
14919   ;
14920   return 0;
14921 }
14922 _ACEOF
14923 rm -f conftest.$ac_objext
14924 if { (ac_try="$ac_compile"
14925 case "(($ac_try" in
14926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927   *) ac_try_echo=$ac_try;;
14928 esac
14929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930   (eval "$ac_compile") 2>conftest.er1
14931   ac_status=$?
14932   grep -v '^ *+' conftest.er1 >conftest.err
14933   rm -f conftest.er1
14934   cat conftest.err >&5
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); } &&
14937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14938   { (case "(($ac_try" in
14939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940   *) ac_try_echo=$ac_try;;
14941 esac
14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943   (eval "$ac_try") 2>&5
14944   ac_status=$?
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); }; } &&
14947          { ac_try='test -s conftest.$ac_objext'
14948   { (case "(($ac_try" in
14949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950   *) ac_try_echo=$ac_try;;
14951 esac
14952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953   (eval "$ac_try") 2>&5
14954   ac_status=$?
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); }; }; then
14957   eval "$as_ac_Header=yes"
14958 else
14959   echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14961
14962         eval "$as_ac_Header=no"
14963 fi
14964
14965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14966 fi
14967 ac_res=`eval echo '${'$as_ac_Header'}'`
14968                { echo "$as_me:$LINENO: result: $ac_res" >&5
14969 echo "${ECHO_T}$ac_res" >&6; }
14970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14971   cat >>confdefs.h <<_ACEOF
14972 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14973 _ACEOF
14974
14975 ac_header_dirent=$ac_hdr; break
14976 fi
14977
14978 done
14979 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14980 if test $ac_header_dirent = dirent.h; then
14981   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14982 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14983 if test "${ac_cv_search_opendir+set}" = set; then
14984   echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986   ac_func_search_save_LIBS=$LIBS
14987 cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h.  */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h.  */
14993
14994 /* Override any GCC internal prototype to avoid an error.
14995    Use char because int might match the return type of a GCC
14996    builtin and then its argument prototype would still apply.  */
14997 #ifdef __cplusplus
14998 extern "C"
14999 #endif
15000 char opendir ();
15001 int
15002 main ()
15003 {
15004 return opendir ();
15005   ;
15006   return 0;
15007 }
15008 _ACEOF
15009 for ac_lib in '' dir; do
15010   if test -z "$ac_lib"; then
15011     ac_res="none required"
15012   else
15013     ac_res=-l$ac_lib
15014     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15015   fi
15016   rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (ac_try="$ac_link"
15018 case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_link") 2>conftest.er1
15024   ac_status=$?
15025   grep -v '^ *+' conftest.er1 >conftest.err
15026   rm -f conftest.er1
15027   cat conftest.err >&5
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); } &&
15030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15031   { (case "(($ac_try" in
15032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033   *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036   (eval "$ac_try") 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); }; } &&
15040          { ac_try='test -s conftest$ac_exeext'
15041   { (case "(($ac_try" in
15042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043   *) ac_try_echo=$ac_try;;
15044 esac
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046   (eval "$ac_try") 2>&5
15047   ac_status=$?
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); }; }; then
15050   ac_cv_search_opendir=$ac_res
15051 else
15052   echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15054
15055
15056 fi
15057
15058 rm -f core conftest.err conftest.$ac_objext \
15059       conftest$ac_exeext
15060   if test "${ac_cv_search_opendir+set}" = set; then
15061   break
15062 fi
15063 done
15064 if test "${ac_cv_search_opendir+set}" = set; then
15065   :
15066 else
15067   ac_cv_search_opendir=no
15068 fi
15069 rm conftest.$ac_ext
15070 LIBS=$ac_func_search_save_LIBS
15071 fi
15072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15074 ac_res=$ac_cv_search_opendir
15075 if test "$ac_res" != no; then
15076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15077
15078 fi
15079
15080 else
15081   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15083 if test "${ac_cv_search_opendir+set}" = set; then
15084   echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086   ac_func_search_save_LIBS=$LIBS
15087 cat >conftest.$ac_ext <<_ACEOF
15088 /* confdefs.h.  */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h.  */
15093
15094 /* Override any GCC internal prototype to avoid an error.
15095    Use char because int might match the return type of a GCC
15096    builtin and then its argument prototype would still apply.  */
15097 #ifdef __cplusplus
15098 extern "C"
15099 #endif
15100 char opendir ();
15101 int
15102 main ()
15103 {
15104 return opendir ();
15105   ;
15106   return 0;
15107 }
15108 _ACEOF
15109 for ac_lib in '' x; do
15110   if test -z "$ac_lib"; then
15111     ac_res="none required"
15112   else
15113     ac_res=-l$ac_lib
15114     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15115   fi
15116   rm -f conftest.$ac_objext conftest$ac_exeext
15117 if { (ac_try="$ac_link"
15118 case "(($ac_try" in
15119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120   *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123   (eval "$ac_link") 2>conftest.er1
15124   ac_status=$?
15125   grep -v '^ *+' conftest.er1 >conftest.err
15126   rm -f conftest.er1
15127   cat conftest.err >&5
15128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); } &&
15130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15131   { (case "(($ac_try" in
15132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133   *) ac_try_echo=$ac_try;;
15134 esac
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136   (eval "$ac_try") 2>&5
15137   ac_status=$?
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); }; } &&
15140          { ac_try='test -s conftest$ac_exeext'
15141   { (case "(($ac_try" in
15142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143   *) ac_try_echo=$ac_try;;
15144 esac
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146   (eval "$ac_try") 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); }; }; then
15150   ac_cv_search_opendir=$ac_res
15151 else
15152   echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155
15156 fi
15157
15158 rm -f core conftest.err conftest.$ac_objext \
15159       conftest$ac_exeext
15160   if test "${ac_cv_search_opendir+set}" = set; then
15161   break
15162 fi
15163 done
15164 if test "${ac_cv_search_opendir+set}" = set; then
15165   :
15166 else
15167   ac_cv_search_opendir=no
15168 fi
15169 rm conftest.$ac_ext
15170 LIBS=$ac_func_search_save_LIBS
15171 fi
15172 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15173 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15174 ac_res=$ac_cv_search_opendir
15175 if test "$ac_res" != no; then
15176   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15177
15178 fi
15179
15180 fi
15181
15182 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15183 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15184 if test "${ac_cv_header_mmap_anon+set}" = set; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187    ac_ext=c
15188 ac_cpp='$CPP $CPPFLAGS'
15189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15192
15193   cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h.  */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h.  */
15199 #include <sys/mman.h>
15200 #include <unistd.h>
15201 #include <fcntl.h>
15202 int
15203 main ()
15204 {
15205 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15206   ;
15207   return 0;
15208 }
15209 _ACEOF
15210 rm -f conftest.$ac_objext
15211 if { (ac_try="$ac_compile"
15212 case "(($ac_try" in
15213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214   *) ac_try_echo=$ac_try;;
15215 esac
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217   (eval "$ac_compile") 2>conftest.er1
15218   ac_status=$?
15219   grep -v '^ *+' conftest.er1 >conftest.err
15220   rm -f conftest.er1
15221   cat conftest.err >&5
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225   { (case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_try") 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); }; } &&
15234          { ac_try='test -s conftest.$ac_objext'
15235   { (case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240   (eval "$ac_try") 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; }; then
15244   ac_cv_header_mmap_anon=yes
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249         ac_cv_header_mmap_anon=no
15250 fi
15251
15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253   ac_ext=c
15254 ac_cpp='$CPP $CPPFLAGS'
15255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15258
15259
15260 fi
15261 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15262 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15263 if test "$ac_cv_header_mmap_anon" = yes; then
15264
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_MMAP_ANONYMOUS 1
15267 _ACEOF
15268
15269 fi
15270
15271 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15272 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15273 if test "${ac_cv_header_stat_broken+set}" = set; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h.  */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h.  */
15282 #include <sys/types.h>
15283 #include <sys/stat.h>
15284
15285 #if defined S_ISBLK && defined S_IFDIR
15286 # if S_ISBLK (S_IFDIR)
15287 You lose.
15288 # endif
15289 #endif
15290
15291 #if defined S_ISBLK && defined S_IFCHR
15292 # if S_ISBLK (S_IFCHR)
15293 You lose.
15294 # endif
15295 #endif
15296
15297 #if defined S_ISLNK && defined S_IFREG
15298 # if S_ISLNK (S_IFREG)
15299 You lose.
15300 # endif
15301 #endif
15302
15303 #if defined S_ISSOCK && defined S_IFREG
15304 # if S_ISSOCK (S_IFREG)
15305 You lose.
15306 # endif
15307 #endif
15308
15309 _ACEOF
15310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15311   $EGREP "You lose" >/dev/null 2>&1; then
15312   ac_cv_header_stat_broken=yes
15313 else
15314   ac_cv_header_stat_broken=no
15315 fi
15316 rm -f conftest*
15317
15318 fi
15319 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15320 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15321 if test $ac_cv_header_stat_broken = yes; then
15322
15323 cat >>confdefs.h <<\_ACEOF
15324 #define STAT_MACROS_BROKEN 1
15325 _ACEOF
15326
15327 fi
15328
15329 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15331 if test "${ac_cv_header_stdc+set}" = set; then
15332   echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334   cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h.  */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h.  */
15340 #include <stdlib.h>
15341 #include <stdarg.h>
15342 #include <string.h>
15343 #include <float.h>
15344
15345 int
15346 main ()
15347 {
15348
15349   ;
15350   return 0;
15351 }
15352 _ACEOF
15353 rm -f conftest.$ac_objext
15354 if { (ac_try="$ac_compile"
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_compile") 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); } &&
15367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15368   { (case "(($ac_try" in
15369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370   *) ac_try_echo=$ac_try;;
15371 esac
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373   (eval "$ac_try") 2>&5
15374   ac_status=$?
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); }; } &&
15377          { ac_try='test -s conftest.$ac_objext'
15378   { (case "(($ac_try" in
15379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380   *) ac_try_echo=$ac_try;;
15381 esac
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383   (eval "$ac_try") 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; }; then
15387   ac_cv_header_stdc=yes
15388 else
15389   echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392         ac_cv_header_stdc=no
15393 fi
15394
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396
15397 if test $ac_cv_header_stdc = yes; then
15398   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15399   cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h.  */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h.  */
15405 #include <string.h>
15406
15407 _ACEOF
15408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15409   $EGREP "memchr" >/dev/null 2>&1; then
15410   :
15411 else
15412   ac_cv_header_stdc=no
15413 fi
15414 rm -f conftest*
15415
15416 fi
15417
15418 if test $ac_cv_header_stdc = yes; then
15419   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15420   cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 #include <stdlib.h>
15427
15428 _ACEOF
15429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15430   $EGREP "free" >/dev/null 2>&1; then
15431   :
15432 else
15433   ac_cv_header_stdc=no
15434 fi
15435 rm -f conftest*
15436
15437 fi
15438
15439 if test $ac_cv_header_stdc = yes; then
15440   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15441   if test "$cross_compiling" = yes; then
15442   :
15443 else
15444   cat >conftest.$ac_ext <<_ACEOF
15445 /* confdefs.h.  */
15446 _ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h.  */
15450 #include <ctype.h>
15451 #include <stdlib.h>
15452 #if ((' ' & 0x0FF) == 0x020)
15453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15455 #else
15456 # define ISLOWER(c) \
15457                    (('a' <= (c) && (c) <= 'i') \
15458                      || ('j' <= (c) && (c) <= 'r') \
15459                      || ('s' <= (c) && (c) <= 'z'))
15460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15461 #endif
15462
15463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15464 int
15465 main ()
15466 {
15467   int i;
15468   for (i = 0; i < 256; i++)
15469     if (XOR (islower (i), ISLOWER (i))
15470         || toupper (i) != TOUPPER (i))
15471       return 2;
15472   return 0;
15473 }
15474 _ACEOF
15475 rm -f conftest$ac_exeext
15476 if { (ac_try="$ac_link"
15477 case "(($ac_try" in
15478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479   *) ac_try_echo=$ac_try;;
15480 esac
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482   (eval "$ac_link") 2>&5
15483   ac_status=$?
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15486   { (case "(($ac_try" in
15487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488   *) ac_try_echo=$ac_try;;
15489 esac
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491   (eval "$ac_try") 2>&5
15492   ac_status=$?
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); }; }; then
15495   :
15496 else
15497   echo "$as_me: program exited with status $ac_status" >&5
15498 echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15500
15501 ( exit $ac_status )
15502 ac_cv_header_stdc=no
15503 fi
15504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15505 fi
15506
15507
15508 fi
15509 fi
15510 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15511 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15512 if test $ac_cv_header_stdc = yes; then
15513
15514 cat >>confdefs.h <<\_ACEOF
15515 #define STDC_HEADERS 1
15516 _ACEOF
15517
15518 fi
15519
15520 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15521 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15522 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15523   echo $ECHO_N "(cached) $ECHO_C" >&6
15524 else
15525   cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 #include <sys/types.h>
15532 #include <sys/wait.h>
15533 #ifndef WEXITSTATUS
15534 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15535 #endif
15536 #ifndef WIFEXITED
15537 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15538 #endif
15539
15540 int
15541 main ()
15542 {
15543   int s;
15544   wait (&s);
15545   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15546   ;
15547   return 0;
15548 }
15549 _ACEOF
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557   (eval "$ac_compile") 2>conftest.er1
15558   ac_status=$?
15559   grep -v '^ *+' conftest.er1 >conftest.err
15560   rm -f conftest.er1
15561   cat conftest.err >&5
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); } &&
15564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565   { (case "(($ac_try" in
15566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567   *) ac_try_echo=$ac_try;;
15568 esac
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570   (eval "$ac_try") 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; } &&
15574          { ac_try='test -s conftest.$ac_objext'
15575   { (case "(($ac_try" in
15576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577   *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580   (eval "$ac_try") 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; }; then
15584   ac_cv_header_sys_wait_h=yes
15585 else
15586   echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15588
15589         ac_cv_header_sys_wait_h=no
15590 fi
15591
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 fi
15594 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15595 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15596 if test $ac_cv_header_sys_wait_h = yes; then
15597
15598 cat >>confdefs.h <<\_ACEOF
15599 #define HAVE_SYS_WAIT_H 1
15600 _ACEOF
15601
15602 fi
15603
15604 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15605 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15606 if test "${ac_cv_header_time+set}" = set; then
15607   echo $ECHO_N "(cached) $ECHO_C" >&6
15608 else
15609   cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h.  */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h.  */
15615 #include <sys/types.h>
15616 #include <sys/time.h>
15617 #include <time.h>
15618
15619 int
15620 main ()
15621 {
15622 if ((struct tm *) 0)
15623 return 0;
15624   ;
15625   return 0;
15626 }
15627 _ACEOF
15628 rm -f conftest.$ac_objext
15629 if { (ac_try="$ac_compile"
15630 case "(($ac_try" in
15631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632   *) ac_try_echo=$ac_try;;
15633 esac
15634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15635   (eval "$ac_compile") 2>conftest.er1
15636   ac_status=$?
15637   grep -v '^ *+' conftest.er1 >conftest.err
15638   rm -f conftest.er1
15639   cat conftest.err >&5
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); } &&
15642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15643   { (case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_try") 2>&5
15649   ac_status=$?
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); }; } &&
15652          { ac_try='test -s conftest.$ac_objext'
15653   { (case "(($ac_try" in
15654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655   *) ac_try_echo=$ac_try;;
15656 esac
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658   (eval "$ac_try") 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; }; then
15662   ac_cv_header_time=yes
15663 else
15664   echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15666
15667         ac_cv_header_time=no
15668 fi
15669
15670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15671 fi
15672 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15673 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15674 if test $ac_cv_header_time = yes; then
15675
15676 cat >>confdefs.h <<\_ACEOF
15677 #define TIME_WITH_SYS_TIME 1
15678 _ACEOF
15679
15680 fi
15681
15682
15683
15684
15685
15686
15687
15688
15689 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15690 do
15691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696   echo $ECHO_N "(cached) $ECHO_C" >&6
15697 fi
15698 ac_res=`eval echo '${'$as_ac_Header'}'`
15699                { echo "$as_me:$LINENO: result: $ac_res" >&5
15700 echo "${ECHO_T}$ac_res" >&6; }
15701 else
15702   # Is the header compilable?
15703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h.  */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h.  */
15711 $ac_includes_default
15712 #include <$ac_header>
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (ac_try="$ac_compile"
15716 case "(($ac_try" in
15717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718   *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721   (eval "$ac_compile") 2>conftest.er1
15722   ac_status=$?
15723   grep -v '^ *+' conftest.er1 >conftest.err
15724   rm -f conftest.er1
15725   cat conftest.err >&5
15726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); } &&
15728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729   { (case "(($ac_try" in
15730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731   *) ac_try_echo=$ac_try;;
15732 esac
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734   (eval "$ac_try") 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); }; } &&
15738          { ac_try='test -s conftest.$ac_objext'
15739   { (case "(($ac_try" in
15740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741   *) ac_try_echo=$ac_try;;
15742 esac
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744   (eval "$ac_try") 2>&5
15745   ac_status=$?
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); }; }; then
15748   ac_header_compiler=yes
15749 else
15750   echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753         ac_header_compiler=no
15754 fi
15755
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15758 echo "${ECHO_T}$ac_header_compiler" >&6; }
15759
15760 # Is the header present?
15761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h.  */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h.  */
15769 #include <$ac_header>
15770 _ACEOF
15771 if { (ac_try="$ac_cpp conftest.$ac_ext"
15772 case "(($ac_try" in
15773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774   *) ac_try_echo=$ac_try;;
15775 esac
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15778   ac_status=$?
15779   grep -v '^ *+' conftest.er1 >conftest.err
15780   rm -f conftest.er1
15781   cat conftest.err >&5
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); } >/dev/null; then
15784   if test -s conftest.err; then
15785     ac_cpp_err=$ac_c_preproc_warn_flag
15786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15787   else
15788     ac_cpp_err=
15789   fi
15790 else
15791   ac_cpp_err=yes
15792 fi
15793 if test -z "$ac_cpp_err"; then
15794   ac_header_preproc=yes
15795 else
15796   echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15798
15799   ac_header_preproc=no
15800 fi
15801
15802 rm -f conftest.err conftest.$ac_ext
15803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15804 echo "${ECHO_T}$ac_header_preproc" >&6; }
15805
15806 # So?  What about this header?
15807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15808   yes:no: )
15809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15813     ac_header_preproc=yes
15814     ;;
15815   no:yes:* )
15816     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15818     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15819 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15820     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15822     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15823 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15826     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15828     ( cat <<\_ASBOX
15829 ## ----------------------------------- ##
15830 ## Report this to llvmbugs@cs.uiuc.edu ##
15831 ## ----------------------------------- ##
15832 _ASBOX
15833      ) | sed "s/^/$as_me: WARNING:     /" >&2
15834     ;;
15835 esac
15836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15839   echo $ECHO_N "(cached) $ECHO_C" >&6
15840 else
15841   eval "$as_ac_Header=\$ac_header_preproc"
15842 fi
15843 ac_res=`eval echo '${'$as_ac_Header'}'`
15844                { echo "$as_me:$LINENO: result: $ac_res" >&5
15845 echo "${ECHO_T}$ac_res" >&6; }
15846
15847 fi
15848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15849   cat >>confdefs.h <<_ACEOF
15850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15851 _ACEOF
15852
15853 fi
15854
15855 done
15856
15857
15858
15859
15860
15861
15862
15863 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15864 do
15865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870   echo $ECHO_N "(cached) $ECHO_C" >&6
15871 fi
15872 ac_res=`eval echo '${'$as_ac_Header'}'`
15873                { echo "$as_me:$LINENO: result: $ac_res" >&5
15874 echo "${ECHO_T}$ac_res" >&6; }
15875 else
15876   # Is the header compilable?
15877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885 $ac_includes_default
15886 #include <$ac_header>
15887 _ACEOF
15888 rm -f conftest.$ac_objext
15889 if { (ac_try="$ac_compile"
15890 case "(($ac_try" in
15891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892   *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895   (eval "$ac_compile") 2>conftest.er1
15896   ac_status=$?
15897   grep -v '^ *+' conftest.er1 >conftest.err
15898   rm -f conftest.er1
15899   cat conftest.err >&5
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); } &&
15902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15903   { (case "(($ac_try" in
15904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905   *) ac_try_echo=$ac_try;;
15906 esac
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908   (eval "$ac_try") 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); }; } &&
15912          { ac_try='test -s conftest.$ac_objext'
15913   { (case "(($ac_try" in
15914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915   *) ac_try_echo=$ac_try;;
15916 esac
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918   (eval "$ac_try") 2>&5
15919   ac_status=$?
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); }; }; then
15922   ac_header_compiler=yes
15923 else
15924   echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15926
15927         ac_header_compiler=no
15928 fi
15929
15930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15932 echo "${ECHO_T}$ac_header_compiler" >&6; }
15933
15934 # Is the header present?
15935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15937 cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h.  */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h.  */
15943 #include <$ac_header>
15944 _ACEOF
15945 if { (ac_try="$ac_cpp conftest.$ac_ext"
15946 case "(($ac_try" in
15947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948   *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } >/dev/null; then
15958   if test -s conftest.err; then
15959     ac_cpp_err=$ac_c_preproc_warn_flag
15960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15961   else
15962     ac_cpp_err=
15963   fi
15964 else
15965   ac_cpp_err=yes
15966 fi
15967 if test -z "$ac_cpp_err"; then
15968   ac_header_preproc=yes
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973   ac_header_preproc=no
15974 fi
15975
15976 rm -f conftest.err conftest.$ac_ext
15977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15978 echo "${ECHO_T}$ac_header_preproc" >&6; }
15979
15980 # So?  What about this header?
15981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15982   yes:no: )
15983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15987     ac_header_preproc=yes
15988     ;;
15989   no:yes:* )
15990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15992     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15993 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15994     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15996     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15997 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16000     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16002     ( cat <<\_ASBOX
16003 ## ----------------------------------- ##
16004 ## Report this to llvmbugs@cs.uiuc.edu ##
16005 ## ----------------------------------- ##
16006 _ASBOX
16007      ) | sed "s/^/$as_me: WARNING:     /" >&2
16008     ;;
16009 esac
16010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013   echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015   eval "$as_ac_Header=\$ac_header_preproc"
16016 fi
16017 ac_res=`eval echo '${'$as_ac_Header'}'`
16018                { echo "$as_me:$LINENO: result: $ac_res" >&5
16019 echo "${ECHO_T}$ac_res" >&6; }
16020
16021 fi
16022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16023   cat >>confdefs.h <<_ACEOF
16024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16025 _ACEOF
16026
16027 fi
16028
16029 done
16030
16031
16032
16033 for ac_header in utime.h windows.h
16034 do
16035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16040   echo $ECHO_N "(cached) $ECHO_C" >&6
16041 fi
16042 ac_res=`eval echo '${'$as_ac_Header'}'`
16043                { echo "$as_me:$LINENO: result: $ac_res" >&5
16044 echo "${ECHO_T}$ac_res" >&6; }
16045 else
16046   # Is the header compilable?
16047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16049 cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h.  */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h.  */
16055 $ac_includes_default
16056 #include <$ac_header>
16057 _ACEOF
16058 rm -f conftest.$ac_objext
16059 if { (ac_try="$ac_compile"
16060 case "(($ac_try" in
16061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062   *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065   (eval "$ac_compile") 2>conftest.er1
16066   ac_status=$?
16067   grep -v '^ *+' conftest.er1 >conftest.err
16068   rm -f conftest.er1
16069   cat conftest.err >&5
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); } &&
16072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16073   { (case "(($ac_try" in
16074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075   *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078   (eval "$ac_try") 2>&5
16079   ac_status=$?
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); }; } &&
16082          { ac_try='test -s conftest.$ac_objext'
16083   { (case "(($ac_try" in
16084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085   *) ac_try_echo=$ac_try;;
16086 esac
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088   (eval "$ac_try") 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; }; then
16092   ac_header_compiler=yes
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097         ac_header_compiler=no
16098 fi
16099
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16102 echo "${ECHO_T}$ac_header_compiler" >&6; }
16103
16104 # Is the header present?
16105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16107 cat >conftest.$ac_ext <<_ACEOF
16108 /* confdefs.h.  */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h.  */
16113 #include <$ac_header>
16114 _ACEOF
16115 if { (ac_try="$ac_cpp conftest.$ac_ext"
16116 case "(($ac_try" in
16117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118   *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16122   ac_status=$?
16123   grep -v '^ *+' conftest.er1 >conftest.err
16124   rm -f conftest.er1
16125   cat conftest.err >&5
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); } >/dev/null; then
16128   if test -s conftest.err; then
16129     ac_cpp_err=$ac_c_preproc_warn_flag
16130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16131   else
16132     ac_cpp_err=
16133   fi
16134 else
16135   ac_cpp_err=yes
16136 fi
16137 if test -z "$ac_cpp_err"; then
16138   ac_header_preproc=yes
16139 else
16140   echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16142
16143   ac_header_preproc=no
16144 fi
16145
16146 rm -f conftest.err conftest.$ac_ext
16147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16148 echo "${ECHO_T}$ac_header_preproc" >&6; }
16149
16150 # So?  What about this header?
16151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16152   yes:no: )
16153     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16157     ac_header_preproc=yes
16158     ;;
16159   no:yes:* )
16160     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16162     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16163 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16164     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16166     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16167 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16170     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16172     ( cat <<\_ASBOX
16173 ## ----------------------------------- ##
16174 ## Report this to llvmbugs@cs.uiuc.edu ##
16175 ## ----------------------------------- ##
16176 _ASBOX
16177      ) | sed "s/^/$as_me: WARNING:     /" >&2
16178     ;;
16179 esac
16180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   eval "$as_ac_Header=\$ac_header_preproc"
16186 fi
16187 ac_res=`eval echo '${'$as_ac_Header'}'`
16188                { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16190
16191 fi
16192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16193   cat >>confdefs.h <<_ACEOF
16194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16195 _ACEOF
16196
16197 fi
16198
16199 done
16200
16201
16202
16203
16204
16205 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16206 do
16207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16209   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16212   echo $ECHO_N "(cached) $ECHO_C" >&6
16213 fi
16214 ac_res=`eval echo '${'$as_ac_Header'}'`
16215                { echo "$as_me:$LINENO: result: $ac_res" >&5
16216 echo "${ECHO_T}$ac_res" >&6; }
16217 else
16218   # Is the header compilable?
16219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16221 cat >conftest.$ac_ext <<_ACEOF
16222 /* confdefs.h.  */
16223 _ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h.  */
16227 $ac_includes_default
16228 #include <$ac_header>
16229 _ACEOF
16230 rm -f conftest.$ac_objext
16231 if { (ac_try="$ac_compile"
16232 case "(($ac_try" in
16233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234   *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237   (eval "$ac_compile") 2>conftest.er1
16238   ac_status=$?
16239   grep -v '^ *+' conftest.er1 >conftest.err
16240   rm -f conftest.er1
16241   cat conftest.err >&5
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } &&
16244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245   { (case "(($ac_try" in
16246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247   *) ac_try_echo=$ac_try;;
16248 esac
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250   (eval "$ac_try") 2>&5
16251   ac_status=$?
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); }; } &&
16254          { ac_try='test -s conftest.$ac_objext'
16255   { (case "(($ac_try" in
16256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257   *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260   (eval "$ac_try") 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264   ac_header_compiler=yes
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269         ac_header_compiler=no
16270 fi
16271
16272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16274 echo "${ECHO_T}$ac_header_compiler" >&6; }
16275
16276 # Is the header present?
16277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16279 cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h.  */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h.  */
16285 #include <$ac_header>
16286 _ACEOF
16287 if { (ac_try="$ac_cpp conftest.$ac_ext"
16288 case "(($ac_try" in
16289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16290   *) ac_try_echo=$ac_try;;
16291 esac
16292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16294   ac_status=$?
16295   grep -v '^ *+' conftest.er1 >conftest.err
16296   rm -f conftest.er1
16297   cat conftest.err >&5
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); } >/dev/null; then
16300   if test -s conftest.err; then
16301     ac_cpp_err=$ac_c_preproc_warn_flag
16302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16303   else
16304     ac_cpp_err=
16305   fi
16306 else
16307   ac_cpp_err=yes
16308 fi
16309 if test -z "$ac_cpp_err"; then
16310   ac_header_preproc=yes
16311 else
16312   echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16314
16315   ac_header_preproc=no
16316 fi
16317
16318 rm -f conftest.err conftest.$ac_ext
16319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16320 echo "${ECHO_T}$ac_header_preproc" >&6; }
16321
16322 # So?  What about this header?
16323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16324   yes:no: )
16325     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16329     ac_header_preproc=yes
16330     ;;
16331   no:yes:* )
16332     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16334     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16335 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16336     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16338     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16339 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16342     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16344     ( cat <<\_ASBOX
16345 ## ----------------------------------- ##
16346 ## Report this to llvmbugs@cs.uiuc.edu ##
16347 ## ----------------------------------- ##
16348 _ASBOX
16349      ) | sed "s/^/$as_me: WARNING:     /" >&2
16350     ;;
16351 esac
16352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357   eval "$as_ac_Header=\$ac_header_preproc"
16358 fi
16359 ac_res=`eval echo '${'$as_ac_Header'}'`
16360                { echo "$as_me:$LINENO: result: $ac_res" >&5
16361 echo "${ECHO_T}$ac_res" >&6; }
16362
16363 fi
16364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16365   cat >>confdefs.h <<_ACEOF
16366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16367 _ACEOF
16368
16369 fi
16370
16371 done
16372
16373
16374
16375
16376
16377 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16378 do
16379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16381   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16384   echo $ECHO_N "(cached) $ECHO_C" >&6
16385 fi
16386 ac_res=`eval echo '${'$as_ac_Header'}'`
16387                { echo "$as_me:$LINENO: result: $ac_res" >&5
16388 echo "${ECHO_T}$ac_res" >&6; }
16389 else
16390   # Is the header compilable?
16391 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h.  */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h.  */
16399 $ac_includes_default
16400 #include <$ac_header>
16401 _ACEOF
16402 rm -f conftest.$ac_objext
16403 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16410   ac_status=$?
16411   grep -v '^ *+' conftest.er1 >conftest.err
16412   rm -f conftest.er1
16413   cat conftest.err >&5
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); } &&
16416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16417   { (case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_try") 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); }; } &&
16426          { ac_try='test -s conftest.$ac_objext'
16427   { (case "(($ac_try" in
16428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429   *) ac_try_echo=$ac_try;;
16430 esac
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432   (eval "$ac_try") 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; }; then
16436   ac_header_compiler=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441         ac_header_compiler=no
16442 fi
16443
16444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16446 echo "${ECHO_T}$ac_header_compiler" >&6; }
16447
16448 # Is the header present?
16449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16451 cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h.  */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h.  */
16457 #include <$ac_header>
16458 _ACEOF
16459 if { (ac_try="$ac_cpp conftest.$ac_ext"
16460 case "(($ac_try" in
16461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462   *) ac_try_echo=$ac_try;;
16463 esac
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16466   ac_status=$?
16467   grep -v '^ *+' conftest.er1 >conftest.err
16468   rm -f conftest.er1
16469   cat conftest.err >&5
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); } >/dev/null; then
16472   if test -s conftest.err; then
16473     ac_cpp_err=$ac_c_preproc_warn_flag
16474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16475   else
16476     ac_cpp_err=
16477   fi
16478 else
16479   ac_cpp_err=yes
16480 fi
16481 if test -z "$ac_cpp_err"; then
16482   ac_header_preproc=yes
16483 else
16484   echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487   ac_header_preproc=no
16488 fi
16489
16490 rm -f conftest.err conftest.$ac_ext
16491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16492 echo "${ECHO_T}$ac_header_preproc" >&6; }
16493
16494 # So?  What about this header?
16495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16496   yes:no: )
16497     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16501     ac_header_preproc=yes
16502     ;;
16503   no:yes:* )
16504     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16506     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16507 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16508     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16510     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16511 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16514     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16516     ( cat <<\_ASBOX
16517 ## ----------------------------------- ##
16518 ## Report this to llvmbugs@cs.uiuc.edu ##
16519 ## ----------------------------------- ##
16520 _ASBOX
16521      ) | sed "s/^/$as_me: WARNING:     /" >&2
16522     ;;
16523 esac
16524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16527   echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529   eval "$as_ac_Header=\$ac_header_preproc"
16530 fi
16531 ac_res=`eval echo '${'$as_ac_Header'}'`
16532                { echo "$as_me:$LINENO: result: $ac_res" >&5
16533 echo "${ECHO_T}$ac_res" >&6; }
16534
16535 fi
16536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16537   cat >>confdefs.h <<_ACEOF
16538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16539 _ACEOF
16540
16541 fi
16542
16543 done
16544
16545
16546 for ac_header in valgrind/valgrind.h
16547 do
16548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16553   echo $ECHO_N "(cached) $ECHO_C" >&6
16554 fi
16555 ac_res=`eval echo '${'$as_ac_Header'}'`
16556                { echo "$as_me:$LINENO: result: $ac_res" >&5
16557 echo "${ECHO_T}$ac_res" >&6; }
16558 else
16559   # Is the header compilable?
16560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16562 cat >conftest.$ac_ext <<_ACEOF
16563 /* confdefs.h.  */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h.  */
16568 $ac_includes_default
16569 #include <$ac_header>
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (ac_try="$ac_compile"
16573 case "(($ac_try" in
16574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575   *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578   (eval "$ac_compile") 2>conftest.er1
16579   ac_status=$?
16580   grep -v '^ *+' conftest.er1 >conftest.err
16581   rm -f conftest.er1
16582   cat conftest.err >&5
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } &&
16585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586   { (case "(($ac_try" in
16587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588   *) ac_try_echo=$ac_try;;
16589 esac
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591   (eval "$ac_try") 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); }; } &&
16595          { ac_try='test -s conftest.$ac_objext'
16596   { (case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601   (eval "$ac_try") 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; }; then
16605   ac_header_compiler=yes
16606 else
16607   echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610         ac_header_compiler=no
16611 fi
16612
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16615 echo "${ECHO_T}$ac_header_compiler" >&6; }
16616
16617 # Is the header present?
16618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16620 cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h.  */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h.  */
16626 #include <$ac_header>
16627 _ACEOF
16628 if { (ac_try="$ac_cpp conftest.$ac_ext"
16629 case "(($ac_try" in
16630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631   *) ac_try_echo=$ac_try;;
16632 esac
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16635   ac_status=$?
16636   grep -v '^ *+' conftest.er1 >conftest.err
16637   rm -f conftest.er1
16638   cat conftest.err >&5
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); } >/dev/null; then
16641   if test -s conftest.err; then
16642     ac_cpp_err=$ac_c_preproc_warn_flag
16643     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16644   else
16645     ac_cpp_err=
16646   fi
16647 else
16648   ac_cpp_err=yes
16649 fi
16650 if test -z "$ac_cpp_err"; then
16651   ac_header_preproc=yes
16652 else
16653   echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656   ac_header_preproc=no
16657 fi
16658
16659 rm -f conftest.err conftest.$ac_ext
16660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16661 echo "${ECHO_T}$ac_header_preproc" >&6; }
16662
16663 # So?  What about this header?
16664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16665   yes:no: )
16666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16670     ac_header_preproc=yes
16671     ;;
16672   no:yes:* )
16673     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16675     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16676 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16677     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16679     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16680 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16683     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16685     ( cat <<\_ASBOX
16686 ## ----------------------------------- ##
16687 ## Report this to llvmbugs@cs.uiuc.edu ##
16688 ## ----------------------------------- ##
16689 _ASBOX
16690      ) | sed "s/^/$as_me: WARNING:     /" >&2
16691     ;;
16692 esac
16693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16696   echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698   eval "$as_ac_Header=\$ac_header_preproc"
16699 fi
16700 ac_res=`eval echo '${'$as_ac_Header'}'`
16701                { echo "$as_me:$LINENO: result: $ac_res" >&5
16702 echo "${ECHO_T}$ac_res" >&6; }
16703
16704 fi
16705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16706   cat >>confdefs.h <<_ACEOF
16707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16708 _ACEOF
16709
16710 fi
16711
16712 done
16713
16714
16715 for ac_header in fenv.h
16716 do
16717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16719   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16722   echo $ECHO_N "(cached) $ECHO_C" >&6
16723 fi
16724 ac_res=`eval echo '${'$as_ac_Header'}'`
16725                { echo "$as_me:$LINENO: result: $ac_res" >&5
16726 echo "${ECHO_T}$ac_res" >&6; }
16727 else
16728   # Is the header compilable?
16729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16731 cat >conftest.$ac_ext <<_ACEOF
16732 /* confdefs.h.  */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h.  */
16737 $ac_includes_default
16738 #include <$ac_header>
16739 _ACEOF
16740 rm -f conftest.$ac_objext
16741 if { (ac_try="$ac_compile"
16742 case "(($ac_try" in
16743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744   *) ac_try_echo=$ac_try;;
16745 esac
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747   (eval "$ac_compile") 2>conftest.er1
16748   ac_status=$?
16749   grep -v '^ *+' conftest.er1 >conftest.err
16750   rm -f conftest.er1
16751   cat conftest.err >&5
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); } &&
16754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755   { (case "(($ac_try" in
16756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757   *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760   (eval "$ac_try") 2>&5
16761   ac_status=$?
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); }; } &&
16764          { ac_try='test -s conftest.$ac_objext'
16765   { (case "(($ac_try" in
16766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767   *) ac_try_echo=$ac_try;;
16768 esac
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770   (eval "$ac_try") 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; }; then
16774   ac_header_compiler=yes
16775 else
16776   echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16778
16779         ac_header_compiler=no
16780 fi
16781
16782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16784 echo "${ECHO_T}$ac_header_compiler" >&6; }
16785
16786 # Is the header present?
16787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
16796 _ACEOF
16797 if { (ac_try="$ac_cpp conftest.$ac_ext"
16798 case "(($ac_try" in
16799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800   *) ac_try_echo=$ac_try;;
16801 esac
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16804   ac_status=$?
16805   grep -v '^ *+' conftest.er1 >conftest.err
16806   rm -f conftest.er1
16807   cat conftest.err >&5
16808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809   (exit $ac_status); } >/dev/null; then
16810   if test -s conftest.err; then
16811     ac_cpp_err=$ac_c_preproc_warn_flag
16812     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16813   else
16814     ac_cpp_err=
16815   fi
16816 else
16817   ac_cpp_err=yes
16818 fi
16819 if test -z "$ac_cpp_err"; then
16820   ac_header_preproc=yes
16821 else
16822   echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825   ac_header_preproc=no
16826 fi
16827
16828 rm -f conftest.err conftest.$ac_ext
16829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16830 echo "${ECHO_T}$ac_header_preproc" >&6; }
16831
16832 # So?  What about this header?
16833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16834   yes:no: )
16835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16839     ac_header_preproc=yes
16840     ;;
16841   no:yes:* )
16842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16854     ( cat <<\_ASBOX
16855 ## ----------------------------------- ##
16856 ## Report this to llvmbugs@cs.uiuc.edu ##
16857 ## ----------------------------------- ##
16858 _ASBOX
16859      ) | sed "s/^/$as_me: WARNING:     /" >&2
16860     ;;
16861 esac
16862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16865   echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867   eval "$as_ac_Header=\$ac_header_preproc"
16868 fi
16869 ac_res=`eval echo '${'$as_ac_Header'}'`
16870                { echo "$as_me:$LINENO: result: $ac_res" >&5
16871 echo "${ECHO_T}$ac_res" >&6; }
16872
16873 fi
16874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16875   cat >>confdefs.h <<_ACEOF
16876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16877 _ACEOF
16878
16879 fi
16880
16881 done
16882
16883 if test "$ENABLE_THREADS" -eq 1 ; then
16884
16885 for ac_header in pthread.h
16886 do
16887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16889   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16892   echo $ECHO_N "(cached) $ECHO_C" >&6
16893 fi
16894 ac_res=`eval echo '${'$as_ac_Header'}'`
16895                { echo "$as_me:$LINENO: result: $ac_res" >&5
16896 echo "${ECHO_T}$ac_res" >&6; }
16897 else
16898   # Is the header compilable?
16899 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h.  */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h.  */
16907 $ac_includes_default
16908 #include <$ac_header>
16909 _ACEOF
16910 rm -f conftest.$ac_objext
16911 if { (ac_try="$ac_compile"
16912 case "(($ac_try" in
16913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914   *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917   (eval "$ac_compile") 2>conftest.er1
16918   ac_status=$?
16919   grep -v '^ *+' conftest.er1 >conftest.err
16920   rm -f conftest.er1
16921   cat conftest.err >&5
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); } &&
16924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16925   { (case "(($ac_try" in
16926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927   *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930   (eval "$ac_try") 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); }; } &&
16934          { ac_try='test -s conftest.$ac_objext'
16935   { (case "(($ac_try" in
16936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937   *) ac_try_echo=$ac_try;;
16938 esac
16939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940   (eval "$ac_try") 2>&5
16941   ac_status=$?
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); }; }; then
16944   ac_header_compiler=yes
16945 else
16946   echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16948
16949         ac_header_compiler=no
16950 fi
16951
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16954 echo "${ECHO_T}$ac_header_compiler" >&6; }
16955
16956 # Is the header present?
16957 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16959 cat >conftest.$ac_ext <<_ACEOF
16960 /* confdefs.h.  */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h.  */
16965 #include <$ac_header>
16966 _ACEOF
16967 if { (ac_try="$ac_cpp conftest.$ac_ext"
16968 case "(($ac_try" in
16969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970   *) ac_try_echo=$ac_try;;
16971 esac
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16974   ac_status=$?
16975   grep -v '^ *+' conftest.er1 >conftest.err
16976   rm -f conftest.er1
16977   cat conftest.err >&5
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); } >/dev/null; then
16980   if test -s conftest.err; then
16981     ac_cpp_err=$ac_c_preproc_warn_flag
16982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16983   else
16984     ac_cpp_err=
16985   fi
16986 else
16987   ac_cpp_err=yes
16988 fi
16989 if test -z "$ac_cpp_err"; then
16990   ac_header_preproc=yes
16991 else
16992   echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995   ac_header_preproc=no
16996 fi
16997
16998 rm -f conftest.err conftest.$ac_ext
16999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17000 echo "${ECHO_T}$ac_header_preproc" >&6; }
17001
17002 # So?  What about this header?
17003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17004   yes:no: )
17005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17009     ac_header_preproc=yes
17010     ;;
17011   no:yes:* )
17012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17014     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17015 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17016     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17018     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17019 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17022     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17024     ( cat <<\_ASBOX
17025 ## ----------------------------------- ##
17026 ## Report this to llvmbugs@cs.uiuc.edu ##
17027 ## ----------------------------------- ##
17028 _ASBOX
17029      ) | sed "s/^/$as_me: WARNING:     /" >&2
17030     ;;
17031 esac
17032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035   echo $ECHO_N "(cached) $ECHO_C" >&6
17036 else
17037   eval "$as_ac_Header=\$ac_header_preproc"
17038 fi
17039 ac_res=`eval echo '${'$as_ac_Header'}'`
17040                { echo "$as_me:$LINENO: result: $ac_res" >&5
17041 echo "${ECHO_T}$ac_res" >&6; }
17042
17043 fi
17044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17045   cat >>confdefs.h <<_ACEOF
17046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17047 _ACEOF
17048  HAVE_PTHREAD=1
17049
17050 else
17051   HAVE_PTHREAD=0
17052
17053 fi
17054
17055 done
17056
17057 else
17058   HAVE_PTHREAD=0
17059
17060 fi
17061
17062 if test "$llvm_cv_enable_libffi" = "yes" ; then
17063
17064
17065 for ac_header in ffi.h ffi/ffi.h
17066 do
17067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17069   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17072   echo $ECHO_N "(cached) $ECHO_C" >&6
17073 fi
17074 ac_res=`eval echo '${'$as_ac_Header'}'`
17075                { echo "$as_me:$LINENO: result: $ac_res" >&5
17076 echo "${ECHO_T}$ac_res" >&6; }
17077 else
17078   # Is the header compilable?
17079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h.  */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h.  */
17087 $ac_includes_default
17088 #include <$ac_header>
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094   *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097   (eval "$ac_compile") 2>conftest.er1
17098   ac_status=$?
17099   grep -v '^ *+' conftest.er1 >conftest.err
17100   rm -f conftest.er1
17101   cat conftest.err >&5
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); } &&
17104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17105   { (case "(($ac_try" in
17106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107   *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110   (eval "$ac_try") 2>&5
17111   ac_status=$?
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); }; } &&
17114          { ac_try='test -s conftest.$ac_objext'
17115   { (case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120   (eval "$ac_try") 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); }; }; then
17124   ac_header_compiler=yes
17125 else
17126   echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17128
17129         ac_header_compiler=no
17130 fi
17131
17132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17134 echo "${ECHO_T}$ac_header_compiler" >&6; }
17135
17136 # Is the header present?
17137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17139 cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h.  */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h.  */
17145 #include <$ac_header>
17146 _ACEOF
17147 if { (ac_try="$ac_cpp conftest.$ac_ext"
17148 case "(($ac_try" in
17149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150   *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17154   ac_status=$?
17155   grep -v '^ *+' conftest.er1 >conftest.err
17156   rm -f conftest.er1
17157   cat conftest.err >&5
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); } >/dev/null; then
17160   if test -s conftest.err; then
17161     ac_cpp_err=$ac_c_preproc_warn_flag
17162     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17163   else
17164     ac_cpp_err=
17165   fi
17166 else
17167   ac_cpp_err=yes
17168 fi
17169 if test -z "$ac_cpp_err"; then
17170   ac_header_preproc=yes
17171 else
17172   echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17174
17175   ac_header_preproc=no
17176 fi
17177
17178 rm -f conftest.err conftest.$ac_ext
17179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17180 echo "${ECHO_T}$ac_header_preproc" >&6; }
17181
17182 # So?  What about this header?
17183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17184   yes:no: )
17185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17189     ac_header_preproc=yes
17190     ;;
17191   no:yes:* )
17192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17204     ( cat <<\_ASBOX
17205 ## ----------------------------------- ##
17206 ## Report this to llvmbugs@cs.uiuc.edu ##
17207 ## ----------------------------------- ##
17208 _ASBOX
17209      ) | sed "s/^/$as_me: WARNING:     /" >&2
17210     ;;
17211 esac
17212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215   echo $ECHO_N "(cached) $ECHO_C" >&6
17216 else
17217   eval "$as_ac_Header=\$ac_header_preproc"
17218 fi
17219 ac_res=`eval echo '${'$as_ac_Header'}'`
17220                { echo "$as_me:$LINENO: result: $ac_res" >&5
17221 echo "${ECHO_T}$ac_res" >&6; }
17222
17223 fi
17224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17225   cat >>confdefs.h <<_ACEOF
17226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17227 _ACEOF
17228
17229 fi
17230
17231 done
17232
17233 fi
17234
17235
17236 for ac_header in CrashReporterClient.h
17237 do
17238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17240   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17243   echo $ECHO_N "(cached) $ECHO_C" >&6
17244 fi
17245 ac_res=`eval echo '${'$as_ac_Header'}'`
17246                { echo "$as_me:$LINENO: result: $ac_res" >&5
17247 echo "${ECHO_T}$ac_res" >&6; }
17248 else
17249   # Is the header compilable?
17250 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17252 cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258 $ac_includes_default
17259 #include <$ac_header>
17260 _ACEOF
17261 rm -f conftest.$ac_objext
17262 if { (ac_try="$ac_compile"
17263 case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_compile") 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } &&
17275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17276   { (case "(($ac_try" in
17277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278   *) ac_try_echo=$ac_try;;
17279 esac
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281   (eval "$ac_try") 2>&5
17282   ac_status=$?
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); }; } &&
17285          { ac_try='test -s conftest.$ac_objext'
17286   { (case "(($ac_try" in
17287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288   *) ac_try_echo=$ac_try;;
17289 esac
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291   (eval "$ac_try") 2>&5
17292   ac_status=$?
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); }; }; then
17295   ac_header_compiler=yes
17296 else
17297   echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17299
17300         ac_header_compiler=no
17301 fi
17302
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17305 echo "${ECHO_T}$ac_header_compiler" >&6; }
17306
17307 # Is the header present?
17308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17310 cat >conftest.$ac_ext <<_ACEOF
17311 /* confdefs.h.  */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h.  */
17316 #include <$ac_header>
17317 _ACEOF
17318 if { (ac_try="$ac_cpp conftest.$ac_ext"
17319 case "(($ac_try" in
17320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321   *) ac_try_echo=$ac_try;;
17322 esac
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17325   ac_status=$?
17326   grep -v '^ *+' conftest.er1 >conftest.err
17327   rm -f conftest.er1
17328   cat conftest.err >&5
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); } >/dev/null; then
17331   if test -s conftest.err; then
17332     ac_cpp_err=$ac_c_preproc_warn_flag
17333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17334   else
17335     ac_cpp_err=
17336   fi
17337 else
17338   ac_cpp_err=yes
17339 fi
17340 if test -z "$ac_cpp_err"; then
17341   ac_header_preproc=yes
17342 else
17343   echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346   ac_header_preproc=no
17347 fi
17348
17349 rm -f conftest.err conftest.$ac_ext
17350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17351 echo "${ECHO_T}$ac_header_preproc" >&6; }
17352
17353 # So?  What about this header?
17354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17355   yes:no: )
17356     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17360     ac_header_preproc=yes
17361     ;;
17362   no:yes:* )
17363     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17365     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17366 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17367     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17369     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17370 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17373     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17375     ( cat <<\_ASBOX
17376 ## ----------------------------------- ##
17377 ## Report this to llvmbugs@cs.uiuc.edu ##
17378 ## ----------------------------------- ##
17379 _ASBOX
17380      ) | sed "s/^/$as_me: WARNING:     /" >&2
17381     ;;
17382 esac
17383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17386   echo $ECHO_N "(cached) $ECHO_C" >&6
17387 else
17388   eval "$as_ac_Header=\$ac_header_preproc"
17389 fi
17390 ac_res=`eval echo '${'$as_ac_Header'}'`
17391                { echo "$as_me:$LINENO: result: $ac_res" >&5
17392 echo "${ECHO_T}$ac_res" >&6; }
17393
17394 fi
17395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17396   cat >>confdefs.h <<_ACEOF
17397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17398 _ACEOF
17399
17400 fi
17401
17402 done
17403
17404
17405
17406
17407
17408   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17409 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17410 if test "${ac_cv_huge_val_sanity+set}" = set; then
17411   echo $ECHO_N "(cached) $ECHO_C" >&6
17412 else
17413
17414     ac_ext=cpp
17415 ac_cpp='$CXXCPP $CPPFLAGS'
17416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17419
17420     ac_save_CXXFLAGS=$CXXFLAGS
17421     CXXFLAGS=-pedantic
17422     if test "$cross_compiling" = yes; then
17423   ac_cv_huge_val_sanity=yes
17424 else
17425   cat >conftest.$ac_ext <<_ACEOF
17426 /* confdefs.h.  */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h.  */
17431 #include <math.h>
17432 int
17433 main ()
17434 {
17435 double x = HUGE_VAL; return x != x;
17436   ;
17437   return 0;
17438 }
17439 _ACEOF
17440 rm -f conftest$ac_exeext
17441 if { (ac_try="$ac_link"
17442 case "(($ac_try" in
17443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444   *) ac_try_echo=$ac_try;;
17445 esac
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447   (eval "$ac_link") 2>&5
17448   ac_status=$?
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17451   { (case "(($ac_try" in
17452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453   *) ac_try_echo=$ac_try;;
17454 esac
17455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456   (eval "$ac_try") 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; }; then
17460   ac_cv_huge_val_sanity=yes
17461 else
17462   echo "$as_me: program exited with status $ac_status" >&5
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17465
17466 ( exit $ac_status )
17467 ac_cv_huge_val_sanity=no
17468 fi
17469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17470 fi
17471
17472
17473     CXXFLAGS=$ac_save_CXXFLAGS
17474     ac_ext=c
17475 ac_cpp='$CPP $CPPFLAGS'
17476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17479
17480
17481 fi
17482 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17483 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17484   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17485
17486
17487 { echo "$as_me:$LINENO: checking for pid_t" >&5
17488 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17489 if test "${ac_cv_type_pid_t+set}" = set; then
17490   echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492   cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h.  */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h.  */
17498 $ac_includes_default
17499 typedef pid_t ac__type_new_;
17500 int
17501 main ()
17502 {
17503 if ((ac__type_new_ *) 0)
17504   return 0;
17505 if (sizeof (ac__type_new_))
17506   return 0;
17507   ;
17508   return 0;
17509 }
17510 _ACEOF
17511 rm -f conftest.$ac_objext
17512 if { (ac_try="$ac_compile"
17513 case "(($ac_try" in
17514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515   *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518   (eval "$ac_compile") 2>conftest.er1
17519   ac_status=$?
17520   grep -v '^ *+' conftest.er1 >conftest.err
17521   rm -f conftest.er1
17522   cat conftest.err >&5
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); } &&
17525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17526   { (case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531   (eval "$ac_try") 2>&5
17532   ac_status=$?
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); }; } &&
17535          { ac_try='test -s conftest.$ac_objext'
17536   { (case "(($ac_try" in
17537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538   *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541   (eval "$ac_try") 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; }; then
17545   ac_cv_type_pid_t=yes
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550         ac_cv_type_pid_t=no
17551 fi
17552
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554 fi
17555 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17556 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17557 if test $ac_cv_type_pid_t = yes; then
17558   :
17559 else
17560
17561 cat >>confdefs.h <<_ACEOF
17562 #define pid_t int
17563 _ACEOF
17564
17565 fi
17566
17567 { echo "$as_me:$LINENO: checking for size_t" >&5
17568 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17569 if test "${ac_cv_type_size_t+set}" = set; then
17570   echo $ECHO_N "(cached) $ECHO_C" >&6
17571 else
17572   cat >conftest.$ac_ext <<_ACEOF
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578 $ac_includes_default
17579 typedef size_t ac__type_new_;
17580 int
17581 main ()
17582 {
17583 if ((ac__type_new_ *) 0)
17584   return 0;
17585 if (sizeof (ac__type_new_))
17586   return 0;
17587   ;
17588   return 0;
17589 }
17590 _ACEOF
17591 rm -f conftest.$ac_objext
17592 if { (ac_try="$ac_compile"
17593 case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_compile") 2>conftest.er1
17599   ac_status=$?
17600   grep -v '^ *+' conftest.er1 >conftest.err
17601   rm -f conftest.er1
17602   cat conftest.err >&5
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); } &&
17605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17606   { (case "(($ac_try" in
17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608   *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611   (eval "$ac_try") 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; } &&
17615          { ac_try='test -s conftest.$ac_objext'
17616   { (case "(($ac_try" in
17617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618   *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621   (eval "$ac_try") 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; }; then
17625   ac_cv_type_size_t=yes
17626 else
17627   echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630         ac_cv_type_size_t=no
17631 fi
17632
17633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634 fi
17635 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17636 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17637 if test $ac_cv_type_size_t = yes; then
17638   :
17639 else
17640
17641 cat >>confdefs.h <<_ACEOF
17642 #define size_t unsigned int
17643 _ACEOF
17644
17645 fi
17646
17647
17648 cat >>confdefs.h <<_ACEOF
17649 #define RETSIGTYPE void
17650 _ACEOF
17651
17652 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17653 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17654 if test "${ac_cv_struct_tm+set}" = set; then
17655   echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657   cat >conftest.$ac_ext <<_ACEOF
17658 /* confdefs.h.  */
17659 _ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h.  */
17663 #include <sys/types.h>
17664 #include <time.h>
17665
17666 int
17667 main ()
17668 {
17669 struct tm *tp; tp->tm_sec;
17670   ;
17671   return 0;
17672 }
17673 _ACEOF
17674 rm -f conftest.$ac_objext
17675 if { (ac_try="$ac_compile"
17676 case "(($ac_try" in
17677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678   *) ac_try_echo=$ac_try;;
17679 esac
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681   (eval "$ac_compile") 2>conftest.er1
17682   ac_status=$?
17683   grep -v '^ *+' conftest.er1 >conftest.err
17684   rm -f conftest.er1
17685   cat conftest.err >&5
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); } &&
17688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17689   { (case "(($ac_try" in
17690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691   *) ac_try_echo=$ac_try;;
17692 esac
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694   (eval "$ac_try") 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; } &&
17698          { ac_try='test -s conftest.$ac_objext'
17699   { (case "(($ac_try" in
17700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701   *) ac_try_echo=$ac_try;;
17702 esac
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704   (eval "$ac_try") 2>&5
17705   ac_status=$?
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); }; }; then
17708   ac_cv_struct_tm=time.h
17709 else
17710   echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713         ac_cv_struct_tm=sys/time.h
17714 fi
17715
17716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717 fi
17718 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17719 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17720 if test $ac_cv_struct_tm = sys/time.h; then
17721
17722 cat >>confdefs.h <<\_ACEOF
17723 #define TM_IN_SYS_TIME 1
17724 _ACEOF
17725
17726 fi
17727
17728 { echo "$as_me:$LINENO: checking for int64_t" >&5
17729 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17730 if test "${ac_cv_type_int64_t+set}" = set; then
17731   echo $ECHO_N "(cached) $ECHO_C" >&6
17732 else
17733   cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739 $ac_includes_default
17740 typedef int64_t ac__type_new_;
17741 int
17742 main ()
17743 {
17744 if ((ac__type_new_ *) 0)
17745   return 0;
17746 if (sizeof (ac__type_new_))
17747   return 0;
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 rm -f conftest.$ac_objext
17753 if { (ac_try="$ac_compile"
17754 case "(($ac_try" in
17755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756   *) ac_try_echo=$ac_try;;
17757 esac
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759   (eval "$ac_compile") 2>conftest.er1
17760   ac_status=$?
17761   grep -v '^ *+' conftest.er1 >conftest.err
17762   rm -f conftest.er1
17763   cat conftest.err >&5
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } &&
17766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17767   { (case "(($ac_try" in
17768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769   *) ac_try_echo=$ac_try;;
17770 esac
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772   (eval "$ac_try") 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; } &&
17776          { ac_try='test -s conftest.$ac_objext'
17777   { (case "(($ac_try" in
17778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779   *) ac_try_echo=$ac_try;;
17780 esac
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782   (eval "$ac_try") 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; }; then
17786   ac_cv_type_int64_t=yes
17787 else
17788   echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791         ac_cv_type_int64_t=no
17792 fi
17793
17794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795 fi
17796 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17797 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17798 if test $ac_cv_type_int64_t = yes; then
17799
17800 cat >>confdefs.h <<_ACEOF
17801 #define HAVE_INT64_T 1
17802 _ACEOF
17803
17804
17805 else
17806   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17807 echo "$as_me: error: Type int64_t required but not found" >&2;}
17808    { (exit 1); exit 1; }; }
17809 fi
17810
17811 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17812 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17813 if test "${ac_cv_type_uint64_t+set}" = set; then
17814   echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816   cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h.  */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h.  */
17822 $ac_includes_default
17823 typedef uint64_t ac__type_new_;
17824 int
17825 main ()
17826 {
17827 if ((ac__type_new_ *) 0)
17828   return 0;
17829 if (sizeof (ac__type_new_))
17830   return 0;
17831   ;
17832   return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext
17836 if { (ac_try="$ac_compile"
17837 case "(($ac_try" in
17838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839   *) ac_try_echo=$ac_try;;
17840 esac
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842   (eval "$ac_compile") 2>conftest.er1
17843   ac_status=$?
17844   grep -v '^ *+' conftest.er1 >conftest.err
17845   rm -f conftest.er1
17846   cat conftest.err >&5
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); } &&
17849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17850   { (case "(($ac_try" in
17851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852   *) ac_try_echo=$ac_try;;
17853 esac
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855   (eval "$ac_try") 2>&5
17856   ac_status=$?
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); }; } &&
17859          { ac_try='test -s conftest.$ac_objext'
17860   { (case "(($ac_try" in
17861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862   *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865   (eval "$ac_try") 2>&5
17866   ac_status=$?
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); }; }; then
17869   ac_cv_type_uint64_t=yes
17870 else
17871   echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17873
17874         ac_cv_type_uint64_t=no
17875 fi
17876
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 fi
17879 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17880 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17881 if test $ac_cv_type_uint64_t = yes; then
17882
17883 cat >>confdefs.h <<_ACEOF
17884 #define HAVE_UINT64_T 1
17885 _ACEOF
17886
17887
17888 else
17889   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17890 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17891 if test "${ac_cv_type_u_int64_t+set}" = set; then
17892   echo $ECHO_N "(cached) $ECHO_C" >&6
17893 else
17894   cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h.  */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h.  */
17900 $ac_includes_default
17901 typedef u_int64_t ac__type_new_;
17902 int
17903 main ()
17904 {
17905 if ((ac__type_new_ *) 0)
17906   return 0;
17907 if (sizeof (ac__type_new_))
17908   return 0;
17909   ;
17910   return 0;
17911 }
17912 _ACEOF
17913 rm -f conftest.$ac_objext
17914 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17921   ac_status=$?
17922   grep -v '^ *+' conftest.er1 >conftest.err
17923   rm -f conftest.er1
17924   cat conftest.err >&5
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); } &&
17927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17928   { (case "(($ac_try" in
17929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930   *) ac_try_echo=$ac_try;;
17931 esac
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933   (eval "$ac_try") 2>&5
17934   ac_status=$?
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); }; } &&
17937          { ac_try='test -s conftest.$ac_objext'
17938   { (case "(($ac_try" in
17939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940   *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943   (eval "$ac_try") 2>&5
17944   ac_status=$?
17945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); }; }; then
17947   ac_cv_type_u_int64_t=yes
17948 else
17949   echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17951
17952         ac_cv_type_u_int64_t=no
17953 fi
17954
17955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956 fi
17957 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17958 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17959 if test $ac_cv_type_u_int64_t = yes; then
17960
17961 cat >>confdefs.h <<_ACEOF
17962 #define HAVE_U_INT64_T 1
17963 _ACEOF
17964
17965
17966 else
17967   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17968 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17969    { (exit 1); exit 1; }; }
17970 fi
17971
17972 fi
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17984 do
17985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17989   echo $ECHO_N "(cached) $ECHO_C" >&6
17990 else
17991   cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h.  */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h.  */
17997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17999 #define $ac_func innocuous_$ac_func
18000
18001 /* System header to define __stub macros and hopefully few prototypes,
18002     which can conflict with char $ac_func (); below.
18003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18004     <limits.h> exists even on freestanding compilers.  */
18005
18006 #ifdef __STDC__
18007 # include <limits.h>
18008 #else
18009 # include <assert.h>
18010 #endif
18011
18012 #undef $ac_func
18013
18014 /* Override any GCC internal prototype to avoid an error.
18015    Use char because int might match the return type of a GCC
18016    builtin and then its argument prototype would still apply.  */
18017 #ifdef __cplusplus
18018 extern "C"
18019 #endif
18020 char $ac_func ();
18021 /* The GNU C library defines this for functions which it implements
18022     to always fail with ENOSYS.  Some functions are actually named
18023     something starting with __ and the normal name is an alias.  */
18024 #if defined __stub_$ac_func || defined __stub___$ac_func
18025 choke me
18026 #endif
18027
18028 int
18029 main ()
18030 {
18031 return $ac_func ();
18032   ;
18033   return 0;
18034 }
18035 _ACEOF
18036 rm -f conftest.$ac_objext conftest$ac_exeext
18037 if { (ac_try="$ac_link"
18038 case "(($ac_try" in
18039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040   *) ac_try_echo=$ac_try;;
18041 esac
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043   (eval "$ac_link") 2>conftest.er1
18044   ac_status=$?
18045   grep -v '^ *+' conftest.er1 >conftest.err
18046   rm -f conftest.er1
18047   cat conftest.err >&5
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); } &&
18050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18051   { (case "(($ac_try" in
18052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053   *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056   (eval "$ac_try") 2>&5
18057   ac_status=$?
18058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059   (exit $ac_status); }; } &&
18060          { ac_try='test -s conftest$ac_exeext'
18061   { (case "(($ac_try" in
18062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063   *) ac_try_echo=$ac_try;;
18064 esac
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066   (eval "$ac_try") 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; }; then
18070   eval "$as_ac_var=yes"
18071 else
18072   echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075         eval "$as_ac_var=no"
18076 fi
18077
18078 rm -f core conftest.err conftest.$ac_objext \
18079       conftest$ac_exeext conftest.$ac_ext
18080 fi
18081 ac_res=`eval echo '${'$as_ac_var'}'`
18082                { echo "$as_me:$LINENO: result: $ac_res" >&5
18083 echo "${ECHO_T}$ac_res" >&6; }
18084 if test `eval echo '${'$as_ac_var'}'` = yes; then
18085   cat >>confdefs.h <<_ACEOF
18086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18087 _ACEOF
18088
18089 fi
18090 done
18091
18092
18093
18094
18095
18096 for ac_func in powf fmodf strtof round
18097 do
18098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18102   echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104   cat >conftest.$ac_ext <<_ACEOF
18105 /* confdefs.h.  */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h.  */
18110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18112 #define $ac_func innocuous_$ac_func
18113
18114 /* System header to define __stub macros and hopefully few prototypes,
18115     which can conflict with char $ac_func (); below.
18116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18117     <limits.h> exists even on freestanding compilers.  */
18118
18119 #ifdef __STDC__
18120 # include <limits.h>
18121 #else
18122 # include <assert.h>
18123 #endif
18124
18125 #undef $ac_func
18126
18127 /* Override any GCC internal prototype to avoid an error.
18128    Use char because int might match the return type of a GCC
18129    builtin and then its argument prototype would still apply.  */
18130 #ifdef __cplusplus
18131 extern "C"
18132 #endif
18133 char $ac_func ();
18134 /* The GNU C library defines this for functions which it implements
18135     to always fail with ENOSYS.  Some functions are actually named
18136     something starting with __ and the normal name is an alias.  */
18137 #if defined __stub_$ac_func || defined __stub___$ac_func
18138 choke me
18139 #endif
18140
18141 int
18142 main ()
18143 {
18144 return $ac_func ();
18145   ;
18146   return 0;
18147 }
18148 _ACEOF
18149 rm -f conftest.$ac_objext conftest$ac_exeext
18150 if { (ac_try="$ac_link"
18151 case "(($ac_try" in
18152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153   *) ac_try_echo=$ac_try;;
18154 esac
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156   (eval "$ac_link") 2>conftest.er1
18157   ac_status=$?
18158   grep -v '^ *+' conftest.er1 >conftest.err
18159   rm -f conftest.er1
18160   cat conftest.err >&5
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); } &&
18163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18164   { (case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169   (eval "$ac_try") 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; } &&
18173          { ac_try='test -s conftest$ac_exeext'
18174   { (case "(($ac_try" in
18175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176   *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179   (eval "$ac_try") 2>&5
18180   ac_status=$?
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); }; }; then
18183   eval "$as_ac_var=yes"
18184 else
18185   echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18187
18188         eval "$as_ac_var=no"
18189 fi
18190
18191 rm -f core conftest.err conftest.$ac_objext \
18192       conftest$ac_exeext conftest.$ac_ext
18193 fi
18194 ac_res=`eval echo '${'$as_ac_var'}'`
18195                { echo "$as_me:$LINENO: result: $ac_res" >&5
18196 echo "${ECHO_T}$ac_res" >&6; }
18197 if test `eval echo '${'$as_ac_var'}'` = yes; then
18198   cat >>confdefs.h <<_ACEOF
18199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18200 _ACEOF
18201
18202 fi
18203 done
18204
18205
18206
18207
18208
18209
18210 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18211 do
18212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18216   echo $ECHO_N "(cached) $ECHO_C" >&6
18217 else
18218   cat >conftest.$ac_ext <<_ACEOF
18219 /* confdefs.h.  */
18220 _ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h.  */
18224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18226 #define $ac_func innocuous_$ac_func
18227
18228 /* System header to define __stub macros and hopefully few prototypes,
18229     which can conflict with char $ac_func (); below.
18230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18231     <limits.h> exists even on freestanding compilers.  */
18232
18233 #ifdef __STDC__
18234 # include <limits.h>
18235 #else
18236 # include <assert.h>
18237 #endif
18238
18239 #undef $ac_func
18240
18241 /* Override any GCC internal prototype to avoid an error.
18242    Use char because int might match the return type of a GCC
18243    builtin and then its argument prototype would still apply.  */
18244 #ifdef __cplusplus
18245 extern "C"
18246 #endif
18247 char $ac_func ();
18248 /* The GNU C library defines this for functions which it implements
18249     to always fail with ENOSYS.  Some functions are actually named
18250     something starting with __ and the normal name is an alias.  */
18251 #if defined __stub_$ac_func || defined __stub___$ac_func
18252 choke me
18253 #endif
18254
18255 int
18256 main ()
18257 {
18258 return $ac_func ();
18259   ;
18260   return 0;
18261 }
18262 _ACEOF
18263 rm -f conftest.$ac_objext conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267   *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270   (eval "$ac_link") 2>conftest.er1
18271   ac_status=$?
18272   grep -v '^ *+' conftest.er1 >conftest.err
18273   rm -f conftest.er1
18274   cat conftest.err >&5
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); } &&
18277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278   { (case "(($ac_try" in
18279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280   *) ac_try_echo=$ac_try;;
18281 esac
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283   (eval "$ac_try") 2>&5
18284   ac_status=$?
18285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286   (exit $ac_status); }; } &&
18287          { ac_try='test -s conftest$ac_exeext'
18288   { (case "(($ac_try" in
18289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290   *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293   (eval "$ac_try") 2>&5
18294   ac_status=$?
18295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296   (exit $ac_status); }; }; then
18297   eval "$as_ac_var=yes"
18298 else
18299   echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18301
18302         eval "$as_ac_var=no"
18303 fi
18304
18305 rm -f core conftest.err conftest.$ac_objext \
18306       conftest$ac_exeext conftest.$ac_ext
18307 fi
18308 ac_res=`eval echo '${'$as_ac_var'}'`
18309                { echo "$as_me:$LINENO: result: $ac_res" >&5
18310 echo "${ECHO_T}$ac_res" >&6; }
18311 if test `eval echo '${'$as_ac_var'}'` = yes; then
18312   cat >>confdefs.h <<_ACEOF
18313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18314 _ACEOF
18315
18316 fi
18317 done
18318
18319
18320
18321
18322 for ac_func in isatty mkdtemp mkstemp
18323 do
18324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18328   echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18330   cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18338 #define $ac_func innocuous_$ac_func
18339
18340 /* System header to define __stub macros and hopefully few prototypes,
18341     which can conflict with char $ac_func (); below.
18342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18343     <limits.h> exists even on freestanding compilers.  */
18344
18345 #ifdef __STDC__
18346 # include <limits.h>
18347 #else
18348 # include <assert.h>
18349 #endif
18350
18351 #undef $ac_func
18352
18353 /* Override any GCC internal prototype to avoid an error.
18354    Use char because int might match the return type of a GCC
18355    builtin and then its argument prototype would still apply.  */
18356 #ifdef __cplusplus
18357 extern "C"
18358 #endif
18359 char $ac_func ();
18360 /* The GNU C library defines this for functions which it implements
18361     to always fail with ENOSYS.  Some functions are actually named
18362     something starting with __ and the normal name is an alias.  */
18363 #if defined __stub_$ac_func || defined __stub___$ac_func
18364 choke me
18365 #endif
18366
18367 int
18368 main ()
18369 {
18370 return $ac_func ();
18371   ;
18372   return 0;
18373 }
18374 _ACEOF
18375 rm -f conftest.$ac_objext conftest$ac_exeext
18376 if { (ac_try="$ac_link"
18377 case "(($ac_try" in
18378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379   *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382   (eval "$ac_link") 2>conftest.er1
18383   ac_status=$?
18384   grep -v '^ *+' conftest.er1 >conftest.err
18385   rm -f conftest.er1
18386   cat conftest.err >&5
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); } &&
18389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18390   { (case "(($ac_try" in
18391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392   *) ac_try_echo=$ac_try;;
18393 esac
18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395   (eval "$ac_try") 2>&5
18396   ac_status=$?
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); }; } &&
18399          { ac_try='test -s conftest$ac_exeext'
18400   { (case "(($ac_try" in
18401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402   *) ac_try_echo=$ac_try;;
18403 esac
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405   (eval "$ac_try") 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); }; }; then
18409   eval "$as_ac_var=yes"
18410 else
18411   echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414         eval "$as_ac_var=no"
18415 fi
18416
18417 rm -f core conftest.err conftest.$ac_objext \
18418       conftest$ac_exeext conftest.$ac_ext
18419 fi
18420 ac_res=`eval echo '${'$as_ac_var'}'`
18421                { echo "$as_me:$LINENO: result: $ac_res" >&5
18422 echo "${ECHO_T}$ac_res" >&6; }
18423 if test `eval echo '${'$as_ac_var'}'` = yes; then
18424   cat >>confdefs.h <<_ACEOF
18425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18426 _ACEOF
18427
18428 fi
18429 done
18430
18431
18432
18433
18434
18435
18436
18437 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18438 do
18439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18443   echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445   cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h.  */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h.  */
18451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18453 #define $ac_func innocuous_$ac_func
18454
18455 /* System header to define __stub macros and hopefully few prototypes,
18456     which can conflict with char $ac_func (); below.
18457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18458     <limits.h> exists even on freestanding compilers.  */
18459
18460 #ifdef __STDC__
18461 # include <limits.h>
18462 #else
18463 # include <assert.h>
18464 #endif
18465
18466 #undef $ac_func
18467
18468 /* Override any GCC internal prototype to avoid an error.
18469    Use char because int might match the return type of a GCC
18470    builtin and then its argument prototype would still apply.  */
18471 #ifdef __cplusplus
18472 extern "C"
18473 #endif
18474 char $ac_func ();
18475 /* The GNU C library defines this for functions which it implements
18476     to always fail with ENOSYS.  Some functions are actually named
18477     something starting with __ and the normal name is an alias.  */
18478 #if defined __stub_$ac_func || defined __stub___$ac_func
18479 choke me
18480 #endif
18481
18482 int
18483 main ()
18484 {
18485 return $ac_func ();
18486   ;
18487   return 0;
18488 }
18489 _ACEOF
18490 rm -f conftest.$ac_objext conftest$ac_exeext
18491 if { (ac_try="$ac_link"
18492 case "(($ac_try" in
18493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494   *) ac_try_echo=$ac_try;;
18495 esac
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497   (eval "$ac_link") 2>conftest.er1
18498   ac_status=$?
18499   grep -v '^ *+' conftest.er1 >conftest.err
18500   rm -f conftest.er1
18501   cat conftest.err >&5
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); } &&
18504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18505   { (case "(($ac_try" in
18506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507   *) ac_try_echo=$ac_try;;
18508 esac
18509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510   (eval "$ac_try") 2>&5
18511   ac_status=$?
18512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513   (exit $ac_status); }; } &&
18514          { ac_try='test -s conftest$ac_exeext'
18515   { (case "(($ac_try" in
18516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517   *) ac_try_echo=$ac_try;;
18518 esac
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520   (eval "$ac_try") 2>&5
18521   ac_status=$?
18522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523   (exit $ac_status); }; }; then
18524   eval "$as_ac_var=yes"
18525 else
18526   echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18528
18529         eval "$as_ac_var=no"
18530 fi
18531
18532 rm -f core conftest.err conftest.$ac_objext \
18533       conftest$ac_exeext conftest.$ac_ext
18534 fi
18535 ac_res=`eval echo '${'$as_ac_var'}'`
18536                { echo "$as_me:$LINENO: result: $ac_res" >&5
18537 echo "${ECHO_T}$ac_res" >&6; }
18538 if test `eval echo '${'$as_ac_var'}'` = yes; then
18539   cat >>confdefs.h <<_ACEOF
18540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18541 _ACEOF
18542
18543 fi
18544 done
18545
18546
18547
18548
18549
18550 for ac_func in strerror strerror_r strerror_s setenv
18551 do
18552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18556   echo $ECHO_N "(cached) $ECHO_C" >&6
18557 else
18558   cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h.  */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h.  */
18564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18566 #define $ac_func innocuous_$ac_func
18567
18568 /* System header to define __stub macros and hopefully few prototypes,
18569     which can conflict with char $ac_func (); below.
18570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18571     <limits.h> exists even on freestanding compilers.  */
18572
18573 #ifdef __STDC__
18574 # include <limits.h>
18575 #else
18576 # include <assert.h>
18577 #endif
18578
18579 #undef $ac_func
18580
18581 /* Override any GCC internal prototype to avoid an error.
18582    Use char because int might match the return type of a GCC
18583    builtin and then its argument prototype would still apply.  */
18584 #ifdef __cplusplus
18585 extern "C"
18586 #endif
18587 char $ac_func ();
18588 /* The GNU C library defines this for functions which it implements
18589     to always fail with ENOSYS.  Some functions are actually named
18590     something starting with __ and the normal name is an alias.  */
18591 #if defined __stub_$ac_func || defined __stub___$ac_func
18592 choke me
18593 #endif
18594
18595 int
18596 main ()
18597 {
18598 return $ac_func ();
18599   ;
18600   return 0;
18601 }
18602 _ACEOF
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (ac_try="$ac_link"
18605 case "(($ac_try" in
18606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607   *) ac_try_echo=$ac_try;;
18608 esac
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610   (eval "$ac_link") 2>conftest.er1
18611   ac_status=$?
18612   grep -v '^ *+' conftest.er1 >conftest.err
18613   rm -f conftest.er1
18614   cat conftest.err >&5
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); } &&
18617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18618   { (case "(($ac_try" in
18619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620   *) ac_try_echo=$ac_try;;
18621 esac
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623   (eval "$ac_try") 2>&5
18624   ac_status=$?
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); }; } &&
18627          { ac_try='test -s conftest$ac_exeext'
18628   { (case "(($ac_try" in
18629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630   *) ac_try_echo=$ac_try;;
18631 esac
18632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633   (eval "$ac_try") 2>&5
18634   ac_status=$?
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); }; }; then
18637   eval "$as_ac_var=yes"
18638 else
18639   echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642         eval "$as_ac_var=no"
18643 fi
18644
18645 rm -f core conftest.err conftest.$ac_objext \
18646       conftest$ac_exeext conftest.$ac_ext
18647 fi
18648 ac_res=`eval echo '${'$as_ac_var'}'`
18649                { echo "$as_me:$LINENO: result: $ac_res" >&5
18650 echo "${ECHO_T}$ac_res" >&6; }
18651 if test `eval echo '${'$as_ac_var'}'` = yes; then
18652   cat >>confdefs.h <<_ACEOF
18653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18654 _ACEOF
18655
18656 fi
18657 done
18658
18659
18660
18661
18662
18663 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18664 do
18665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18669   echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671   cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h.  */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h.  */
18677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18679 #define $ac_func innocuous_$ac_func
18680
18681 /* System header to define __stub macros and hopefully few prototypes,
18682     which can conflict with char $ac_func (); below.
18683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18684     <limits.h> exists even on freestanding compilers.  */
18685
18686 #ifdef __STDC__
18687 # include <limits.h>
18688 #else
18689 # include <assert.h>
18690 #endif
18691
18692 #undef $ac_func
18693
18694 /* Override any GCC internal prototype to avoid an error.
18695    Use char because int might match the return type of a GCC
18696    builtin and then its argument prototype would still apply.  */
18697 #ifdef __cplusplus
18698 extern "C"
18699 #endif
18700 char $ac_func ();
18701 /* The GNU C library defines this for functions which it implements
18702     to always fail with ENOSYS.  Some functions are actually named
18703     something starting with __ and the normal name is an alias.  */
18704 #if defined __stub_$ac_func || defined __stub___$ac_func
18705 choke me
18706 #endif
18707
18708 int
18709 main ()
18710 {
18711 return $ac_func ();
18712   ;
18713   return 0;
18714 }
18715 _ACEOF
18716 rm -f conftest.$ac_objext conftest$ac_exeext
18717 if { (ac_try="$ac_link"
18718 case "(($ac_try" in
18719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720   *) ac_try_echo=$ac_try;;
18721 esac
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723   (eval "$ac_link") 2>conftest.er1
18724   ac_status=$?
18725   grep -v '^ *+' conftest.er1 >conftest.err
18726   rm -f conftest.er1
18727   cat conftest.err >&5
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); } &&
18730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18731   { (case "(($ac_try" in
18732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733   *) ac_try_echo=$ac_try;;
18734 esac
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736   (eval "$ac_try") 2>&5
18737   ac_status=$?
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); }; } &&
18740          { ac_try='test -s conftest$ac_exeext'
18741   { (case "(($ac_try" in
18742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743   *) ac_try_echo=$ac_try;;
18744 esac
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746   (eval "$ac_try") 2>&5
18747   ac_status=$?
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); }; }; then
18750   eval "$as_ac_var=yes"
18751 else
18752   echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18754
18755         eval "$as_ac_var=no"
18756 fi
18757
18758 rm -f core conftest.err conftest.$ac_objext \
18759       conftest$ac_exeext conftest.$ac_ext
18760 fi
18761 ac_res=`eval echo '${'$as_ac_var'}'`
18762                { echo "$as_me:$LINENO: result: $ac_res" >&5
18763 echo "${ECHO_T}$ac_res" >&6; }
18764 if test `eval echo '${'$as_ac_var'}'` = yes; then
18765   cat >>confdefs.h <<_ACEOF
18766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18767 _ACEOF
18768
18769 fi
18770 done
18771
18772
18773
18774
18775
18776 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18777 do
18778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784   cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h.  */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h.  */
18790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18792 #define $ac_func innocuous_$ac_func
18793
18794 /* System header to define __stub macros and hopefully few prototypes,
18795     which can conflict with char $ac_func (); below.
18796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18797     <limits.h> exists even on freestanding compilers.  */
18798
18799 #ifdef __STDC__
18800 # include <limits.h>
18801 #else
18802 # include <assert.h>
18803 #endif
18804
18805 #undef $ac_func
18806
18807 /* Override any GCC internal prototype to avoid an error.
18808    Use char because int might match the return type of a GCC
18809    builtin and then its argument prototype would still apply.  */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char $ac_func ();
18814 /* The GNU C library defines this for functions which it implements
18815     to always fail with ENOSYS.  Some functions are actually named
18816     something starting with __ and the normal name is an alias.  */
18817 #if defined __stub_$ac_func || defined __stub___$ac_func
18818 choke me
18819 #endif
18820
18821 int
18822 main ()
18823 {
18824 return $ac_func ();
18825   ;
18826   return 0;
18827 }
18828 _ACEOF
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (ac_try="$ac_link"
18831 case "(($ac_try" in
18832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833   *) ac_try_echo=$ac_try;;
18834 esac
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836   (eval "$ac_link") 2>conftest.er1
18837   ac_status=$?
18838   grep -v '^ *+' conftest.er1 >conftest.err
18839   rm -f conftest.er1
18840   cat conftest.err >&5
18841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842   (exit $ac_status); } &&
18843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18844   { (case "(($ac_try" in
18845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846   *) ac_try_echo=$ac_try;;
18847 esac
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849   (eval "$ac_try") 2>&5
18850   ac_status=$?
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); }; } &&
18853          { ac_try='test -s conftest$ac_exeext'
18854   { (case "(($ac_try" in
18855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856   *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859   (eval "$ac_try") 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); }; }; then
18863   eval "$as_ac_var=yes"
18864 else
18865   echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18867
18868         eval "$as_ac_var=no"
18869 fi
18870
18871 rm -f core conftest.err conftest.$ac_objext \
18872       conftest$ac_exeext conftest.$ac_ext
18873 fi
18874 ac_res=`eval echo '${'$as_ac_var'}'`
18875                { echo "$as_me:$LINENO: result: $ac_res" >&5
18876 echo "${ECHO_T}$ac_res" >&6; }
18877 if test `eval echo '${'$as_ac_var'}'` = yes; then
18878   cat >>confdefs.h <<_ACEOF
18879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18880 _ACEOF
18881
18882 fi
18883 done
18884
18885 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18886 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18887 if test "${llvm_cv_c_printf_a+set}" = set; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890   ac_ext=c
18891 ac_cpp='$CPP $CPPFLAGS'
18892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18895
18896  if test "$cross_compiling" = yes; then
18897   llvmac_cv_c_printf_a=no
18898 else
18899   cat >conftest.$ac_ext <<_ACEOF
18900
18901   /* confdefs.h.  */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h.  */
18906
18907 #include <stdio.h>
18908 #include <stdlib.h>
18909
18910 int
18911 main ()
18912 {
18913
18914 volatile double A, B;
18915 char Buffer[100];
18916 A = 1;
18917 A /= 10.0;
18918 sprintf(Buffer, "%a", A);
18919 B = atof(Buffer);
18920 if (A != B)
18921   return (1);
18922 if (A != 0x1.999999999999ap-4)
18923   return (1);
18924 return (0);
18925   ;
18926   return 0;
18927 }
18928 _ACEOF
18929 rm -f conftest$ac_exeext
18930 if { (ac_try="$ac_link"
18931 case "(($ac_try" in
18932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933   *) ac_try_echo=$ac_try;;
18934 esac
18935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936   (eval "$ac_link") 2>&5
18937   ac_status=$?
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18940   { (case "(($ac_try" in
18941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942   *) ac_try_echo=$ac_try;;
18943 esac
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945   (eval "$ac_try") 2>&5
18946   ac_status=$?
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); }; }; then
18949   llvm_cv_c_printf_a=yes
18950 else
18951   echo "$as_me: program exited with status $ac_status" >&5
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18954
18955 ( exit $ac_status )
18956 llvmac_cv_c_printf_a=no
18957 fi
18958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18959 fi
18960
18961
18962  ac_ext=c
18963 ac_cpp='$CPP $CPPFLAGS'
18964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18967
18968 fi
18969 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18970 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18971  if test "$llvm_cv_c_printf_a" = "yes"; then
18972
18973 cat >>confdefs.h <<\_ACEOF
18974 #define HAVE_PRINTF_A 1
18975 _ACEOF
18976
18977  fi
18978
18979
18980 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18981 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18982 if test "${ac_cv_func_rand48+set}" = set; then
18983   echo $ECHO_N "(cached) $ECHO_C" >&6
18984 else
18985   ac_ext=cpp
18986 ac_cpp='$CXXCPP $CPPFLAGS'
18987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18990
18991    cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h.  */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h.  */
18997 #include <stdlib.h>
18998 int
18999 main ()
19000 {
19001 srand48(0);lrand48();drand48();
19002   ;
19003   return 0;
19004 }
19005 _ACEOF
19006 rm -f conftest.$ac_objext
19007 if { (ac_try="$ac_compile"
19008 case "(($ac_try" in
19009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010   *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013   (eval "$ac_compile") 2>conftest.er1
19014   ac_status=$?
19015   grep -v '^ *+' conftest.er1 >conftest.err
19016   rm -f conftest.er1
19017   cat conftest.err >&5
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); } &&
19020          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19021   { (case "(($ac_try" in
19022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023   *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026   (eval "$ac_try") 2>&5
19027   ac_status=$?
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); }; } &&
19030          { ac_try='test -s conftest.$ac_objext'
19031   { (case "(($ac_try" in
19032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033   *) ac_try_echo=$ac_try;;
19034 esac
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036   (eval "$ac_try") 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); }; }; then
19040   ac_cv_func_rand48=yes
19041 else
19042   echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045         ac_cv_func_rand48=no
19046 fi
19047
19048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19049   ac_ext=c
19050 ac_cpp='$CPP $CPPFLAGS'
19051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19054
19055 fi
19056 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19057 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19058
19059 if test "$ac_cv_func_rand48" = "yes" ; then
19060
19061 cat >>confdefs.h <<\_ACEOF
19062 #define HAVE_RAND48 1
19063 _ACEOF
19064
19065 fi
19066
19067
19068
19069 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19070 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19071 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19072   echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074   ac_ext=cpp
19075 ac_cpp='$CXXCPP $CPPFLAGS'
19076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19079
19080    cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h.  */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h.  */
19086 #include <math.h>
19087 int
19088 main ()
19089 {
19090 float f; isnan(f);
19091   ;
19092   return 0;
19093 }
19094 _ACEOF
19095 rm -f conftest.$ac_objext
19096 if { (ac_try="$ac_compile"
19097 case "(($ac_try" in
19098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099   *) ac_try_echo=$ac_try;;
19100 esac
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102   (eval "$ac_compile") 2>conftest.er1
19103   ac_status=$?
19104   grep -v '^ *+' conftest.er1 >conftest.err
19105   rm -f conftest.er1
19106   cat conftest.err >&5
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); } &&
19109          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19110   { (case "(($ac_try" in
19111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112   *) ac_try_echo=$ac_try;;
19113 esac
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115   (eval "$ac_try") 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); }; } &&
19119          { ac_try='test -s conftest.$ac_objext'
19120   { (case "(($ac_try" in
19121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122   *) ac_try_echo=$ac_try;;
19123 esac
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125   (eval "$ac_try") 2>&5
19126   ac_status=$?
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); }; }; then
19129   ac_cv_func_isnan_in_math_h=yes
19130 else
19131   echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19133
19134         ac_cv_func_isnan_in_math_h=no
19135 fi
19136
19137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19138   ac_ext=c
19139 ac_cpp='$CPP $CPPFLAGS'
19140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19143
19144 fi
19145 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19146 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19147
19148
19149 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19150
19151 cat >>confdefs.h <<\_ACEOF
19152 #define HAVE_ISNAN_IN_MATH_H 1
19153 _ACEOF
19154
19155 fi
19156
19157 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19158 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19159 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19160   echo $ECHO_N "(cached) $ECHO_C" >&6
19161 else
19162   ac_ext=cpp
19163 ac_cpp='$CXXCPP $CPPFLAGS'
19164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19167
19168    cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174 #include <cmath>
19175 int
19176 main ()
19177 {
19178 float f; isnan(f);
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext
19184 if { (ac_try="$ac_compile"
19185 case "(($ac_try" in
19186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187   *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190   (eval "$ac_compile") 2>conftest.er1
19191   ac_status=$?
19192   grep -v '^ *+' conftest.er1 >conftest.err
19193   rm -f conftest.er1
19194   cat conftest.err >&5
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); } &&
19197          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19198   { (case "(($ac_try" in
19199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200   *) ac_try_echo=$ac_try;;
19201 esac
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203   (eval "$ac_try") 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; } &&
19207          { ac_try='test -s conftest.$ac_objext'
19208   { (case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_try") 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; }; then
19217   ac_cv_func_isnan_in_cmath=yes
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222         ac_cv_func_isnan_in_cmath=no
19223 fi
19224
19225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226   ac_ext=c
19227 ac_cpp='$CPP $CPPFLAGS'
19228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19231
19232 fi
19233 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19234 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19235
19236 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19237
19238 cat >>confdefs.h <<\_ACEOF
19239 #define HAVE_ISNAN_IN_CMATH 1
19240 _ACEOF
19241
19242 fi
19243
19244 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19245 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19246 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249   ac_ext=cpp
19250 ac_cpp='$CXXCPP $CPPFLAGS'
19251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19254
19255    cat >conftest.$ac_ext <<_ACEOF
19256 /* confdefs.h.  */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h.  */
19261 #include <cmath>
19262 int
19263 main ()
19264 {
19265 float f; std::isnan(f);
19266   ;
19267   return 0;
19268 }
19269 _ACEOF
19270 rm -f conftest.$ac_objext
19271 if { (ac_try="$ac_compile"
19272 case "(($ac_try" in
19273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274   *) ac_try_echo=$ac_try;;
19275 esac
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277   (eval "$ac_compile") 2>conftest.er1
19278   ac_status=$?
19279   grep -v '^ *+' conftest.er1 >conftest.err
19280   rm -f conftest.er1
19281   cat conftest.err >&5
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); } &&
19284          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
19294          { ac_try='test -s conftest.$ac_objext'
19295   { (case "(($ac_try" in
19296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297   *) ac_try_echo=$ac_try;;
19298 esac
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300   (eval "$ac_try") 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; }; then
19304   ac_cv_func_std_isnan_in_cmath=yes
19305 else
19306   echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309         ac_cv_func_std_isnan_in_cmath=no
19310 fi
19311
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313   ac_ext=c
19314 ac_cpp='$CPP $CPPFLAGS'
19315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19318
19319 fi
19320 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19321 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19322
19323 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19324
19325 cat >>confdefs.h <<\_ACEOF
19326 #define HAVE_STD_ISNAN_IN_CMATH 1
19327 _ACEOF
19328
19329 fi
19330
19331
19332 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19333 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19334 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337   ac_ext=cpp
19338 ac_cpp='$CXXCPP $CPPFLAGS'
19339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19342
19343    cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h.  */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h.  */
19349 #include <math.h>
19350 int
19351 main ()
19352 {
19353 float f; isinf(f);
19354   ;
19355   return 0;
19356 }
19357 _ACEOF
19358 rm -f conftest.$ac_objext
19359 if { (ac_try="$ac_compile"
19360 case "(($ac_try" in
19361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362   *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365   (eval "$ac_compile") 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } &&
19372          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373   { (case "(($ac_try" in
19374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375   *) ac_try_echo=$ac_try;;
19376 esac
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378   (eval "$ac_try") 2>&5
19379   ac_status=$?
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); }; } &&
19382          { ac_try='test -s conftest.$ac_objext'
19383   { (case "(($ac_try" in
19384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385   *) ac_try_echo=$ac_try;;
19386 esac
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388   (eval "$ac_try") 2>&5
19389   ac_status=$?
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); }; }; then
19392   ac_cv_func_isinf_in_math_h=yes
19393 else
19394   echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19396
19397         ac_cv_func_isinf_in_math_h=no
19398 fi
19399
19400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401   ac_ext=c
19402 ac_cpp='$CPP $CPPFLAGS'
19403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406
19407 fi
19408 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19409 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19410
19411 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19412
19413 cat >>confdefs.h <<\_ACEOF
19414 #define HAVE_ISINF_IN_MATH_H 1
19415 _ACEOF
19416
19417 fi
19418
19419 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19420 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19421 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19422   echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424   ac_ext=cpp
19425 ac_cpp='$CXXCPP $CPPFLAGS'
19426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19429
19430    cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h.  */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h.  */
19436 #include <cmath>
19437 int
19438 main ()
19439 {
19440 float f; isinf(f);
19441   ;
19442   return 0;
19443 }
19444 _ACEOF
19445 rm -f conftest.$ac_objext
19446 if { (ac_try="$ac_compile"
19447 case "(($ac_try" in
19448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449   *) ac_try_echo=$ac_try;;
19450 esac
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452   (eval "$ac_compile") 2>conftest.er1
19453   ac_status=$?
19454   grep -v '^ *+' conftest.er1 >conftest.err
19455   rm -f conftest.er1
19456   cat conftest.err >&5
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } &&
19459          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19460   { (case "(($ac_try" in
19461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462   *) ac_try_echo=$ac_try;;
19463 esac
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465   (eval "$ac_try") 2>&5
19466   ac_status=$?
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); }; } &&
19469          { ac_try='test -s conftest.$ac_objext'
19470   { (case "(($ac_try" in
19471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472   *) ac_try_echo=$ac_try;;
19473 esac
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475   (eval "$ac_try") 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; }; then
19479   ac_cv_func_isinf_in_cmath=yes
19480 else
19481   echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19483
19484         ac_cv_func_isinf_in_cmath=no
19485 fi
19486
19487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488   ac_ext=c
19489 ac_cpp='$CPP $CPPFLAGS'
19490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19493
19494 fi
19495 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19496 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19497
19498 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19499
19500 cat >>confdefs.h <<\_ACEOF
19501 #define HAVE_ISINF_IN_CMATH 1
19502 _ACEOF
19503
19504 fi
19505
19506 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19507 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19508 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19509   echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511   ac_ext=cpp
19512 ac_cpp='$CXXCPP $CPPFLAGS'
19513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19516
19517    cat >conftest.$ac_ext <<_ACEOF
19518 /* confdefs.h.  */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h.  */
19523 #include <cmath>
19524 int
19525 main ()
19526 {
19527 float f; std::isinf(f)}
19528   ;
19529   return 0;
19530 }
19531 _ACEOF
19532 rm -f conftest.$ac_objext
19533 if { (ac_try="$ac_compile"
19534 case "(($ac_try" in
19535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536   *) ac_try_echo=$ac_try;;
19537 esac
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539   (eval "$ac_compile") 2>conftest.er1
19540   ac_status=$?
19541   grep -v '^ *+' conftest.er1 >conftest.err
19542   rm -f conftest.er1
19543   cat conftest.err >&5
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); } &&
19546          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19547   { (case "(($ac_try" in
19548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549   *) ac_try_echo=$ac_try;;
19550 esac
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552   (eval "$ac_try") 2>&5
19553   ac_status=$?
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); }; } &&
19556          { ac_try='test -s conftest.$ac_objext'
19557   { (case "(($ac_try" in
19558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559   *) ac_try_echo=$ac_try;;
19560 esac
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562   (eval "$ac_try") 2>&5
19563   ac_status=$?
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); }; }; then
19566   ac_cv_func_std_isinf_in_cmath=yes
19567 else
19568   echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19570
19571         ac_cv_func_std_isinf_in_cmath=no
19572 fi
19573
19574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575   ac_ext=c
19576 ac_cpp='$CPP $CPPFLAGS'
19577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19580
19581 fi
19582 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19583 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19584
19585 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19586
19587 cat >>confdefs.h <<\_ACEOF
19588 #define HAVE_STD_ISINF_IN_CMATH 1
19589 _ACEOF
19590
19591 fi
19592
19593 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19594 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19595 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19596   echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598   ac_ext=cpp
19599 ac_cpp='$CXXCPP $CPPFLAGS'
19600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19603
19604    cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610 #include <ieeefp.h>
19611 int
19612 main ()
19613 {
19614 float f; finite(f);
19615   ;
19616   return 0;
19617 }
19618 _ACEOF
19619 rm -f conftest.$ac_objext
19620 if { (ac_try="$ac_compile"
19621 case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626   (eval "$ac_compile") 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } &&
19633          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19634   { (case "(($ac_try" in
19635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636   *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639   (eval "$ac_try") 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); }; } &&
19643          { ac_try='test -s conftest.$ac_objext'
19644   { (case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_try") 2>&5
19650   ac_status=$?
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); }; }; then
19653   ac_cv_func_finite_in_ieeefp_h=yes
19654 else
19655   echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658         ac_cv_func_finite_in_ieeefp_h=no
19659 fi
19660
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19662   ac_ext=c
19663 ac_cpp='$CPP $CPPFLAGS'
19664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19667
19668 fi
19669 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19670 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19671
19672 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19673
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE_FINITE_IN_IEEEFP_H 1
19676 _ACEOF
19677
19678 fi
19679
19680
19681
19682 if test "$llvm_cv_platform_type" = "Unix" ; then
19683
19684
19685 for ac_header in stdlib.h unistd.h
19686 do
19687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19689   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19692   echo $ECHO_N "(cached) $ECHO_C" >&6
19693 fi
19694 ac_res=`eval echo '${'$as_ac_Header'}'`
19695                { echo "$as_me:$LINENO: result: $ac_res" >&5
19696 echo "${ECHO_T}$ac_res" >&6; }
19697 else
19698   # Is the header compilable?
19699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19701 cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h.  */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h.  */
19707 $ac_includes_default
19708 #include <$ac_header>
19709 _ACEOF
19710 rm -f conftest.$ac_objext
19711 if { (ac_try="$ac_compile"
19712 case "(($ac_try" in
19713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714   *) ac_try_echo=$ac_try;;
19715 esac
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717   (eval "$ac_compile") 2>conftest.er1
19718   ac_status=$?
19719   grep -v '^ *+' conftest.er1 >conftest.err
19720   rm -f conftest.er1
19721   cat conftest.err >&5
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); } &&
19724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725   { (case "(($ac_try" in
19726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727   *) ac_try_echo=$ac_try;;
19728 esac
19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730   (eval "$ac_try") 2>&5
19731   ac_status=$?
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); }; } &&
19734          { ac_try='test -s conftest.$ac_objext'
19735   { (case "(($ac_try" in
19736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737   *) ac_try_echo=$ac_try;;
19738 esac
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740   (eval "$ac_try") 2>&5
19741   ac_status=$?
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); }; }; then
19744   ac_header_compiler=yes
19745 else
19746   echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19748
19749         ac_header_compiler=no
19750 fi
19751
19752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19754 echo "${ECHO_T}$ac_header_compiler" >&6; }
19755
19756 # Is the header present?
19757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19759 cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h.  */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h.  */
19765 #include <$ac_header>
19766 _ACEOF
19767 if { (ac_try="$ac_cpp conftest.$ac_ext"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } >/dev/null; then
19780   if test -s conftest.err; then
19781     ac_cpp_err=$ac_c_preproc_warn_flag
19782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19783   else
19784     ac_cpp_err=
19785   fi
19786 else
19787   ac_cpp_err=yes
19788 fi
19789 if test -z "$ac_cpp_err"; then
19790   ac_header_preproc=yes
19791 else
19792   echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795   ac_header_preproc=no
19796 fi
19797
19798 rm -f conftest.err conftest.$ac_ext
19799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19800 echo "${ECHO_T}$ac_header_preproc" >&6; }
19801
19802 # So?  What about this header?
19803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19804   yes:no: )
19805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19809     ac_header_preproc=yes
19810     ;;
19811   no:yes:* )
19812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19824     ( cat <<\_ASBOX
19825 ## ----------------------------------- ##
19826 ## Report this to llvmbugs@cs.uiuc.edu ##
19827 ## ----------------------------------- ##
19828 _ASBOX
19829      ) | sed "s/^/$as_me: WARNING:     /" >&2
19830     ;;
19831 esac
19832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837   eval "$as_ac_Header=\$ac_header_preproc"
19838 fi
19839 ac_res=`eval echo '${'$as_ac_Header'}'`
19840                { echo "$as_me:$LINENO: result: $ac_res" >&5
19841 echo "${ECHO_T}$ac_res" >&6; }
19842
19843 fi
19844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19845   cat >>confdefs.h <<_ACEOF
19846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19847 _ACEOF
19848
19849 fi
19850
19851 done
19852
19853
19854 for ac_func in getpagesize
19855 do
19856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19860   echo $ECHO_N "(cached) $ECHO_C" >&6
19861 else
19862   cat >conftest.$ac_ext <<_ACEOF
19863 /* confdefs.h.  */
19864 _ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h.  */
19868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19870 #define $ac_func innocuous_$ac_func
19871
19872 /* System header to define __stub macros and hopefully few prototypes,
19873     which can conflict with char $ac_func (); below.
19874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19875     <limits.h> exists even on freestanding compilers.  */
19876
19877 #ifdef __STDC__
19878 # include <limits.h>
19879 #else
19880 # include <assert.h>
19881 #endif
19882
19883 #undef $ac_func
19884
19885 /* Override any GCC internal prototype to avoid an error.
19886    Use char because int might match the return type of a GCC
19887    builtin and then its argument prototype would still apply.  */
19888 #ifdef __cplusplus
19889 extern "C"
19890 #endif
19891 char $ac_func ();
19892 /* The GNU C library defines this for functions which it implements
19893     to always fail with ENOSYS.  Some functions are actually named
19894     something starting with __ and the normal name is an alias.  */
19895 #if defined __stub_$ac_func || defined __stub___$ac_func
19896 choke me
19897 #endif
19898
19899 int
19900 main ()
19901 {
19902 return $ac_func ();
19903   ;
19904   return 0;
19905 }
19906 _ACEOF
19907 rm -f conftest.$ac_objext conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911   *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914   (eval "$ac_link") 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } &&
19921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19922   { (case "(($ac_try" in
19923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924   *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927   (eval "$ac_try") 2>&5
19928   ac_status=$?
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); }; } &&
19931          { ac_try='test -s conftest$ac_exeext'
19932   { (case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937   (eval "$ac_try") 2>&5
19938   ac_status=$?
19939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); }; }; then
19941   eval "$as_ac_var=yes"
19942 else
19943   echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19945
19946         eval "$as_ac_var=no"
19947 fi
19948
19949 rm -f core conftest.err conftest.$ac_objext \
19950       conftest$ac_exeext conftest.$ac_ext
19951 fi
19952 ac_res=`eval echo '${'$as_ac_var'}'`
19953                { echo "$as_me:$LINENO: result: $ac_res" >&5
19954 echo "${ECHO_T}$ac_res" >&6; }
19955 if test `eval echo '${'$as_ac_var'}'` = yes; then
19956   cat >>confdefs.h <<_ACEOF
19957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19958 _ACEOF
19959
19960 fi
19961 done
19962
19963 { echo "$as_me:$LINENO: checking for working mmap" >&5
19964 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19965 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19966   echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968   if test "$cross_compiling" = yes; then
19969   ac_cv_func_mmap_fixed_mapped=no
19970 else
19971   cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h.  */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h.  */
19977 $ac_includes_default
19978 /* malloc might have been renamed as rpl_malloc. */
19979 #undef malloc
19980
19981 /* Thanks to Mike Haertel and Jim Avera for this test.
19982    Here is a matrix of mmap possibilities:
19983         mmap private not fixed
19984         mmap private fixed at somewhere currently unmapped
19985         mmap private fixed at somewhere already mapped
19986         mmap shared not fixed
19987         mmap shared fixed at somewhere currently unmapped
19988         mmap shared fixed at somewhere already mapped
19989    For private mappings, we should verify that changes cannot be read()
19990    back from the file, nor mmap's back from the file at a different
19991    address.  (There have been systems where private was not correctly
19992    implemented like the infamous i386 svr4.0, and systems where the
19993    VM page cache was not coherent with the file system buffer cache
19994    like early versions of FreeBSD and possibly contemporary NetBSD.)
19995    For shared mappings, we should conversely verify that changes get
19996    propagated back to all the places they're supposed to be.
19997
19998    Grep wants private fixed already mapped.
19999    The main things grep needs to know about mmap are:
20000    * does it exist and is it safe to write into the mmap'd area
20001    * how to use it (BSD variants)  */
20002
20003 #include <fcntl.h>
20004 #include <sys/mman.h>
20005
20006 #if !STDC_HEADERS && !HAVE_STDLIB_H
20007 char *malloc ();
20008 #endif
20009
20010 /* This mess was copied from the GNU getpagesize.h.  */
20011 #if !HAVE_GETPAGESIZE
20012 /* Assume that all systems that can run configure have sys/param.h.  */
20013 # if !HAVE_SYS_PARAM_H
20014 #  define HAVE_SYS_PARAM_H 1
20015 # endif
20016
20017 # ifdef _SC_PAGESIZE
20018 #  define getpagesize() sysconf(_SC_PAGESIZE)
20019 # else /* no _SC_PAGESIZE */
20020 #  if HAVE_SYS_PARAM_H
20021 #   include <sys/param.h>
20022 #   ifdef EXEC_PAGESIZE
20023 #    define getpagesize() EXEC_PAGESIZE
20024 #   else /* no EXEC_PAGESIZE */
20025 #    ifdef NBPG
20026 #     define getpagesize() NBPG * CLSIZE
20027 #     ifndef CLSIZE
20028 #      define CLSIZE 1
20029 #     endif /* no CLSIZE */
20030 #    else /* no NBPG */
20031 #     ifdef NBPC
20032 #      define getpagesize() NBPC
20033 #     else /* no NBPC */
20034 #      ifdef PAGESIZE
20035 #       define getpagesize() PAGESIZE
20036 #      endif /* PAGESIZE */
20037 #     endif /* no NBPC */
20038 #    endif /* no NBPG */
20039 #   endif /* no EXEC_PAGESIZE */
20040 #  else /* no HAVE_SYS_PARAM_H */
20041 #   define getpagesize() 8192   /* punt totally */
20042 #  endif /* no HAVE_SYS_PARAM_H */
20043 # endif /* no _SC_PAGESIZE */
20044
20045 #endif /* no HAVE_GETPAGESIZE */
20046
20047 int
20048 main ()
20049 {
20050   char *data, *data2, *data3;
20051   int i, pagesize;
20052   int fd;
20053
20054   pagesize = getpagesize ();
20055
20056   /* First, make a file with some known garbage in it. */
20057   data = (char *) malloc (pagesize);
20058   if (!data)
20059     return 1;
20060   for (i = 0; i < pagesize; ++i)
20061     *(data + i) = rand ();
20062   umask (0);
20063   fd = creat ("conftest.mmap", 0600);
20064   if (fd < 0)
20065     return 1;
20066   if (write (fd, data, pagesize) != pagesize)
20067     return 1;
20068   close (fd);
20069
20070   /* Next, try to mmap the file at a fixed address which already has
20071      something else allocated at it.  If we can, also make sure that
20072      we see the same garbage.  */
20073   fd = open ("conftest.mmap", O_RDWR);
20074   if (fd < 0)
20075     return 1;
20076   data2 = (char *) malloc (2 * pagesize);
20077   if (!data2)
20078     return 1;
20079   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20080   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20081                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20082     return 1;
20083   for (i = 0; i < pagesize; ++i)
20084     if (*(data + i) != *(data2 + i))
20085       return 1;
20086
20087   /* Finally, make sure that changes to the mapped area do not
20088      percolate back to the file as seen by read().  (This is a bug on
20089      some variants of i386 svr4.0.)  */
20090   for (i = 0; i < pagesize; ++i)
20091     *(data2 + i) = *(data2 + i) + 1;
20092   data3 = (char *) malloc (pagesize);
20093   if (!data3)
20094     return 1;
20095   if (read (fd, data3, pagesize) != pagesize)
20096     return 1;
20097   for (i = 0; i < pagesize; ++i)
20098     if (*(data + i) != *(data3 + i))
20099       return 1;
20100   close (fd);
20101   return 0;
20102 }
20103 _ACEOF
20104 rm -f conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108   *) ac_try_echo=$ac_try;;
20109 esac
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111   (eval "$ac_link") 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20115   { (case "(($ac_try" in
20116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117   *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120   (eval "$ac_try") 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   ac_cv_func_mmap_fixed_mapped=yes
20125 else
20126   echo "$as_me: program exited with status $ac_status" >&5
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130 ( exit $ac_status )
20131 ac_cv_func_mmap_fixed_mapped=no
20132 fi
20133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20134 fi
20135
20136
20137 fi
20138 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20139 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20140 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20141
20142 cat >>confdefs.h <<\_ACEOF
20143 #define HAVE_MMAP 1
20144 _ACEOF
20145
20146 fi
20147 rm -f conftest.mmap
20148
20149   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20150 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20151 if test "${ac_cv_func_mmap_file+set}" = set; then
20152   echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154    ac_ext=c
20155 ac_cpp='$CPP $CPPFLAGS'
20156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20159
20160   if test "$cross_compiling" = yes; then
20161   ac_cv_func_mmap_file=no
20162 else
20163   cat >conftest.$ac_ext <<_ACEOF
20164
20165     /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170
20171 #include <sys/types.h>
20172 #include <sys/mman.h>
20173 #include <fcntl.h>
20174
20175 int
20176 main ()
20177 {
20178
20179   int fd;
20180   fd = creat ("foo",0777);
20181   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20182   unlink ("foo");
20183   return (fd != (int) MAP_FAILED);
20184   ;
20185   return 0;
20186 }
20187 _ACEOF
20188 rm -f conftest$ac_exeext
20189 if { (ac_try="$ac_link"
20190 case "(($ac_try" in
20191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192   *) ac_try_echo=$ac_try;;
20193 esac
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195   (eval "$ac_link") 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20199   { (case "(($ac_try" in
20200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201   *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204   (eval "$ac_try") 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); }; }; then
20208   ac_cv_func_mmap_file=yes
20209 else
20210   echo "$as_me: program exited with status $ac_status" >&5
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20213
20214 ( exit $ac_status )
20215 ac_cv_func_mmap_file=no
20216 fi
20217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20218 fi
20219
20220
20221   ac_ext=c
20222 ac_cpp='$CPP $CPPFLAGS'
20223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20226
20227
20228 fi
20229 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20230 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20231 if test "$ac_cv_func_mmap_file" = yes; then
20232
20233 cat >>confdefs.h <<\_ACEOF
20234 #define HAVE_MMAP_FILE
20235 _ACEOF
20236
20237    MMAP_FILE=yes
20238
20239 fi
20240
20241   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20242 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20243 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20244   echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246   if test "$llvm_cv_os_type" = "Interix" ; then
20247    ac_cv_need_dev_zero_for_mmap=yes
20248  else
20249    ac_cv_need_dev_zero_for_mmap=no
20250  fi
20251
20252 fi
20253 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20254 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20255 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20256
20257 cat >>confdefs.h <<\_ACEOF
20258 #define NEED_DEV_ZERO_FOR_MMAP 1
20259 _ACEOF
20260
20261 fi
20262
20263   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20264   then
20265     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20266 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20267   fi
20268   if test "$ac_cv_func_mmap_file" = "no"
20269   then
20270     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20271 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20272   fi
20273 fi
20274
20275 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20276 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20277 ac_ext=cpp
20278 ac_cpp='$CXXCPP $CPPFLAGS'
20279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20282
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h.  */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h.  */
20289 int main() {
20290         volatile unsigned long val = 1;
20291         __sync_synchronize();
20292         __sync_val_compare_and_swap(&val, 1, 0);
20293         __sync_add_and_fetch(&val, 1);
20294         __sync_sub_and_fetch(&val, 1);
20295         return 0;
20296       }
20297
20298 _ACEOF
20299 rm -f conftest.$ac_objext conftest$ac_exeext
20300 if { (ac_try="$ac_link"
20301 case "(($ac_try" in
20302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303   *) ac_try_echo=$ac_try;;
20304 esac
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306   (eval "$ac_link") 2>conftest.er1
20307   ac_status=$?
20308   grep -v '^ *+' conftest.er1 >conftest.err
20309   rm -f conftest.er1
20310   cat conftest.err >&5
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } &&
20313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314   { (case "(($ac_try" in
20315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316   *) ac_try_echo=$ac_try;;
20317 esac
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319   (eval "$ac_try") 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); }; } &&
20323          { ac_try='test -s conftest$ac_exeext'
20324   { (case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_try") 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); }; }; then
20333   ac_ext=c
20334 ac_cpp='$CPP $CPPFLAGS'
20335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20338
20339   { echo "$as_me:$LINENO: result: yes" >&5
20340 echo "${ECHO_T}yes" >&6; }
20341
20342 cat >>confdefs.h <<\_ACEOF
20343 #define LLVM_MULTITHREADED 1
20344 _ACEOF
20345
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350         { echo "$as_me:$LINENO: result: no" >&5
20351 echo "${ECHO_T}no" >&6; }
20352
20353 cat >>confdefs.h <<\_ACEOF
20354 #define LLVM_MULTITHREADED 0
20355 _ACEOF
20356
20357   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20358 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20359 fi
20360
20361 rm -f core conftest.err conftest.$ac_objext \
20362       conftest$ac_exeext conftest.$ac_ext
20363
20364
20365 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20366   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20367 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20368 if test "${llvm_cv_linux_mixed+set}" = set; then
20369   echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371    ac_ext=c
20372 ac_cpp='$CPP $CPPFLAGS'
20373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20376
20377   cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383 #ifndef __x86_64__
20384        error: Not x86-64 even if uname says so!
20385       #endif
20386
20387 int
20388 main ()
20389 {
20390
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext
20396 if { (ac_try="$ac_compile"
20397 case "(($ac_try" in
20398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399   *) ac_try_echo=$ac_try;;
20400 esac
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402   (eval "$ac_compile") 2>conftest.er1
20403   ac_status=$?
20404   grep -v '^ *+' conftest.er1 >conftest.err
20405   rm -f conftest.er1
20406   cat conftest.err >&5
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); } &&
20409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20410   { (case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_try") 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); }; } &&
20419          { ac_try='test -s conftest.$ac_objext'
20420   { (case "(($ac_try" in
20421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422   *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425   (eval "$ac_try") 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; }; then
20429   llvm_cv_linux_mixed=no
20430 else
20431   echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434         llvm_cv_linux_mixed=yes
20435 fi
20436
20437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20438   ac_ext=c
20439 ac_cpp='$CPP $CPPFLAGS'
20440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20443
20444
20445 fi
20446 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20447 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20448
20449   if test "$llvm_cv_linux_mixed" = "yes"; then
20450     llvm_cv_target_arch="x86"
20451     ARCH="x86"
20452   fi
20453 fi
20454
20455
20456 for ac_func in __dso_handle
20457 do
20458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20462   echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464   cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h.  */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h.  */
20470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20472 #define $ac_func innocuous_$ac_func
20473
20474 /* System header to define __stub macros and hopefully few prototypes,
20475     which can conflict with char $ac_func (); below.
20476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20477     <limits.h> exists even on freestanding compilers.  */
20478
20479 #ifdef __STDC__
20480 # include <limits.h>
20481 #else
20482 # include <assert.h>
20483 #endif
20484
20485 #undef $ac_func
20486
20487 /* Override any GCC internal prototype to avoid an error.
20488    Use char because int might match the return type of a GCC
20489    builtin and then its argument prototype would still apply.  */
20490 #ifdef __cplusplus
20491 extern "C"
20492 #endif
20493 char $ac_func ();
20494 /* The GNU C library defines this for functions which it implements
20495     to always fail with ENOSYS.  Some functions are actually named
20496     something starting with __ and the normal name is an alias.  */
20497 #if defined __stub_$ac_func || defined __stub___$ac_func
20498 choke me
20499 #endif
20500
20501 int
20502 main ()
20503 {
20504 return $ac_func ();
20505   ;
20506   return 0;
20507 }
20508 _ACEOF
20509 rm -f conftest.$ac_objext conftest$ac_exeext
20510 if { (ac_try="$ac_link"
20511 case "(($ac_try" in
20512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513   *) ac_try_echo=$ac_try;;
20514 esac
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516   (eval "$ac_link") 2>conftest.er1
20517   ac_status=$?
20518   grep -v '^ *+' conftest.er1 >conftest.err
20519   rm -f conftest.er1
20520   cat conftest.err >&5
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); } &&
20523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20524   { (case "(($ac_try" in
20525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526   *) ac_try_echo=$ac_try;;
20527 esac
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529   (eval "$ac_try") 2>&5
20530   ac_status=$?
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); }; } &&
20533          { ac_try='test -s conftest$ac_exeext'
20534   { (case "(($ac_try" in
20535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536   *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539   (eval "$ac_try") 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); }; }; then
20543   eval "$as_ac_var=yes"
20544 else
20545   echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548         eval "$as_ac_var=no"
20549 fi
20550
20551 rm -f core conftest.err conftest.$ac_objext \
20552       conftest$ac_exeext conftest.$ac_ext
20553 fi
20554 ac_res=`eval echo '${'$as_ac_var'}'`
20555                { echo "$as_me:$LINENO: result: $ac_res" >&5
20556 echo "${ECHO_T}$ac_res" >&6; }
20557 if test `eval echo '${'$as_ac_var'}'` = yes; then
20558   cat >>confdefs.h <<_ACEOF
20559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20560 _ACEOF
20561
20562 fi
20563 done
20564
20565
20566 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20567 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20568 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20569   echo $ECHO_N "(cached) $ECHO_C" >&6
20570 else
20571   llvm_cv_llvmgcc_dragonegg="no"
20572 if test -x "$LLVMGCC" ; then
20573   cp /dev/null conftest.c
20574   "$LLVMGCC" -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c | \
20575   grep 'target datalayout =' > /dev/null 2>&1
20576   if test $? -eq 0 ; then
20577     llvm_cv_llvmgcc_dragonegg="yes"
20578   fi
20579   rm conftest.c
20580 fi
20581 fi
20582 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20583 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20584
20585 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20586   LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20587   LLVMGCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20588 else
20589   LLVMCC_EMITIR_FLAG="-emit-llvm"
20590   LLVMGCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20591 fi
20592
20593
20594
20595 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20596 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20597 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20598   echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20600   llvm_cv_llvmgcc_sanity="no"
20601 if test -x "$LLVMGCC" ; then
20602   cp /dev/null conftest.c
20603   "$LLVMGCC" "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
20604       grep 'target datalayout =' > /dev/null 2>&1
20605   if test $? -eq 0 ; then
20606     llvm_cv_llvmgcc_sanity="yes"
20607   fi
20608   rm conftest.c
20609 fi
20610 fi
20611 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20612 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20613
20614 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20615   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20616 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20617   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20618   LLVMCC1=$llvmcc1path
20619
20620   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20621   LLVMCC1PLUS=$llvmcc1pluspath
20622
20623   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20624   LLVMGCCDIR=$llvmgccdir
20625
20626   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20627   LLVMGCC_LANGS=$llvmgcclangs
20628
20629   LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20630
20631
20632   { echo "$as_me:$LINENO: result: ok" >&5
20633 echo "${ECHO_T}ok" >&6; }
20634 fi
20635
20636 SHLIBEXT=$libltdl_cv_shlibext
20637
20638
20639 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20640
20641
20642 # Translate the various configuration directories and other basic
20643 # information into substitutions that will end up in Makefile.config.in
20644 # that these configured values can be used by the makefiles
20645 if test "${prefix}" = "NONE" ; then
20646   prefix="/usr/local"
20647 fi
20648 eval LLVM_PREFIX="${prefix}";
20649 eval LLVM_BINDIR="${prefix}/bin";
20650 eval LLVM_LIBDIR="${prefix}/lib";
20651 eval LLVM_DATADIR="${prefix}/share/llvm";
20652 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20653 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20654 eval LLVM_INCLUDEDIR="${prefix}/include";
20655 eval LLVM_INFODIR="${prefix}/info";
20656 eval LLVM_MANDIR="${prefix}/man";
20657 LLVM_CONFIGTIME=`date`
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669 # Place the various directores into the config.h file as #defines so that we
20670 # can know about the installation paths within LLVM.
20671
20672 cat >>confdefs.h <<_ACEOF
20673 #define LLVM_PREFIX "$LLVM_PREFIX"
20674 _ACEOF
20675
20676
20677 cat >>confdefs.h <<_ACEOF
20678 #define LLVM_BINDIR "$LLVM_BINDIR"
20679 _ACEOF
20680
20681
20682 cat >>confdefs.h <<_ACEOF
20683 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20684 _ACEOF
20685
20686
20687 cat >>confdefs.h <<_ACEOF
20688 #define LLVM_DATADIR "$LLVM_DATADIR"
20689 _ACEOF
20690
20691
20692 cat >>confdefs.h <<_ACEOF
20693 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20694 _ACEOF
20695
20696
20697 cat >>confdefs.h <<_ACEOF
20698 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20699 _ACEOF
20700
20701
20702 cat >>confdefs.h <<_ACEOF
20703 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20704 _ACEOF
20705
20706
20707 cat >>confdefs.h <<_ACEOF
20708 #define LLVM_INFODIR "$LLVM_INFODIR"
20709 _ACEOF
20710
20711
20712 cat >>confdefs.h <<_ACEOF
20713 #define LLVM_MANDIR "$LLVM_MANDIR"
20714 _ACEOF
20715
20716
20717 cat >>confdefs.h <<_ACEOF
20718 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20719 _ACEOF
20720
20721
20722 cat >>confdefs.h <<_ACEOF
20723 #define LLVM_HOSTTRIPLE "$host"
20724 _ACEOF
20725
20726
20727 # Determine which bindings to build.
20728 if test "$BINDINGS_TO_BUILD" = auto ; then
20729   BINDINGS_TO_BUILD=""
20730   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20731     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20732   fi
20733 fi
20734 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20735
20736
20737 # This isn't really configurey, but it avoids having to repeat the list in
20738 # other files.
20739 ALL_BINDINGS=ocaml
20740
20741
20742 # Do any work necessary to ensure that bindings have what they need.
20743 binding_prereqs_failed=0
20744 for a_binding in $BINDINGS_TO_BUILD ; do
20745   case "$a_binding" in
20746   ocaml)
20747     if test "x$OCAMLC" = x ; then
20748       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20749 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20750       binding_prereqs_failed=1
20751     fi
20752     if test "x$OCAMLDEP" = x ; then
20753       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20754 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20755       binding_prereqs_failed=1
20756     fi
20757     if test "x$OCAMLOPT" = x ; then
20758       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20759 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20760           fi
20761     if test "x$with_ocaml_libdir" != xauto ; then
20762       OCAML_LIBDIR=$with_ocaml_libdir
20763
20764     else
20765       ocaml_stdlib="`"$OCAMLC" -where`"
20766       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20767       then
20768         # ocaml stdlib is beneath our prefix; use stdlib
20769         OCAML_LIBDIR=$ocaml_stdlib
20770
20771       else
20772         # ocaml stdlib is outside our prefix; use libdir/ocaml
20773         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20774
20775       fi
20776     fi
20777     ;;
20778   esac
20779 done
20780 if test "$binding_prereqs_failed" = 1 ; then
20781   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20782 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20783    { (exit 1); exit 1; }; }
20784 fi
20785
20786 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20787 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20788 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20789   echo $ECHO_N "(cached) $ECHO_C" >&6
20790 else
20791    ac_ext=cpp
20792 ac_cpp='$CXXCPP $CPPFLAGS'
20793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20796
20797   oldcxxflags="$CXXFLAGS"
20798   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20799   cat >conftest.$ac_ext <<_ACEOF
20800 /* confdefs.h.  */
20801 _ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h.  */
20805
20806 int
20807 main ()
20808 {
20809
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext
20815 if { (ac_try="$ac_compile"
20816 case "(($ac_try" in
20817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818   *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821   (eval "$ac_compile") 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } &&
20828          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20829   { (case "(($ac_try" in
20830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831   *) ac_try_echo=$ac_try;;
20832 esac
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834   (eval "$ac_try") 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; } &&
20838          { ac_try='test -s conftest.$ac_objext'
20839   { (case "(($ac_try" in
20840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841   *) ac_try_echo=$ac_try;;
20842 esac
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844   (eval "$ac_try") 2>&5
20845   ac_status=$?
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); }; }; then
20848   llvm_cv_cxx_visibility_inlines_hidden=yes
20849 else
20850   echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20852
20853         llvm_cv_cxx_visibility_inlines_hidden=no
20854 fi
20855
20856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857   CXXFLAGS="$oldcxxflags"
20858   ac_ext=c
20859 ac_cpp='$CPP $CPPFLAGS'
20860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863
20864
20865 fi
20866 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20867 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20868 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20869   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20870
20871 else
20872   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20873
20874 fi
20875
20876
20877 if test "$llvm_cv_link_use_r" = "yes" ; then
20878   RPATH="-Wl,-R"
20879 else
20880   RPATH="-Wl,-rpath"
20881 fi
20882
20883
20884 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20885   RDYNAMIC="-Wl,-export-dynamic"
20886 else
20887   RDYNAMIC=""
20888 fi
20889
20890
20891
20892 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20893
20894
20895
20896
20897
20898
20899 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20900
20901 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20902
20903 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20904
20905 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20906
20907 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20908
20909
20910 ac_config_files="$ac_config_files Makefile.config"
20911
20912
20913 ac_config_files="$ac_config_files llvm.spec"
20914
20915
20916 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20917
20918
20919 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20920
20921
20922 ac_config_commands="$ac_config_commands setup"
20923
20924 ac_config_commands="$ac_config_commands Makefile"
20925
20926
20927 ac_config_commands="$ac_config_commands Makefile.common"
20928
20929
20930 ac_config_commands="$ac_config_commands examples/Makefile"
20931
20932
20933 ac_config_commands="$ac_config_commands lib/Makefile"
20934
20935
20936 ac_config_commands="$ac_config_commands runtime/Makefile"
20937
20938
20939 ac_config_commands="$ac_config_commands test/Makefile"
20940
20941
20942 ac_config_commands="$ac_config_commands test/Makefile.tests"
20943
20944
20945 ac_config_commands="$ac_config_commands unittests/Makefile"
20946
20947
20948 ac_config_commands="$ac_config_commands tools/Makefile"
20949
20950
20951 ac_config_commands="$ac_config_commands utils/Makefile"
20952
20953
20954 ac_config_commands="$ac_config_commands projects/Makefile"
20955
20956
20957 ac_config_commands="$ac_config_commands bindings/Makefile"
20958
20959
20960 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20961
20962
20963
20964 cat >confcache <<\_ACEOF
20965 # This file is a shell script that caches the results of configure
20966 # tests run on this system so they can be shared between configure
20967 # scripts and configure runs, see configure's option --config-cache.
20968 # It is not useful on other systems.  If it contains results you don't
20969 # want to keep, you may remove or edit it.
20970 #
20971 # config.status only pays attention to the cache file if you give it
20972 # the --recheck option to rerun configure.
20973 #
20974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20976 # following values.
20977
20978 _ACEOF
20979
20980 # The following way of writing the cache mishandles newlines in values,
20981 # but we know of no workaround that is simple, portable, and efficient.
20982 # So, we kill variables containing newlines.
20983 # Ultrix sh set writes to stderr and can't be redirected directly,
20984 # and sets the high bit in the cache file unless we assign to the vars.
20985 (
20986   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20987     eval ac_val=\$$ac_var
20988     case $ac_val in #(
20989     *${as_nl}*)
20990       case $ac_var in #(
20991       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20992 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20993       esac
20994       case $ac_var in #(
20995       _ | IFS | as_nl) ;; #(
20996       *) $as_unset $ac_var ;;
20997       esac ;;
20998     esac
20999   done
21000
21001   (set) 2>&1 |
21002     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21003     *${as_nl}ac_space=\ *)
21004       # `set' does not quote correctly, so add quotes (double-quote
21005       # substitution turns \\\\ into \\, and sed turns \\ into \).
21006       sed -n \
21007         "s/'/'\\\\''/g;
21008           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21009       ;; #(
21010     *)
21011       # `set' quotes correctly as required by POSIX, so do not add quotes.
21012       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21013       ;;
21014     esac |
21015     sort
21016 ) |
21017   sed '
21018      /^ac_cv_env_/b end
21019      t clear
21020      :clear
21021      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21022      t end
21023      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21024      :end' >>confcache
21025 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21026   if test -w "$cache_file"; then
21027     test "x$cache_file" != "x/dev/null" &&
21028       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21029 echo "$as_me: updating cache $cache_file" >&6;}
21030     cat confcache >$cache_file
21031   else
21032     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21033 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21034   fi
21035 fi
21036 rm -f confcache
21037
21038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21039 # Let make expand exec_prefix.
21040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21041
21042 DEFS=-DHAVE_CONFIG_H
21043
21044 ac_libobjs=
21045 ac_ltlibobjs=
21046 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21047   # 1. Remove the extension, and $U if already installed.
21048   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21049   ac_i=`echo "$ac_i" | sed "$ac_script"`
21050   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21051   #    will be set to the directory where LIBOBJS objects are built.
21052   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21053   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21054 done
21055 LIBOBJS=$ac_libobjs
21056
21057 LTLIBOBJS=$ac_ltlibobjs
21058
21059
21060 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21061   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21062 Usually this means the macro was only invoked conditionally." >&5
21063 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21064 Usually this means the macro was only invoked conditionally." >&2;}
21065    { (exit 1); exit 1; }; }
21066 fi
21067 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21068   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21069 Usually this means the macro was only invoked conditionally." >&5
21070 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21071 Usually this means the macro was only invoked conditionally." >&2;}
21072    { (exit 1); exit 1; }; }
21073 fi
21074
21075 : ${CONFIG_STATUS=./config.status}
21076 ac_clean_files_save=$ac_clean_files
21077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21078 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21079 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21080 cat >$CONFIG_STATUS <<_ACEOF
21081 #! $SHELL
21082 # Generated by $as_me.
21083 # Run this file to recreate the current configuration.
21084 # Compiler output produced by configure, useful for debugging
21085 # configure, is in config.log if it exists.
21086
21087 debug=false
21088 ac_cs_recheck=false
21089 ac_cs_silent=false
21090 SHELL=\${CONFIG_SHELL-$SHELL}
21091 _ACEOF
21092
21093 cat >>$CONFIG_STATUS <<\_ACEOF
21094 ## --------------------- ##
21095 ## M4sh Initialization.  ##
21096 ## --------------------- ##
21097
21098 # Be Bourne compatible
21099 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21100   emulate sh
21101   NULLCMD=:
21102   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21103   # is contrary to our usage.  Disable this feature.
21104   alias -g '${1+"$@"}'='"$@"'
21105   setopt NO_GLOB_SUBST
21106 else
21107   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21108 fi
21109 BIN_SH=xpg4; export BIN_SH # for Tru64
21110 DUALCASE=1; export DUALCASE # for MKS sh
21111
21112
21113 # PATH needs CR
21114 # Avoid depending upon Character Ranges.
21115 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21116 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21117 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21118 as_cr_digits='0123456789'
21119 as_cr_alnum=$as_cr_Letters$as_cr_digits
21120
21121 # The user is always right.
21122 if test "${PATH_SEPARATOR+set}" != set; then
21123   echo "#! /bin/sh" >conf$$.sh
21124   echo  "exit 0"   >>conf$$.sh
21125   chmod +x conf$$.sh
21126   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21127     PATH_SEPARATOR=';'
21128   else
21129     PATH_SEPARATOR=:
21130   fi
21131   rm -f conf$$.sh
21132 fi
21133
21134 # Support unset when possible.
21135 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21136   as_unset=unset
21137 else
21138   as_unset=false
21139 fi
21140
21141
21142 # IFS
21143 # We need space, tab and new line, in precisely that order.  Quoting is
21144 # there to prevent editors from complaining about space-tab.
21145 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21146 # splitting by setting IFS to empty value.)
21147 as_nl='
21148 '
21149 IFS=" ""        $as_nl"
21150
21151 # Find who we are.  Look in the path if we contain no directory separator.
21152 case $0 in
21153   *[\\/]* ) as_myself=$0 ;;
21154   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21155 for as_dir in $PATH
21156 do
21157   IFS=$as_save_IFS
21158   test -z "$as_dir" && as_dir=.
21159   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21160 done
21161 IFS=$as_save_IFS
21162
21163      ;;
21164 esac
21165 # We did not find ourselves, most probably we were run as `sh COMMAND'
21166 # in which case we are not to be found in the path.
21167 if test "x$as_myself" = x; then
21168   as_myself=$0
21169 fi
21170 if test ! -f "$as_myself"; then
21171   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21172   { (exit 1); exit 1; }
21173 fi
21174
21175 # Work around bugs in pre-3.0 UWIN ksh.
21176 for as_var in ENV MAIL MAILPATH
21177 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21178 done
21179 PS1='$ '
21180 PS2='> '
21181 PS4='+ '
21182
21183 # NLS nuisances.
21184 for as_var in \
21185   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21186   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21187   LC_TELEPHONE LC_TIME
21188 do
21189   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21190     eval $as_var=C; export $as_var
21191   else
21192     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21193   fi
21194 done
21195
21196 # Required to use basename.
21197 if expr a : '\(a\)' >/dev/null 2>&1 &&
21198    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21199   as_expr=expr
21200 else
21201   as_expr=false
21202 fi
21203
21204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21205   as_basename=basename
21206 else
21207   as_basename=false
21208 fi
21209
21210
21211 # Name of the executable.
21212 as_me=`$as_basename -- "$0" ||
21213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21214          X"$0" : 'X\(//\)$' \| \
21215          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21216 echo X/"$0" |
21217     sed '/^.*\/\([^/][^/]*\)\/*$/{
21218             s//\1/
21219             q
21220           }
21221           /^X\/\(\/\/\)$/{
21222             s//\1/
21223             q
21224           }
21225           /^X\/\(\/\).*/{
21226             s//\1/
21227             q
21228           }
21229           s/.*/./; q'`
21230
21231 # CDPATH.
21232 $as_unset CDPATH
21233
21234
21235
21236   as_lineno_1=$LINENO
21237   as_lineno_2=$LINENO
21238   test "x$as_lineno_1" != "x$as_lineno_2" &&
21239   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21240
21241   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21242   # uniformly replaced by the line number.  The first 'sed' inserts a
21243   # line-number line after each line using $LINENO; the second 'sed'
21244   # does the real work.  The second script uses 'N' to pair each
21245   # line-number line with the line containing $LINENO, and appends
21246   # trailing '-' during substitution so that $LINENO is not a special
21247   # case at line end.
21248   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21249   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21250   # E. McMahon (1931-1989) for sed's syntax.  :-)
21251   sed -n '
21252     p
21253     /[$]LINENO/=
21254   ' <$as_myself |
21255     sed '
21256       s/[$]LINENO.*/&-/
21257       t lineno
21258       b
21259       :lineno
21260       N
21261       :loop
21262       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21263       t loop
21264       s/-\n.*//
21265     ' >$as_me.lineno &&
21266   chmod +x "$as_me.lineno" ||
21267     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21268    { (exit 1); exit 1; }; }
21269
21270   # Don't try to exec as it changes $[0], causing all sort of problems
21271   # (the dirname of $[0] is not the place where we might find the
21272   # original and so on.  Autoconf is especially sensitive to this).
21273   . "./$as_me.lineno"
21274   # Exit status is that of the last command.
21275   exit
21276 }
21277
21278
21279 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21280   as_dirname=dirname
21281 else
21282   as_dirname=false
21283 fi
21284
21285 ECHO_C= ECHO_N= ECHO_T=
21286 case `echo -n x` in
21287 -n*)
21288   case `echo 'x\c'` in
21289   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21290   *)   ECHO_C='\c';;
21291   esac;;
21292 *)
21293   ECHO_N='-n';;
21294 esac
21295
21296 if expr a : '\(a\)' >/dev/null 2>&1 &&
21297    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21298   as_expr=expr
21299 else
21300   as_expr=false
21301 fi
21302
21303 rm -f conf$$ conf$$.exe conf$$.file
21304 if test -d conf$$.dir; then
21305   rm -f conf$$.dir/conf$$.file
21306 else
21307   rm -f conf$$.dir
21308   mkdir conf$$.dir
21309 fi
21310 echo >conf$$.file
21311 if ln -s conf$$.file conf$$ 2>/dev/null; then
21312   as_ln_s='ln -s'
21313   # ... but there are two gotchas:
21314   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21315   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21316   # In both cases, we have to default to `cp -p'.
21317   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21318     as_ln_s='cp -p'
21319 elif ln conf$$.file conf$$ 2>/dev/null; then
21320   as_ln_s=ln
21321 else
21322   as_ln_s='cp -p'
21323 fi
21324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21325 rmdir conf$$.dir 2>/dev/null
21326
21327 if mkdir -p . 2>/dev/null; then
21328   as_mkdir_p=:
21329 else
21330   test -d ./-p && rmdir ./-p
21331   as_mkdir_p=false
21332 fi
21333
21334 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21335 # systems may use methods other than mode bits to determine executability.
21336 cat >conf$$.file <<_ASEOF
21337 #! /bin/sh
21338 exit 0
21339 _ASEOF
21340 chmod +x conf$$.file
21341 if test -x conf$$.file >/dev/null 2>&1; then
21342   as_executable_p="test -x"
21343 else
21344   as_executable_p=:
21345 fi
21346 rm -f conf$$.file
21347
21348 # Sed expression to map a string onto a valid CPP name.
21349 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21350
21351 # Sed expression to map a string onto a valid variable name.
21352 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21353
21354
21355 exec 6>&1
21356
21357 # Save the log message, to keep $[0] and so on meaningful, and to
21358 # report actual input values of CONFIG_FILES etc. instead of their
21359 # values after options handling.
21360 ac_log="
21361 This file was extended by llvm $as_me 2.9svn, which was
21362 generated by GNU Autoconf 2.60.  Invocation command line was
21363
21364   CONFIG_FILES    = $CONFIG_FILES
21365   CONFIG_HEADERS  = $CONFIG_HEADERS
21366   CONFIG_LINKS    = $CONFIG_LINKS
21367   CONFIG_COMMANDS = $CONFIG_COMMANDS
21368   $ $0 $@
21369
21370 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21371 "
21372
21373 _ACEOF
21374
21375 cat >>$CONFIG_STATUS <<_ACEOF
21376 # Files that config.status was made for.
21377 config_files="$ac_config_files"
21378 config_headers="$ac_config_headers"
21379 config_commands="$ac_config_commands"
21380
21381 _ACEOF
21382
21383 cat >>$CONFIG_STATUS <<\_ACEOF
21384 ac_cs_usage="\
21385 \`$as_me' instantiates files from templates according to the
21386 current configuration.
21387
21388 Usage: $0 [OPTIONS] [FILE]...
21389
21390   -h, --help       print this help, then exit
21391   -V, --version    print version number, then exit
21392   -q, --quiet      do not print progress messages
21393   -d, --debug      don't remove temporary files
21394       --recheck    update $as_me by reconfiguring in the same conditions
21395   --file=FILE[:TEMPLATE]
21396                    instantiate the configuration file FILE
21397   --header=FILE[:TEMPLATE]
21398                    instantiate the configuration header FILE
21399
21400 Configuration files:
21401 $config_files
21402
21403 Configuration headers:
21404 $config_headers
21405
21406 Configuration commands:
21407 $config_commands
21408
21409 Report bugs to <bug-autoconf@gnu.org>."
21410
21411 _ACEOF
21412 cat >>$CONFIG_STATUS <<_ACEOF
21413 ac_cs_version="\\
21414 llvm config.status 2.9svn
21415 configured by $0, generated by GNU Autoconf 2.60,
21416   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21417
21418 Copyright (C) 2006 Free Software Foundation, Inc.
21419 This config.status script is free software; the Free Software Foundation
21420 gives unlimited permission to copy, distribute and modify it."
21421
21422 ac_pwd='$ac_pwd'
21423 srcdir='$srcdir'
21424 INSTALL='$INSTALL'
21425 _ACEOF
21426
21427 cat >>$CONFIG_STATUS <<\_ACEOF
21428 # If no file are specified by the user, then we need to provide default
21429 # value.  By we need to know if files were specified by the user.
21430 ac_need_defaults=:
21431 while test $# != 0
21432 do
21433   case $1 in
21434   --*=*)
21435     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21436     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21437     ac_shift=:
21438     ;;
21439   *)
21440     ac_option=$1
21441     ac_optarg=$2
21442     ac_shift=shift
21443     ;;
21444   esac
21445
21446   case $ac_option in
21447   # Handling of the options.
21448   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21449     ac_cs_recheck=: ;;
21450   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21451     echo "$ac_cs_version"; exit ;;
21452   --debug | --debu | --deb | --de | --d | -d )
21453     debug=: ;;
21454   --file | --fil | --fi | --f )
21455     $ac_shift
21456     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21457     ac_need_defaults=false;;
21458   --header | --heade | --head | --hea )
21459     $ac_shift
21460     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21461     ac_need_defaults=false;;
21462   --he | --h)
21463     # Conflict between --help and --header
21464     { echo "$as_me: error: ambiguous option: $1
21465 Try \`$0 --help' for more information." >&2
21466    { (exit 1); exit 1; }; };;
21467   --help | --hel | -h )
21468     echo "$ac_cs_usage"; exit ;;
21469   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21470   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21471     ac_cs_silent=: ;;
21472
21473   # This is an error.
21474   -*) { echo "$as_me: error: unrecognized option: $1
21475 Try \`$0 --help' for more information." >&2
21476    { (exit 1); exit 1; }; } ;;
21477
21478   *) ac_config_targets="$ac_config_targets $1"
21479      ac_need_defaults=false ;;
21480
21481   esac
21482   shift
21483 done
21484
21485 ac_configure_extra_args=
21486
21487 if $ac_cs_silent; then
21488   exec 6>/dev/null
21489   ac_configure_extra_args="$ac_configure_extra_args --silent"
21490 fi
21491
21492 _ACEOF
21493 cat >>$CONFIG_STATUS <<_ACEOF
21494 if \$ac_cs_recheck; then
21495   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21496   CONFIG_SHELL=$SHELL
21497   export CONFIG_SHELL
21498   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21499 fi
21500
21501 _ACEOF
21502 cat >>$CONFIG_STATUS <<\_ACEOF
21503 exec 5>>config.log
21504 {
21505   echo
21506   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21507 ## Running $as_me. ##
21508 _ASBOX
21509   echo "$ac_log"
21510 } >&5
21511
21512 _ACEOF
21513 cat >>$CONFIG_STATUS <<_ACEOF
21514 #
21515 # INIT-COMMANDS
21516 #
21517 llvm_src="${srcdir}"
21518
21519 _ACEOF
21520
21521 cat >>$CONFIG_STATUS <<\_ACEOF
21522
21523 # Handling of arguments.
21524 for ac_config_target in $ac_config_targets
21525 do
21526   case $ac_config_target in
21527     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21528     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21529     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21530     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21531     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21532     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21533     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21534     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21535     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21536     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21537     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21538     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21539     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21540     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21541     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21542     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21543     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21544     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21545     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21546     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21547     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21548     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21549     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21550     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21551     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21552
21553   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21554 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21555    { (exit 1); exit 1; }; };;
21556   esac
21557 done
21558
21559
21560 # If the user did not use the arguments to specify the items to instantiate,
21561 # then the envvar interface is used.  Set only those that are not.
21562 # We use the long form for the default assignment because of an extremely
21563 # bizarre bug on SunOS 4.1.3.
21564 if $ac_need_defaults; then
21565   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21566   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21567   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21568 fi
21569
21570 # Have a temporary directory for convenience.  Make it in the build tree
21571 # simply because there is no reason against having it here, and in addition,
21572 # creating and moving files from /tmp can sometimes cause problems.
21573 # Hook for its removal unless debugging.
21574 # Note that there is a small window in which the directory will not be cleaned:
21575 # after its creation but before its name has been assigned to `$tmp'.
21576 $debug ||
21577 {
21578   tmp=
21579   trap 'exit_status=$?
21580   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21581 ' 0
21582   trap '{ (exit 1); exit 1; }' 1 2 13 15
21583 }
21584 # Create a (secure) tmp directory for tmp files.
21585
21586 {
21587   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21588   test -n "$tmp" && test -d "$tmp"
21589 }  ||
21590 {
21591   tmp=./conf$$-$RANDOM
21592   (umask 077 && mkdir "$tmp")
21593 } ||
21594 {
21595    echo "$me: cannot create a temporary directory in ." >&2
21596    { (exit 1); exit 1; }
21597 }
21598
21599 #
21600 # Set up the sed scripts for CONFIG_FILES section.
21601 #
21602
21603 # No need to generate the scripts if there are no CONFIG_FILES.
21604 # This happens for instance when ./config.status config.h
21605 if test -n "$CONFIG_FILES"; then
21606
21607 _ACEOF
21608
21609
21610
21611 ac_delim='%!_!# '
21612 for ac_last_try in false false false false false :; do
21613   cat >conf$$subs.sed <<_ACEOF
21614 SHELL!$SHELL$ac_delim
21615 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21616 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21617 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21618 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21619 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21620 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21621 exec_prefix!$exec_prefix$ac_delim
21622 prefix!$prefix$ac_delim
21623 program_transform_name!$program_transform_name$ac_delim
21624 bindir!$bindir$ac_delim
21625 sbindir!$sbindir$ac_delim
21626 libexecdir!$libexecdir$ac_delim
21627 datarootdir!$datarootdir$ac_delim
21628 datadir!$datadir$ac_delim
21629 sysconfdir!$sysconfdir$ac_delim
21630 sharedstatedir!$sharedstatedir$ac_delim
21631 localstatedir!$localstatedir$ac_delim
21632 includedir!$includedir$ac_delim
21633 oldincludedir!$oldincludedir$ac_delim
21634 docdir!$docdir$ac_delim
21635 infodir!$infodir$ac_delim
21636 htmldir!$htmldir$ac_delim
21637 dvidir!$dvidir$ac_delim
21638 pdfdir!$pdfdir$ac_delim
21639 psdir!$psdir$ac_delim
21640 libdir!$libdir$ac_delim
21641 localedir!$localedir$ac_delim
21642 mandir!$mandir$ac_delim
21643 DEFS!$DEFS$ac_delim
21644 ECHO_C!$ECHO_C$ac_delim
21645 ECHO_N!$ECHO_N$ac_delim
21646 ECHO_T!$ECHO_T$ac_delim
21647 LIBS!$LIBS$ac_delim
21648 build_alias!$build_alias$ac_delim
21649 host_alias!$host_alias$ac_delim
21650 target_alias!$target_alias$ac_delim
21651 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21652 subdirs!$subdirs$ac_delim
21653 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21654 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21655 build!$build$ac_delim
21656 build_cpu!$build_cpu$ac_delim
21657 build_vendor!$build_vendor$ac_delim
21658 build_os!$build_os$ac_delim
21659 host!$host$ac_delim
21660 host_cpu!$host_cpu$ac_delim
21661 host_vendor!$host_vendor$ac_delim
21662 host_os!$host_os$ac_delim
21663 target!$target$ac_delim
21664 target_cpu!$target_cpu$ac_delim
21665 target_vendor!$target_vendor$ac_delim
21666 target_os!$target_os$ac_delim
21667 OS!$OS$ac_delim
21668 HOST_OS!$HOST_OS$ac_delim
21669 TARGET_OS!$TARGET_OS$ac_delim
21670 LINKALL!$LINKALL$ac_delim
21671 NOLINKALL!$NOLINKALL$ac_delim
21672 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21673 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21674 ARCH!$ARCH$ac_delim
21675 ENDIAN!$ENDIAN$ac_delim
21676 CC!$CC$ac_delim
21677 CFLAGS!$CFLAGS$ac_delim
21678 LDFLAGS!$LDFLAGS$ac_delim
21679 CPPFLAGS!$CPPFLAGS$ac_delim
21680 ac_ct_CC!$ac_ct_CC$ac_delim
21681 EXEEXT!$EXEEXT$ac_delim
21682 OBJEXT!$OBJEXT$ac_delim
21683 CPP!$CPP$ac_delim
21684 GREP!$GREP$ac_delim
21685 EGREP!$EGREP$ac_delim
21686 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21687 BUILD_CC!$BUILD_CC$ac_delim
21688 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21689 BUILD_CXX!$BUILD_CXX$ac_delim
21690 CVSBUILD!$CVSBUILD$ac_delim
21691 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21692 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21693 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21694 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21695 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21696 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21697 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21698 JIT!$JIT$ac_delim
21699 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21700 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21701 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21702 ENABLE_PIC!$ENABLE_PIC$ac_delim
21703 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21704 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21705 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21706 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21707 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21708 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21709 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21710 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21711 _ACEOF
21712
21713   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21714     break
21715   elif $ac_last_try; then
21716     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21717 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21718    { (exit 1); exit 1; }; }
21719   else
21720     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21721   fi
21722 done
21723
21724 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21725 if test -n "$ac_eof"; then
21726   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21727   ac_eof=`expr $ac_eof + 1`
21728 fi
21729
21730 cat >>$CONFIG_STATUS <<_ACEOF
21731 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21732 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21733 _ACEOF
21734 sed '
21735 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21736 s/^/s,@/; s/!/@,|#_!!_#|/
21737 :n
21738 t n
21739 s/'"$ac_delim"'$/,g/; t
21740 s/$/\\/; p
21741 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21742 ' >>$CONFIG_STATUS <conf$$subs.sed
21743 rm -f conf$$subs.sed
21744 cat >>$CONFIG_STATUS <<_ACEOF
21745 CEOF$ac_eof
21746 _ACEOF
21747
21748
21749 ac_delim='%!_!# '
21750 for ac_last_try in false false false false false :; do
21751   cat >conf$$subs.sed <<_ACEOF
21752 CLANGPATH!$CLANGPATH$ac_delim
21753 CLANGXXPATH!$CLANGXXPATH$ac_delim
21754 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21755 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21756 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21757 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21758 CXX!$CXX$ac_delim
21759 CXXFLAGS!$CXXFLAGS$ac_delim
21760 ac_ct_CXX!$ac_ct_CXX$ac_delim
21761 NM!$NM$ac_delim
21762 ifGNUmake!$ifGNUmake$ac_delim
21763 LN_S!$LN_S$ac_delim
21764 CMP!$CMP$ac_delim
21765 CP!$CP$ac_delim
21766 DATE!$DATE$ac_delim
21767 FIND!$FIND$ac_delim
21768 MKDIR!$MKDIR$ac_delim
21769 MV!$MV$ac_delim
21770 RANLIB!$RANLIB$ac_delim
21771 AR!$AR$ac_delim
21772 RM!$RM$ac_delim
21773 SED!$SED$ac_delim
21774 TAR!$TAR$ac_delim
21775 BINPWD!$BINPWD$ac_delim
21776 GRAPHVIZ!$GRAPHVIZ$ac_delim
21777 DOT!$DOT$ac_delim
21778 FDP!$FDP$ac_delim
21779 NEATO!$NEATO$ac_delim
21780 TWOPI!$TWOPI$ac_delim
21781 CIRCO!$CIRCO$ac_delim
21782 GV!$GV$ac_delim
21783 DOTTY!$DOTTY$ac_delim
21784 XDOT_PY!$XDOT_PY$ac_delim
21785 PERL!$PERL$ac_delim
21786 HAVE_PERL!$HAVE_PERL$ac_delim
21787 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21788 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21789 INSTALL_DATA!$INSTALL_DATA$ac_delim
21790 BZIP2!$BZIP2$ac_delim
21791 CAT!$CAT$ac_delim
21792 DOXYGEN!$DOXYGEN$ac_delim
21793 GROFF!$GROFF$ac_delim
21794 GZIP!$GZIP$ac_delim
21795 POD2HTML!$POD2HTML$ac_delim
21796 POD2MAN!$POD2MAN$ac_delim
21797 PDFROFF!$PDFROFF$ac_delim
21798 RUNTEST!$RUNTEST$ac_delim
21799 TCLSH!$TCLSH$ac_delim
21800 ZIP!$ZIP$ac_delim
21801 OCAMLC!$OCAMLC$ac_delim
21802 OCAMLOPT!$OCAMLOPT$ac_delim
21803 OCAMLDEP!$OCAMLDEP$ac_delim
21804 OCAMLDOC!$OCAMLDOC$ac_delim
21805 GAS!$GAS$ac_delim
21806 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21807 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21808 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21809 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21810 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21811 LIBADD_DL!$LIBADD_DL$ac_delim
21812 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21813 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21814 LLVMGCC!$LLVMGCC$ac_delim
21815 LLVMGXX!$LLVMGXX$ac_delim
21816 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21817 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21818 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21819 USE_UDIS86!$USE_UDIS86$ac_delim
21820 USE_OPROFILE!$USE_OPROFILE$ac_delim
21821 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21822 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21823 MMAP_FILE!$MMAP_FILE$ac_delim
21824 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
21825 LLVMCC1!$LLVMCC1$ac_delim
21826 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21827 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21828 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21829 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21830 LLVMGCC_DISABLEOPT_FLAGS!$LLVMGCC_DISABLEOPT_FLAGS$ac_delim
21831 SHLIBEXT!$SHLIBEXT$ac_delim
21832 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21833 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21834 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21835 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21836 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21837 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21838 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21839 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21840 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21841 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21842 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21843 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21844 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21845 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21846 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21847 RPATH!$RPATH$ac_delim
21848 RDYNAMIC!$RDYNAMIC$ac_delim
21849 _ACEOF
21850
21851   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21852     break
21853   elif $ac_last_try; then
21854     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21855 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21856    { (exit 1); exit 1; }; }
21857   else
21858     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21859   fi
21860 done
21861
21862 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21863 if test -n "$ac_eof"; then
21864   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21865   ac_eof=`expr $ac_eof + 1`
21866 fi
21867
21868 cat >>$CONFIG_STATUS <<_ACEOF
21869 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21871 _ACEOF
21872 sed '
21873 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21874 s/^/s,@/; s/!/@,|#_!!_#|/
21875 :n
21876 t n
21877 s/'"$ac_delim"'$/,g/; t
21878 s/$/\\/; p
21879 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21880 ' >>$CONFIG_STATUS <conf$$subs.sed
21881 rm -f conf$$subs.sed
21882 cat >>$CONFIG_STATUS <<_ACEOF
21883 CEOF$ac_eof
21884 _ACEOF
21885
21886
21887 ac_delim='%!_!# '
21888 for ac_last_try in false false false false false :; do
21889   cat >conf$$subs.sed <<_ACEOF
21890 LIBOBJS!$LIBOBJS$ac_delim
21891 LTLIBOBJS!$LTLIBOBJS$ac_delim
21892 _ACEOF
21893
21894   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
21895     break
21896   elif $ac_last_try; then
21897     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21898 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21899    { (exit 1); exit 1; }; }
21900   else
21901     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21902   fi
21903 done
21904
21905 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21906 if test -n "$ac_eof"; then
21907   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21908   ac_eof=`expr $ac_eof + 1`
21909 fi
21910
21911 cat >>$CONFIG_STATUS <<_ACEOF
21912 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
21913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21914 _ACEOF
21915 sed '
21916 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21917 s/^/s,@/; s/!/@,|#_!!_#|/
21918 :n
21919 t n
21920 s/'"$ac_delim"'$/,g/; t
21921 s/$/\\/; p
21922 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21923 ' >>$CONFIG_STATUS <conf$$subs.sed
21924 rm -f conf$$subs.sed
21925 cat >>$CONFIG_STATUS <<_ACEOF
21926 :end
21927 s/|#_!!_#|//g
21928 CEOF$ac_eof
21929 _ACEOF
21930
21931
21932 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21933 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21934 # trailing colons and then remove the whole line if VPATH becomes empty
21935 # (actually we leave an empty line to preserve line numbers).
21936 if test "x$srcdir" = x.; then
21937   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21938 s/:*\$(srcdir):*/:/
21939 s/:*\${srcdir}:*/:/
21940 s/:*@srcdir@:*/:/
21941 s/^\([^=]*=[     ]*\):*/\1/
21942 s/:*$//
21943 s/^[^=]*=[       ]*$//
21944 }'
21945 fi
21946
21947 cat >>$CONFIG_STATUS <<\_ACEOF
21948 fi # test -n "$CONFIG_FILES"
21949
21950
21951 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21952 do
21953   case $ac_tag in
21954   :[FHLC]) ac_mode=$ac_tag; continue;;
21955   esac
21956   case $ac_mode$ac_tag in
21957   :[FHL]*:*);;
21958   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21959 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21960    { (exit 1); exit 1; }; };;
21961   :[FH]-) ac_tag=-:-;;
21962   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21963   esac
21964   ac_save_IFS=$IFS
21965   IFS=:
21966   set x $ac_tag
21967   IFS=$ac_save_IFS
21968   shift
21969   ac_file=$1
21970   shift
21971
21972   case $ac_mode in
21973   :L) ac_source=$1;;
21974   :[FH])
21975     ac_file_inputs=
21976     for ac_f
21977     do
21978       case $ac_f in
21979       -) ac_f="$tmp/stdin";;
21980       *) # Look for the file first in the build tree, then in the source tree
21981          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21982          # because $ac_f cannot contain `:'.
21983          test -f "$ac_f" ||
21984            case $ac_f in
21985            [\\/$]*) false;;
21986            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21987            esac ||
21988            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21989 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21990    { (exit 1); exit 1; }; };;
21991       esac
21992       ac_file_inputs="$ac_file_inputs $ac_f"
21993     done
21994
21995     # Let's still pretend it is `configure' which instantiates (i.e., don't
21996     # use $as_me), people would be surprised to read:
21997     #    /* config.h.  Generated by config.status.  */
21998     configure_input="Generated from "`IFS=:
21999           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22000     if test x"$ac_file" != x-; then
22001       configure_input="$ac_file.  $configure_input"
22002       { echo "$as_me:$LINENO: creating $ac_file" >&5
22003 echo "$as_me: creating $ac_file" >&6;}
22004     fi
22005
22006     case $ac_tag in
22007     *:-:* | *:-) cat >"$tmp/stdin";;
22008     esac
22009     ;;
22010   esac
22011
22012   ac_dir=`$as_dirname -- "$ac_file" ||
22013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22014          X"$ac_file" : 'X\(//\)[^/]' \| \
22015          X"$ac_file" : 'X\(//\)$' \| \
22016          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22017 echo X"$ac_file" |
22018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22019             s//\1/
22020             q
22021           }
22022           /^X\(\/\/\)[^/].*/{
22023             s//\1/
22024             q
22025           }
22026           /^X\(\/\/\)$/{
22027             s//\1/
22028             q
22029           }
22030           /^X\(\/\).*/{
22031             s//\1/
22032             q
22033           }
22034           s/.*/./; q'`
22035   { as_dir="$ac_dir"
22036   case $as_dir in #(
22037   -*) as_dir=./$as_dir;;
22038   esac
22039   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22040     as_dirs=
22041     while :; do
22042       case $as_dir in #(
22043       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22044       *) as_qdir=$as_dir;;
22045       esac
22046       as_dirs="'$as_qdir' $as_dirs"
22047       as_dir=`$as_dirname -- "$as_dir" ||
22048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22049          X"$as_dir" : 'X\(//\)[^/]' \| \
22050          X"$as_dir" : 'X\(//\)$' \| \
22051          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22052 echo X"$as_dir" |
22053     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22054             s//\1/
22055             q
22056           }
22057           /^X\(\/\/\)[^/].*/{
22058             s//\1/
22059             q
22060           }
22061           /^X\(\/\/\)$/{
22062             s//\1/
22063             q
22064           }
22065           /^X\(\/\).*/{
22066             s//\1/
22067             q
22068           }
22069           s/.*/./; q'`
22070       test -d "$as_dir" && break
22071     done
22072     test -z "$as_dirs" || eval "mkdir $as_dirs"
22073   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22074 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22075    { (exit 1); exit 1; }; }; }
22076   ac_builddir=.
22077
22078 case "$ac_dir" in
22079 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22080 *)
22081   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22082   # A ".." for each directory in $ac_dir_suffix.
22083   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22084   case $ac_top_builddir_sub in
22085   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22086   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22087   esac ;;
22088 esac
22089 ac_abs_top_builddir=$ac_pwd
22090 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22091 # for backward compatibility:
22092 ac_top_builddir=$ac_top_build_prefix
22093
22094 case $srcdir in
22095   .)  # We are building in place.
22096     ac_srcdir=.
22097     ac_top_srcdir=$ac_top_builddir_sub
22098     ac_abs_top_srcdir=$ac_pwd ;;
22099   [\\/]* | ?:[\\/]* )  # Absolute name.
22100     ac_srcdir=$srcdir$ac_dir_suffix;
22101     ac_top_srcdir=$srcdir
22102     ac_abs_top_srcdir=$srcdir ;;
22103   *) # Relative name.
22104     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22105     ac_top_srcdir=$ac_top_build_prefix$srcdir
22106     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22107 esac
22108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22109
22110
22111   case $ac_mode in
22112   :F)
22113   #
22114   # CONFIG_FILE
22115   #
22116
22117   case $INSTALL in
22118   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22119   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22120   esac
22121 _ACEOF
22122
22123 cat >>$CONFIG_STATUS <<\_ACEOF
22124 # If the template does not know about datarootdir, expand it.
22125 # FIXME: This hack should be removed a few years after 2.60.
22126 ac_datarootdir_hack=; ac_datarootdir_seen=
22127
22128 case `sed -n '/datarootdir/ {
22129   p
22130   q
22131 }
22132 /@datadir@/p
22133 /@docdir@/p
22134 /@infodir@/p
22135 /@localedir@/p
22136 /@mandir@/p
22137 ' $ac_file_inputs` in
22138 *datarootdir*) ac_datarootdir_seen=yes;;
22139 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22140   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22141 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22142 _ACEOF
22143 cat >>$CONFIG_STATUS <<_ACEOF
22144   ac_datarootdir_hack='
22145   s&@datadir@&$datadir&g
22146   s&@docdir@&$docdir&g
22147   s&@infodir@&$infodir&g
22148   s&@localedir@&$localedir&g
22149   s&@mandir@&$mandir&g
22150     s&\\\${datarootdir}&$datarootdir&g' ;;
22151 esac
22152 _ACEOF
22153
22154 # Neutralize VPATH when `$srcdir' = `.'.
22155 # Shell code in configure.ac might set extrasub.
22156 # FIXME: do we really want to maintain this feature?
22157 cat >>$CONFIG_STATUS <<_ACEOF
22158   sed "$ac_vpsub
22159 $extrasub
22160 _ACEOF
22161 cat >>$CONFIG_STATUS <<\_ACEOF
22162 :t
22163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22164 s&@configure_input@&$configure_input&;t t
22165 s&@top_builddir@&$ac_top_builddir_sub&;t t
22166 s&@srcdir@&$ac_srcdir&;t t
22167 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22168 s&@top_srcdir@&$ac_top_srcdir&;t t
22169 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22170 s&@builddir@&$ac_builddir&;t t
22171 s&@abs_builddir@&$ac_abs_builddir&;t t
22172 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22173 s&@INSTALL@&$ac_INSTALL&;t t
22174 $ac_datarootdir_hack
22175 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22176
22177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22178   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22179   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22180   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22181 which seems to be undefined.  Please make sure it is defined." >&5
22182 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22183 which seems to be undefined.  Please make sure it is defined." >&2;}
22184
22185   rm -f "$tmp/stdin"
22186   case $ac_file in
22187   -) cat "$tmp/out"; rm -f "$tmp/out";;
22188   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22189   esac
22190  ;;
22191   :H)
22192   #
22193   # CONFIG_HEADER
22194   #
22195 _ACEOF
22196
22197 # Transform confdefs.h into a sed script `conftest.defines', that
22198 # substitutes the proper values into config.h.in to produce config.h.
22199 rm -f conftest.defines conftest.tail
22200 # First, append a space to every undef/define line, to ease matching.
22201 echo 's/$/ /' >conftest.defines
22202 # Then, protect against being on the right side of a sed subst, or in
22203 # an unquoted here document, in config.status.  If some macros were
22204 # called several times there might be several #defines for the same
22205 # symbol, which is useless.  But do not sort them, since the last
22206 # AC_DEFINE must be honored.
22207 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22208 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22209 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22210 # PARAMS is the parameter list in the macro definition--in most cases, it's
22211 # just an empty string.
22212 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22213 ac_dB='\\)[      (].*,\\1define\\2'
22214 ac_dC=' '
22215 ac_dD=' ,'
22216
22217 uniq confdefs.h |
22218   sed -n '
22219         t rset
22220         :rset
22221         s/^[     ]*#[    ]*define[       ][      ]*//
22222         t ok
22223         d
22224         :ok
22225         s/[\\&,]/\\&/g
22226         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22227         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22228   ' >>conftest.defines
22229
22230 # Remove the space that was appended to ease matching.
22231 # Then replace #undef with comments.  This is necessary, for
22232 # example, in the case of _POSIX_SOURCE, which is predefined and required
22233 # on some systems where configure will not decide to define it.
22234 # (The regexp can be short, since the line contains either #define or #undef.)
22235 echo 's/ $//
22236 s,^[     #]*u.*,/* & */,' >>conftest.defines
22237
22238 # Break up conftest.defines:
22239 ac_max_sed_lines=50
22240
22241 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22242 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22243 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22244 # et cetera.
22245 ac_in='$ac_file_inputs'
22246 ac_out='"$tmp/out1"'
22247 ac_nxt='"$tmp/out2"'
22248
22249 while :
22250 do
22251   # Write a here document:
22252     cat >>$CONFIG_STATUS <<_ACEOF
22253     # First, check the format of the line:
22254     cat >"\$tmp/defines.sed" <<\\CEOF
22255 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22256 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22257 b
22258 :def
22259 _ACEOF
22260   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22261   echo 'CEOF
22262     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22263   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22264   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22265   grep . conftest.tail >/dev/null || break
22266   rm -f conftest.defines
22267   mv conftest.tail conftest.defines
22268 done
22269 rm -f conftest.defines conftest.tail
22270
22271 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22273   if test x"$ac_file" != x-; then
22274     echo "/* $configure_input  */" >"$tmp/config.h"
22275     cat "$ac_result" >>"$tmp/config.h"
22276     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22277       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22278 echo "$as_me: $ac_file is unchanged" >&6;}
22279     else
22280       rm -f $ac_file
22281       mv "$tmp/config.h" $ac_file
22282     fi
22283   else
22284     echo "/* $configure_input  */"
22285     cat "$ac_result"
22286   fi
22287   rm -f "$tmp/out12"
22288  ;;
22289
22290   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22291 echo "$as_me: executing $ac_file commands" >&6;}
22292  ;;
22293   esac
22294
22295
22296   case $ac_file$ac_mode in
22297     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22298    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22299     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22300    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22301     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22302    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22303     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22304    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22305     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22306    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22307     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22308    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22309     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22310    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22311     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22312    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22313     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22314    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22315     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22316    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22317     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22318    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22319     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22320    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22321     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22322    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22323
22324   esac
22325 done # for ac_tag
22326
22327
22328 { (exit 0); exit 0; }
22329 _ACEOF
22330 chmod +x $CONFIG_STATUS
22331 ac_clean_files=$ac_clean_files_save
22332
22333
22334 # configure is writing to config.log, and then calls config.status.
22335 # config.status does its own redirection, appending to config.log.
22336 # Unfortunately, on DOS this fails, as config.log is still kept open
22337 # by configure, so config.status won't be able to write to it; its
22338 # output is simply discarded.  So we exec the FD to /dev/null,
22339 # effectively closing config.log, so it can be properly (re)opened and
22340 # appended to by config.status.  When coming back to configure, we
22341 # need to make the FD available again.
22342 if test "$no_create" != yes; then
22343   ac_cs_success=:
22344   ac_config_status_args=
22345   test "$silent" = yes &&
22346     ac_config_status_args="$ac_config_status_args --quiet"
22347   exec 5>/dev/null
22348   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22349   exec 5>>config.log
22350   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22351   # would make configure fail if this is the last instruction.
22352   $ac_cs_success || { (exit 1); exit 1; }
22353 fi
22354
22355 #
22356 # CONFIG_SUBDIRS section.
22357 #
22358 if test "$no_recursion" != yes; then
22359
22360   # Remove --cache-file and --srcdir arguments so they do not pile up.
22361   ac_sub_configure_args=
22362   ac_prev=
22363   eval "set x $ac_configure_args"
22364   shift
22365   for ac_arg
22366   do
22367     if test -n "$ac_prev"; then
22368       ac_prev=
22369       continue
22370     fi
22371     case $ac_arg in
22372     -cache-file | --cache-file | --cache-fil | --cache-fi \
22373     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22374       ac_prev=cache_file ;;
22375     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22376     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22377     | --c=*)
22378       ;;
22379     --config-cache | -C)
22380       ;;
22381     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22382       ac_prev=srcdir ;;
22383     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22384       ;;
22385     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22386       ac_prev=prefix ;;
22387     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22388       ;;
22389     *)
22390       case $ac_arg in
22391       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22392       esac
22393       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22394     esac
22395   done
22396
22397   # Always prepend --prefix to ensure using the same prefix
22398   # in subdir configurations.
22399   ac_arg="--prefix=$prefix"
22400   case $ac_arg in
22401   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22402   esac
22403   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22404
22405   ac_popdir=`pwd`
22406   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22407
22408     # Do not complain, so a configure script can configure whichever
22409     # parts of a large source tree are present.
22410     test -d "$srcdir/$ac_dir" || continue
22411
22412     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22413     echo "$as_me:$LINENO: $ac_msg" >&5
22414     echo "$ac_msg" >&6
22415     { as_dir="$ac_dir"
22416   case $as_dir in #(
22417   -*) as_dir=./$as_dir;;
22418   esac
22419   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22420     as_dirs=
22421     while :; do
22422       case $as_dir in #(
22423       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22424       *) as_qdir=$as_dir;;
22425       esac
22426       as_dirs="'$as_qdir' $as_dirs"
22427       as_dir=`$as_dirname -- "$as_dir" ||
22428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22429          X"$as_dir" : 'X\(//\)[^/]' \| \
22430          X"$as_dir" : 'X\(//\)$' \| \
22431          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22432 echo X"$as_dir" |
22433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22434             s//\1/
22435             q
22436           }
22437           /^X\(\/\/\)[^/].*/{
22438             s//\1/
22439             q
22440           }
22441           /^X\(\/\/\)$/{
22442             s//\1/
22443             q
22444           }
22445           /^X\(\/\).*/{
22446             s//\1/
22447             q
22448           }
22449           s/.*/./; q'`
22450       test -d "$as_dir" && break
22451     done
22452     test -z "$as_dirs" || eval "mkdir $as_dirs"
22453   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22454 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22455    { (exit 1); exit 1; }; }; }
22456     ac_builddir=.
22457
22458 case "$ac_dir" in
22459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22460 *)
22461   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22462   # A ".." for each directory in $ac_dir_suffix.
22463   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22464   case $ac_top_builddir_sub in
22465   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22466   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22467   esac ;;
22468 esac
22469 ac_abs_top_builddir=$ac_pwd
22470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22471 # for backward compatibility:
22472 ac_top_builddir=$ac_top_build_prefix
22473
22474 case $srcdir in
22475   .)  # We are building in place.
22476     ac_srcdir=.
22477     ac_top_srcdir=$ac_top_builddir_sub
22478     ac_abs_top_srcdir=$ac_pwd ;;
22479   [\\/]* | ?:[\\/]* )  # Absolute name.
22480     ac_srcdir=$srcdir$ac_dir_suffix;
22481     ac_top_srcdir=$srcdir
22482     ac_abs_top_srcdir=$srcdir ;;
22483   *) # Relative name.
22484     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22485     ac_top_srcdir=$ac_top_build_prefix$srcdir
22486     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22487 esac
22488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22489
22490
22491     cd "$ac_dir"
22492
22493     # Check for guested configure; otherwise get Cygnus style configure.
22494     if test -f "$ac_srcdir/configure.gnu"; then
22495       ac_sub_configure=$ac_srcdir/configure.gnu
22496     elif test -f "$ac_srcdir/configure"; then
22497       ac_sub_configure=$ac_srcdir/configure
22498     elif test -f "$ac_srcdir/configure.in"; then
22499       # This should be Cygnus configure.
22500       ac_sub_configure=$ac_aux_dir/configure
22501     else
22502       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22503 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22504       ac_sub_configure=
22505     fi
22506
22507     # The recursion is here.
22508     if test -n "$ac_sub_configure"; then
22509       # Make the cache file name correct relative to the subdirectory.
22510       case $cache_file in
22511       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22512       *) # Relative name.
22513         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22514       esac
22515
22516       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22517 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22518       # The eval makes quoting arguments work.
22519       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22520            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22521         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22522 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22523    { (exit 1); exit 1; }; }
22524     fi
22525
22526     cd "$ac_popdir"
22527   done
22528 fi
22529